/** * forked from https://github.com/EOSIO/eosjs/blob/master/src/eosjs-key-conversions.ts * * rewrite ripemd160 * */ /** * Convert an unsigned base-58 number in `s` to a bignum * * @param size bignum size (bytes) */ export declare const base58ToBinary: (size: number, s: string) => Uint8Array; /** * Convert `bignum` to a base-58 number * * @param minDigits 0-pad result to this many digits */ export declare const binaryToBase58: (bignum: Uint8Array) => string; /** Key types this library supports */ export declare enum KeyType { k1 = 0, r1 = 1, wa = 2 } /** Public key data size, excluding type field */ export declare const publicKeyDataSize = 33; /** Private key data size, excluding type field */ export declare const privateKeyDataSize = 32; /** Signature data size, excluding type field */ export declare const signatureDataSize = 65; /** Public key, private key, or signature in binary form */ export interface Key { type: KeyType; data: Uint8Array; } /** Convert key in `s` to binary form */ export declare const stringToPublicKey: (s: string) => Key; /** Convert public `key` to legacy string (base-58) form */ export declare const publicKeyToLegacyString: (key: Key) => string; /** Convert key in `s` to binary form */ export declare const stringToPrivateKey: (s: string) => Key; /** Convert key in `s` to binary form */ export declare const stringToSignature: (s: string) => Key; /** Convert `signature` to string (base-58) form */ export declare const signatureToString: (signature: Key) => string; export declare const privateKeyToLegacyString: (key: Key) => string; /** Convert `key` to string (base-58) form */ export declare const privateKeyToString: (key: Key) => string;