public class HdKeyGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MASTER_PATH |
| Constructor and Description |
|---|
HdKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
HdKeyPair |
getChildKeyPair(HdKeyPair parent,
long child,
boolean isHardened)
Derive the child key pair (public + private) from the parent key pair.
|
static byte[] |
getPublicKey(byte[] privateKey) |
HdKeyPair |
getRootKeyPairFromEntropy(byte[] entropy) |
public static final java.lang.String MASTER_PATH
public HdKeyPair getRootKeyPairFromEntropy(byte[] entropy)
public HdKeyPair getChildKeyPair(HdKeyPair parent, long child, boolean isHardened)
parent - the parent keychild - the child indexisHardened - whether is child index is hardenedpublic static byte[] getPublicKey(byte[] privateKey)