Secp256k1CFunctions

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Flags to pass to secp256k1_context_create, secp256k1_context_preallocated_size, and secp256k1_context_preallocated_create.
Link copied to clipboard
Flag to pass to secp256k1_ec_pubkey_serialize.
Link copied to clipboard
Link copied to clipboard
The higher bits contain the actual data.
Link copied to clipboard
All flags' lower 8 bits indicate what they're for.
Link copied to clipboard
When aggregating public keys, we cache information in an opaque blob (must not be interpreted).
Link copied to clipboard
A musig2 public nonce is simply two elliptic curve points.
Link copied to clipboard
A musig2 private nonce is basically two scalars, but should be treated as an opaque blob.
Link copied to clipboard
When creating partial signatures and aggregating them, session data is kept in an opaque blob (must not be interpreted).

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun secp256k1_ec_pubkey_create(ctx: Long, seckey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_pubkey_negate(ctx: Long, pubkey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_pubkey_parse(ctx: Long, pubkey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_pubkey_tweak_add(ctx: Long, pubkey: Array<Byte>, tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_pubkey_tweak_mul(ctx: Long, pubkey: Array<Byte>, tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_seckey_negate(ctx: Long, privkey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_seckey_tweak_add(ctx: Long, seckey: Array<Byte>, tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_seckey_tweak_mul(ctx: Long, seckey: Array<Byte>, tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_seckey_verify(ctx: Long, seckey: Array<Byte>): Int
Link copied to clipboard
open fun secp256k1_ecdh(ctx: Long, seckey: Array<Byte>, pubkey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ecdsa_recover(ctx: Long, sig: Array<Byte>, msg32: Array<Byte>, recid: Int): Array<Byte>
Link copied to clipboard
open fun secp256k1_ecdsa_sign(ctx: Long, msg: Array<Byte>, seckey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ecdsa_signature_normalize(ctx: Long, sigin: Array<Byte>, sigout: Array<Byte>): Int
Link copied to clipboard
open fun secp256k1_ecdsa_verify(ctx: Long, sig: Array<Byte>, msg: Array<Byte>, pubkey: Array<Byte>): Int
Link copied to clipboard
Link copied to clipboard
open fun secp256k1_musig_nonce_gen(ctx: Long, session_rand32: Array<Byte>, seckey: Array<Byte>, pubkey: Array<Byte>, msg32: Array<Byte>, keyagg_cache: Array<Byte>, extra_input32: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_nonce_gen_counter(ctx: Long, nonrepeating_cnt: Long, seckey: Array<Byte>, msg32: Array<Byte>, keyagg_cache: Array<Byte>, extra_input32: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_nonce_process(ctx: Long, aggnonce: Array<Byte>, msg32: Array<Byte>, keyagg_cache: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_partial_sig_agg(ctx: Long, session: Array<Byte>, psigs: Array<Array<Byte>>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_partial_sig_verify(ctx: Long, psig: Array<Byte>, pubnonce: Array<Byte>, pubkey: Array<Byte>, keyagg_cache: Array<Byte>, session: Array<Byte>): Int
Link copied to clipboard
open fun secp256k1_musig_partial_sign(ctx: Long, secnonce: Array<Byte>, privkey: Array<Byte>, keyagg_cache: Array<Byte>, session: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_pubkey_agg(ctx: Long, pubkeys: Array<Array<Byte>>, keyagg_cache: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_pubkey_ec_tweak_add(ctx: Long, keyagg_cache: Array<Byte>, tweak32: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_musig_pubkey_xonly_tweak_add(ctx: Long, keyagg_cache: Array<Byte>, tweak32: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_schnorrsig_sign(ctx: Long, msg: Array<Byte>, seckey: Array<Byte>, aux_rand32: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_schnorrsig_verify(ctx: Long, sig: Array<Byte>, msg: Array<Byte>, pubkey: Array<Byte>): Int