class Secp256k1Zkp::PublicKey
- Secp256k1Zkp::PublicKey
- Reference
- Object
Included Modules
Extended Modules
Defined in:
crystal-secp256k1-zkp/secp256k1-zkp.crConstructors
- .new(compact_signature65 : RawdataCompactSignature, digest256 : Bytes, check_canonical = true)
- .new(public_keydata : Bytes)
- .new(public_keydata : RawdataCompressedPublicKey)
-
.new
零地址:Prefix + 1111111111111111111111111111111114T1Anm
Class Method Summary
- .from_wif(wif_public_key : String, public_key_prefix : String)
- .is_zero?(wif_public_key : String, public_key_prefix : String) : Bool
Instance Method Summary
- #*(tweak : RawdataPrivateKey)
- #*(tweak : PrivateKey)
- #+(tweak : RawdataPrivateKey)
- #+(tweak : PrivateKey)
- #bytes : Bytes
- #ecc_point_bytes : Bytes
- #rawdata : RawdataCompressedPublicKey
- #shared_secret(private_key : PrivateKey) : Bytes
- #to_address : Address
- #to_wif(public_key_prefix : String)
- #tweak_add(tweak : RawdataPrivateKey)
-
#tweak_add(tweak : PrivateKey)
- 法调整
- #tweak_mul(tweak : RawdataPrivateKey)
-
#tweak_mul(tweak : PrivateKey)
- 法调整
Instance methods inherited from module Secp256k1Zkp::Utility
base58_decode(base58_str : String) : Bytes
base58_decode,
base58_encode(str : Bytes) : String
base58_encode,
hex_decode(data)
hex_decode,
hex_encode(data)
hex_encode,
rmd160(data)
rmd160,
rmd160_hex(data)
rmd160_hex,
sha256(data)
sha256,
sha256_hex(data)
sha256_hex,
sha512(data)
sha512,
sha512_hex(data)
sha512_hex
Constructor Detail
def self.new(compact_signature65 : RawdataCompactSignature, digest256 : Bytes, check_canonical = true)
#