class KeyPair

Defined in:

lib/secp256k1.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Constructor Detail

def self.new(skey : StaticArray(UInt8, 32)) #

[View source]

Class Method Detail

def self.from_string(str : String) : Self #

[View source]
def self.generate : Self #

[View source]

Instance Method Detail

def recover #

[View source]
def sign(msg : Bytes) #

[View source]
def verify(msg : Bytes, sig : Bytes) #

[View source]
def x : BigInt #

[View source]
def y : BigInt #

[View source]