public class HDNodeType extends Object implements HardwareWalletMessage
Value object to provide the following to downstream API consumers:
This object is typically built from a hardware wallet specific adapter
Constructor and Description |
---|
HDNodeType(boolean hasPublicKey,
byte[] publicKey,
boolean hasPrivateKey,
byte[] privateKey,
boolean hasChainCode,
byte[] chainCode,
boolean hasChildNum,
int childNum,
boolean hasDepth,
int depth,
boolean hasFingerprint,
int fingerprint) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<byte[]> |
getChainCode() |
com.google.common.base.Optional<Integer> |
getChildNum() |
com.google.common.base.Optional<Integer> |
getDepth() |
com.google.common.base.Optional<Integer> |
getFingerprint() |
com.google.common.base.Optional<byte[]> |
getPrivateKey() |
com.google.common.base.Optional<byte[]> |
getPublicKey() |
String |
toString() |
public HDNodeType(boolean hasPublicKey, byte[] publicKey, boolean hasPrivateKey, byte[] privateKey, boolean hasChainCode, byte[] chainCode, boolean hasChildNum, int childNum, boolean hasDepth, int depth, boolean hasFingerprint, int fingerprint)
public com.google.common.base.Optional<byte[]> getPublicKey()
public com.google.common.base.Optional<byte[]> getPrivateKey()
public com.google.common.base.Optional<byte[]> getChainCode()
public com.google.common.base.Optional<Integer> getChildNum()
public com.google.common.base.Optional<Integer> getDepth()
public com.google.common.base.Optional<Integer> getFingerprint()
Copyright © 2013–2019 Bitcoin Solutions Ltd. All rights reserved.