class Secp256k1Zkp::PrivateKey
- Secp256k1Zkp::PrivateKey
- Reference
- Object
Included Modules
Extended Modules
Defined in:
crystal-secp256k1-zkp/secp256k1-zkp.crConstructors
Class Method Summary
-
.from_account_and_password(account, password, role = "active")
=> role - owner / active
- .from_seed(seed)
- .from_wif(wif_private_key_string : String)
- .random
Instance Method Summary
- #*(tweak : PrivateKey)
- #*(tweak : RawdataPrivateKey)
- #+(tweak : PrivateKey)
- #+(tweak : RawdataPrivateKey)
- #bytes : Bytes
- #rawdata : RawdataPrivateKey
- #shared_secret(public_key : PublicKey) : Bytes
-
#to_public_key
获取对应的公钥
-
#to_wif
获取 WIF 格式的私钥字符串
-
#tweak_add(tweak : PrivateKey)
- 法调整
- #tweak_add(tweak : RawdataPrivateKey)
-
#tweak_mul(tweak : PrivateKey)
- 法调整
- #tweak_mul(tweak : RawdataPrivateKey)