You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It conceptually belongs here anyways. Also, this fixes the
dependency tree so that `commit` can depend on `tagged_blob` without
depending on `jf-utils` (which would create a cycle). This will
enable tagged base 64 serialization support directly on the
`Commitment` type, obviating the need for many newtype structs.
That will be done in a subsequent change.
During the move, I streamlined the `tagged_blob` macro a bit. I
removed the `TaggedBlob` wrapper type which was only used to add
custom serde impls and to convert to and from for serializing other
types. Instead, serialization now goes directly through `TaggedBase64`,
and I have implemented serialization and deserialization for the
`TaggedBase64` type itself.
Since `TaggedBlob` is gone, I renamed the macro `tagged` for simplicity.
write!(f,"An invalid character was found in the tag."),
109
-
Tb64Error::MissingDelimiter =>
110
-
write!(f,"Missing delimiter ({}).",TB64_DELIM),
111
-
Tb64Error::MissingChecksum =>
112
-
write!(f,"Missing checksum in value."),
113
-
Tb64Error::InvalidByte(offset, byte) =>
114
-
write!(f,"An invalid byte ({:#0x}) was found at offset {} while decoding the base64-encoded value. The offset and offending byte are provided.", byte, offset),
115
-
Tb64Error::InvalidLastSymbol(offset, byte) => write!(f,"The last non-padding input symbol's encoded 6 bits have nonzero bits that will be discarded. This is indicative of corrupted or truncated Base64. Unlike InvalidByte, which reports symbols that aren't in the alphabet, this error is for symbols that are in the alphabet but represent nonsensical encodings. Invalid byte ({:#0x}) at offset {}.", byte, offset),
116
-
Tb64Error::InvalidLength =>
117
-
write!(f,"The length of the base64-encoded value is invalid."),
118
-
Tb64Error::InvalidChecksum =>
119
-
write!(f,"The checksum was truncated or did not match."),
0 commit comments