class Secp256k1Zkp::PrivateKey

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(private_keydata : Bytes) #

[View source]
def self.new(private_keydata : RawdataPrivateKey) #

[View source]

Class Method Detail

def self.from_account_and_password(account, password, role = "active") #

=> role - owner / active


[View source]
def self.from_seed(seed) #

[View source]
def self.from_wif(wif_private_key_string : String) #

[View source]
def self.random #

[View source]

Instance Method Detail

def *(tweak : PrivateKey) #

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

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

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

[View source]
def bytes : Bytes #

[View source]
def rawdata : RawdataPrivateKey #

[View source]
def shared_secret(public_key : PublicKey) : Bytes #

[View source]
def to_public_key #

获取对应的公钥


[View source]
def to_wif #

获取 WIF 格式的私钥字符串


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

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

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

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

[View source]