class Secp256k1::Context

Defined in:

secp256k1/context.cr:4
secp256k1/context.cr:8
secp256k1/keypair.cr
secp256k1/public_key.cr
secp256k1/xonly_public_key.cr

Constant Summary

RANDOM_SEED_SIZE = 32

Constructors

Instance Method Summary

Constructor Detail

def self.new(wrapped_context : LibSecp256k1::Secp256k1Context, random : Random) #

[View source]
def self.new(random : Random) #

[View source]

Instance Method Detail

def finalize #

[View source]
def keypair_create(secret_key : Bytes) : Keypair #

[View source]
def keypair_generate : Keypair #

[View source]
def public_key_create(secret_key : Bytes) : PublicKey #

[View source]
def public_key_parse(public_key : Bytes) : PublicKey #

[View source]
def xonly_public_key_parse(xonly_public_key : Bytes) : XOnlyPublicKey #

[View source]