Package | Description |
---|---|
org.bitcoinj.crypto |
The crypto package contains classes that work with key derivation algorithms like scrypt (passwords to AES keys),
BIP 32 hierarchies (chains of keys from a root seed), X.509 utilities for the payment protocol and other general
cryptography tasks.
|
org.bitcoinj.signers |
Transaction signers know how to calculate signatures over transactions in different contexts, for example, using
local private keys or fetching them from remote servers.
|
org.bitcoinj.wallet |
Classes that support the
Wallet , which knows how to find and save transactions relevant to
a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended
in various ways, please refer to the website for documentation on how to use it. |
Modifier and Type | Field and Description |
---|---|
static ChildNumber |
ChildNumber.ONE |
static ChildNumber |
ChildNumber.ZERO |
static ChildNumber |
ChildNumber.ZERO_HARDENED |
Modifier and Type | Method and Description |
---|---|
ChildNumber |
DeterministicKey.getChildNumber()
Returns the last element of the path returned by
DeterministicKey.getPath() |
Modifier and Type | Method and Description |
---|---|
static ImmutableList<ChildNumber> |
HDUtils.append(List<ChildNumber> path,
ChildNumber childNumber)
Append a derivation level to an existing path
|
static ImmutableList<ChildNumber> |
HDUtils.concat(List<ChildNumber> path,
List<ChildNumber> path2)
Concatenate two derivation paths
|
ImmutableList<ChildNumber> |
DeterministicKey.getPath()
Returns the path through some
DeterministicHierarchy which reaches this keys position in the tree. |
static List<ChildNumber> |
HDUtils.parsePath(String path)
The path is a human-friendly representation of the deterministic path.
|
Modifier and Type | Method and Description |
---|---|
static ImmutableList<ChildNumber> |
HDUtils.append(List<ChildNumber> path,
ChildNumber childNumber)
Append a derivation level to an existing path
|
int |
ChildNumber.compareTo(ChildNumber other) |
DeterministicKey |
DeterministicHierarchy.deriveChild(List<ChildNumber> parentPath,
boolean relative,
boolean createParent,
ChildNumber createChildNumber)
Extends the tree by calculating the requested child for the given path.
|
static DeterministicKey |
HDKeyDerivation.deriveChildKey(DeterministicKey parent,
ChildNumber childNumber) |
static HDKeyDerivation.RawKeyBytes |
HDKeyDerivation.deriveChildKeyBytesFromPrivate(DeterministicKey parent,
ChildNumber childNumber) |
static HDKeyDerivation.RawKeyBytes |
HDKeyDerivation.deriveChildKeyBytesFromPublic(DeterministicKey parent,
ChildNumber childNumber,
HDKeyDerivation.PublicDeriveMode mode) |
Modifier and Type | Method and Description |
---|---|
static ImmutableList<ChildNumber> |
HDUtils.append(List<ChildNumber> path,
ChildNumber childNumber)
Append a derivation level to an existing path
|
static ImmutableList<ChildNumber> |
HDUtils.concat(List<ChildNumber> path,
List<ChildNumber> path2)
Concatenate two derivation paths
|
static ImmutableList<ChildNumber> |
HDUtils.concat(List<ChildNumber> path,
List<ChildNumber> path2)
Concatenate two derivation paths
|
DeterministicKey |
DeterministicHierarchy.deriveChild(List<ChildNumber> parentPath,
boolean relative,
boolean createParent,
ChildNumber createChildNumber)
Extends the tree by calculating the requested child for the given path.
|
DeterministicKey |
DeterministicHierarchy.deriveNextChild(ImmutableList<ChildNumber> parentPath,
boolean relative,
boolean createParent,
boolean privateDerivation)
Extends the tree by calculating the next key that hangs off the given parent path.
|
static String |
HDUtils.formatPath(List<ChildNumber> path)
Convert to a string path, starting with "M/"
|
DeterministicKey |
DeterministicHierarchy.get(List<ChildNumber> path,
boolean relativePath,
boolean create)
Returns a key for the given path, optionally creating it.
|
int |
DeterministicHierarchy.getNumChildren(ImmutableList<ChildNumber> path) |
Constructor and Description |
---|
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
BigInteger priv,
DeterministicKey parent)
Constructs a key from its components.
|
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
org.spongycastle.math.ec.ECPoint publicAsPoint,
BigInteger priv,
DeterministicKey parent) |
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
KeyCrypter crypter,
LazyECPoint pub,
EncryptedData priv,
DeterministicKey parent)
Constructs a key from its components.
|
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
LazyECPoint publicAsPoint,
BigInteger priv,
DeterministicKey parent)
Constructs a key from its components.
|
Modifier and Type | Field and Description |
---|---|
Map<Script,List<ChildNumber>> |
TransactionSigner.ProposedTransaction.keyPaths
HD key paths used for each input to derive a signing key.
|
Modifier and Type | Method and Description |
---|---|
protected abstract CustomTransactionSigner.SignatureAndKey |
CustomTransactionSigner.getSignature(Sha256Hash sighash,
List<ChildNumber> derivationPath) |
Modifier and Type | Field and Description |
---|---|
static ImmutableList<ChildNumber> |
DeterministicKeyChain.ACCOUNT_ZERO_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.BIP44_ACCOUNT_ZERO_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.EXTERNAL_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.EXTERNAL_SUBPATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.INTERNAL_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.INTERNAL_SUBPATH |
Modifier and Type | Method and Description |
---|---|
protected ImmutableList<ChildNumber> |
DeterministicKeyChain.getAccountPath()
Override in subclasses to use a different account derivation path
|
Modifier and Type | Method and Description |
---|---|
protected DeterministicKey |
DeterministicKeyChain.getKeyByPath(ChildNumber... path)
Returns the deterministic key for the given absolute path in the hierarchy.
|
Modifier and Type | Method and Description |
---|---|
DeterministicKey |
Wallet.getKeyByPath(List<ChildNumber> path)
Returns a key for the given HD path, assuming it's already been derived.
|
protected DeterministicKey |
DeterministicKeyChain.getKeyByPath(List<ChildNumber> path)
Returns the deterministic key for the given absolute path in the hierarchy.
|
DeterministicKey |
DeterministicKeyChain.getKeyByPath(List<ChildNumber> path,
boolean create)
Returns the deterministic key for the given absolute path in the hierarchy, optionally creating it
|
Copyright © 2016. All rights reserved.