Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
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.testing |
Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
bitcoinj.
|
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 | Method and Description |
---|---|
DeterministicKey |
Wallet.getKeyByPath(List<ChildNumber> path)
Returns a key for the given HD path, assuming it's already been derived.
|
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) |
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) |
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) |
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) |
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)
Constructs a key from its components.
|
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
KeyCrypter crypter,
org.spongycastle.math.ec.ECPoint pub,
EncryptedData 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 | Method and Description |
---|---|
protected CustomTransactionSigner.SignatureAndKey |
KeyChainTransactionSigner.getSignature(Sha256Hash sighash,
List<ChildNumber> derivationPath) |
Modifier and Type | Field and Description |
---|---|
static ImmutableList<ChildNumber> |
DeterministicKeyChain.ACCOUNT_ZERO_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.EXTERNAL_PATH |
static ImmutableList<ChildNumber> |
DeterministicKeyChain.INTERNAL_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 |
---|---|
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 © 2014. All rights reserved.