class

Secp256k1Zkp::Context

Inherits Reference < Object

Constructors

new(flag : Int32 = LibSecp256k1::SECP256K1_CONTEXT_ALL, ctx : LibSecp256k1::Secp256k1_context_t_ptr | Nil = nil)
Source

Class methods

default
Source

Instance methods

clone
Source
dup

Returns a shallow copy of this object.

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

Source
finalize

析构方法:自动回收

Source
is_canonical?(c : RawdataCompactSignature) : Bool
Source
is_valid_private_keydata?(private_keydata : RawdataPrivateKey) : Bool
Source
is_valid_public_keydata?(public_keydata : RawdataCompressedPublicKey) : Bool
Source
pedersen_commit(blind_factor : Bytes, value : UInt64) : Bytes
Source
sign_compact(message_digest : Bytes, private_key : PrivateKey, require_canonical = true) : Bytes
Source
to_unsafe
Source