A B C D E F G H I J K L M N O P R S T U V W

A

add(Block) - Method in class com.google.bitcoin.core.BlockChain
Processes a received block and tries to add it to the chain.
addEventListener(WalletEventListener) - Method in class com.google.bitcoin.core.Wallet
Adds an event listener object.
addInput(TransactionOutput) - Method in class com.google.bitcoin.core.Transaction
Adds an input to this transaction that imports value from the given output.
addItem(InventoryItem) - Method in class com.google.bitcoin.core.ListMessage
 
addKey(ECKey) - Method in class com.google.bitcoin.core.Wallet
Adds the given ECKey to the wallet.
addOutput(TransactionOutput) - Method in class com.google.bitcoin.core.Transaction
Adds the given output to this transaction.
Address - Class in com.google.bitcoin.core
A BitCoin address is fundamentally derived from an elliptic curve public key and a set of network parameters.
Address(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.Address
Construct an address from parameters and the hash160 form.
Address(NetworkParameters, String) - Constructor for class com.google.bitcoin.core.Address
Construct an address from parameters and the standard "human readable" form.
AddressFormatException - Exception in com.google.bitcoin.core
 
AddressFormatException() - Constructor for exception com.google.bitcoin.core.AddressFormatException
 
AddressFormatException(String) - Constructor for exception com.google.bitcoin.core.AddressFormatException
 
addressHeader - Variable in class com.google.bitcoin.core.NetworkParameters
First byte of a base58 encoded address.
AddressMessage - Class in com.google.bitcoin.core
 

B

Base58 - Class in com.google.bitcoin.core
A custom form of base58 is used to encode BitCoin addresses.
Base58() - Constructor for class com.google.bitcoin.core.Base58
 
bestHeight - Variable in class com.google.bitcoin.core.VersionMessage
How many blocks are in the chain, according to the other side.
bitcoinSerialize() - Method in class com.google.bitcoin.core.GetBlocksMessage
 
bitcoinSerialize() - Method in class com.google.bitcoin.core.Message
 
BitcoinSerializer - Class in com.google.bitcoin.core
Methods to serialize and de-serialize messages to the bitcoin network format as defined in the bitcoin protocol specification at https://en.bitcoin.it/wiki/Protocol_specification To be able to serialize and deserialize new Message subclasses the following criteria needs to be met.
BitcoinSerializer(NetworkParameters, boolean) - Constructor for class com.google.bitcoin.core.BitcoinSerializer
Constructs a BitcoinSerializer with the given behavior.
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.ListMessage
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.PeerAddress
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.Transaction
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.TransactionInput
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.TransactionOutPoint
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.TransactionOutput
 
bitcoinSerializeToStream(OutputStream) - Method in class com.google.bitcoin.core.VersionMessage
 
bitcoinValueToFriendlyString(BigInteger) - Static method in class com.google.bitcoin.core.Utils
Returns the given value in nanocoins as a 0.12 type string.
Block - Class in com.google.bitcoin.core
A block is the foundation of the BitCoin system.
Block(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.Block
Constructs a block object from the BitCoin wire format.
BlockChain - Class in com.google.bitcoin.core
A BlockChain holds a series of Block objects, links them together, and knows how to verify that the chain follows the rules of the NetworkParameters for this chain.
BlockChain(NetworkParameters, Wallet, BlockStore) - Constructor for class com.google.bitcoin.core.BlockChain
Constructs a BlockChain connected to the given wallet and store.
blockStore - Variable in class com.google.bitcoin.core.BlockChain
Keeps a map of block hashes to StoredBlocks.
BlockStore - Interface in com.google.bitcoin.core
An implementor of BlockStore saves StoredBlock objects to disk.
BlockStoreException - Exception in com.google.bitcoin.core
Thrown when something goes wrong with storing a block.
BlockStoreException(String) - Constructor for exception com.google.bitcoin.core.BlockStoreException
 
BlockStoreException(Throwable) - Constructor for exception com.google.bitcoin.core.BlockStoreException
 
BoundedOverheadBlockStore - Class in com.google.bitcoin.core
Stores the block chain to disk.
BoundedOverheadBlockStore(NetworkParameters, File) - Constructor for class com.google.bitcoin.core.BoundedOverheadBlockStore
 
build(Block) - Method in class com.google.bitcoin.core.StoredBlock
Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.
bytes - Variable in class com.google.bitcoin.core.Message
 
bytes - Variable in class com.google.bitcoin.core.VersionedChecksummedBytes
 
bytesToHexString(byte[]) - Static method in class com.google.bitcoin.core.Utils
Returns the given byte array hex encoded.

C

CENT - Static variable in class com.google.bitcoin.core.Utils
How many "nanocoins" there are in 0.01 BitCoins.
chainHead - Variable in class com.google.bitcoin.core.BlockChain
Tracks the top of the best known chain.
clientVersion - Variable in class com.google.bitcoin.core.VersionMessage
The version number of the protocol spoken.
cloneAsHeader() - Method in class com.google.bitcoin.core.Block
Returns a copy of the block, but without any transactions.
COIN - Static variable in class com.google.bitcoin.core.Utils
How many "nanocoins" there are in a BitCoin.
com.google.bitcoin.bouncycastle - package com.google.bitcoin.bouncycastle
 
com.google.bitcoin.core - package com.google.bitcoin.core
 
com.google.bitcoin.examples - package com.google.bitcoin.examples
 
cursor - Variable in class com.google.bitcoin.core.Message
 

D

decode(String) - Static method in class com.google.bitcoin.core.Base58
 
decodeChecked(String) - Static method in class com.google.bitcoin.core.Base58
Uses the checksum in the last 4 bytes of the decoded data to verify the rest are correct.
decodeToBigInteger(String) - Static method in class com.google.bitcoin.core.Base58
 
deserialize(InputStream) - Method in class com.google.bitcoin.core.BitcoinSerializer
Reads a message from the given InputStream and returns it.
disconnect() - Method in class com.google.bitcoin.core.Peer
Terminates the network connection and stops the background thread.
DiskBlockStore - Class in com.google.bitcoin.core
Stores the block chain to disk but still holds it in memory.
DiskBlockStore(NetworkParameters, File) - Constructor for class com.google.bitcoin.core.DiskBlockStore
 
DnsDiscovery - Class in com.google.bitcoin.core
Supports peer discovery through DNS.
DnsDiscovery(NetworkParameters) - Constructor for class com.google.bitcoin.core.DnsDiscovery
Supports finding peers through DNS A records.
DnsDiscovery(String[], NetworkParameters) - Constructor for class com.google.bitcoin.core.DnsDiscovery
Supports finding peers through DNS A records.
doubleDigest(byte[]) - Static method in class com.google.bitcoin.core.Utils
See Utils.doubleDigest(byte[],int,int).
doubleDigest(byte[], int, int) - Static method in class com.google.bitcoin.core.Utils
Calculates the SHA-256 hash of the given byte range, and then hashes the resulting hash again.
doubleDigestTwoBuffers(byte[], int, int, byte[], int, int) - Static method in class com.google.bitcoin.core.Utils
Calculates SHA256(SHA256(byte range 1 + byte range 2)).
DumpedPrivateKey - Class in com.google.bitcoin.core
Parses and generates private keys in the form used by the Bitcoin "dumpprivkey" command.
DumpedPrivateKey(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.DumpedPrivateKey
Allows the output of a private key in versioned, checksummed form.
DumpedPrivateKey(NetworkParameters, String) - Constructor for class com.google.bitcoin.core.DumpedPrivateKey
Parses the given private key as created by the "dumpprivkey" Bitcoin C++ RPC.
dumpedPrivateKeyHeader - Variable in class com.google.bitcoin.core.NetworkParameters
First byte of a base58 encoded dumped private key.
DumpWallet - Class in com.google.bitcoin.examples
DumpWallet loads a serialized wallet and prints information about what it contains.
DumpWallet() - Constructor for class com.google.bitcoin.examples.DumpWallet
 

E

ECKey - Class in com.google.bitcoin.core
Represents an elliptic curve keypair that we own and can use for signing transactions.
ECKey() - Constructor for class com.google.bitcoin.core.ECKey
Generates an entirely new keypair.
ECKey(BigInteger) - Constructor for class com.google.bitcoin.core.ECKey
Creates an ECKey given only the private key.
EMPTY_ARRAY - Static variable in class com.google.bitcoin.core.TransactionInput
 
encode(byte[]) - Static method in class com.google.bitcoin.core.Base58
 
encode() - Method in class com.google.bitcoin.core.VarInt
 
encodeBE() - Method in class com.google.bitcoin.core.VarInt
 
equals(Object) - Method in class com.google.bitcoin.core.Block
 
equals(Object) - Method in class com.google.bitcoin.core.Sha256Hash
Returns true if the hashes are equal.
equals(Object) - Method in class com.google.bitcoin.core.StoredBlock
 
equals(Object) - Method in class com.google.bitcoin.core.Transaction
 
equals(Object) - Method in class com.google.bitcoin.core.VersionedChecksummedBytes
 

F

findKeyFromPubHash(byte[]) - Method in class com.google.bitcoin.core.Wallet
Locates a keypair from the keychain given the hash of the public key.
findKeyFromPubKey(byte[]) - Method in class com.google.bitcoin.core.Wallet
Locates a keypair from the keychain given the raw public key bytes.
fromASN1(byte[]) - Static method in class com.google.bitcoin.core.ECKey
Construct an ECKey from an ASN.1 encoded private key.

G

genesisBlock - Variable in class com.google.bitcoin.core.NetworkParameters
Genesis block for this chain.
get(byte[]) - Method in interface com.google.bitcoin.core.BlockStore
Returns the StoredBlock given a hash.
get(byte[]) - Method in class com.google.bitcoin.core.BoundedOverheadBlockStore
 
get(byte[]) - Method in class com.google.bitcoin.core.DiskBlockStore
 
get(byte[]) - Method in class com.google.bitcoin.core.MemoryBlockStore
 
getBalance() - Method in class com.google.bitcoin.core.Wallet
Returns the AVAILABLE balance of this wallet.
getBalance(Wallet.BalanceType) - Method in class com.google.bitcoin.core.Wallet
Returns the balance of this wallet as calculated by the provided balanceType.
getBlock(byte[]) - Method in class com.google.bitcoin.core.Peer
Asks the connected peer for the block of the given hash, and returns a Future representing the answer.
GetBlocksMessage - Class in com.google.bitcoin.core
 
GetBlocksMessage(NetworkParameters, List<byte[]>, byte[]) - Constructor for class com.google.bitcoin.core.GetBlocksMessage
 
getChainHead() - Method in class com.google.bitcoin.core.BlockChain
Returns the block at the head of the current best chain.
getChainHead() - Method in interface com.google.bitcoin.core.BlockStore
Returns the StoredBlock that represents the top of the chain of greatest total work.
getChainHead() - Method in class com.google.bitcoin.core.BoundedOverheadBlockStore
 
getChainHead() - Method in class com.google.bitcoin.core.DiskBlockStore
 
getChainHead() - Method in class com.google.bitcoin.core.MemoryBlockStore
 
getChainWork() - Method in class com.google.bitcoin.core.StoredBlock
The total sum of work done in this block, and all the blocks below it in the chain.
GetDataMessage - Class in com.google.bitcoin.core
 
GetDataMessage(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.GetDataMessage
 
GetDataMessage(NetworkParameters) - Constructor for class com.google.bitcoin.core.GetDataMessage
 
getDefaultHostNames() - Static method in class com.google.bitcoin.core.DnsDiscovery
Returns the well known discovery host names on the production network.
getDifficultyTarget() - Method in class com.google.bitcoin.core.Block
Returns the difficulty of the proof of work that this block should meet encoded in compact form.
getDifficultyTargetAsInteger() - Method in class com.google.bitcoin.core.Block
Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash.
getFromAddress() - Method in class com.google.bitcoin.core.Script
Convenience wrapper around getPubKey.
getFromAddress() - Method in class com.google.bitcoin.core.TransactionInput
Convenience method that returns the from address of this input by parsing the scriptSig.
getHash() - Method in class com.google.bitcoin.core.Block
Returns the hash of the block (which for a valid, solved block should be below the target).
getHash() - Method in class com.google.bitcoin.core.Transaction
Returns the transaction hash as you see them in the block explorer.
getHash160() - Method in class com.google.bitcoin.core.Address
The (big endian) 20 byte hash that is the core of a BitCoin address.
getHashAsString() - Method in class com.google.bitcoin.core.Block
Returns the hash of the block (which for a valid, solved block should be below the target) in the form seen on the block explorer.
getHashAsString() - Method in class com.google.bitcoin.core.Transaction
 
getHeader() - Method in class com.google.bitcoin.core.StoredBlock
The block header this object wraps.
getHeight() - Method in class com.google.bitcoin.core.StoredBlock
Position in the chain for this block.
getInputs() - Method in class com.google.bitcoin.core.Transaction
Returns a read-only list of the inputs of this transaction.
getItems() - Method in class com.google.bitcoin.core.ListMessage
 
getKey() - Method in class com.google.bitcoin.core.DumpedPrivateKey
Returns an ECKey created from this encoded private key.
getMerkleRoot() - Method in class com.google.bitcoin.core.Block
Returns the merkle root in big endian form, calculating it from transactions if necessary.
getNonce() - Method in class com.google.bitcoin.core.Block
Returns the nonce, an arbitrary value that exists only to make the hash of the block header fall below the difficulty target.
getPeer() - Method in class com.google.bitcoin.core.SeedPeers
Acts as an iterator, returning the address of each node in the list sequentially.
getPeers() - Method in class com.google.bitcoin.core.DnsDiscovery
 
getPeers() - Method in class com.google.bitcoin.core.IrcDiscovery
Returns a list of peers that were found in the IRC channel.
getPeers() - Method in interface com.google.bitcoin.core.PeerDiscovery
Returns an array of addresses.
getPeers() - Method in class com.google.bitcoin.core.SeedPeers
Returns an array containing all the Bitcoin nodes within the list.
getPendingTransactions() - Method in class com.google.bitcoin.core.Wallet
Returns an immutable view of the transactions currently waiting for network confirmations.
getPrev(BlockStore) - Method in class com.google.bitcoin.core.StoredBlock
Given a block store, looks up the previous block in this chain.
getPrevBlockHash() - Method in class com.google.bitcoin.core.Block
Returns the hash of the previous block in the chain, as defined by the block header.
getPubKey() - Method in class com.google.bitcoin.core.ECKey
Gets the raw public key value.
getPubKey() - Method in class com.google.bitcoin.core.Script
If a program has two data buffers (constants) and nothing else, the second one is returned.
getPubKeyHash() - Method in class com.google.bitcoin.core.ECKey
Gets the hash160 form of the public key (as seen in addresses).
getPubKeyHash() - Method in class com.google.bitcoin.core.Script
If a program matches the standard template DUP HASH160 EQUALVERIFY CHECKSIG then this function retrieves the third element, otherwise it throws a ScriptException.
getScriptBytes() - Method in class com.google.bitcoin.core.TransactionOutput
 
getScriptPubKey() - Method in class com.google.bitcoin.core.TransactionOutput
 
getScriptSig() - Method in class com.google.bitcoin.core.TransactionInput
Returns the input script.
getSizeInBytes() - Method in class com.google.bitcoin.core.VarInt
 
getTime() - Method in class com.google.bitcoin.core.Block
Returns the time at which the block was solved and broadcast, according to the clock of the solving node.
getToAddress() - Method in class com.google.bitcoin.core.Script
Gets the destination address from this script, if it's in the required form (see getPubKey).
getUnconnectedBlock() - Method in class com.google.bitcoin.core.BlockChain
Returns the most recent unconnected block or null if there are none.
getValue() - Method in class com.google.bitcoin.core.TransactionOutput
Returns the value of this output in nanocoins.
getValueSentFromMe(Wallet) - Method in class com.google.bitcoin.core.Transaction
Calculates the sum of the inputs that are spending coins with keys in the wallet.
getValueSentToMe(Wallet) - Method in class com.google.bitcoin.core.Transaction
Calculates the sum of the outputs that are sending coins to a key in the wallet.
getVersion() - Method in class com.google.bitcoin.core.Block
Returns the version of the block data structure as defined by the BitCoin protocol.
getVersion() - Method in class com.google.bitcoin.core.VersionedChecksummedBytes
Returns the "version" or "header" byte: the first byte of the data.
getVersionMessage() - Method in class com.google.bitcoin.core.NetworkConnection
Returns the version message received from the other end of the connection during the handshake.
getWork() - Method in class com.google.bitcoin.core.Block
Returns the work represented by this block.

H

hasBlockChain() - Method in class com.google.bitcoin.core.VersionMessage
Returns true if the version message indicates the sender has a full copy of the block chain, or if it's running in client mode (only has the headers).
hash - Variable in class com.google.bitcoin.core.InventoryItem
 
hash - Variable in class com.google.bitcoin.core.Sha256Hash
 
hashCode() - Method in class com.google.bitcoin.core.Block
 
hashCode() - Method in class com.google.bitcoin.core.Sha256Hash
Hash code of the byte array as calculated by Object.hashCode().
hashCode() - Method in class com.google.bitcoin.core.StoredBlock
 
hashCode() - Method in class com.google.bitcoin.core.Transaction
 
hashCode() - Method in class com.google.bitcoin.core.VersionedChecksummedBytes
 
HEADER_SIZE - Static variable in class com.google.bitcoin.core.Block
How many bytes are required to represent a block header.

I

interval - Variable in class com.google.bitcoin.core.NetworkParameters
How many blocks pass between difficulty adjustment periods.
InventoryItem - Class in com.google.bitcoin.core
 
InventoryItem(InventoryItem.Type, byte[]) - Constructor for class com.google.bitcoin.core.InventoryItem
 
InventoryItem.Type - Enum in com.google.bitcoin.core
 
InventoryMessage - Class in com.google.bitcoin.core
 
InventoryMessage(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.InventoryMessage
 
InventoryMessage(NetworkParameters) - Constructor for class com.google.bitcoin.core.InventoryMessage
 
IrcDiscovery - Class in com.google.bitcoin.core
IrcDiscovery provides a way to find network peers by joining a pre-agreed rendevouz point on the LFnet IRC network.
IrcDiscovery(String) - Constructor for class com.google.bitcoin.core.IrcDiscovery
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting.
IrcDiscovery(String, String, int) - Constructor for class com.google.bitcoin.core.IrcDiscovery
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then disconnecting.
isCoinBase() - Method in class com.google.bitcoin.core.Transaction
A coinbase transaction is one that creates a new coin.
isCoinBase() - Method in class com.google.bitcoin.core.TransactionInput
Coinbase transactions have special inputs with hashes of zero.
isLessThanUnsigned(long, long) - Static method in class com.google.bitcoin.core.Utils
Work around lack of unsigned types in Java.
isMine(Wallet) - Method in class com.google.bitcoin.core.TransactionOutput
Returns true if this output is to an address we have the keys for in the wallet.
isPubKeyHashMine(byte[]) - Method in class com.google.bitcoin.core.Wallet
Returns true if this wallet contains a public key which hashes to the given hash.
isPubKeyMine(byte[]) - Method in class com.google.bitcoin.core.Wallet
Returns true if this wallet contains a keypair with the given public key.
isSentToIP() - Method in class com.google.bitcoin.core.Script
Returns true if this transaction is of a format that means it was a direct IP to IP transaction.

J

join(Script, Script) - Static method in class com.google.bitcoin.core.Script
Concatenates two scripts to form a new one.

K

keychain - Variable in class com.google.bitcoin.core.Wallet
A list of public/private EC keys owned by this user.

L

LICENSE - Class in com.google.bitcoin.bouncycastle
The Bouncy Castle License Copyright (c) 2000-2008 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
LICENSE() - Constructor for class com.google.bitcoin.bouncycastle.LICENSE
 
licenseText - Static variable in class com.google.bitcoin.bouncycastle.LICENSE
 
ListMessage - Class in com.google.bitcoin.core
Abstract superclass of classes with list based payload, i.e.
ListMessage(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.ListMessage
 
ListMessage(NetworkParameters) - Constructor for class com.google.bitcoin.core.ListMessage
 
loadFromFile(File) - Static method in class com.google.bitcoin.core.Wallet
Returns a wallet deserialized from the given file.
loadFromFileStream(FileInputStream) - Static method in class com.google.bitcoin.core.Wallet
Returns a wallet deserialied from the given file input stream.
localServices - Variable in class com.google.bitcoin.core.VersionMessage
Flags defining what is supported.

M

main(String[]) - Static method in class com.google.bitcoin.bouncycastle.LICENSE
 
main(String[]) - Static method in class com.google.bitcoin.examples.DumpWallet
 
main(String[]) - Static method in class com.google.bitcoin.examples.PingService
 
main(String[]) - Static method in class com.google.bitcoin.examples.PrintPeers
 
main(String[]) - Static method in class com.google.bitcoin.examples.PrivateKeys
 
main(String[]) - Static method in class com.google.bitcoin.examples.RefreshWallet
 
MAX_SIZE - Static variable in class com.google.bitcoin.core.Message
 
MemoryBlockStore - Class in com.google.bitcoin.core
Keeps StoredBlocks in memory.
MemoryBlockStore(NetworkParameters) - Constructor for class com.google.bitcoin.core.MemoryBlockStore
 
Message - Class in com.google.bitcoin.core
A Message is a data structure that can be serialized/deserialized using both the BitCoin proprietary serialization format and built-in Java object serialization.
Message() - Constructor for class com.google.bitcoin.core.Message
This exists for the Java serialization framework to use only.
moreWorkThan(StoredBlock) - Method in class com.google.bitcoin.core.StoredBlock
Returns true if this objects chainWork is higher than the others.
myAddr - Variable in class com.google.bitcoin.core.VersionMessage
What the other side believes the address of this program is.

N

NetworkConnection - Class in com.google.bitcoin.core
A NetworkConnection handles talking to a remote BitCoin peer at a low level.
NetworkConnection(InetAddress, NetworkParameters, int, int) - Constructor for class com.google.bitcoin.core.NetworkConnection
Connect to the given IP address using the port specified as part of the network parameters.
NetworkParameters - Class in com.google.bitcoin.core
NetworkParameters contains the data needed for working with an instantiation of a BitCoin chain.
NetworkParameters() - Constructor for class com.google.bitcoin.core.NetworkParameters
 
NODE_NETWORK - Static variable in class com.google.bitcoin.core.VersionMessage
A services flag that denotes whether the peer has a copy of the block chain or not.

O

offset - Variable in class com.google.bitcoin.core.Message
 
onCoinsReceived(Wallet, Transaction, BigInteger, BigInteger) - Method in class com.google.bitcoin.core.WalletEventListener
This is called on a Peer thread when a block is received that sends some coins to you.
onDeadTransaction(Transaction, Transaction) - Method in class com.google.bitcoin.core.WalletEventListener
This is called on a Peer thread when a transaction becomes dead.
onIRCReceive(String) - Method in class com.google.bitcoin.core.IrcDiscovery
 
onIRCSend(String) - Method in class com.google.bitcoin.core.IrcDiscovery
 
onReorganize() - Method in class com.google.bitcoin.core.WalletEventListener
This is called on a Peer thread when a block is received that triggers a block chain re-organization.
OP_CHECKSIG - Static variable in class com.google.bitcoin.core.Script
 
OP_DUP - Static variable in class com.google.bitcoin.core.Script
 
OP_EQUALVERIFY - Static variable in class com.google.bitcoin.core.Script
 
OP_HASH160 - Static variable in class com.google.bitcoin.core.Script
 
OP_PUSHDATA1 - Static variable in class com.google.bitcoin.core.Script
 
OP_PUSHDATA2 - Static variable in class com.google.bitcoin.core.Script
 
OP_PUSHDATA4 - Static variable in class com.google.bitcoin.core.Script
 

P

packetMagic - Variable in class com.google.bitcoin.core.NetworkParameters
The header bytes that identify the start of a packet on this network.
params - Variable in class com.google.bitcoin.core.BlockChain
 
params - Variable in class com.google.bitcoin.core.Message
 
parse() - Method in class com.google.bitcoin.core.GetBlocksMessage
 
parse() - Method in class com.google.bitcoin.core.ListMessage
 
parse() - Method in class com.google.bitcoin.core.PeerAddress
 
parse() - Method in class com.google.bitcoin.core.UnknownMessage
 
parse() - Method in class com.google.bitcoin.core.VersionMessage
 
Peer - Class in com.google.bitcoin.core
A Peer handles the high level communication with a BitCoin node.
Peer(NetworkParameters, NetworkConnection, BlockChain) - Constructor for class com.google.bitcoin.core.Peer
Construct a peer that handles the given network connection and reads/writes from the given block chain.
PeerAddress - Class in com.google.bitcoin.core
A PeerAddress holds an IP address and port number representing the network location of a peer in the BitCoin P2P network.
PeerAddress(NetworkParameters, byte[], int, int) - Constructor for class com.google.bitcoin.core.PeerAddress
 
PeerAddress(InetAddress, int, int) - Constructor for class com.google.bitcoin.core.PeerAddress
 
PeerDiscovery - Interface in com.google.bitcoin.core
A PeerDiscovery object is responsible for finding addresses of other nodes in the BitCoin P2P network.
PeerDiscoveryException - Exception in com.google.bitcoin.core
 
PeerDiscoveryException() - Constructor for exception com.google.bitcoin.core.PeerDiscoveryException
 
PeerDiscoveryException(String) - Constructor for exception com.google.bitcoin.core.PeerDiscoveryException
 
PeerDiscoveryException(Throwable) - Constructor for exception com.google.bitcoin.core.PeerDiscoveryException
 
PeerDiscoveryException(String, Throwable) - Constructor for exception com.google.bitcoin.core.PeerDiscoveryException
 
ping() - Method in class com.google.bitcoin.core.NetworkConnection
Sends a "ping" message to the remote node.
Ping - Class in com.google.bitcoin.core
 
Ping() - Constructor for class com.google.bitcoin.core.Ping
 
PingService - Class in com.google.bitcoin.examples
PingService demonstrates basic usage of the library.
PingService() - Constructor for class com.google.bitcoin.examples.PingService
 
port - Variable in class com.google.bitcoin.core.NetworkParameters
Default TCP port on which to connect to nodes.
PrintPeers - Class in com.google.bitcoin.examples
Prints a list of IP addresses connected to the rendezvous point on the LFnet IRC channel.
PrintPeers() - Constructor for class com.google.bitcoin.examples.PrintPeers
 
PrivateKeys - Class in com.google.bitcoin.examples
This example shows how to solve the challenge Hal posted here:
PrivateKeys() - Constructor for class com.google.bitcoin.examples.PrivateKeys
 
prodNet() - Static method in class com.google.bitcoin.core.NetworkParameters
The primary BitCoin chain created by Satoshi.
proofOfWorkLimit - Variable in class com.google.bitcoin.core.NetworkParameters
What the easiest allowable proof of work should be.
PROTOCOL_VERSION - Static variable in class com.google.bitcoin.core.NetworkParameters
The protocol version this library implements.
ProtocolException - Exception in com.google.bitcoin.core
 
ProtocolException(String) - Constructor for exception com.google.bitcoin.core.ProtocolException
 
ProtocolException(Exception) - Constructor for exception com.google.bitcoin.core.ProtocolException
 
ProtocolException(String, Exception) - Constructor for exception com.google.bitcoin.core.ProtocolException
 
protocolVersion - Variable in class com.google.bitcoin.core.Message
 
put(StoredBlock) - Method in interface com.google.bitcoin.core.BlockStore
Saves the given block header+extra data.
put(StoredBlock) - Method in class com.google.bitcoin.core.BoundedOverheadBlockStore
 
put(StoredBlock) - Method in class com.google.bitcoin.core.DiskBlockStore
 
put(StoredBlock) - Method in class com.google.bitcoin.core.MemoryBlockStore
 

R

readMessage() - Method in class com.google.bitcoin.core.NetworkConnection
Reads a network message from the wire, blocking until the message is fully received.
readUint16BE(byte[], int) - Static method in class com.google.bitcoin.core.Utils
 
readUint32(byte[], int) - Static method in class com.google.bitcoin.core.Utils
 
readUint32BE(byte[], int) - Static method in class com.google.bitcoin.core.Utils
 
RefreshWallet - Class in com.google.bitcoin.examples
RefreshWallet loads a wallet, then processes the block chain to update the transaction pools within it.
RefreshWallet() - Constructor for class com.google.bitcoin.examples.RefreshWallet
 
reverseBytes(byte[]) - Static method in class com.google.bitcoin.core.Utils
Returns a copy of the given byte array in reverse order.
run(Transaction) - Method in class com.google.bitcoin.core.Script
Runs the script with the given Transaction as the "context".

S

saveToFile(File) - Method in class com.google.bitcoin.core.Wallet
Uses Java serialization to save the wallet to the given file.
saveToFileStream(FileOutputStream) - Method in class com.google.bitcoin.core.Wallet
Uses Java serialization to save the wallet to the given file stream.
Script - Class in com.google.bitcoin.core
BitCoin transactions don't specify what they do directly.
Script(NetworkParameters, byte[], int, int) - Constructor for class com.google.bitcoin.core.Script
Construct a Script using the given network parameters and a range of the programBytes array.
ScriptException - Exception in com.google.bitcoin.core
 
ScriptException(String) - Constructor for exception com.google.bitcoin.core.ScriptException
 
ScriptException(String, Exception) - Constructor for exception com.google.bitcoin.core.ScriptException
 
SeedPeers - Class in com.google.bitcoin.core
SeedPeers stores a pre-determined list of Bitcoin node addresses.
SeedPeers(NetworkParameters) - Constructor for class com.google.bitcoin.core.SeedPeers
 
sendCoins(Peer, Address, BigInteger) - Method in class com.google.bitcoin.core.Wallet
Sends coins to the given address, via the given Peer.
serialize(Message, OutputStream) - Method in class com.google.bitcoin.core.BitcoinSerializer
Writes message to to the output stream.
setChainHead(StoredBlock) - Method in interface com.google.bitcoin.core.BlockStore
Sets the StoredBlock that represents the top of the chain of greatest total work.
setChainHead(StoredBlock) - Method in class com.google.bitcoin.core.BoundedOverheadBlockStore
 
setChainHead(StoredBlock) - Method in class com.google.bitcoin.core.DiskBlockStore
 
setChainHead(StoredBlock) - Method in class com.google.bitcoin.core.MemoryBlockStore
 
setTracing(boolean) - Method in class com.google.bitcoin.core.Script
If true, running a program will log its instructions.
Sha256Hash - Class in com.google.bitcoin.core
A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, allowing it to be used as keys in a map.
Sha256Hash(byte[]) - Constructor for class com.google.bitcoin.core.Sha256Hash
 
sha256hash160(byte[]) - Static method in class com.google.bitcoin.core.Utils
Calculates RIPEMD160(SHA256(input)).
shutdown() - Method in class com.google.bitcoin.core.NetworkConnection
Shuts down the network socket.
sign(byte[]) - Method in class com.google.bitcoin.core.ECKey
Calcuates an ECDSA signature in DER format for the given input hash.
signInputs(Transaction.SigHash, Wallet) - Method in class com.google.bitcoin.core.Transaction
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated.
start() - Method in class com.google.bitcoin.core.Peer
Starts the background thread that processes messages.
startBlockChainDownload() - Method in class com.google.bitcoin.core.Peer
Starts an asynchronous download of the block chain.
StoredBlock - Class in com.google.bitcoin.core
Wraps a Block object with extra data that can be derived from the block chain but is slow or inconvenient to calculate.
StoredBlock(Block, BigInteger, int) - Constructor for class com.google.bitcoin.core.StoredBlock
 
subVer - Variable in class com.google.bitcoin.core.VersionMessage
An additional string that today the official client sets to the empty string.

T

targetTimespan - Variable in class com.google.bitcoin.core.NetworkParameters
How much time in seconds is supposed to pass between "interval" blocks.
testNet() - Static method in class com.google.bitcoin.core.NetworkParameters
The test chain created by Gavin.
theirAddr - Variable in class com.google.bitcoin.core.VersionMessage
What the other side believes their own address is.
time - Variable in class com.google.bitcoin.core.VersionMessage
What the other side believes the current time to be, in seconds.
toAddress(NetworkParameters) - Method in class com.google.bitcoin.core.ECKey
Returns the address that corresponds to the public part of this ECKey.
toASN1() - Method in class com.google.bitcoin.core.ECKey
Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by the BitCoin reference implementation in its wallet storage format.
toNanoCoins(int, int) - Static method in class com.google.bitcoin.core.Utils
Convert an amount expressed in the way humans are used to into nanocoins.
toNanoCoins(String) - Static method in class com.google.bitcoin.core.Utils
Convert an amount expressed in the way humans are used to into nanocoins.
toString() - Method in class com.google.bitcoin.core.AddressMessage
 
toString() - Method in class com.google.bitcoin.core.Block
Returns a multi-line string containing a description of the contents of the block.
toString() - Method in class com.google.bitcoin.core.ECKey
 
toString() - Method in class com.google.bitcoin.core.GetBlocksMessage
 
toString() - Method in class com.google.bitcoin.core.InventoryItem
 
toString() - Method in class com.google.bitcoin.core.NetworkConnection
 
toString() - Method in class com.google.bitcoin.core.PeerAddress
 
toString() - Method in class com.google.bitcoin.core.Script
Returns the program opcodes as a string, for example "[1234] DUP HAHS160"
toString() - Method in class com.google.bitcoin.core.Sha256Hash
 
toString() - Method in class com.google.bitcoin.core.StoredBlock
 
toString() - Method in class com.google.bitcoin.core.Transaction
 
toString() - Method in class com.google.bitcoin.core.TransactionInput
Returns a human readable debug string.
toString() - Method in class com.google.bitcoin.core.TransactionOutput
Returns a human readable debug string.
toString() - Method in class com.google.bitcoin.core.UnknownMessage
 
toString() - Method in class com.google.bitcoin.core.VersionedChecksummedBytes
 
toString() - Method in class com.google.bitcoin.core.Wallet
 
Transaction - Class in com.google.bitcoin.core
A transaction represents the movement of coins from some addresses to some other addresses.
Transaction(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.Transaction
Creates a transaction from the given serialized bytes, eg, from a block or a tx network message.
Transaction(NetworkParameters, byte[], int) - Constructor for class com.google.bitcoin.core.Transaction
Creates a transaction by reading payload starting from offset bytes in.
Transaction.SigHash - Enum in com.google.bitcoin.core
These constants are a part of a scriptSig signature on the inputs.
TransactionInput - Class in com.google.bitcoin.core
A transfer of coins from one address to another creates a transaction in which the outputs can be claimed by the recipient in the input of another transaction.
TransactionInput(NetworkParameters, Transaction, byte[], int) - Constructor for class com.google.bitcoin.core.TransactionInput
Deserializes an input message.
TransactionOutPoint - Class in com.google.bitcoin.core
This message is a reference or pointer to an output of a different transaction.
TransactionOutPoint(NetworkParameters, byte[], int) - Constructor for class com.google.bitcoin.core.TransactionOutPoint
Deserializes the message.
TransactionOutput - Class in com.google.bitcoin.core
A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value.
TransactionOutput(NetworkParameters, Transaction, byte[], int) - Constructor for class com.google.bitcoin.core.TransactionOutput
Deserializes a transaction output message.
type - Variable in class com.google.bitcoin.core.InventoryItem
 

U

uint32ToByteArrayBE(long, byte[], int) - Static method in class com.google.bitcoin.core.Utils
 
uint32ToByteArrayLE(long, byte[], int) - Static method in class com.google.bitcoin.core.Utils
 
uint32ToByteStreamLE(long, OutputStream) - Static method in class com.google.bitcoin.core.Utils
 
uint64ToByteStreamLE(BigInteger, OutputStream) - Static method in class com.google.bitcoin.core.Utils
 
UnknownMessage - Class in com.google.bitcoin.core
 
UnknownMessage(NetworkParameters, String, byte[]) - Constructor for class com.google.bitcoin.core.UnknownMessage
 
useChecksumming(boolean) - Method in class com.google.bitcoin.core.BitcoinSerializer
 
Utils - Class in com.google.bitcoin.core
A collection of various utility methods that are helpful for working with the BitCoin protocol.
Utils() - Constructor for class com.google.bitcoin.core.Utils
 

V

value - Variable in class com.google.bitcoin.core.VarInt
 
valueOf(String) - Static method in enum com.google.bitcoin.core.InventoryItem.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.bitcoin.core.Transaction.SigHash
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.bitcoin.core.Wallet.BalanceType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.bitcoin.core.InventoryItem.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.bitcoin.core.Transaction.SigHash
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.bitcoin.core.Wallet.BalanceType
Returns an array containing the constants of this enum type, in the order they are declared.
VarInt - Class in com.google.bitcoin.core
 
VarInt(long) - Constructor for class com.google.bitcoin.core.VarInt
 
VarInt(byte[], int) - Constructor for class com.google.bitcoin.core.VarInt
 
VerificationException - Exception in com.google.bitcoin.core
 
VerificationException(String) - Constructor for exception com.google.bitcoin.core.VerificationException
 
verify() - Method in class com.google.bitcoin.core.Block
Checks the block data to ensure it follows the rules laid out in the network parameters.
verify(byte[], byte[], byte[]) - Static method in class com.google.bitcoin.core.ECKey
Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
verify(byte[], byte[]) - Method in class com.google.bitcoin.core.ECKey
Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
verifyInput(int, Transaction) - Method in class com.google.bitcoin.core.Transaction
Given a named input and the transaction output it connects to, runs the script formed from the concatenation of the input and output scripts, returning true if the link is valid.
version - Variable in class com.google.bitcoin.core.VersionedChecksummedBytes
 
VersionAck - Class in com.google.bitcoin.core
The verack message, sent by a client accepting the version message they received from their peer.
VersionAck() - Constructor for class com.google.bitcoin.core.VersionAck
 
VersionAck(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.VersionAck
 
VersionedChecksummedBytes - Class in com.google.bitcoin.core
In Bitcoin the following format is often used to represent some type of key:
VersionedChecksummedBytes(String) - Constructor for class com.google.bitcoin.core.VersionedChecksummedBytes
 
VersionedChecksummedBytes(int, byte[]) - Constructor for class com.google.bitcoin.core.VersionedChecksummedBytes
 
VersionMessage - Class in com.google.bitcoin.core
 
VersionMessage(NetworkParameters, byte[]) - Constructor for class com.google.bitcoin.core.VersionMessage
 
VersionMessage(NetworkParameters, int) - Constructor for class com.google.bitcoin.core.VersionMessage
 

W

wallet - Variable in class com.google.bitcoin.core.BlockChain
 
Wallet - Class in com.google.bitcoin.core
A Wallet stores keys and a record of transactions that have not yet been spent.
Wallet(NetworkParameters) - Constructor for class com.google.bitcoin.core.Wallet
Creates a new, empty wallet with no keys and no transactions.
Wallet.BalanceType - Enum in com.google.bitcoin.core
It's possible to calculate a wallets balance from multiple points of view.
WalletEventListener - Class in com.google.bitcoin.core
Implementing a subclass WalletEventListener allows you to learn when the contents of the wallet changes due to receiving money or a block chain re-organize.
WalletEventListener() - Constructor for class com.google.bitcoin.core.WalletEventListener
 
writeMessage(Message) - Method in class com.google.bitcoin.core.NetworkConnection
Writes the given message out over the network using the protocol tag.

A B C D E F G H I J K L M N O P R S T U V W

Copyright © 2011. All Rights Reserved.