public class Bip32 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PATH_HARDENED_SUFFIX
是否需要硬化的标志后缀
|
static String |
PATH_ROOT_FLAG
根路径标志
|
static String |
PATH_SPLIT_FLAG
路径分隔符
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Bip32 |
create(org.bitcoinj.crypto.DeterministicKey key) |
static Bip32 |
create(String extKey,
org.bitcoinj.core.NetworkParameters np)
通过 扩展 公钥或私钥 生成bip
|
boolean |
equals(Object o) |
Bip32 |
getBipByPath(String path)
从根路径开始, 获取指定路径下的节点
|
Bip32 |
getByChildNumber(org.bitcoinj.crypto.ChildNumber child)
获取指定child对应的节点
|
org.bitcoinj.crypto.ChildNumber |
getChildByNode(String nodeStr)
节点 生成 ChildNumber
|
List<org.bitcoinj.crypto.ChildNumber> |
getChildListByPath(String path) |
String |
getExtPrivate(org.bitcoinj.core.NetworkParameters np)
获取当前bip的扩展私钥 - 可以用于生成子公钥和子私钥
|
String |
getExtPublic(org.bitcoinj.core.NetworkParameters np) |
String |
getExtPublicKey(org.bitcoinj.core.NetworkParameters np)
获取当前bip的扩展公钥 - 仅用于生成子公钥, 无法生成子私钥
|
org.bitcoinj.crypto.DeterministicKey |
getKeyByPath(String path)
从根路径开始, 获取指定路径下的key
|
int |
hashCode() |
public static Bip32 create(org.bitcoinj.crypto.DeterministicKey key)
public static Bip32 create(String extKey, org.bitcoinj.core.NetworkParameters np)
extKey - 扩展 公钥或私钥np - 环境public Bip32 getByChildNumber(org.bitcoinj.crypto.ChildNumber child)
child - childpublic Bip32 getBipByPath(String path)
path - 路径 类似于 m/44'/0'/0'/0/0 或者 0/0, 具体看 测试用例
live.lingting.virtual.currency.core.BipTestpublic org.bitcoinj.crypto.DeterministicKey getKeyByPath(String path)
path - 路径 类似于 m/44'/0'/0'/0/0 或者 0/0, 具体看 测试用例
live.lingting.virtual.currency.core.BipTestpublic org.bitcoinj.crypto.ChildNumber getChildByNode(String nodeStr)
nodeStr - 节点字符串public String getExtPublicKey(org.bitcoinj.core.NetworkParameters np)
np - 环境public String getExtPublic(org.bitcoinj.core.NetworkParameters np)
public String getExtPrivate(org.bitcoinj.core.NetworkParameters np)
np - 环境Copyright © 2021. All rights reserved.