Secp256k1CFunctions

open class Secp256k1CFunctions

Functions

Link copied to clipboard
open fun secp256k1_compact_to_der(ctx: Long, sig: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_context_create(flags: Int): Long
Link copied to clipboard
open fun secp256k1_context_destroy(ctx: Long)
Link copied to clipboard
open fun secp256k1_ec_privkey_negate(ctx: Long, privkey: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_privkey_tweak_add(    ctx: Long,     seckey: Array<Byte>,     tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_privkey_tweak_mul(    ctx: Long,     seckey: Array<Byte>,     tweak: Array<Byte>): Array<Byte>
Link copied to clipboard
open fun secp256k1_ec_pubkey_combine(ctx: Long, pubkeys: Array<Array<Byte>>): Array<Byte>
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_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
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

Properties

Link copied to clipboard
val SECP256K1_CONTEXT_NONE: Int
Link copied to clipboard
val SECP256K1_CONTEXT_SIGN: Int
Link copied to clipboard
val SECP256K1_CONTEXT_VERIFY: Int
Flags to pass to secp256k1_context_create, secp256k1_context_preallocated_size, and secp256k1_context_preallocated_create.
Link copied to clipboard
val SECP256K1_EC_COMPRESSED: Int
Flag to pass to secp256k1_ec_pubkey_serialize.
Link copied to clipboard
val SECP256K1_EC_UNCOMPRESSED: Int
Link copied to clipboard
val SECP256K1_FLAGS_BIT_COMPRESSION: Int
Link copied to clipboard
val SECP256K1_FLAGS_BIT_CONTEXT_SIGN: Int
Link copied to clipboard
val SECP256K1_FLAGS_BIT_CONTEXT_VERIFY: Int
The higher bits contain the actual data.
Link copied to clipboard
val SECP256K1_FLAGS_TYPE_COMPRESSION: Int
Link copied to clipboard
val SECP256K1_FLAGS_TYPE_CONTEXT: Int
Link copied to clipboard
open val SECP256K1_FLAGS_TYPE_MASK: Int
All flags' lower 8 bits indicate what they're for.