UNPKG

@nervosnetwork/ckb-sdk-utils

Version:

Utils module of @nervosnetwork/ckb-sdk-core

14 lines (13 loc) 586 B
export declare class Blake2b { b: Uint8Array; h: Uint32Array; t: number; c: number; outlen: number; constructor(outlen: number, key: Uint8Array | null, salt: Uint8Array | null, personal: Uint8Array | null); update: (input: Uint8Array) => this; digest: (out: 'binary' | 'hex') => string | Uint8Array; final: (out: 'binary' | 'hex') => string | Uint8Array; } export declare const blake2b: (outlen: number, key: Uint8Array | null, salt: Uint8Array | null, personal: Uint8Array | null, noAssert?: boolean | undefined) => Blake2b; export default blake2b;