public class HdPrivateKey extends Object implements Derive<HdPrivateKey>, CKDpriv, CKDpub
| 构造器和说明 |
|---|
HdPrivateKey(HdKey hdKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
static HdPrivateKey |
base58Decode(String key) |
String |
base58Encode() |
int |
childNumber() |
HdPrivateKey |
cKDpriv(int index)
Calculates the private key of the child at index.
|
HdPublicKey |
cKDpub(int index) |
int |
depth() |
static Deserializer<HdPrivateKey> |
deserializer(Network network) |
HdPrivateKey |
fromPath() |
HdPrivateKey |
fromPath(CharSequence derivationPath)
Derive from a string path such as m/44'/0'/0'/0/1
|
<Path> HdPrivateKey |
fromPath(Path derivationPath,
Derivation<Path> derivation)
Derive from a generic path using the
Derivation supplied to extract the child indexes |
static HdPrivateKey |
fromSeed(byte[] seed,
byte[] byteKey,
Network network) |
static HdPrivateKey |
fromSeed(byte[] seed,
Network network) |
Address |
getAddress() |
HdPublicKey |
getHdPublicKey() |
byte[] |
getPrivateKey() |
static HdPrivateKey |
masterKeyFromMnemonic(String code) |
static HdPrivateKey |
masterKeyFromMnemonic(String code,
String passphrase) |
Network |
network() |
HdPublicKey |
neuter() |
byte[] |
toByteArray() |
String |
toHexString() |
public HdPrivateKey(HdKey hdKey)
public static Deserializer<HdPrivateKey> deserializer(Network network)
public static HdPrivateKey masterKeyFromMnemonic(String code, String passphrase)
public static HdPrivateKey masterKeyFromMnemonic(String code)
public String toHexString()
public byte[] getPrivateKey()
public HdPublicKey getHdPublicKey() throws Exception
Exceptionpublic static HdPrivateKey fromSeed(byte[] seed, Network network)
public static HdPrivateKey fromSeed(byte[] seed, byte[] byteKey, Network network)
public static HdPrivateKey base58Decode(String key) throws SDKException
SDKExceptionpublic HdPrivateKey cKDpriv(int index)
CKDprivpublic HdPublicKey cKDpub(int index)
public HdPublicKey neuter()
public HdPrivateKey fromPath(CharSequence derivationPath)
DerivefromPath 在接口中 Derive<HdPrivateKey>derivationPath - Pathpublic HdPrivateKey fromPath()
public <Path> HdPrivateKey fromPath(Path derivationPath, Derivation<Path> derivation)
DeriveDerivation supplied to extract the child indexesfromPath 在接口中 Derive<HdPrivateKey>Path - The generic type of the pathderivationPath - Pathderivation - The class that extracts the path elementspublic byte[] toByteArray()
public Network network()
public int depth()
public int childNumber()
public String base58Encode()
Copyright © 2021. All rights reserved.