Function: exportFalconRsSecretKey()
exportFalconRsSecretKey(
secretKey):Uint8Array
Defined in: s2morrow/keys.ts:601
Converts a NIST secret key into the falcon-rs format (f‖g‖F‖G, 4 × 896 bytes).
Warning: falcon-rs derives the seed of its sampler from the public salt of each signature, so signing with falcon-rs exposes the key: keep signing with this library.
Parameters
secretKey
string | Uint8Array<ArrayBufferLike>
the NIST secret key (1281 bytes), or its hex string
Returns
Uint8Array
the falcon-rs secret key (3584 bytes)
Throws
when the secret key is invalid
Example
const { secretKey } = falcon512.generateKeyPair();
const result = falcon512.exportFalconRsSecretKey(secretKey);
// result = Uint8Array(3584) […]