class Secp256k1Zkp::PublicKey

Included Modules

Extended Modules

Defined in:

crystal-secp256k1-zkp/secp256k1-zkp.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]
def self.new(public_keydata : Bytes) #

[View source]
def self.new(public_keydata : RawdataCompressedPublicKey) #

[View source]
def self.new #

零地址:Prefix + 1111111111111111111111111111111114T1Anm


[View source]

Class Method Detail

def self.from_wif(wif_public_key : String, public_key_prefix : String) #

[View source]
def self.is_zero?(wif_public_key : String, public_key_prefix : String) : Bool #

[View source]

Instance Method Detail

def *(tweak : RawdataPrivateKey) #

[View source]
def *(tweak : PrivateKey) #

[View source]
def +(tweak : RawdataPrivateKey) #

[View source]
def +(tweak : PrivateKey) #

[View source]
def bytes : Bytes #

[View source]
def ecc_point_bytes : Bytes #

[View source]

[View source]
def shared_secret(private_key : PrivateKey) : Bytes #

[View source]
def to_address : Address #

[View source]
def to_wif(public_key_prefix : String) #

[View source]
def tweak_add(tweak : RawdataPrivateKey) #

[View source]
def tweak_add(tweak : PrivateKey) #
  • 法调整

[View source]
def tweak_mul(tweak : RawdataPrivateKey) #

[View source]
def tweak_mul(tweak : PrivateKey) #
  • 法调整

[View source]