class

Secp256k1Zkp::PrivateKey

Inherits Secp256k1Zkp::Utility < Reference < Object

Constructors

new(private_keydata : Bytes)
Source
new(private_keydata : RawdataPrivateKey)
Source

Class methods

from_account_and_password(account, password, role = "active")

=> role - owner / active

Source
from_seed(seed)
Source
from_wif(wif_private_key_string : String)
Source
random
Source

Instance methods

*(tweak : PrivateKey)
Source
*(tweak : RawdataPrivateKey)
Source
+(tweak : PrivateKey)
Source
+(tweak : RawdataPrivateKey)
Source
bytes
Source
rawdata
Source
shared_secret(public_key : PublicKey) : Bytes
Source
to_public_key

获取对应的公钥

Source
to_wif

获取 WIF 格式的私钥字符串

Source
tweak_add(tweak : PrivateKey)
  • 法调整
Source
tweak_add(tweak : RawdataPrivateKey)
Source
tweak_mul(tweak : PrivateKey)
  • 法调整
Source
tweak_mul(tweak : RawdataPrivateKey)
Source