sigildocs

(sigil secp256k1)

(sigil secp256k1) - bytevector bindings to libsecp256k1

Exports

Validate a 32-byte secp256k1 secret key.

Derive a 33-byte compressed public key from a 32-byte secret key.

Parse a 33-byte or 65-byte serialized public key.

Add a 32-byte tweak to a serialized public key.

Add a 32-byte tweak to a secret key.

Sign a 32-byte message hash with ECDSA, returning compact r||s.

Verify a compact ECDSA signature with a serialized public key.

Parse a DER-encoded ECDSA signature to compact r||s.

Serialize a compact ECDSA signature to DER.

Sign a 32-byte message with a 96-byte keypair.

Verify a 64-byte Schnorr signature with a 64-byte x-only pubkey.

Create a 96-byte secp256k1 keypair from a secret key.

Extract a compressed public key from a keypair.

Extract the internal 64-byte x-only public key from a keypair.

Extract the internal x-only public key and parity from a keypair.