(sigil secp256k1)
(sigil secp256k1) - bytevector bindings to libsecp256k1
Exports
secp256k1-seckey-verify?procedureValidate a 32-byte secp256k1 secret key.
secp256k1-pubkey-createprocedureDerive a 33-byte compressed public key from a 32-byte secret key.
secp256k1-pubkey-parseprocedureParse a 33-byte or 65-byte serialized public key.
secp256k1-pubkey-tweak-addprocedureAdd a 32-byte tweak to a serialized public key.
secp256k1-seckey-tweak-addprocedureAdd a 32-byte tweak to a secret key.
secp256k1-ecdsa-signprocedureSign a 32-byte message hash with ECDSA, returning compact r||s.
secp256k1-ecdsa-verifyprocedureVerify a compact ECDSA signature with a serialized public key.
secp256k1-ecdsa-signature-parse-derprocedureParse a DER-encoded ECDSA signature to compact r||s.
Serialize a compact ECDSA signature to DER.
secp256k1-schnorrsig-sign32procedureSign a 32-byte message with a 96-byte keypair.
secp256k1-schnorrsig-verifyprocedureVerify a 64-byte Schnorr signature with a 64-byte x-only pubkey.
secp256k1-keypair-createprocedureCreate a 96-byte secp256k1 keypair from a secret key.
secp256k1-keypair-pubprocedureExtract a compressed public key from a keypair.
secp256k1-keypair-xonly-pubprocedureExtract the internal 64-byte x-only public key from a keypair.
Extract the internal x-only public key and parity from a keypair.