class Secp256k1::Keypair

Defined in:

secp256k1/ecdsa.cr
secp256k1/keypair.cr
secp256k1/schnorr.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def bytes : Bytes #

[View source]
def ecdsa_sign(message_hash : Bytes) : Ecdsa #

[View source]
def ecdsa_verify(ecdsa : Ecdsa, message_hash : Bytes) : Bool #

[View source]
def public_key : PublicKey #

[View source]
def schnorr_sign(message : Bytes, auxiliary_randomness : Bytes) : Bytes #

[View source]
def schnorr_sign(message : Bytes) : Bytes #

[View source]
def schnorr_verify(signature : Bytes, message : Bytes) : Bool #

[View source]
def schnorr_verify(signature : Bytes) : Bool #

[View source]
def secret_key_bytes : Bytes #

[View source]
def xonly_public_key : XOnlyPublicKey #

[View source]