BSV.Crypto.RFC6979 (bsv_sdk v2.0.1)

Copy Markdown View Source

RFC 6979 deterministic k generation using HMAC-DRBG (Section 3.2). Specialized for secp256k1 with SHA-256 (qlen = hlen = 256).

Summary

Functions

Generate deterministic k value per RFC 6979 Section 3.2. Takes 32-byte private key and 32-byte message hash. Returns 32-byte k as binary.

Functions

generate_k(arg1, arg2)

@spec generate_k(binary(), binary()) :: binary()

Generate deterministic k value per RFC 6979 Section 3.2. Takes 32-byte private key and 32-byte message hash. Returns 32-byte k as binary.