UNPKG

di-wings

Version:

Aviary Tech's common library for decentralized identity

35 lines 1.58 kB
export declare const MULTIBASE_BASE58BTC_HEADER = "z"; export declare const MULTIBASE_BASE64URL_HEADER = "u"; export declare const MULTICODEC_ED25519_PUB_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_ED25519_PRIV_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_X25519_PUB_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_X25519_PRIV_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_SECP256K1_PUB_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_SECP256K1_PRIV_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_BLS12381_G2_PUB_HEADER: Uint8Array<ArrayBuffer>; export declare const MULTICODEC_BLS12381_G2_PRIV_HEADER: Uint8Array<ArrayBuffer>; export declare const base64: { encode: (unencoded: any) => string; decode: (encoded: any) => Uint8Array; }; export declare const utf8: { encode: (unencoded: string) => Uint8Array; decode: (encoded: Uint8Array) => string; }; export declare const base64url: { encode: (unencoded: any) => string; decode: (encoded: any) => Uint8Array; }; export declare const base58: { encode: (unencoded: Uint8Array) => string; decode: (encoded: string) => Uint8Array; }; export declare const multibase: { encode: (val: Uint8Array, encoding: "base58btc" | "base64url") => string; decode: (val: string) => Uint8Array; }; export declare const multikey: { encode: (header: Uint8Array, val: Uint8Array) => string; decode: (header: Uint8Array, val: string) => Uint8Array; }; //# sourceMappingURL=encoding.d.ts.map