class Secp256k1Zkp::Context
- Secp256k1Zkp::Context
- Reference
- Object
Defined in:
crystal-secp256k1-zkp/secp256k1-zkp.crConstructors
Class Method Summary
Instance Method Summary
- #clone
-
#dup
Returns a shallow copy of this object.
-
#finalize
析构方法:自动回收
- #is_canonical?(c : RawdataCompactSignature) : Bool
- #is_valid_private_keydata?(private_keydata : RawdataPrivateKey) : Bool
- #is_valid_public_keydata?(public_keydata : RawdataCompressedPublicKey) : Bool
- #pedersen_commit(blind_factor : Bytes, value : UInt64) : Bytes
- #sign_compact(message_digest : Bytes, private_key : PrivateKey, require_canonical = true) : Bytes
- #to_unsafe : Secp256k1Zkp::LibSecp256k1::Secp256k1_context_t_ptr
Constructor Detail
def self.new(flag : Int32 = LibSecp256k1::SECP256K1_CONTEXT_ALL, ctx : LibSecp256k1::Secp256k1_context_t_ptr | Nil = nil)
#
Class Method Detail
Instance Method Detail
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.
def sign_compact(message_digest : Bytes, private_key : PrivateKey, require_canonical = true) : Bytes
#