class Secp256k1Zkp::Context

Defined in:

crystal-secp256k1-zkp/secp256k1-zkp.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(flag : Int32 = LibSecp256k1::SECP256K1_CONTEXT_ALL, ctx : LibSecp256k1::Secp256k1_context_t_ptr | Nil = nil) #

[View source]

Class Method Detail

def self.default #

[View source]

Instance Method Detail

def clone #

[View source]
def dup #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


[View source]
def finalize #

析构方法:自动回收


[View source]
def is_canonical?(c : RawdataCompactSignature) : Bool #

[View source]
def is_valid_private_keydata?(private_keydata : RawdataPrivateKey) : Bool #

[View source]
def is_valid_public_keydata?(public_keydata : RawdataCompressedPublicKey) : Bool #

[View source]
def pedersen_commit(blind_factor : Bytes, value : UInt64) : Bytes #

[View source]
def sign_compact(message_digest : Bytes, private_key : PrivateKey, require_canonical = true) : Bytes #

[View source]
def to_unsafe : Secp256k1Zkp::LibSecp256k1::Secp256k1_context_t_ptr #

[View source]