module Secp256k1

Extended Modules

Defined in:

secp256k1.cr

Instance Method Summary

Instance Method Detail

def generate_private_key : Bytes #

[View source]
def generate_public_key(seckey) : Bytes #

[View source]
def random_bytes(size) : Bytes #

[View source]
def recover(sig : Bytes, msghash32 : Bytes) : Bytes #

secp256k1_ecdsa_recover(ctx : Context, pubkey : Pubkey*, sig : EcdsaRecoverableSignature*, msghash32 : UInt8*) : LibC::Int


[View source]
def sha256(message : String, tag : String = "exarete") : Bytes #

[View source]
def sha256(message : Bytes, tag : Bytes) : Bytes #

[View source]
def sign_recoverable(hash : Bytes, seckey : Bytes) #

[View source]
def verify(sig : Bytes, hash : Bytes, pubkey : Bytes) : Bool #

secp256k1_ecdsa_verify(ctx : Context, sig : EcdsaSignature*, msghash32 : UInt8*, pubkey : Pubkey*) : LibC::Int


[View source]