signProof
@totemsdk/proof / signProof
Function: signProof()
signProof(
unsignedProof,seed,keyIndex):SignedProof
Sign an UnsignedProof with a WOTS key. The digest is SHA3-256 of the canonical JSON of the full UnsignedProof (including proofId). signature.message is NOT set — it is optional debug-only.
The caller is responsible for reserving the WOTS key index before calling this function. This package does NOT depend on @totemsdk/wots-lease.
Parameters
unsignedProof
seed
Uint8Array
keyIndex
number