hmacDrbg
Using hmac See https://datatracker.ietf.org/doc/html/rfc6979#section-3.2
export function hmacDrbg(
seed: number[],
pred: (bytes: number[]) => undefined | T
): T
Arguments
Name | Type | Description |
---|---|---|
seed | number[] | privateKey concatenated with hash of message according to rfc6979 |
pred | (bytes: number[]) => undefined | T | keep generating new bytes until pred returns something non-undefined (signifying a certain condition has been satisfied) |
Return value
T