     case unknownCode
     case hashTooShort
     case hashTooLong
+    case VarIntBufferTooShort
+    case VarIntTooLarge
     case lengthNotSupported
     case hexConversionFail
     case inconsistentLength(Int)

                return "Multihash too short. Must be > 3 bytes"
            case .hashTooLong:
                return "Multihash too long. Must be < 129 bytes"
            case .lengthNotSupported:
                return "Multihash does not yet support digests longer than 127 bytes"
            case .hexConversionFail:

//    print("The var int read is \(b0.0) and was \(b0.1) bytes")

    if dm.digest.count != dm.length {
        throw MultihashError.inconsistentLength(dm.length)
    }

