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
encoding module has the following encodings and corresponding decode and encode methods:
ascii85
encode: Uint8Array -> string
decode: string -> Uint8Array
base32
encode: Uint8Array -> string
decode: string -> Uint8Array
base58
encode: ArrayBuffer | string -> string
decode: string -> Uint8Array
base64
encode: ArrayBuffer | string -> string
decode: string -> Uint8Array
base64url
encode: ArrayBuffer | string -> string
decode: string -> Uint8Array
hex
encode: Uint8Array -> Uint8Array
decode: Uint8Array -> Uint8Array
varint
encode: bigint | number -> [Uint8Array, number]
decode: Uint8Array -> [bigint, number]
Encodings except varint are similar in typing, but there are discrepancies (The case of hex is pointed in #3605). I think these 6 encodings should have the same typings, for example encode: Uint8Array | ArrayBuffer | string -> string; decode: string -> Uint8Array
encoding
module has the following encodings and corresponding decode and encode methods:Encodings except
varint
are similar in typing, but there are discrepancies (The case ofhex
is pointed in #3605). I think these 6 encodings should have the same typings, for exampleencode: Uint8Array | ArrayBuffer | string -> string; decode: string -> Uint8Array
part of #3489
The text was updated successfully, but these errors were encountered: