class Secp256k1::PublicKey

Defined in:

secp256k1/ecdh.cr
secp256k1/ecdsa.cr
secp256k1/public_key.cr:5
secp256k1/public_key.cr:10

Constant Summary

SERIALIZED_COMPRESSED_SIZE = 33_u64
SERIALIZED_SIZE = 65_u64

Constructors

Instance Method Summary

Constructor Detail

def self.new(wrapped_context : LibSecp256k1::Secp256k1Context, wrapped_public_key : LibSecp256k1::Secp256k1Pubkey) #

[View source]

Instance Method Detail

def bytes : Bytes #

[View source]
def combine(public_keys : Array(PublicKey)) : PublicKey #

[View source]
def ecdh(secret_key : Bytes) : Bytes #

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

[View source]
def serialize : Bytes #

[View source]
def serialize_compressed : Bytes #

[View source]