From adc9cc86e1c5d1ec64d5bdaacda1e2ddac4748e5 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 25 Jun 2024 09:55:13 +0200 Subject: [PATCH] release-notes.md: release bitcoinj 0.16.3 --- bitcoin-standards.md | 42 +- index.html | 2 +- javadoc/0.16.3/allclasses-index.html | 1723 ++ javadoc/0.16.3/allpackages-index.html | 138 + javadoc/0.16.3/constant-values.html | 1824 ++ javadoc/0.16.3/deprecated-list.html | 294 + javadoc/0.16.3/element-list | 19 + javadoc/0.16.3/help-doc.html | 192 + javadoc/0.16.3/index-all.html | 20235 ++++++++++++++++ javadoc/0.16.3/index.html | 140 + javadoc/0.16.3/jquery-ui.overrides.css | 35 + javadoc/0.16.3/legal/ASSEMBLY_EXCEPTION | 27 + javadoc/0.16.3/legal/jquery.md | 72 + javadoc/0.16.3/legal/jqueryUI.md | 49 + javadoc/0.16.3/member-search-index.js | 1 + javadoc/0.16.3/module-search-index.js | 1 + .../0.16.3/org/bitcoin/NativeSecp256k1.html | 442 + ...tiveSecp256k1Util.AssertFailException.html | 156 + .../org/bitcoin/NativeSecp256k1Util.html | 243 + .../0.16.3/org/bitcoin/Secp256k1Context.html | 177 + .../PeerSeedProtos.PeerSeedData.Builder.html | 401 + .../crawler/PeerSeedProtos.PeerSeedData.html | 605 + .../PeerSeedProtos.PeerSeedDataOrBuilder.html | 244 + .../PeerSeedProtos.PeerSeeds.Builder.html | 515 + .../crawler/PeerSeedProtos.PeerSeeds.html | 651 + .../PeerSeedProtos.PeerSeedsOrBuilder.html | 258 + ...eerSeedProtos.SignedPeerSeeds.Builder.html | 365 + .../PeerSeedProtos.SignedPeerSeeds.html | 587 + ...erSeedProtos.SignedPeerSeedsOrBuilder.html | 228 + .../org/bitcoin/crawler/PeerSeedProtos.html | 168 + .../org/bitcoin/crawler/package-summary.html | 130 + .../org/bitcoin/crawler/package-tree.html | 106 + .../0.16.3/org/bitcoin/package-summary.html | 114 + javadoc/0.16.3/org/bitcoin/package-tree.html | 83 + .../payments/Protos.Output.Builder.html | 339 + .../protocols/payments/Protos.Output.html | 559 + .../payments/Protos.OutputOrBuilder.html | 216 + .../payments/Protos.Payment.Builder.html | 768 + .../protocols/payments/Protos.Payment.html | 779 + .../payments/Protos.PaymentACK.Builder.html | 405 + .../protocols/payments/Protos.PaymentACK.html | 577 + .../payments/Protos.PaymentACKOrBuilder.html | 237 + .../Protos.PaymentDetails.Builder.html | 1057 + .../payments/Protos.PaymentDetails.html | 989 + .../Protos.PaymentDetailsOrBuilder.html | 498 + .../payments/Protos.PaymentOrBuilder.html | 353 + .../Protos.PaymentRequest.Builder.html | 631 + .../payments/Protos.PaymentRequest.html | 756 + .../Protos.PaymentRequestOrBuilder.html | 353 + .../Protos.X509Certificates.Builder.html | 318 + .../payments/Protos.X509Certificates.html | 516 + .../Protos.X509CertificatesOrBuilder.html | 197 + .../bitcoin/protocols/payments/Protos.html | 193 + .../protocols/payments/package-summary.html | 151 + .../protocols/payments/package-tree.html | 115 + .../core/AbstractBlockChain.NewBlockType.html | 229 + .../org/bitcoinj/core/AbstractBlockChain.html | 1061 + javadoc/0.16.3/org/bitcoinj/core/Address.html | 331 + ...dressFormatException.InvalidCharacter.html | 209 + ...ddressFormatException.InvalidChecksum.html | 177 + ...ressFormatException.InvalidDataLength.html | 177 + .../AddressFormatException.InvalidPrefix.html | 181 + ...matException.UnexpectedWitnessVersion.html | 176 + .../AddressFormatException.WrongNetwork.html | 180 + .../bitcoinj/core/AddressFormatException.html | 212 + .../org/bitcoinj/core/AddressMessage.html | 233 + .../org/bitcoinj/core/AddressV1Message.html | 192 + .../org/bitcoinj/core/AddressV2Message.html | 194 + javadoc/0.16.3/org/bitcoinj/core/Base58.html | 297 + .../org/bitcoinj/core/Bech32.Bech32Data.html | 152 + .../org/bitcoinj/core/Bech32.Encoding.html | 222 + javadoc/0.16.3/org/bitcoinj/core/Bech32.html | 236 + ...BitcoinSerializer.BitcoinPacketHeader.html | 215 + .../org/bitcoinj/core/BitcoinSerializer.html | 583 + .../org/bitcoinj/core/Block.VerifyFlag.html | 219 + javadoc/0.16.3/org/bitcoinj/core/Block.html | 1231 + .../0.16.3/org/bitcoinj/core/BlockChain.html | 597 + .../org/bitcoinj/core/BlockLocator.html | 249 + .../core/BloomFilter.BloomUpdate.html | 235 + .../0.16.3/org/bitcoinj/core/BloomFilter.html | 495 + .../org/bitcoinj/core/CheckpointManager.html | 334 + .../org/bitcoinj/core/ChildMessage.html | 312 + javadoc/0.16.3/org/bitcoinj/core/Coin.html | 834 + javadoc/0.16.3/org/bitcoinj/core/Context.html | 355 + .../org/bitcoinj/core/DumpedPrivateKey.html | 230 + .../bitcoinj/core/ECKey.ECDSASignature.html | 306 + .../core/ECKey.KeyIsEncryptedException.html | 155 + .../ECKey.MissingPrivateKeyException.html | 157 + javadoc/0.16.3/org/bitcoinj/core/ECKey.html | 1572 ++ .../org/bitcoinj/core/EmptyMessage.html | 253 + .../org/bitcoinj/core/FeeFilterMessage.html | 234 + .../org/bitcoinj/core/FilteredBlock.html | 363 + .../bitcoinj/core/FullPrunedBlockChain.html | 598 + .../org/bitcoinj/core/GetAddrMessage.html | 151 + .../org/bitcoinj/core/GetBlocksMessage.html | 325 + .../org/bitcoinj/core/GetDataMessage.html | 259 + .../org/bitcoinj/core/GetHeadersMessage.html | 240 + .../org/bitcoinj/core/GetUTXOsMessage.html | 324 + .../org/bitcoinj/core/HeadersMessage.html | 282 + .../core/InsufficientMoneyException.html | 203 + .../org/bitcoinj/core/InventoryItem.Type.html | 300 + .../org/bitcoinj/core/InventoryItem.html | 244 + .../org/bitcoinj/core/InventoryMessage.html | 289 + .../org/bitcoinj/core/LegacyAddress.html | 492 + .../0.16.3/org/bitcoinj/core/ListMessage.html | 347 + .../org/bitcoinj/core/MemoryPoolMessage.html | 207 + javadoc/0.16.3/org/bitcoinj/core/Message.html | 679 + .../org/bitcoinj/core/MessageSerializer.html | 572 + .../0.16.3/org/bitcoinj/core/Monetary.html | 160 + .../NetworkParameters.ProtocolVersion.html | 271 + .../org/bitcoinj/core/NetworkParameters.html | 1260 + .../org/bitcoinj/core/NotFoundMessage.html | 210 + .../org/bitcoinj/core/PartialMerkleTree.html | 348 + javadoc/0.16.3/org/bitcoinj/core/Peer.html | 1225 + .../0.16.3/org/bitcoinj/core/PeerAddress.html | 441 + .../org/bitcoinj/core/PeerException.html | 167 + .../org/bitcoinj/core/PeerFilterProvider.html | 199 + .../core/PeerGroup.FilterRecalculateMode.html | 230 + .../0.16.3/org/bitcoinj/core/PeerGroup.html | 1813 ++ .../org/bitcoinj/core/PeerSocketHandler.html | 362 + javadoc/0.16.3/org/bitcoinj/core/Ping.html | 250 + javadoc/0.16.3/org/bitcoinj/core/Pong.html | 232 + .../core/PrefixedChecksummedBytes.html | 282 + .../org/bitcoinj/core/ProtocolException.html | 178 + .../org/bitcoinj/core/PrunedException.html | 182 + .../core/RejectMessage.RejectCode.html | 308 + .../org/bitcoinj/core/RejectMessage.html | 344 + .../core/RejectedTransactionException.html | 199 + .../org/bitcoinj/core/SegwitAddress.html | 496 + .../org/bitcoinj/core/SendAddrV2Message.html | 153 + .../org/bitcoinj/core/SendHeadersMessage.html | 165 + .../0.16.3/org/bitcoinj/core/Sha256Hash.html | 565 + .../core/SignatureDecodeException.html | 173 + .../0.16.3/org/bitcoinj/core/StoredBlock.html | 364 + .../bitcoinj/core/StoredUndoableBlock.html | 244 + .../bitcoinj/core/Transaction.Purpose.html | 285 + .../bitcoinj/core/Transaction.SigHash.html | 314 + .../0.16.3/org/bitcoinj/core/Transaction.html | 2138 ++ .../org/bitcoinj/core/TransactionBag.html | 191 + ...TransactionBroadcast.ProgressCallback.html | 138 + .../bitcoinj/core/TransactionBroadcast.html | 256 + .../bitcoinj/core/TransactionBroadcaster.html | 134 + .../TransactionConfidence.ConfidenceType.html | 286 + .../core/TransactionConfidence.Factory.html | 163 + ...ctionConfidence.Listener.ChangeReason.html | 247 + .../core/TransactionConfidence.Listener.html | 159 + .../core/TransactionConfidence.Source.html | 242 + .../bitcoinj/core/TransactionConfidence.html | 589 + .../core/TransactionInput.ConnectMode.html | 222 + .../TransactionInput.ConnectionResult.html | 230 + .../org/bitcoinj/core/TransactionInput.html | 908 + .../bitcoinj/core/TransactionOutPoint.html | 438 + .../org/bitcoinj/core/TransactionOutput.html | 670 + .../core/TransactionOutputChanges.html | 221 + .../org/bitcoinj/core/TransactionWitness.html | 291 + .../org/bitcoinj/core/TxConfidenceTable.html | 289 + javadoc/0.16.3/org/bitcoinj/core/UTXO.html | 357 + .../org/bitcoinj/core/UTXOProvider.html | 184 + .../bitcoinj/core/UTXOProviderException.html | 173 + .../org/bitcoinj/core/UTXOsMessage.html | 339 + .../org/bitcoinj/core/UnknownMessage.html | 192 + .../core/UnsafeByteArrayOutputStream.html | 334 + javadoc/0.16.3/org/bitcoinj/core/Utils.html | 859 + javadoc/0.16.3/org/bitcoinj/core/VarInt.html | 289 + ...cationException.BlockVersionOutOfDate.html | 164 + ...ationException.CoinbaseHeightMismatch.html | 164 + ...xception.CoinbaseScriptSizeOutOfRange.html | 164 + ...ificationException.DuplicatedOutPoint.html | 164 + ...icationException.EmptyInputsOrOutputs.html | 164 + .../VerificationException.ExcessiveValue.html | 164 + ...ationException.LargerThanMaxBlockSize.html | 164 + ...ficationException.NegativeValueOutput.html | 164 + ...cationException.NoncanonicalSignature.html | 164 + ...tionException.UnexpectedCoinbaseInput.html | 164 + .../bitcoinj/core/VerificationException.html | 213 + .../0.16.3/org/bitcoinj/core/VersionAck.html | 161 + .../org/bitcoinj/core/VersionMessage.html | 667 + .../AbstractPeerDataEventListener.html | 275 + .../BlocksDownloadedEventListener.html | 156 + .../ChainDownloadStartedEventListener.html | 146 + .../listeners/DownloadProgressTracker.html | 300 + .../core/listeners/GetDataEventListener.html | 146 + .../core/listeners/NewBestBlockListener.html | 148 + .../OnTransactionBroadcastListener.html | 131 + .../listeners/PeerConnectedEventListener.html | 137 + .../core/listeners/PeerDataEventListener.html | 114 + .../PeerDisconnectedEventListener.html | 139 + .../PeerDiscoveredEventListener.html | 135 + .../PreMessageReceivedEventListener.html | 147 + .../core/listeners/ReorganizeListener.html | 149 + .../TransactionConfidenceEventListener.html | 154 + .../TransactionReceivedInBlockListener.html | 194 + .../core/listeners/package-summary.html | 172 + .../bitcoinj/core/listeners/package-tree.html | 109 + .../org/bitcoinj/core/package-summary.html | 574 + .../org/bitcoinj/core/package-tree.html | 291 + ...IP38PrivateKey.BadPassphraseException.html | 151 + .../org/bitcoinj/crypto/BIP38PrivateKey.html | 290 + .../org/bitcoinj/crypto/ChildNumber.html | 345 + .../org/bitcoinj/crypto/DRMWorkaround.html | 159 + .../crypto/DeterministicHierarchy.html | 320 + .../org/bitcoinj/crypto/DeterministicKey.html | 1002 + .../org/bitcoinj/crypto/EncryptableItem.html | 185 + .../org/bitcoinj/crypto/EncryptedData.html | 234 + .../crypto/HDDerivationException.html | 149 + .../HDKeyDerivation.PublicDeriveMode.html | 222 + .../crypto/HDKeyDerivation.RawKeyBytes.html | 172 + .../org/bitcoinj/crypto/HDKeyDerivation.html | 351 + .../0.16.3/org/bitcoinj/crypto/HDPath.html | 507 + .../0.16.3/org/bitcoinj/crypto/HDUtils.html | 239 + .../org/bitcoinj/crypto/KeyCrypter.html | 211 + ...KeyCrypterException.InvalidCipherText.html | 176 + ...rypterException.PublicPrivateMismatch.html | 176 + .../bitcoinj/crypto/KeyCrypterException.html | 194 + .../org/bitcoinj/crypto/KeyCrypterScrypt.html | 444 + .../org/bitcoinj/crypto/LazyECPoint.html | 494 + .../bitcoinj/crypto/LinuxSecureRandom.html | 210 + .../org/bitcoinj/crypto/MnemonicCode.html | 304 + ...icException.MnemonicChecksumException.html | 163 + ...onicException.MnemonicLengthException.html | 163 + ...emonicException.MnemonicWordException.html | 195 + .../bitcoinj/crypto/MnemonicException.html | 187 + .../org/bitcoinj/crypto/PBKDF2SHA512.html | 173 + .../bitcoinj/crypto/TransactionSignature.html | 359 + ...stStoreLoader.DefaultTrustStoreLoader.html | 195 + ...TrustStoreLoader.FileTrustStoreLoader.html | 201 + .../org/bitcoinj/crypto/TrustStoreLoader.html | 204 + .../0.16.3/org/bitcoinj/crypto/X509Utils.html | 200 + .../org/bitcoinj/crypto/package-summary.html | 221 + .../org/bitcoinj/crypto/package-tree.html | 167 + .../jni/NativeBlockChainListener.html | 326 + .../bitcoinj/jni/NativeFutureCallback.html | 213 + .../jni/NativeKeyChainEventListener.html | 207 + .../jni/NativeScriptsChangeEventListener.html | 209 + ...iveTransactionConfidenceEventListener.html | 225 + .../NativeTransactionConfidenceListener.html | 211 + .../jni/NativeWalletChangeEventListener.html | 219 + ...ativeWalletCoinsReceivedEventListener.html | 221 + .../NativeWalletCoinsSentEventListener.html | 224 + .../NativeWalletReorganizeEventListener.html | 211 + .../org/bitcoinj/jni/package-summary.html | 121 + .../0.16.3/org/bitcoinj/jni/package-tree.html | 81 + .../org/bitcoinj/kits/WalletAppKit.html | 814 + .../org/bitcoinj/kits/package-summary.html | 89 + .../org/bitcoinj/kits/package-tree.html | 76 + .../bitcoinj/net/AbstractTimeoutHandler.html | 215 + .../org/bitcoinj/net/BlockingClient.html | 257 + .../bitcoinj/net/BlockingClientManager.html | 287 + .../bitcoinj/net/ClientConnectionManager.html | 181 + .../org/bitcoinj/net/FilterMerger.Result.html | 179 + .../0.16.3/org/bitcoinj/net/FilterMerger.html | 211 + .../org/bitcoinj/net/MessageWriteTarget.html | 153 + .../0.16.3/org/bitcoinj/net/NioClient.html | 214 + .../org/bitcoinj/net/NioClientManager.html | 271 + .../0.16.3/org/bitcoinj/net/NioServer.html | 216 + .../org/bitcoinj/net/StreamConnection.html | 207 + .../bitcoinj/net/StreamConnectionFactory.html | 137 + .../DnsDiscovery.DnsSeedDiscovery.html | 218 + .../bitcoinj/net/discovery/DnsDiscovery.html | 232 + .../net/discovery/HttpDiscovery.Details.html | 174 + .../bitcoinj/net/discovery/HttpDiscovery.html | 273 + .../net/discovery/MultiplexingDiscovery.html | 303 + .../bitcoinj/net/discovery/PeerDiscovery.html | 157 + .../net/discovery/PeerDiscoveryException.html | 173 + .../org/bitcoinj/net/discovery/SeedPeers.html | 246 + .../net/discovery/package-summary.html | 133 + .../bitcoinj/net/discovery/package-tree.html | 95 + .../org/bitcoinj/net/package-summary.html | 155 + .../0.16.3/org/bitcoinj/net/package-tree.html | 100 + .../params/AbstractBitcoinNetParams.html | 449 + .../org/bitcoinj/params/MainNetParams.html | 294 + .../0.16.3/org/bitcoinj/params/Networks.html | 214 + .../org/bitcoinj/params/RegTestParams.html | 246 + .../org/bitcoinj/params/TestNet3Params.html | 321 + .../org/bitcoinj/params/UnitTestParams.html | 295 + .../org/bitcoinj/params/package-summary.html | 110 + .../org/bitcoinj/params/package-tree.html | 84 + .../payments/PaymentProtocol.Ack.html | 143 + .../payments/PaymentProtocol.Output.html | 188 + .../PaymentProtocol.PkiVerificationData.html | 209 + .../protocols/payments/PaymentProtocol.html | 540 + .../PaymentProtocolException.Expired.html | 162 + ...ymentProtocolException.InvalidNetwork.html | 162 + ...ymentProtocolException.InvalidOutputs.html | 162 + ...colException.InvalidPaymentRequestURL.html | 170 + ...ntProtocolException.InvalidPaymentURL.html | 170 + ...ymentProtocolException.InvalidPkiData.html | 170 + ...ymentProtocolException.InvalidPkiType.html | 162 + ...ymentProtocolException.InvalidVersion.html | 162 + ...colException.PkiVerificationException.html | 209 + .../payments/PaymentProtocolException.html | 198 + .../protocols/payments/PaymentSession.html | 654 + .../protocols/payments/package-summary.html | 132 + .../protocols/payments/package-tree.html | 97 + .../bitcoinj/script/Script.ScriptType.html | 284 + .../bitcoinj/script/Script.VerifyFlag.html | 296 + .../0.16.3/org/bitcoinj/script/Script.html | 931 + .../org/bitcoinj/script/ScriptBuilder.html | 802 + .../org/bitcoinj/script/ScriptChunk.html | 328 + .../org/bitcoinj/script/ScriptError.html | 556 + .../org/bitcoinj/script/ScriptException.html | 205 + .../org/bitcoinj/script/ScriptOpCodes.html | 2193 ++ .../org/bitcoinj/script/ScriptPattern.html | 372 + .../org/bitcoinj/script/package-summary.html | 122 + .../org/bitcoinj/script/package-tree.html | 109 + ...stomTransactionSigner.SignatureAndKey.html | 172 + .../signers/CustomTransactionSigner.html | 229 + .../signers/LocalTransactionSigner.html | 212 + .../signers/MissingSigResolutionSigner.html | 215 + ...ctionSigner.MissingSignatureException.html | 153 + ...TransactionSigner.ProposedTransaction.html | 179 + .../bitcoinj/signers/TransactionSigner.html | 175 + .../org/bitcoinj/signers/package-summary.html | 115 + .../org/bitcoinj/signers/package-tree.html | 95 + .../0.16.3/org/bitcoinj/store/BlockStore.html | 239 + .../bitcoinj/store/BlockStoreException.html | 170 + .../store/ChainFileLockedException.html | 158 + .../store/DatabaseFullPrunedBlockStore.html | 1383 ++ .../bitcoinj/store/FullPrunedBlockStore.html | 391 + .../store/H2FullPrunedBlockStore.html | 346 + .../org/bitcoinj/store/LevelDBBlockStore.html | 346 + .../LevelDBFullPrunedBlockStore.LRUCache.html | 208 + .../store/LevelDBFullPrunedBlockStore.html | 853 + .../org/bitcoinj/store/MemoryBlockStore.html | 278 + ...ckStore.StoredBlockAndWasUndoableFlag.html | 172 + .../store/MemoryFullPrunedBlockStore.html | 624 + .../store/MySQLFullPrunedBlockStore.html | 369 + .../store/PostgresFullPrunedBlockStore.html | 362 + .../org/bitcoinj/store/SPVBlockStore.html | 513 + .../org/bitcoinj/store/package-summary.html | 148 + .../org/bitcoinj/store/package-tree.html | 125 + .../0.16.3/org/bitcoinj/uri/BitcoinURI.html | 523 + .../uri/BitcoinURIParseException.html | 168 + .../uri/OptionalFieldValidationException.html | 168 + .../uri/RequiredFieldValidationException.html | 169 + .../org/bitcoinj/uri/package-summary.html | 106 + .../0.16.3/org/bitcoinj/uri/package-tree.html | 86 + .../org/bitcoinj/utils/AppDataDirectory.html | 197 + .../bitcoinj/utils/BaseTaggableObject.html | 263 + .../org/bitcoinj/utils/BlockFileLoader.html | 276 + .../org/bitcoinj/utils/BriefLogFormatter.html | 199 + .../bitcoinj/utils/BtcAutoFormat.Style.html | 230 + .../org/bitcoinj/utils/BtcAutoFormat.html | 335 + .../org/bitcoinj/utils/BtcFixedFormat.html | 437 + .../org/bitcoinj/utils/BtcFormat.Builder.html | 373 + .../0.16.3/org/bitcoinj/utils/BtcFormat.html | 1773 ++ .../ContextPropagatingThreadFactory.html | 180 + .../bitcoinj/utils/DaemonThreadFactory.html | 179 + .../org/bitcoinj/utils/ExchangeRate.html | 276 + .../utils/ExponentialBackoff.Params.html | 154 + .../bitcoinj/utils/ExponentialBackoff.html | 308 + javadoc/0.16.3/org/bitcoinj/utils/Fiat.html | 530 + .../bitcoinj/utils/ListenerRegistration.html | 205 + .../org/bitcoinj/utils/MonetaryFormat.html | 749 + .../org/bitcoinj/utils/TaggableObject.html | 184 + .../bitcoinj/utils/Threading.UserThread.html | 233 + .../0.16.3/org/bitcoinj/utils/Threading.html | 335 + .../org/bitcoinj/utils/VersionTally.html | 236 + .../org/bitcoinj/utils/package-summary.html | 182 + .../org/bitcoinj/utils/package-tree.html | 125 + .../wallet/AllRandomKeysRotating.html | 151 + .../wallet/AllowUnconfirmedCoinSelector.html | 190 + .../bitcoinj/wallet/BasicKeyChain.State.html | 231 + .../org/bitcoinj/wallet/BasicKeyChain.html | 714 + .../org/bitcoinj/wallet/CoinSelection.html | 173 + .../org/bitcoinj/wallet/CoinSelector.html | 140 + .../org/bitcoinj/wallet/DecryptingKeyBag.html | 270 + .../bitcoinj/wallet/DefaultCoinSelector.html | 218 + .../wallet/DefaultKeyChainFactory.html | 250 + .../wallet/DefaultRiskAnalysis.Analyzer.html | 176 + .../DefaultRiskAnalysis.RuleViolation.html | 256 + .../bitcoinj/wallet/DefaultRiskAnalysis.html | 322 + .../wallet/DeterministicKeyChain.Builder.html | 446 + .../wallet/DeterministicKeyChain.html | 1293 + .../bitcoinj/wallet/DeterministicSeed.html | 563 + ...DeterministicUpgradeRequiredException.html | 151 + .../DeterministicUpgradeRequiresPassword.html | 152 + .../bitcoinj/wallet/EncryptableKeyChain.html | 238 + .../wallet/FilteringCoinSelector.html | 224 + .../0.16.3/org/bitcoinj/wallet/KeyBag.html | 182 + .../bitcoinj/wallet/KeyChain.KeyPurpose.html | 238 + .../0.16.3/org/bitcoinj/wallet/KeyChain.html | 301 + .../org/bitcoinj/wallet/KeyChainFactory.html | 206 + .../wallet/KeyChainGroup.Builder.html | 270 + .../org/bitcoinj/wallet/KeyChainGroup.html | 1037 + .../wallet/KeyChainGroupStructure.html | 161 + .../bitcoinj/wallet/KeyTimeCoinSelector.html | 222 + .../wallet/MarriedKeyChain.Builder.html | 219 + .../org/bitcoinj/wallet/MarriedKeyChain.html | 443 + .../Protos.DeterministicKey.Builder.html | 808 + .../wallet/Protos.DeterministicKey.html | 855 + .../Protos.DeterministicKeyOrBuilder.html | 424 + .../wallet/Protos.EncryptedData.Builder.html | 335 + .../bitcoinj/wallet/Protos.EncryptedData.html | 554 + .../wallet/Protos.EncryptedDataOrBuilder.html | 216 + .../wallet/Protos.ExchangeRate.Builder.html | 475 + .../bitcoinj/wallet/Protos.ExchangeRate.html | 645 + .../wallet/Protos.ExchangeRateOrBuilder.html | 279 + .../wallet/Protos.Extension.Builder.html | 463 + .../org/bitcoinj/wallet/Protos.Extension.html | 639 + .../wallet/Protos.ExtensionOrBuilder.html | 273 + .../bitcoinj/wallet/Protos.Key.Builder.html | 1311 + .../wallet/Protos.Key.OutputScriptType.html | 356 + .../org/bitcoinj/wallet/Protos.Key.Type.html | 476 + .../org/bitcoinj/wallet/Protos.Key.html | 1178 + .../bitcoinj/wallet/Protos.KeyOrBuilder.html | 626 + .../wallet/Protos.PeerAddress.Builder.html | 365 + .../bitcoinj/wallet/Protos.PeerAddress.html | 587 + .../wallet/Protos.PeerAddressOrBuilder.html | 228 + .../wallet/Protos.Script.Builder.html | 319 + .../org/bitcoinj/wallet/Protos.Script.html | 546 + .../wallet/Protos.ScriptOrBuilder.html | 208 + .../wallet/Protos.ScriptWitness.Builder.html | 283 + .../bitcoinj/wallet/Protos.ScriptWitness.html | 501 + .../wallet/Protos.ScriptWitnessOrBuilder.html | 182 + .../Protos.ScryptParameters.Builder.html | 523 + .../wallet/Protos.ScryptParameters.html | 689 + .../Protos.ScryptParametersOrBuilder.html | 300 + .../bitcoinj/wallet/Protos.Tag.Builder.html | 338 + .../org/bitcoinj/wallet/Protos.Tag.html | 561 + .../bitcoinj/wallet/Protos.TagOrBuilder.html | 212 + .../wallet/Protos.Transaction.Builder.html | 1671 ++ .../wallet/Protos.Transaction.Pool.html | 553 + .../wallet/Protos.Transaction.Purpose.html | 565 + .../bitcoinj/wallet/Protos.Transaction.html | 1374 ++ .../Protos.TransactionConfidence.Builder.html | 858 + .../Protos.TransactionConfidence.Source.html | 421 + .../Protos.TransactionConfidence.Type.html | 540 + .../wallet/Protos.TransactionConfidence.html | 911 + ...Protos.TransactionConfidenceOrBuilder.html | 416 + .../Protos.TransactionInput.Builder.html | 719 + .../wallet/Protos.TransactionInput.html | 806 + .../Protos.TransactionInputOrBuilder.html | 384 + .../wallet/Protos.TransactionOrBuilder.html | 714 + .../Protos.TransactionOutput.Builder.html | 495 + .../wallet/Protos.TransactionOutput.html | 670 + .../Protos.TransactionOutputOrBuilder.html | 290 + .../wallet/Protos.Wallet.Builder.html | 1855 ++ .../wallet/Protos.Wallet.EncryptionType.html | 384 + .../org/bitcoinj/wallet/Protos.Wallet.html | 1478 ++ .../wallet/Protos.WalletOrBuilder.html | 712 + .../0.16.3/org/bitcoinj/wallet/Protos.html | 276 + .../org/bitcoinj/wallet/RedeemData.html | 218 + .../wallet/RiskAnalysis.Analyzer.html | 137 + .../bitcoinj/wallet/RiskAnalysis.Result.html | 230 + .../org/bitcoinj/wallet/RiskAnalysis.html | 155 + .../org/bitcoinj/wallet/SendRequest.html | 479 + ...UnreadableWalletException.BadPassword.html | 162 + ...readableWalletException.FutureVersion.html | 162 + ...nreadableWalletException.WrongNetwork.html | 162 + .../wallet/UnreadableWalletException.html | 184 + ...allet.BadWalletEncryptionKeyException.html | 157 + .../bitcoinj/wallet/Wallet.BalanceType.html | 265 + .../wallet/Wallet.CompletionException.html | 166 + .../Wallet.CouldNotAdjustDownwards.html | 158 + .../wallet/Wallet.DustySendRequested.html | 156 + .../Wallet.ExceededMaxTransactionSize.html | 156 + .../wallet/Wallet.MissingSigsMode.html | 243 + .../Wallet.MultipleOpReturnRequested.html | 156 + .../bitcoinj/wallet/Wallet.SendResult.html | 191 + .../0.16.3/org/bitcoinj/wallet/Wallet.html | 4259 ++++ .../org/bitcoinj/wallet/WalletExtension.html | 182 + .../bitcoinj/wallet/WalletFiles.Listener.html | 147 + .../org/bitcoinj/wallet/WalletFiles.html | 248 + ...alletProtobufSerializer.WalletFactory.html | 131 + .../wallet/WalletProtobufSerializer.html | 507 + .../wallet/WalletTransaction.Pool.html | 238 + .../bitcoinj/wallet/WalletTransaction.html | 186 + .../AbstractKeyChainEventListener.html | 175 + .../CurrentKeyChangeEventListener.html | 128 + .../listeners/KeyChainEventListener.html | 135 + .../listeners/ScriptsChangeEventListener.html | 142 + .../listeners/WalletChangeEventListener.html | 149 + .../WalletCoinsReceivedEventListener.html | 153 + .../WalletCoinsSentEventListener.html | 156 + .../WalletReorganizeEventListener.html | 140 + .../wallet/listeners/package-summary.html | 132 + .../wallet/listeners/package-tree.html | 84 + .../org/bitcoinj/wallet/package-summary.html | 541 + .../org/bitcoinj/wallet/package-tree.html | 251 + javadoc/0.16.3/overview-summary.html | 26 + javadoc/0.16.3/overview-tree.html | 762 + javadoc/0.16.3/package-search-index.js | 1 + javadoc/0.16.3/resources/glass.png | Bin 0 -> 499 bytes javadoc/0.16.3/resources/x.png | Bin 0 -> 394 bytes javadoc/0.16.3/script-dir/jquery-3.6.1.min.js | 2 + javadoc/0.16.3/script-dir/jquery-ui.min.css | 6 + javadoc/0.16.3/script-dir/jquery-ui.min.js | 6 + javadoc/0.16.3/script.js | 132 + javadoc/0.16.3/search.js | 354 + javadoc/0.16.3/serialized-form.html | 1009 + javadoc/0.16.3/stylesheet.css | 869 + javadoc/0.16.3/tag-search-index.js | 1 + javadoc/0.16.3/type-search-index.js | 1 + release-notes.md | 9 + using-gradle.md | 2 +- using-maven.md | 6 +- 497 files changed, 190003 insertions(+), 26 deletions(-) create mode 100644 javadoc/0.16.3/allclasses-index.html create mode 100644 javadoc/0.16.3/allpackages-index.html create mode 100644 javadoc/0.16.3/constant-values.html create mode 100644 javadoc/0.16.3/deprecated-list.html create mode 100644 javadoc/0.16.3/element-list create mode 100644 javadoc/0.16.3/help-doc.html create mode 100644 javadoc/0.16.3/index-all.html create mode 100644 javadoc/0.16.3/index.html create mode 100644 javadoc/0.16.3/jquery-ui.overrides.css create mode 100644 javadoc/0.16.3/legal/ASSEMBLY_EXCEPTION create mode 100644 javadoc/0.16.3/legal/jquery.md create mode 100644 javadoc/0.16.3/legal/jqueryUI.md create mode 100644 javadoc/0.16.3/member-search-index.js create mode 100644 javadoc/0.16.3/module-search-index.js create mode 100644 javadoc/0.16.3/org/bitcoin/NativeSecp256k1.html create mode 100644 javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.AssertFailException.html create mode 100644 javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.html create mode 100644 javadoc/0.16.3/org/bitcoin/Secp256k1Context.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedDataOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedsOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeedsOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoin/crawler/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoin/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoin/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.OutputOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACKOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetailsOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequestOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509CertificatesOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoin/protocols/payments/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.NewBlockType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Address.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidCharacter.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidChecksum.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidDataLength.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidPrefix.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.UnexpectedWitnessVersion.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.WrongNetwork.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressV1Message.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/AddressV2Message.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Base58.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Bech32.Bech32Data.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Bech32.Encoding.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Bech32.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.BitcoinPacketHeader.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Block.VerifyFlag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Block.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BlockChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BlockLocator.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BloomFilter.BloomUpdate.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/BloomFilter.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/CheckpointManager.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ChildMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Coin.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Context.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/DumpedPrivateKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ECKey.ECDSASignature.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ECKey.KeyIsEncryptedException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ECKey.MissingPrivateKeyException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ECKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/EmptyMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/FeeFilterMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/FilteredBlock.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/FullPrunedBlockChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/GetAddrMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/GetBlocksMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/GetDataMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/GetHeadersMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/GetUTXOsMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/HeadersMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/InsufficientMoneyException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/InventoryItem.Type.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/InventoryItem.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/InventoryMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/LegacyAddress.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ListMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/MemoryPoolMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Message.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/MessageSerializer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Monetary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.ProtocolVersion.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/NotFoundMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PartialMerkleTree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Peer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerAddress.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerFilterProvider.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerGroup.FilterRecalculateMode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerGroup.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PeerSocketHandler.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Ping.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Pong.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PrefixedChecksummedBytes.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/ProtocolException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/PrunedException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/RejectMessage.RejectCode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/RejectMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/RejectedTransactionException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/SegwitAddress.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/SendAddrV2Message.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/SendHeadersMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Sha256Hash.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/SignatureDecodeException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/StoredBlock.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/StoredUndoableBlock.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Transaction.Purpose.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Transaction.SigHash.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Transaction.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionBag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.ProgressCallback.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcaster.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.ConfidenceType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Factory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.ChangeReason.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Source.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectMode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectionResult.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionInput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionOutPoint.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionOutput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionOutputChanges.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TransactionWitness.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/TxConfidenceTable.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UTXO.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UTXOProvider.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UTXOProviderException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UTXOsMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UnknownMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/UnsafeByteArrayOutputStream.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/Utils.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VarInt.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.BlockVersionOutOfDate.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseHeightMismatch.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseScriptSizeOutOfRange.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.DuplicatedOutPoint.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.EmptyInputsOrOutputs.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.ExcessiveValue.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.LargerThanMaxBlockSize.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.NegativeValueOutput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.NoncanonicalSignature.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.UnexpectedCoinbaseInput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VerificationException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VersionAck.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/VersionMessage.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/DownloadProgressTracker.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/GetDataEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/NewBestBlockListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/PeerConnectedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDataEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/ReorganizeListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/listeners/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/core/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.BadPassphraseException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/ChildNumber.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/DRMWorkaround.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/DeterministicHierarchy.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/DeterministicKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/EncryptableItem.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/EncryptedData.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDDerivationException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.PublicDeriveMode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.RawKeyBytes.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDPath.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/HDUtils.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypter.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.InvalidCipherText.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.PublicPrivateMismatch.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterScrypt.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/LazyECPoint.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/LinuxSecureRandom.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/MnemonicCode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicChecksumException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicLengthException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicWordException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/PBKDF2SHA512.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/TransactionSignature.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.DefaultTrustStoreLoader.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.FileTrustStoreLoader.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/X509Utils.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/crypto/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeBlockChainListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeFutureCallback.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeKeyChainEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeScriptsChangeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeWalletChangeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/NativeWalletReorganizeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/jni/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/kits/WalletAppKit.html create mode 100644 javadoc/0.16.3/org/bitcoinj/kits/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/kits/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/AbstractTimeoutHandler.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/BlockingClient.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/BlockingClientManager.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/ClientConnectionManager.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/FilterMerger.Result.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/FilterMerger.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/MessageWriteTarget.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/NioClient.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/NioClientManager.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/NioServer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/StreamConnection.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/StreamConnectionFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.DnsSeedDiscovery.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.Details.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/MultiplexingDiscovery.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscovery.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscoveryException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/SeedPeers.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/discovery/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/net/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/AbstractBitcoinNetParams.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/MainNetParams.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/Networks.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/RegTestParams.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/TestNet3Params.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/UnitTestParams.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/params/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Ack.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Output.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.PkiVerificationData.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.Expired.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidNetwork.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidOutputs.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentRequestURL.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentURL.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiData.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidVersion.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.PkiVerificationException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentSession.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/protocols/payments/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/Script.ScriptType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/Script.VerifyFlag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/Script.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptChunk.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptError.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptOpCodes.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/ScriptPattern.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/script/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.SignatureAndKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/LocalTransactionSigner.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/MissingSigResolutionSigner.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.MissingSignatureException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.ProposedTransaction.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/signers/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/BlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/BlockStoreException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/ChainFileLockedException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/DatabaseFullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/FullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/H2FullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/LevelDBBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.LRUCache.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/MemoryBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/MySQLFullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/PostgresFullPrunedBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/SPVBlockStore.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/store/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/BitcoinURI.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/BitcoinURIParseException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/OptionalFieldValidationException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/RequiredFieldValidationException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/uri/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/AppDataDirectory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BaseTaggableObject.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BlockFileLoader.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BriefLogFormatter.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.Style.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BtcFixedFormat.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/ContextPropagatingThreadFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/DaemonThreadFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/ExchangeRate.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.Params.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/Fiat.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/ListenerRegistration.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/MonetaryFormat.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/TaggableObject.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/Threading.UserThread.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/Threading.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/VersionTally.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/utils/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/AllRandomKeysRotating.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.State.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/CoinSelection.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/CoinSelector.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DecryptingKeyBag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DefaultCoinSelector.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DefaultKeyChainFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.Analyzer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.RuleViolation.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DeterministicSeed.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/EncryptableKeyChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/FilteringCoinSelector.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyBag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.KeyPurpose.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChainFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroupStructure.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/KeyTimeCoinSelector.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKeyOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedDataOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRateOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExtensionOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.OutputScriptType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Type.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.KeyOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddressOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitnessOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParametersOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TagOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Pool.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Purpose.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Source.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Type.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidenceOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInputOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutputOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.Builder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.EncryptionType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.WalletOrBuilder.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Protos.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/RedeemData.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Analyzer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Result.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/SendRequest.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.BadPassword.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.FutureVersion.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.WrongNetwork.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BadWalletEncryptionKeyException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BalanceType.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CompletionException.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CouldNotAdjustDownwards.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.DustySendRequested.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.ExceededMaxTransactionSize.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MissingSigsMode.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MultipleOpReturnRequested.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.SendResult.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/Wallet.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletExtension.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.Listener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.WalletFactory.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.Pool.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/AbstractKeyChainEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/CurrentKeyChangeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/KeyChainEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/ScriptsChangeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletChangeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsReceivedEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsSentEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletReorganizeEventListener.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-tree.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/package-summary.html create mode 100644 javadoc/0.16.3/org/bitcoinj/wallet/package-tree.html create mode 100644 javadoc/0.16.3/overview-summary.html create mode 100644 javadoc/0.16.3/overview-tree.html create mode 100644 javadoc/0.16.3/package-search-index.js create mode 100644 javadoc/0.16.3/resources/glass.png create mode 100644 javadoc/0.16.3/resources/x.png create mode 100644 javadoc/0.16.3/script-dir/jquery-3.6.1.min.js create mode 100644 javadoc/0.16.3/script-dir/jquery-ui.min.css create mode 100644 javadoc/0.16.3/script-dir/jquery-ui.min.js create mode 100644 javadoc/0.16.3/script.js create mode 100644 javadoc/0.16.3/search.js create mode 100644 javadoc/0.16.3/serialized-form.html create mode 100644 javadoc/0.16.3/stylesheet.css create mode 100644 javadoc/0.16.3/tag-search-index.js create mode 100644 javadoc/0.16.3/type-search-index.js diff --git a/bitcoin-standards.md b/bitcoin-standards.md index 600b33b26..8fa70fd4b 100644 --- a/bitcoin-standards.md +++ b/bitcoin-standards.md @@ -21,32 +21,32 @@ _Bitcoin improvement proposals_ are the communities way of standardising new ext BIP 11 m-of-n multisig transactions -ScriptBuilder +ScriptBuilder BIP 14 Protocol version and user agent -PeerGroup.setUserAgent() +PeerGroup.setUserAgent() BIP 16 Pay to script hash (P2SH) -LegacyAddress +LegacyAddress BIP 21 Bitcoin URI scheme -BitcoinURI +BitcoinURI BIP 31 Ping/pong messages -Peer.ping() +Peer.ping() BIP 32 HD wallets -DeterministicKeyChain +DeterministicKeyChain BIP 35 @@ -56,77 +56,77 @@ _Bitcoin improvement proposals_ are the communities way of standardising new ext BIP 37 Bloom filtering -PeerFilterProvider (used automatically) +PeerFilterProvider (used automatically) BIP 39 Mnemonic codes for representing private keys -MnemonicCode +MnemonicCode BIPs 70, 71, 72 Payment protocol -PaymentSession +PaymentSession BIP 38 Encrypted private key serialization -BIP38PrivateKey +BIP38PrivateKey BIP 111 NODE_BLOOM service bit -VersionMessage.NODE_BLOOM +VersionMessage.NODE_BLOOM BIP 130 sendheaders message -SendHeadersMessage +SendHeadersMessage BIP 133 feefilter message -FeeFilterMessage +FeeFilterMessage BIP 141 Segregated Witness (Consensus layer) -TransactionWitness, Transaction +TransactionWitness, Transaction BIP 143 Transaction Signature Verification for Version 0 Witness Program -Transaction.hashForWitnessSignature() +Transaction.hashForWitnessSignature() BIP 144 Segregated Witness (Peer Services) -Peer +Peer BIP 155 addrv2 message -AddressV2Message +AddressV2Message BIP 159 NODE_NETWORK_LIMITED service bit -VersionMessage.NODE_NETWORK_LIMITED +VersionMessage.NODE_NETWORK_LIMITED BIP 173 Base32 address format for native v0-16 witness outputs -Bech32, SegwitAddress +Bech32, SegwitAddress BIP 350 Bech32m format for v1+ witness addresses -Bech32, SegwitAddress +Bech32, SegwitAddress RFC 6979 Deterministic usage of ECDSA -ECKey +ECKey diff --git a/index.html b/index.html index fbbde3183..adc8eade5 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@

Getting started

Documentation

-Read the API documentation: 0.16.2 API documentation +Read the API documentation: 0.16.3 API documentation

There are also some more in depth articles covering various topics. For best understanding, read them in order.

diff --git a/javadoc/0.16.3/allclasses-index.html b/javadoc/0.16.3/allclasses-index.html new file mode 100644 index 000000000..f987fd9af --- /dev/null +++ b/javadoc/0.16.3/allclasses-index.html @@ -0,0 +1,1723 @@ + + + + +All Classes and Interfaces (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes and Interfaces

+
+
+
+
+
+
Class
+
Description
+ +
+
Parameters for Bitcoin-like networks.
+
+ +
+
An AbstractBlockChain 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.
+
+ +
+
Indicates whether new Block was on the best chain or not
+
+ +
 
+ +
Deprecated.
+ +
+
A base class which provides basic support for socket timeouts.
+
+ +
+
Base class for addresses, e.g.
+
+ +
 
+ +
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and a character isn't valid.
+
+ +
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the checksum isn't valid.
+
+ +
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the data isn't of the right size.
+
+ +
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address or private key with an invalid prefix (version header or human-readable part).
+
+ +
+
This exception is thrown by SegwitAddress when you try to decode data and the witness version doesn't + match the Bech32 encoding as per BIP350.
+
+ +
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address with a prefix (version header or human-readable part) that used by another network (usually: mainnet vs + testnet).
+
+ +
 
+ +
+
Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers.
+
+ +
+
Represents an "addrv2" message on the P2P network, which contains broadcast IP addresses of other peers.
+
+ +
+
This coin selector will select any transaction at all, regardless of where it came from or whether it was + confirmed yet.
+
+ +
+
Indicates that an attempt was made to upgrade a random wallet to deterministic, but there were no non-rotating + random keys to use as source material for the seed.
+
+ +
+
Find/create App Data Directory in correct platform-specific location.
+
+ +
+
Base58 is a way to encode Bitcoin addresses (or arbitrary data) as alphanumeric strings.
+
+ +
+
A simple implementation of TaggableObject that uses a hashmap that is + synchronized on this object's Java monitor.
+
+ +
+
A KeyChain that implements the simplest model possible: it can have keys imported into it, and just acts as + a dumb bag of keys.
+
+ +
+
Whether this basic key chain is empty, full of regular (usable for signing) keys, or full of watching keys.
+
+ +
+
Implementation of the Bech32 encoding.
+
+ +
 
+ +
 
+ +
+
Implementation of BIP 38 + passphrase-protected private keys.
+
+ +
 
+ +
+
Methods to serialize and de-serialize messages to the Bitcoin network format as defined in + the protocol specification.
+
+ +
 
+ +
+
Provides a standard implementation of a Bitcoin URI with support for the following:
+
+ +
+
Exception to provide the following to BitcoinURI:
+
+ +
+
A block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system.
+
+ +
+
Flags used to control which elements of block validation are done on + received blocks.
+
+ +
+
A BlockChain implements the simplified payment verification mode of the Bitcoin protocol.
+
+ +
+
This class reads block files stored in the Bitcoin Core format.
+
+ +
+
Creates a simple connection to a server using a StreamConnection to process data.
+
+ +
+
A thin wrapper around a set of BlockingClients.
+
+ +
+
Represents Block Locator in GetBlocks and GetHeaders messages
+
+ +
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+ +
+
An implementor of BlockStore saves StoredBlock objects to disk.
+
+ +
+
Thrown when something goes wrong with storing a block.
+
+ +
+
A Bloom filter is a probabilistic data structure which can be sent to another client so that it can avoid + sending us transactions that aren't relevant to our set of keys.
+
+ +
+
The BLOOM_UPDATE_* constants control when the bloom filter is auto-updated by the peer using + it as a filter, either never, for all outputs or only for P2PK outputs (default)
+
+ +
+
A Java logging formatter that writes more compact output than the default.
+
+ +
+
This class, a concrete extension of BtcFormat, is distinguished by its + accommodation of multiple denominational units as follows:
+
+ +
+
Enum for specifying the style of currency indicators that are used + when formatting, either codes or symbols.
+
+ +
+
This class, a concrete extension of BtcFormat, is distinguished in that each + instance formats and by-default parses all Bitcoin monetary values in units of a single + denomination that is specified at the time that instance is constructed.
+
+ +
+
Instances of this class format and parse locale-specific numerical + representations of Bitcoin monetary values.
+
+ +
+
This class constructs new instances of BtcFormat, allowing for the + configuration of those instances before they are constructed.
+
+ +
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+ +
+
Thrown by SPVBlockStore when the process cannot gain exclusive access to the chain file.
+
+ +
+
Vends hard-coded StoredBlocks for blocks throughout the chain.
+
+ +
+
Represents a Message type that can be contained within another Message.
+
+ +
+
This is just a wrapper for the i (child number) as per BIP 32 with a boolean getter for the most significant bit + and a getter for the actual 0-based child number.
+
+ +
+
A generic interface for an object which keeps track of a set of open client connections, creates new ones and + ensures they are serviced properly.
+
+ +
+
Represents a monetary Bitcoin value.
+
+ +
+
Represents the results of a + CoinSelector.select(Coin, List) operation.
+
+ +
+
A CoinSelector is responsible for picking some outputs to spend, from the list of all possible outputs.
+
+ +
+
The Context object holds various objects and pieces of configuration that are scoped to a specific instantiation of + bitcoinj for a specific network.
+
+ +
+
A ThreadFactory that propagates a Context from the creating + thread into the new thread.
+
+ +
 
+ +
+
This signer may be used as a template for creating custom multisig transaction signers.
+
+ +
+
Thread factory whose threads are marked as daemon and won't prevent process exit.
+
+ +
+
A generic full pruned block store for a relational database.
+
+ +
+
A DecryptingKeyBag filters a pre-existing key bag, decrypting keys as they are requested using the provided + AES key.
+
+ +
+
This class implements a CoinSelector which attempts to get the highest priority + possible.
+
+ +
+
Default factory for creating keychains while de-serializing.
+
+ +
+
The default risk analysis.
+
+ +
 
+ +
+
The reason a transaction is considered non-standard, returned by + DefaultRiskAnalysis.isStandard(Transaction).
+
+ +
+
A DeterministicHierarchy calculates and keeps a whole tree (hierarchy) of keys originating from a single + root key.
+
+ +
+
A deterministic key is a node in a DeterministicHierarchy.
+
+ +
+
A deterministic key chain is a KeyChain that uses the + BIP 32 standard, as implemented by + DeterministicHierarchy, to derive all the keys in the keychain from a master seed.
+
+ +
 
+ +
+
Holds the seed bytes for the BIP32 deterministic wallet algorithm, inside a + DeterministicKeyChain.
+
+ +
+
Indicates that an attempt was made to use HD wallet features on a wallet that was deserialized from an old, + pre-HD random wallet without calling upgradeToDeterministic() beforehand.
+
+ +
+
Indicates that the pre-HD random wallet is encrypted, so you should try the upgrade again after getting the + users password.
+
+ +
+
Supports peer discovery through DNS.
+
+ +
+
Implements discovery from a single DNS host.
+
+ +
+
An implementation of AbstractPeerDataEventListener that listens to chain download events and tracks progress + as a percentage.
+
+ +
 
+ +
+
Parses and generates private keys in the form used by the Bitcoin "dumpprivkey" command.
+
+ +
+
Represents an elliptic curve public and (optionally) private key, usable for digital signatures but not encryption.
+
+ +
+
Groups the two components that make up a signature, and provides a way to encode to DER form, which is + how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol.
+
+ +
 
+ +
 
+ +
+
Parent class for header only messages that don't have a payload.
+
+ +
+
Provides a uniform way to access something that can be optionally encrypted with a + KeyCrypter, yielding an EncryptedData, and + which can have a creation time associated with it.
+
+ +
+
An encryptable key chain is a key-chain that can be encrypted with a user-provided password or AES key.
+
+ +
+
An instance of EncryptedData is a holder for an initialization vector and encrypted bytes.
+
+ +
+
An exchange rate is expressed as a ratio of a Coin and a Fiat amount.
+
+ +
+
Tracks successes and failures and calculates a time to retry the operation.
+
+ +
+
Parameters to configure a particular kind of exponential backoff.
+
+ +
+
Represents an "feefilter" message on the P2P network, which instructs a peer to filter transaction invs for + transactions that fall below the feerate provided.
+
+ +
+
Represents a monetary fiat value.
+
+ +
+
A FilteredBlock is used to relay a block with its transactions filtered using a BloomFilter.
+
+ +
+
A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.
+
+ +
+
A reusable object that will calculate, given a list of PeerFilterProviders, a merged + BloomFilter and earliest key time for all of them.
+
+ +
 
+ +
+
A FullPrunedBlockChain works in conjunction with a FullPrunedBlockStore to verify all the rules of the + Bitcoin system, with the downside being a large cost in system resources.
+
+ +
+
An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism.
+
+ +
+
Represents the "getaddr" P2P protocol message, which requests network AddressMessages from a peer.
+
+ +
+
Represents the "getblocks" P2P network message, which requests the hashes of the parts of the block chain we're + missing.
+
+ +
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+ +
+
Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their + hashes.
+
+ +
+
The "getheaders" command is structurally identical to "getblocks", but has different meaning.
+
+ +
+
This command is supported only by Bitcoin XT nodes, which + advertise themselves using the second service bit flag.
+
+ +
+
A full pruned block store using the H2 pure-java embedded database.
+
+ +
 
+ +
+
Implementation of the BIP 32 + deterministic wallet child key generation algorithm.
+
+ +
 
+ +
 
+ +
+
HD Key derivation path.
+
+ +
+
Static utilities used in BIP 32 Hierarchical Deterministic Wallets (HDW).
+
+ +
+
A protocol message that contains a repeated series of block headers, sent in response to the "getheaders" command.
+
+ +
+
A class that knows how to read signed sets of seeds over HTTP, using a simple protobuf based protocol.
+
+ +
 
+ +
+
Thrown to indicate that you don't have enough money available to perform the requested operation.
+
+ +
 
+ +
 
+ +
+
Represents the "inv" P2P network message.
+
+ +
+
A KeyBag is simply an object that can map public keys, their 160-bit hashes and script hashes to ECKey + and RedeemData objects.
+
+ +
+
A KeyChain is a class that stores a collection of keys for a Wallet.
+
+ +
 
+ +
 
+ +
+
Factory interface for creation keychains while de-serializing a wallet.
+
+ +
+
A KeyChainGroup is used by the Wallet and manages: a BasicKeyChain object + (which will normally be empty), and zero or more DeterministicKeyChains.
+
+ +
+
Builder for KeyChainGroup.
+
+ +
+
Defines a structure for hierarchical deterministic wallets.
+
+ +
+
A KeyCrypter can be used to encrypt and decrypt a message.
+
+ +
+
Exception to provide the following:
+
+ +
+
This exception is thrown when a private key or seed is decrypted, the decrypted message is damaged + (e.g.
+
+ +
+
This exception is thrown when a private key or seed is decrypted, it doesn't match its public key any + more.
+
+ +
+
This class encrypts and decrypts byte arrays and strings using scrypt as the + key derivation function and AES for the encryption.
+
+ +
+
A coin selector that takes all coins assigned to keys created before the given timestamp.
+
+ +
+
A wrapper around ECPoint that delays decoding of the point for as long as possible.
+
+ +
+
A Bitcoin address looks like 1MsScoe2fTJoq4ZPdQgqyhgWeoNamYPevy and is derived from an elliptic curve public key + plus a set of network parameters.
+
+ +
+
An SPV block store that writes every header it sees to a LevelDB.
+
+ +
+
+ An implementation of a Fully Pruned Block Store using a leveldb implementation as the backing data store.
+
+ +
+
A SecureRandom implementation that is able to override the standard JVM provided implementation, and which simply + serves random numbers by reading /dev/urandom.
+
+ +
+
A simple wrapper around a listener and an executor, with some utility methods.
+
+ +
+
Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.
+
+ +
+
TransactionSigner implementation for signing inputs using keys from provided KeyBag.
+
+ +
+
Parameters for the main production network on which people trade goods and services.
+
+ +
+
A multi-signature keychain using synchronized HD keys (a.k.a HDM)
+
+ +
+ +
+ +
+
Keeps StoredBlocks in memory.
+
+ +
+
Keeps StoredBlocks, StoredUndoableBlocks and UTXOs in memory.
+
+ +
 
+ +
+
The "mempool" message asks a remote peer to announce all transactions in its memory pool, possibly restricted by + any Bloom filter set on the connection.
+
+ +
+
A Message is a data structure that can be serialized/deserialized using the Bitcoin serialization format.
+
+ +
+
Generic interface for classes which serialize/deserialize messages.
+
+ +
+
A target to which messages can be written/connection can be closed
+
+ +
+
This transaction signer resolves missing signatures in accordance with the given Wallet.MissingSigsMode.
+
+ +
+
A MnemonicCode object may be used to convert between binary seed values and + lists of words per the BIP 39 + specification
+
+ +
+
Exceptions thrown by the MnemonicCode module.
+
+ +
+
Thrown when a list of MnemonicCode words fails the checksum check.
+
+ +
+
Thrown when an argument to MnemonicCode is the wrong length.
+
+ +
+
Thrown when a word is encountered which is not in the MnemonicCode's word list.
+
+ +
+
Classes implementing this interface represent a monetary value, such as a Bitcoin or fiat amount.
+
+ +
+
+ Utility for formatting and parsing coin values to and from human readable form.
+
+ +
+
MultiplexingDiscovery queries multiple PeerDiscovery objects, optionally shuffles their responses and then returns the results, + thus selecting randomly between them and reducing the influence of any particular seed.
+
+ +
+
A full pruned block store using the MySQL database engine.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
This class holds native methods to handle ECDSA verification.
+
+ +
+
Assertion utilities for NativeSecp256k1
+
+ +
+
Assertion failure exception
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
An event listener that relays events to a native C++ object.
+
+ +
+
NetworkParameters contains the data needed for working with an instantiation of a Bitcoin chain.
+
+ +
 
+ +
+
Utility class that holds all the registered NetworkParameters types used for address auto discovery.
+
+ +
+
Listener interface for when a new block on the best chain is seen.
+
+ +
+
Creates a simple connection to a server using a StreamConnection to process data.
+
+ +
+
A class which manages a set of client connections.
+
+ +
+
Creates a simple server listener which listens for incoming client connections and uses a StreamConnection to + process data.
+
+ +
+
Sent by a peer when a getdata request doesn't find the requested data in the mempool.
+
+ +
+
Called when a new transaction is broadcast over the network.
+
+ +
+
Exception to provide the following to BitcoinURI:
+
+ +
+
A data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner.
+
+ +
+
Utility methods and constants for working with + BIP 70 aka the payment protocol.
+
+ +
+
Message returned by the merchant in response to a Payment message.
+
+ +
+
Value object to hold amount/script pairs.
+
+ +
+
Information about the X.509 signature's issuer and subject.
+
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
+
Provides a standard implementation of the Payment Protocol (BIP 0070)
+
+ +
+
This is a clean-room implementation of PBKDF2 using RFC 2898 as a reference.
+
+ +
+
A Peer handles the high level communication with a Bitcoin node, extending a PeerSocketHandler which + handles low-level message (de)serialization.
+
+ +
+
A PeerAddress holds an IP address and port number representing the network location of + a peer in the Bitcoin P2P network.
+
+ +
+
Implementors can listen to events indicating a new peer connecting.
+
+ +
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+ +
+
Implementors can listen to events indicating a peer disconnecting.
+
+ +
+
Implementors can listen to events for peers being discovered.
+
+ +
+
A PeerDiscovery object is responsible for finding addresses of other nodes in the Bitcoin P2P network.
+
+ +
 
+ +
+
Thrown when a problem occurs in communicating with a peer, and we should + retry.
+
+ +
+
An interface which provides the information required to properly filter data downloaded from Peers.
+
+ +
+
Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages + the interaction between them all.
+
+ +
 
+ +
 
+ +
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+ +
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+ +
 
+ +
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+ +
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+ +
 
+ +
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+ +
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+ +
 
+ +
+
Handles high-level message (de)serialization for peers, acting as the bridge between the + org.bitcoinj.net classes and Peer.
+
+ +
+
Instances of this class are not safe for use by multiple threads.
+
+ +
+
Instances of this class are not safe for use by multiple threads.
+
+ +
+
A full pruned block store using the Postgres database engine.
+
+ +
+
+ The following format is often used to represent some type of data (e.g.
+
+ +
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+ +
 
+ +
 
+ +
 
+ +
+
+ + Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+
+ +
+
+ + Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+
+ +
 
+ +
+
Protobuf type wallet.EncryptedData
+
+ +
+
Protobuf type wallet.EncryptedData
+
+ +
 
+ +
+
+ An exchange rate between Bitcoin and some fiat currency.
+
+ +
+
+ An exchange rate between Bitcoin and some fiat currency.
+
+ +
 
+ +
+
+ An extension to the wallet
+
+ +
+
+ An extension to the wallet
+
+ +
 
+ +
+
+ + A key used to control Bitcoin spending.
+
+ +
+
+ + A key used to control Bitcoin spending.
+
+ +
+
Protobuf enum wallet.Key.OutputScriptType
+
+ +
+
Protobuf enum wallet.Key.Type
+
+ +
 
+ +
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+
+ +
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+
+ +
 
+ +
+
Protobuf type payments.Payment
+
+ +
+
Protobuf type payments.Payment
+
+ +
+
Protobuf type payments.PaymentACK
+
+ +
+
Protobuf type payments.PaymentACK
+
+ +
 
+ +
+
Protobuf type payments.PaymentDetails
+
+ +
+
Protobuf type payments.PaymentDetails
+
+ +
 
+ +
 
+ +
+
Protobuf type payments.PaymentRequest
+
+ +
+
Protobuf type payments.PaymentRequest
+
+ +
 
+ +
+
Protobuf type wallet.PeerAddress
+
+ +
+
Protobuf type wallet.PeerAddress
+
+ +
 
+ +
+
Protobuf type wallet.Script
+
+ +
+
Protobuf type wallet.Script
+
+ +
 
+ +
+
Protobuf type wallet.ScriptWitness
+
+ +
+
Protobuf type wallet.ScriptWitness
+
+ +
 
+ +
+
+ The parameters used in the scrypt key derivation function.
+
+ +
+
+ The parameters used in the scrypt key derivation function.
+
+ +
 
+ +
+
+ + A simple key->value mapping that has no interpreted content at all.
+
+ +
+
+ + A simple key->value mapping that has no interpreted content at all.
+
+ +
 
+ +
+
Protobuf type wallet.Transaction
+
+ +
+
Protobuf type wallet.Transaction
+
+ +
+
+ + This is a bitfield oriented enum, with the following bits: + + bit 0 - spent + bit 1 - appears in alt chain + bit 2 - appears in best chain + bit 3 - double-spent + bit 4 - pending (we would like the tx to go into the best chain) + + Not all combinations are interesting, just the ones actually used in the enum.
+
+ +
+
+ For what purpose the transaction was created.
+
+ +
+
+ + A description of the confidence we have that a transaction cannot be reversed in the future.
+
+ +
+
+ + A description of the confidence we have that a transaction cannot be reversed in the future.
+
+ +
+
+ Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.
+
+ +
+
Protobuf enum wallet.TransactionConfidence.Type
+
+ +
 
+ +
+
Protobuf type wallet.TransactionInput
+
+ +
+
Protobuf type wallet.TransactionInput
+
+ +
 
+ +
 
+ +
+
Protobuf type wallet.TransactionOutput
+
+ +
+
Protobuf type wallet.TransactionOutput
+
+ +
 
+ +
+
+ A bitcoin wallet
+
+ +
+
+ A bitcoin wallet
+
+ +
+
+ + The encryption type of the wallet.
+
+ +
 
+ +
+
Protobuf type payments.X509Certificates
+
+ +
+
Protobuf type payments.X509Certificates
+
+ +
 
+ +
+
PrunedException is thrown in cases where a fully verifying node has deleted (pruned) old block data that turned + out to be necessary for handling a re-org.
+
+ +
+
This class aggregates data required to spend transaction output.
+
+ +
+
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
+
+ +
+
This exception is used by the TransactionBroadcast class to indicate that a broadcast + Transaction has been rejected by the network, for example because it violates a + protocol rule.
+
+ +
+
A message sent by nodes when a message we sent was rejected (ie a transaction had too little fee/was invalid/etc).
+
+ +
 
+ +
+
Listener interface for when the best chain has changed.
+
+ +
+
Exception to provide the following to BitcoinURI:
+
+ +
+
A RiskAnalysis represents an analysis of how likely it is that a transaction (and its dependencies) represents a + possible double spending attack.
+
+ +
 
+ +
 
+ +
+
Programs embedded inside transactions that control redemption of payments.
+
+ +
+
Enumeration to encapsulate the type of this script.
+
+ + + +
+
Tools for the construction of commonly used script types.
+
+ +
+
A script element that is either a data push (signature, pubkey, etc) or a non-push (logic, numeric, etc) operation.
+
+ +
 
+ +
 
+ +
+
Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol.
+
+ +
+
This is a Script pattern matcher with some typical script patterns
+
+ +
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+ +
+
This class holds the context reference used in native methods to handle ECDSA operations.
+
+ +
+
SeedPeers stores a pre-determined list of Bitcoin node addresses.
+
+ +
+
Implementation of native segwit addresses.
+
+ +
+
Represents the sendaddrv2 P2P protocol message, which indicates that a node can understand and prefers + to receive addrv2 messages instead of addr messages.
+
+ +
+
+ A new message, "sendheaders", which indicates that a node prefers to receive new block announcements via a "headers" + message rather than an "inv".
+
+ +
+
A SendRequest gives the wallet information about precisely how to send money to a recipient or set of recipients.
+
+ +
+
A Sha256Hash wraps a byte[] so that Sha256Hash.equals(java.lang.Object) and Sha256Hash.hashCode() work correctly, allowing it to be used as a key in a + map.
+
+ +
 
+ +
+
An SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer.
+
+ +
+
Wraps a Block object with extra data that can be derived from the block chain but is slow or inconvenient to + calculate.
+
+ +
+
Contains minimal data necessary to disconnect/connect the transactions + in the stored block at will.
+
+ +
+
A generic handler which is used in NioServer, NioClient and BlockingClient to handle incoming + data streams.
+
+ +
+
A factory which generates new StreamConnections when a new connection is opened.
+
+ +
+
An object that can carry around and possibly serialize a map of strings to immutable byte arrays.
+
+ +
+
Parameters for the testnet, a separate public instance of Bitcoin that has relaxed rules suitable for development + and testing of applications and new Bitcoin versions.
+
+ +
+
Various threading related utilities.
+
+ +
 
+ +
+
A transaction represents the movement of coins from some addresses to some other addresses.
+
+ +
+
This enum describes the underlying reason the transaction was created.
+
+ +
+
These constants are a part of a scriptSig signature on the inputs.
+
+ +
+
This interface is used to abstract the Wallet and the Transaction
+
+ +
+
Represents a single transaction broadcast that we are performing.
+
+ +
+
An interface for receiving progress information on the propagation of the tx, from 0.0 to 1.0
+
+ +
+
A general interface which declares the ability to broadcast transactions.
+
+ +
+
A TransactionConfidence object tracks data you can use to make a confidence decision about a transaction.
+
+ +
+
Describes the state of the transaction in general terms.
+
+ +
 
+ +
+
A confidence listener is informed when the level of TransactionConfidence is updated by something, like + for example a Wallet.
+
+ +
+
An enum that describes why a transaction confidence listener is being invoked (i.e.
+
+ +
+
Information about where the transaction was first seen (network, sent direct from peer, created by ourselves).
+
+ +
+
Implementors are called when confidence of a transaction changes.
+
+ +
+
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.
+
+ +
 
+ +
 
+ +
+
This message is a reference or pointer to an output of a different transaction.
+
+ +
+
A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value.
+
+ +
+
TransactionOutputChanges represents a delta to the set of unspent outputs.
+
+ +
+
Listener interface for when we receive a new block that contains a relevant + transaction.
+
+ +
+
A TransactionSignature wraps an ECKey.ECDSASignature and adds methods for handling + the additional SIGHASH mode byte that is used.
+
+ +
+
Implementations of this interface are intended to sign inputs of the given transaction.
+
+ +
 
+ +
+
This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively + shared by transaction signers.
+
+ +
 
+ +
+
An implementation of TrustStoreLoader handles fetching a KeyStore from the operating system, a file, etc.
+
+ +
 
+ +
 
+ +
+
Tracks transactions that are being announced across the network.
+
+ +
+
Network parameters used by the bitcoinj unit tests (and potentially your own).
+
+ +
+
Instances of this class are not safe for use by multiple threads.
+
+ +
+
Thrown by the WalletProtobufSerializer when the serialized protocol buffer is either corrupted, + internally inconsistent or appears to be from the future.
+
+ +
 
+ +
 
+ +
 
+ +
+
An unsynchronized implementation of ByteArrayOutputStream that will return the backing byte array if its length == size().
+
+ +
+
A collection of various utility methods that are helpful for working with the Bitcoin protocol.
+
+ +
+
A UTXO message contains the information necessary to check a spending transaction.
+
+ +
+
A UTXOProvider encapsulates functionality for returning unspent transaction outputs, + for use by the wallet or other code that crafts spends.
+
+ +
 
+ +
+
Message representing a list of unspent transaction outputs ("utxos"), returned in response to sending a + GetUTXOsMessage ("getutxos").
+
+ +
+
A variable-length encoded unsigned integer using Satoshi's encoding (a.k.a.
+
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
 
+ +
+
The verack message, sent by a client accepting the version message they + received from their peer.
+
+ +
+
A VersionMessage holds information exchanged during connection setup with another peer.
+
+ +
+
Caching counter for the block versions within a moving window.
+
+ +
+
A Wallet stores keys and a record of transactions that send and receive value from those keys.
+
+ +
+
Thrown if the private keys and seed of this wallet cannot be decrypted due to the supplied encryption + key or password being wrong.
+
+ +
+
It's possible to calculate a wallets balance from multiple points of view.
+
+ +
+
Class of exceptions thrown in Wallet.completeTx(SendRequest).
+
+ +
+
Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after + being reduced for the fee was smaller than the min payment.
+
+ +
+
Thrown if the resultant transaction would violate the dust rules (an output that's too small to be worthwhile).
+
+ +
+
Thrown if the resultant transaction is too big for Bitcoin to process.
+
+ +
+
Enumerates possible resolutions for missing signatures.
+
+ +
+
Thrown if there is more than one OP_RETURN output for the resultant transaction.
+
+ +
+
A SendResult is returned to you as part of sending coins to a recipient.
+
+ +
+
Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj app.
+
+ +
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+ +
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+ +
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+ +
+
An object implementing this interface can be added to a Wallet and provide arbitrary byte arrays that will + be serialized alongside the wallet.
+
+ +
+
A class that handles atomic and optionally delayed writing of the wallet file to disk.
+
+ +
+
Implementors can do pre/post treatment of the wallet file.
+
+ +
+
Serialize and de-serialize a wallet to a byte stream containing a + protocol buffer.
+
+ +
 
+ +
+
Implementors are called when the wallet is reorganized.
+
+ +
+
Stores data about a transaction that is only relevant to the Wallet class.
+
+ +
 
+ +
+
X509Utils provides tools for working with X.509 certificates and keystores, as used in the BIP 70 payment protocol.
+
+
+
+
+
+
+
+ + diff --git a/javadoc/0.16.3/allpackages-index.html b/javadoc/0.16.3/allpackages-index.html new file mode 100644 index 000000000..8758eb88e --- /dev/null +++ b/javadoc/0.16.3/allpackages-index.html @@ -0,0 +1,138 @@ + + + + +All Packages (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
Package Summary
+
+
Package
+
Description
+ +
 
+ +
 
+ +
 
+ +
+
The core package contains classes for network messages like Block and + Transaction, peer connectivity via PeerGroup, + and block chain management.
+
+ +
 
+ +
+
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.
+
+ +
 
+ +
+
High level wrapper APIs around the bitcoinj building blocks.
+
+ +
+
Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for + using SOCKS proxies, Tor, SSL etc).
+
+ +
+
Classes that know how to discover peers in the P2P network using DNS or HTTP.
+
+ +
+
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main + network, the testnet, regtest mode, unit testing params and so on.
+
+ +
+
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses + and authentication.
+
+ +
+
Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs.
+
+ +
+
Transaction signers know how to calculate signatures over transactions in different contexts, for example, using + local private keys or fetching them from remote servers.
+
+ +
+
Block stores persist blockchain data downloaded from remote peers.
+
+ +
+
Parsing and handling of bitcoin: textual URIs as found in qr codes and web links.
+
+ +
+
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files, + a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
+
+ +
+
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.
+
+ +
 
+
+
+
+
+ + diff --git a/javadoc/0.16.3/constant-values.html b/javadoc/0.16.3/constant-values.html new file mode 100644 index 000000000..61323d998 --- /dev/null +++ b/javadoc/0.16.3/constant-values.html @@ -0,0 +1,1824 @@ + + + + +Constant Field Values (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Constant Field Values

+
+

Contents

+ +
+
+
+

org.bitcoin.*

+ + +
+
+

org.bitcoinj.*

+ + + + +
    +
  • +
    org.bitcoinj.script.Script
    +
    +
    Modifier and Type
    +
    Constant Field
    +
    Value
    +
    public static final int
    + +
    15
    +
    public static final long
    + +
    520L
    +
    public static final int
    + +
    75
    +
    +
  • +
  • +
    org.bitcoinj.script.ScriptOpCodes
    +
    +
    Modifier and Type
    +
    Constant Field
    +
    Value
    +
    public static final int
    + +
    0
    +
    public static final int
    + +
    146
    +
    public static final int
    + +
    81
    +
    public static final int
    + +
    90
    +
    public static final int
    + +
    91
    +
    public static final int
    + +
    92
    +
    public static final int
    + +
    93
    +
    public static final int
    + +
    94
    +
    public static final int
    + +
    95
    +
    public static final int
    + +
    96
    +
    public static final int
    + +
    139
    +
    public static final int
    + +
    79
    +
    public static final int
    + +
    140
    +
    public static final int
    + +
    82
    +
    public static final int
    + +
    142
    +
    public static final int
    + +
    109
    +
    public static final int
    + +
    110
    +
    public static final int
    + +
    141
    +
    public static final int
    + +
    112
    +
    public static final int
    + +
    113
    +
    public static final int
    + +
    114
    +
    public static final int
    + +
    83
    +
    public static final int
    + +
    111
    +
    public static final int
    + +
    84
    +
    public static final int
    + +
    85
    +
    public static final int
    + +
    86
    +
    public static final int
    + +
    87
    +
    public static final int
    + +
    88
    +
    public static final int
    + +
    89
    +
    public static final int
    + +
    144
    +
    public static final int
    + +
    147
    +
    public static final int
    + +
    132
    +
    public static final int
    + +
    154
    +
    public static final int
    + +
    155
    +
    public static final int
    + +
    126
    +
    public static final int
    + +
    177
    +
    public static final int
    + +
    174
    +
    public static final int
    + +
    175
    +
    public static final int
    + +
    178
    +
    public static final int
    + +
    172
    +
    public static final int
    + +
    173
    +
    public static final int
    + +
    171
    +
    public static final int
    + +
    116
    +
    public static final int
    + +
    150
    +
    public static final int
    + +
    117
    +
    public static final int
    + +
    118
    +
    public static final int
    + +
    103
    +
    public static final int
    + +
    104
    +
    public static final int
    + +
    135
    +
    public static final int
    + +
    136
    +
    public static final int
    + +
    0
    +
    public static final int
    + +
    108
    +
    public static final int
    + +
    160
    +
    public static final int
    + +
    162
    +
    public static final int
    + +
    169
    +
    public static final int
    + +
    170
    +
    public static final int
    + +
    99
    +
    public static final int
    + +
    115
    +
    public static final int
    + +
    255
    +
    public static final int
    + +
    131
    +
    public static final int
    + +
    128
    +
    public static final int
    + +
    159
    +
    public static final int
    + +
    161
    +
    public static final int
    + +
    152
    +
    public static final int
    + +
    164
    +
    public static final int
    + +
    163
    +
    public static final int
    + +
    151
    +
    public static final int
    + +
    149
    +
    public static final int
    + +
    143
    +
    public static final int
    + +
    119
    +
    public static final int
    + +
    97
    +
    public static final int
    + +
    176
    +
    public static final int
    + +
    185
    +
    public static final int
    + +
    177
    +
    public static final int
    + +
    178
    +
    public static final int
    + +
    179
    +
    public static final int
    + +
    180
    +
    public static final int
    + +
    181
    +
    public static final int
    + +
    182
    +
    public static final int
    + +
    183
    +
    public static final int
    + +
    184
    +
    public static final int
    + +
    145
    +
    public static final int
    + +
    100
    +
    public static final int
    + +
    156
    +
    public static final int
    + +
    157
    +
    public static final int
    + +
    158
    +
    public static final int
    + +
    133
    +
    public static final int
    + +
    120
    +
    public static final int
    + +
    121
    +
    public static final int
    + +
    76
    +
    public static final int
    + +
    77
    +
    public static final int
    + +
    78
    +
    public static final int
    + +
    80
    +
    public static final int
    + +
    137
    +
    public static final int
    + +
    138
    +
    public static final int
    + +
    106
    +
    public static final int
    + +
    129
    +
    public static final int
    + +
    166
    +
    public static final int
    + +
    122
    +
    public static final int
    + +
    123
    +
    public static final int
    + +
    153
    +
    public static final int
    + +
    167
    +
    public static final int
    + +
    168
    +
    public static final int
    + +
    130
    +
    public static final int
    + +
    148
    +
    public static final int
    + +
    127
    +
    public static final int
    + +
    124
    +
    public static final int
    + +
    107
    +
    public static final int
    + +
    81
    +
    public static final int
    + +
    125
    +
    public static final int
    + +
    98
    +
    public static final int
    + +
    101
    +
    public static final int
    + +
    105
    +
    public static final int
    + +
    102
    +
    public static final int
    + +
    165
    +
    public static final int
    + +
    134
    +
    +
  • +
+ + + + +
+
+
+
+ + diff --git a/javadoc/0.16.3/deprecated-list.html b/javadoc/0.16.3/deprecated-list.html new file mode 100644 index 000000000..9da536f1f --- /dev/null +++ b/javadoc/0.16.3/deprecated-list.html @@ -0,0 +1,294 @@ + + + + +Deprecated List (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Deprecated API

+

Contents

+ +
+ + + + +
+
+
+ + diff --git a/javadoc/0.16.3/element-list b/javadoc/0.16.3/element-list new file mode 100644 index 000000000..1fab3d988 --- /dev/null +++ b/javadoc/0.16.3/element-list @@ -0,0 +1,19 @@ +org.bitcoin +org.bitcoin.crawler +org.bitcoin.protocols.payments +org.bitcoinj.core +org.bitcoinj.core.listeners +org.bitcoinj.crypto +org.bitcoinj.jni +org.bitcoinj.kits +org.bitcoinj.net +org.bitcoinj.net.discovery +org.bitcoinj.params +org.bitcoinj.protocols.payments +org.bitcoinj.script +org.bitcoinj.signers +org.bitcoinj.store +org.bitcoinj.uri +org.bitcoinj.utils +org.bitcoinj.wallet +org.bitcoinj.wallet.listeners diff --git a/javadoc/0.16.3/help-doc.html b/javadoc/0.16.3/help-doc.html new file mode 100644 index 000000000..3e994685a --- /dev/null +++ b/javadoc/0.16.3/help-doc.html @@ -0,0 +1,192 @@ + + + + +API Help (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+

JavaDoc Help

+ +
+
+

Navigation

+Starting from the Overview page, you can browse the documentation using the links in each page, and in the navigation bar at the top of each page. The Index and Search box allow you to navigate to specific declarations and summary pages, including: All Packages, All Classes and Interfaces + +
+
+
+

Kinds of Pages

+The following sections describe the different kinds of pages in this collection. +
+

Overview

+

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+
+
+

Package

+

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain the following categories:

+
    +
  • Interfaces
  • +
  • Classes
  • +
  • Enum Classes
  • +
  • Exceptions
  • +
  • Errors
  • +
  • Annotation Interfaces
  • +
+
+
+

Class or Interface

+

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a declaration and description, member summary tables, and detailed member descriptions. Entries in each of these sections are omitted if they are empty or not applicable.

+
    +
  • Class Inheritance Diagram
  • +
  • Direct Subclasses
  • +
  • All Known Subinterfaces
  • +
  • All Known Implementing Classes
  • +
  • Class or Interface Declaration
  • +
  • Class or Interface Description
  • +
+
+
    +
  • Nested Class Summary
  • +
  • Enum Constant Summary
  • +
  • Field Summary
  • +
  • Property Summary
  • +
  • Constructor Summary
  • +
  • Method Summary
  • +
  • Required Element Summary
  • +
  • Optional Element Summary
  • +
+
+
    +
  • Enum Constant Details
  • +
  • Field Details
  • +
  • Property Details
  • +
  • Constructor Details
  • +
  • Method Details
  • +
  • Element Details
  • +
+

Note: Annotation interfaces have required and optional elements, but not methods. Only enum classes have enum constants. The components of a record class are displayed as part of the declaration of the record class. Properties are a feature of JavaFX.

+

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

+
+
+

Other Files

+

Packages and modules may contain pages with additional information related to the declarations nearby.

+
+
+

Tree (Class Hierarchy)

+

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

+
    +
  • When viewing the Overview page, clicking on TREE displays the hierarchy for all packages.
  • +
  • When viewing a particular package, class or interface page, clicking on TREE displays the hierarchy for only that package.
  • +
+
+
+

Deprecated API

+

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

+
+
+

Constant Field Values

+

The Constant Field Values page lists the static final fields and their values.

+
+
+

Serialized Form

+

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to those who implement rather than use the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See Also" section of the class description.

+
+
+

All Packages

+

The All Packages page contains an alphabetic index of all packages contained in the documentation.

+
+
+

All Classes and Interfaces

+

The All Classes and Interfaces page contains an alphabetic index of all classes and interfaces contained in the documentation, including annotation interfaces, enum classes, and record classes.

+
+
+

Index

+

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields in the documentation, as well as summary pages such as All Packages, All Classes and Interfaces.

+
+
+
+This help file applies to API documentation generated by the standard doclet.
+
+
+ + diff --git a/javadoc/0.16.3/index-all.html b/javadoc/0.16.3/index-all.html new file mode 100644 index 000000000..86e15ec5f --- /dev/null +++ b/javadoc/0.16.3/index-all.html @@ -0,0 +1,20235 @@ + + + + +Index (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I K L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form +

A

+
+
ABORT_ON_CONFLICT - Enum constant in enum class org.bitcoinj.core.TransactionInput.ConnectMode
+
 
+
abortDatabaseBatchWrite() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
abortDatabaseBatchWrite() - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
 
+
abortDatabaseBatchWrite() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
abortDatabaseBatchWrite() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
AbstractBitcoinNetParams - Class in org.bitcoinj.params
+
+
Parameters for Bitcoin-like networks.
+
+
AbstractBitcoinNetParams() - Constructor for class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
AbstractBlockChain - Class in org.bitcoinj.core
+
+
An AbstractBlockChain 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.
+
+
AbstractBlockChain(Context, List<? extends Wallet>, BlockStore) - Constructor for class org.bitcoinj.core.AbstractBlockChain
+
+
Constructs a BlockChain connected to the given list of listeners (wallets) and a store.
+
+
AbstractBlockChain(NetworkParameters, List<? extends Wallet>, BlockStore) - Constructor for class org.bitcoinj.core.AbstractBlockChain
+
+
Constructs a BlockChain connected to the given list of listeners (wallets) and a store.
+
+
AbstractBlockChain.NewBlockType - Enum Class in org.bitcoinj.core
+
+
Indicates whether new Block was on the best chain or not
+
+
AbstractKeyChainEventListener - Class in org.bitcoinj.wallet.listeners
+
 
+
AbstractKeyChainEventListener() - Constructor for class org.bitcoinj.wallet.listeners.AbstractKeyChainEventListener
+
 
+
AbstractPeerDataEventListener - Class in org.bitcoinj.core.listeners
+
+
Deprecated.
+
+
AbstractPeerDataEventListener() - Constructor for class org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
Deprecated.
+
AbstractTimeoutHandler - Class in org.bitcoinj.net
+
+
A base class which provides basic support for socket timeouts.
+
+
AbstractTimeoutHandler() - Constructor for class org.bitcoinj.net.AbstractTimeoutHandler
+
 
+
ACCOUNT_ONE_PATH - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
ACCOUNT_PATH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
ACCOUNT_ZERO_PATH - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
accountPath - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
accountPath(List<ChildNumber>) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Use an account path other than the default DeterministicKeyChain.ACCOUNT_ZERO_PATH.
+
+
accountPathFor(Script.ScriptType) - Method in interface org.bitcoinj.wallet.KeyChainGroupStructure
+
+
Map desired output script type to an account path
+
+
add(long) - Method in class org.bitcoinj.utils.VersionTally
+
+
Add a new block version to the tally, and return the count for that version + within the window.
+
+
add(Block) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Processes a received block and tries to add it to the chain.
+
+
add(Coin) - Method in class org.bitcoinj.core.Coin
+
 
+
add(FilteredBlock) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Processes a received block and tries to add it to the chain.
+
+
add(FilteredBlock) - Method in class org.bitcoinj.core.BlockChain
+
 
+
add(Sha256Hash) - Method in class org.bitcoinj.core.BlockLocator
+
+
Add a Sha256Hash to a newly created block locator.
+
+
add(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
 
+
add(ECPoint) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
addAccountPath(int) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
addAddress(InetAddress) - Method in class org.bitcoinj.core.PeerGroup
+
+
Convenience method for PeerGroup.addAddress(PeerAddress).
+
+
addAddress(InetAddress, int) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addAddress(PeerAddress) - Method in class org.bitcoinj.core.AddressMessage
+
 
+
addAddress(PeerAddress) - Method in class org.bitcoinj.core.AddressV1Message
+
 
+
addAddress(PeerAddress) - Method in class org.bitcoinj.core.AddressV2Message
+
 
+
addAddress(PeerAddress) - Method in class org.bitcoinj.core.PeerGroup
+
+
Add an address to the list of potential peers to connect to.
+
+
addAddress(PeerAddress, int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Add an address to the list of potential peers to connect to.
+
+
addAllAccountPath(Iterable<? extends Integer>) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
addAllBlockHash(Iterable<? extends ByteString>) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
addAllBlockRelativityOffsets(Iterable<? extends Integer>) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
addAllBroadcastBy(Iterable<? extends Protos.PeerAddress>) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
addAllCertificate(Iterable<? extends ByteString>) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
addAllData(Iterable<? extends ByteString>) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
addAllExtension(Iterable<? extends Protos.Extension>) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
addAllKey(Iterable<? extends Protos.Key>) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
addAllOutputs(Iterable<? extends Protos.Output>) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
addAllPath(Iterable<? extends Integer>) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
addAllRefundTo(Iterable<? extends Protos.Output>) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
addAllSeed(Iterable<? extends PeerSeedProtos.PeerSeedData>) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
addAllTags(Iterable<? extends Protos.Tag>) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
addAllTransaction(Iterable<? extends Protos.Transaction>) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
addAllTransactionInput(Iterable<? extends Protos.TransactionInput>) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
addAllTransactionOutput(Iterable<? extends Protos.TransactionOutput>) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
addAllTransactions(Iterable<? extends ByteString>) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
addAllWatchedScript(Iterable<? extends Protos.Script>) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
addAndActivateHDChain(DeterministicKeyChain) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Adds an HD chain to the chains list, and make it the default chain (from which keys are issued).
+
+
addAndActivateHDChain(DeterministicKeyChain) - Method in class org.bitcoinj.wallet.Wallet
+
+
Add a pre-configured keychain to the wallet.
+
+
addBlock(Block) - Method in class org.bitcoinj.core.InventoryMessage
+
 
+
addBlock(Sha256Hash, boolean) - Method in class org.bitcoinj.core.GetDataMessage
+
 
+
addBlockAppearance(Sha256Hash, int) - Method in class org.bitcoinj.core.Transaction
+
 
+
addBlockHash(ByteString) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
addBlockRelativityOffsets(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
addBlocksDownloadedEventListener(Executor, BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when new blocks are downloaded.
+
+
addBlocksDownloadedEventListener(Executor, BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adds a listener that will be notified on the given executor when + blocks are downloaded by the download peer.
+
+
addBlocksDownloadedEventListener(BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when new blocks are downloaded.
+
+
addBlocksDownloadedEventListener(BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addBroadcastBy(int, Protos.PeerAddress) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
addBroadcastBy(int, Protos.PeerAddress.Builder) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
addBroadcastBy(Protos.PeerAddress) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
addBroadcastBy(Protos.PeerAddress.Builder) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
addCertificate(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
addChain(DeterministicKeyChain) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Add a single chain.
+
+
addChainDownloadStartedEventListener(Executor, ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a blockchain downloaded starts.
+
+
addChainDownloadStartedEventListener(Executor, ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adds a listener that will be notified on the given executor when + chain download starts.
+
+
addChainDownloadStartedEventListener(ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a blockchain downloaded starts.
+
+
addChainDownloadStartedEventListener(ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addChangeEventListener(Executor, WalletChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addChangeEventListener(WalletChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addChunk(int, ScriptChunk) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given chunk at the given index in the program
+
+
addChunk(ScriptChunk) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given chunk to the end of the program
+
+
addCoinsReceivedEventListener(Executor, WalletCoinsReceivedEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object called when coins are received.
+
+
addCoinsReceivedEventListener(WalletCoinsReceivedEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object called when coins are received.
+
+
addCoinsSentEventListener(Executor, WalletCoinsSentEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object called when coins are sent.
+
+
addCoinsSentEventListener(WalletCoinsSentEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object called when coins are sent.
+
+
addConnectedEventListener(Executor, PeerConnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a peer is connected.
+
+
addConnectedEventListener(Executor, PeerConnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adds a listener that will be notified on the given executor when + new peers are connected to.
+
+
addConnectedEventListener(PeerConnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a peer is connected.
+
+
addConnectedEventListener(PeerConnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addCurrentKeyChangeEventListener(Executor, CurrentKeyChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Removes a listener for events that are run when a current key and/or address changes.
+
+
addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener, Executor) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Adds a listener for events that are run when a current key and/or address changes, on the given + executor.
+
+
addData(ByteString) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
addDisconnectedEventListener(Executor, PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a peer is disconnected.
+
+
addDisconnectedEventListener(Executor, PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adds a listener that will be notified on the given executor when + peers are disconnected from.
+
+
addDisconnectedEventListener(PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is invoked when a peer is disconnected.
+
+
addDisconnectedEventListener(PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addDiscoveredEventListener(Executor, PeerDiscoveredEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adds a listener that will be notified on the given executor when new + peers are discovered.
+
+
addDiscoveredEventListener(PeerDiscoveredEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addEventListener(Executor, TransactionConfidence.Listener) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Adds an event listener that will be run when this confidence object is updated.
+
+
addEventListener(TransactionConfidence.Listener) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Adds an event listener that will be run when this confidence object is updated.
+
+
addEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
addEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
addEventListener(KeyChainEventListener) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Adds a listener for events that are run when keys are added, on the user thread.
+
+
addEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Adds a listener for events that are run when keys are added, on the user thread.
+
+
addEventListener(KeyChainEventListener, Executor) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
addEventListener(KeyChainEventListener, Executor) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
addEventListener(KeyChainEventListener, Executor) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Adds a listener for events that are run when keys are added, on the given executor.
+
+
addEventListener(KeyChainEventListener, Executor) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Adds a listener for events that are run when keys are added, on the given executor.
+
+
addExtension(int, Protos.Extension) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
addExtension(int, Protos.Extension.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
addExtension(Protos.Extension) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
addExtension(Protos.Extension.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
addExtension(WalletExtension) - Method in class org.bitcoinj.wallet.Wallet
+
+
By providing an object implementing the WalletExtension interface, you can save and load arbitrary + additional data that will be stored with the wallet.
+
+
addFilteredBlock(Sha256Hash) - Method in class org.bitcoinj.core.GetDataMessage
+
 
+
addGetDataEventListener(Executor, GetDataEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called when messages are received.
+
+
addGetDataEventListener(Executor, GetDataEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addGetDataEventListener(GetDataEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called when messages are received.
+
+
addGetDataEventListener(GetDataEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addInput(Sha256Hash, long, Script) - Method in class org.bitcoinj.core.Transaction
+
+
Creates and adds an input to this transaction, with no checking that it's valid.
+
+
addInput(TransactionInput) - Method in class org.bitcoinj.core.Transaction
+
+
Adds an input directly, with no checking that it's valid.
+
+
addInput(TransactionOutput) - Method in class org.bitcoinj.core.Transaction
+
+
Adds an input to this transaction that imports value from the given output.
+
+
addItem(InventoryItem) - Method in class org.bitcoinj.core.ListMessage
+
 
+
addKey(int, Protos.Key) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
addKey(int, Protos.Key.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
addKey(Protos.Key) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
addKey(Protos.Key.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
addKeyChainEventListener(Executor, KeyChainEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addKeyChainEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addNewBestBlockListener(Executor, NewBestBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a NewBestBlockListener listener to the chain.
+
+
addNewBestBlockListener(NewBestBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a NewBestBlockListener listener to the chain.
+
+
addOnTransactionBroadcastListener(Executor, OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called when a transaction is broadcast across the network
+
+
addOnTransactionBroadcastListener(Executor, OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addOnTransactionBroadcastListener(OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called when a transaction is broadcast across the network
+
+
addOnTransactionBroadcastListener(OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addOrGetExistingExtension(WalletExtension) - Method in class org.bitcoinj.wallet.Wallet
+
+
Atomically adds extension or returns an existing extension if there is one with the same id already present.
+
+
addOrUpdateExtension(WalletExtension) - Method in class org.bitcoinj.wallet.Wallet
+
+
Either adds extension as a new extension or replaces the existing extension if one already exists with the same + id.
+
+
addOutput(Coin, Address) - Method in class org.bitcoinj.core.Transaction
+
+
Creates an output based on the given address and value, adds it to this transaction, and returns the new output.
+
+
addOutput(Coin, ECKey) - Method in class org.bitcoinj.core.Transaction
+
+
Creates an output that pays to the given pubkey directly (no address) with the given value, adds it to this + transaction, and returns the new output.
+
+
addOutput(Coin, Script) - Method in class org.bitcoinj.core.Transaction
+
+
Creates an output that pays to the given script.
+
+
addOutput(TransactionOutput) - Method in class org.bitcoinj.core.Transaction
+
+
Adds the given output to this transaction.
+
+
addOutputs(int, Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
addOutputs(int, Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
addOutputs(Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
addOutputs(Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
addPath(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
addPeerDiscovery(PeerDiscovery) - Method in class org.bitcoinj.core.PeerGroup
+
+
Add addresses from a discovery source to the list of potential peers to connect to.
+
+
addPeerFilterProvider(PeerFilterProvider) - Method in class org.bitcoinj.core.PeerGroup
+
+
Link the given PeerFilterProvider to this PeerGroup.
+
+
addPreMessageReceivedEventListener(Executor, PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called immediately before a message is received
+
+
addPreMessageReceivedEventListener(Executor, PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addPreMessageReceivedEventListener(PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.Peer
+
+
Registers a listener that is called immediately before a message is received
+
+
addPreMessageReceivedEventListener(PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
addRefundTo(int, Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
addRefundTo(int, Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
addRefundTo(Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
addRefundTo(Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
addReorganizeEventListener(Executor, WalletReorganizeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addReorganizeEventListener(WalletReorganizeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addReorganizeListener(Executor, ReorganizeListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a generic ReorganizeListener listener to the chain.
+
+
addReorganizeListener(ReorganizeListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a generic ReorganizeListener listener to the chain.
+
+
Address - Class in org.bitcoinj.core
+
+
Base class for addresses, e.g.
+
+
Address(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.Address
+
+
Construct an address from its binary form.
+
+
addresses - Variable in class org.bitcoinj.core.AddressMessage
+
 
+
AddressFormatException - Exception in org.bitcoinj.core
+
 
+
AddressFormatException() - Constructor for exception org.bitcoinj.core.AddressFormatException
+
 
+
AddressFormatException(String) - Constructor for exception org.bitcoinj.core.AddressFormatException
+
 
+
AddressFormatException.InvalidCharacter - Exception in org.bitcoinj.core
+
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and a character isn't valid.
+
+
AddressFormatException.InvalidChecksum - Exception in org.bitcoinj.core
+
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the checksum isn't valid.
+
+
AddressFormatException.InvalidDataLength - Exception in org.bitcoinj.core
+
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the data isn't of the right size.
+
+
AddressFormatException.InvalidPrefix - Exception in org.bitcoinj.core
+
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address or private key with an invalid prefix (version header or human-readable part).
+
+
AddressFormatException.UnexpectedWitnessVersion - Exception in org.bitcoinj.core
+
+
This exception is thrown by SegwitAddress when you try to decode data and the witness version doesn't + match the Bech32 encoding as per BIP350.
+
+
AddressFormatException.WrongNetwork - Exception in org.bitcoinj.core
+
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address with a prefix (version header or human-readable part) that used by another network (usually: mainnet vs + testnet).
+
+
addressHash - Variable in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
addressHeader - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
AddressMessage - Class in org.bitcoinj.core
+
 
+
AddressV1Message - Class in org.bitcoinj.core
+
+
Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers.
+
+
AddressV2Message - Class in org.bitcoinj.core
+
+
Represents an "addrv2" message on the P2P network, which contains broadcast IP addresses of other peers.
+
+
addrSeeds - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
addScriptsChangeEventListener(Executor, ScriptsChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addScriptsChangeEventListener(ScriptsChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addSeed(int, PeerSeedProtos.PeerSeedData) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
addSeed(int, PeerSeedProtos.PeerSeedData.Builder) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
addSeed(PeerSeedProtos.PeerSeedData) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
addSeed(PeerSeedProtos.PeerSeedData.Builder) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
addSignedInput(TransactionOutPoint, Script, Coin, ECKey) - Method in class org.bitcoinj.core.Transaction
+
+
Adds a new and fully signed input for the given parameters.
+
+
addSignedInput(TransactionOutPoint, Script, Coin, ECKey, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Adds a new and fully signed input for the given parameters.
+
+
addSignedInput(TransactionOutPoint, Script, ECKey) - Method in class org.bitcoinj.core.Transaction
+
 
+
addSignedInput(TransactionOutPoint, Script, ECKey, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
addSignedInput(TransactionOutput, ECKey) - Method in class org.bitcoinj.core.Transaction
+
+
Adds an input that points to the given output and contains a valid signature for it, calculated using the + signing key.
+
+
addSignedInput(TransactionOutput, ECKey, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Adds an input that points to the given output and contains a valid signature for it, calculated using the + signing key.
+
+
addTags(int, Protos.Tag) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
addTags(int, Protos.Tag.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
addTags(Protos.Tag) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
addTags(Protos.Tag.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
addToBlockStore(StoredBlock, Block) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds/updates the given Block with the block store.
+
+
addToBlockStore(StoredBlock, Block) - Method in class org.bitcoinj.core.BlockChain
+
 
+
addToBlockStore(StoredBlock, Block) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
addToBlockStore(StoredBlock, Block, TransactionOutputChanges) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds/updates the given StoredBlock with the block store.
+
+
addToBlockStore(StoredBlock, Block, TransactionOutputChanges) - Method in class org.bitcoinj.core.BlockChain
+
 
+
addToBlockStore(StoredBlock, Block, TransactionOutputChanges) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
addTransaction(int, Protos.Transaction) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
addTransaction(int, Protos.Transaction.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
addTransaction(Sha256Hash, boolean) - Method in class org.bitcoinj.core.GetDataMessage
+
 
+
addTransaction(Transaction) - Method in class org.bitcoinj.core.Block
+
+
Adds a transaction to this block.
+
+
addTransaction(Transaction) - Method in class org.bitcoinj.core.InventoryMessage
+
 
+
addTransaction(Protos.Transaction) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
addTransaction(Protos.Transaction.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
addTransactionConfidenceEventListener(Executor, TransactionConfidenceEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addTransactionConfidenceEventListener(TransactionConfidenceEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds an event listener object.
+
+
addTransactionInput(int, Protos.TransactionInput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
addTransactionInput(int, Protos.TransactionInput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
addTransactionInput(Protos.TransactionInput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
addTransactionInput(Protos.TransactionInput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
addTransactionOutput(int, Protos.TransactionOutput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
addTransactionOutput(int, Protos.TransactionOutput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
addTransactionOutput(Protos.TransactionOutput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
addTransactionOutput(Protos.TransactionOutput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
addTransactionReceivedListener(Executor, TransactionReceivedInBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a generic TransactionReceivedInBlockListener listener to the chain.
+
+
addTransactionReceivedListener(TransactionReceivedInBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Adds a generic TransactionReceivedInBlockListener listener to the chain.
+
+
addTransactions(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
addTransactionSigner(TransactionSigner) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds given transaction signer to the list of signers.
+
+
addUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
addUnspentTransactionOutput(UTXO) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Adds a UTXO to the list of unspent TransactionOutputs
+
+
addUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
addUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
addWallet(Wallet) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Add a wallet to the BlockChain.
+
+
addWallet(Wallet) - Method in class org.bitcoinj.core.Peer
+
+
Links the given wallet to this peer.
+
+
addWallet(Wallet) - Method in class org.bitcoinj.core.PeerGroup
+
+
Link the given wallet to this PeerGroup.
+
+
addWalletTransaction(WalletTransaction) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds a transaction that has been associated with a particular wallet pool.
+
+
addWatchedAddress(Address) - Method in class org.bitcoinj.wallet.Wallet
+
+
Same as Wallet.addWatchedAddress(Address, long) with the current time as the creation time.
+
+
addWatchedAddress(Address, long) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds the given address to the wallet to be watched.
+
+
addWatchedAddresses(List<Address>, long) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds the given address to the wallet to be watched.
+
+
addWatchedScript(int, Protos.Script) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
addWatchedScript(int, Protos.Script.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
addWatchedScript(Protos.Script) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
addWatchedScript(Protos.Script.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
addWatchedScripts(List<Script>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Adds the given output scripts to the wallet to be watched.
+
+
adjustLength(int) - Method in class org.bitcoinj.core.ChildMessage
+
 
+
adjustLength(int, int) - Method in class org.bitcoinj.core.ChildMessage
+
 
+
adjustLength(int, int) - Method in class org.bitcoinj.core.Message
+
 
+
aesKey - Variable in class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
aesKey - Variable in class org.bitcoinj.wallet.SendRequest
+
+
The AES key to use to decrypt the private keys before signing.
+
+
AGE_COMPARATOR - Static variable in class org.bitcoinj.core.ECKey
+
+
Sorts oldest keys first, newest last.
+
+
ALL - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
ALL_VERIFY_FLAGS - Static variable in class org.bitcoinj.script.Script
+
 
+
allConnections - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
allowEmptyPeerChain() - Method in class org.bitcoinj.core.NetworkParameters
+
+
If we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks.
+
+
allowEmptyPeerChain() - Method in class org.bitcoinj.params.RegTestParams
+
 
+
allowUnconfirmed() - Method in class org.bitcoinj.wallet.SendRequest
+
+
Shortcut for req.coinSelector = AllowUnconfirmedCoinSelector.get();.
+
+
AllowUnconfirmedCoinSelector - Class in org.bitcoinj.wallet
+
+
This coin selector will select any transaction at all, regardless of where it came from or whether it was + confirmed yet.
+
+
AllowUnconfirmedCoinSelector() - Constructor for class org.bitcoinj.wallet.AllowUnconfirmedCoinSelector
+
 
+
AllRandomKeysRotating - Exception in org.bitcoinj.wallet
+
+
Indicates that an attempt was made to upgrade a random wallet to deterministic, but there were no non-rotating + random keys to use as source material for the seed.
+
+
AllRandomKeysRotating() - Constructor for exception org.bitcoinj.wallet.AllRandomKeysRotating
+
 
+
ALPHABET - Static variable in class org.bitcoinj.core.Base58
+
 
+
ALREADY_SPENT - Enum constant in enum class org.bitcoinj.core.TransactionInput.ConnectionResult
+
 
+
amount - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.Output
+
 
+
AMOUNT_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
analyze() - Method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
analyze() - Method in interface org.bitcoinj.wallet.RiskAnalysis
+
 
+
analyzed - Variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
Analyzer() - Constructor for class org.bitcoinj.wallet.DefaultRiskAnalysis.Analyzer
+
 
+
anyoneCanPay() - Method in class org.bitcoinj.crypto.TransactionSignature
+
 
+
ANYONECANPAY - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
ANYONECANPAY_ALL - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
ANYONECANPAY_NONE - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
ANYONECANPAY_SINGLE - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
AppDataDirectory - Class in org.bitcoinj.utils
+
+
Find/create App Data Directory in correct platform-specific location.
+
+
AppDataDirectory() - Constructor for class org.bitcoinj.utils.AppDataDirectory
+
 
+
APPEARED_AT_HEIGHT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
append(List<ChildNumber>, ChildNumber) - Static method in class org.bitcoinj.crypto.HDUtils
+
+
Deprecated. +
Use HDPath#extend
+
+
+
appendToSubVer(String, String, String) - Method in class org.bitcoinj.core.VersionMessage
+
+
Appends the given user-agent information to the subVer field.
+
+
applyAndUpdate(Block) - Method in class org.bitcoinj.core.BloomFilter
+
+
Creates a new FilteredBlock from the given Block, using this filter to select transactions.
+
+
applyAndUpdate(Transaction) - Method in class org.bitcoinj.core.BloomFilter
+
 
+
assertEquals(boolean, boolean, String) - Static method in class org.bitcoin.NativeSecp256k1Util
+
+
Compare two booleans and throw NativeSecp256k1Util.AssertFailException if not equal
+
+
assertEquals(int, int, String) - Static method in class org.bitcoin.NativeSecp256k1Util
+
+
Compare two integers and throw NativeSecp256k1Util.AssertFailException if not equal
+
+
assertEquals(String, String, String) - Static method in class org.bitcoin.NativeSecp256k1Util
+
+
Compare two Strings and throw NativeSecp256k1Util.AssertFailException if not equal
+
+
AssertFailException(String) - Constructor for exception org.bitcoin.NativeSecp256k1Util.AssertFailException
+
 
+
ASSURANCE_CONTRACT_CLAIM - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Transaction that uses up pledges to an assurance contract
+
+
ASSURANCE_CONTRACT_CLAIM - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Stuff used by Lighthouse.
+
+
ASSURANCE_CONTRACT_CLAIM_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Stuff used by Lighthouse.
+
+
ASSURANCE_CONTRACT_PLEDGE - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Transaction that makes a pledge to an assurance contract.
+
+
ASSURANCE_CONTRACT_PLEDGE - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
ASSURANCE_CONTRACT_PLEDGE = 4;
+
+
ASSURANCE_CONTRACT_PLEDGE_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
ASSURANCE_CONTRACT_PLEDGE = 4;
+
+
ASSURANCE_CONTRACT_STUB - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Send-to-self transaction that exists just to create an output of the right size we can pledge.
+
+
ASSURANCE_CONTRACT_STUB - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
ASSURANCE_CONTRACT_STUB = 5;
+
+
ASSURANCE_CONTRACT_STUB_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
ASSURANCE_CONTRACT_STUB = 5;
+
+
AUTHENTICATION - Enum constant in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
 
+
autoCommit - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
autosaveToFile(File, long, TimeUnit, WalletFiles.Listener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sets up the wallet to auto-save itself to the given file, using temp files with atomic renames to ensure + consistency.
+
+
autoStop - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
AVAILABLE - Enum constant in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Balance that could be safely used to create new spends, if we had all the needed private keys.
+
+
AVAILABLE_SPENDABLE - Enum constant in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Same as AVAILABLE but only for outputs we have the private keys for and can sign ourselves.
+
+
await() - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
Wait for the chain to be downloaded.
+
+
+

B

+
+
BadPassphraseException() - Constructor for exception org.bitcoinj.crypto.BIP38PrivateKey.BadPassphraseException
+
 
+
BadPassword() - Constructor for exception org.bitcoinj.wallet.UnreadableWalletException.BadPassword
+
 
+
BadWalletEncryptionKeyException(Throwable) - Constructor for exception org.bitcoinj.wallet.Wallet.BadWalletEncryptionKeyException
+
 
+
badWord - Variable in exception org.bitcoinj.crypto.MnemonicException.MnemonicWordException
+
+
Contains the word that was not found in the word list.
+
+
Base58 - Class in org.bitcoinj.core
+
+
Base58 is a way to encode Bitcoin addresses (or arbitrary data) as alphanumeric strings.
+
+
Base58() - Constructor for class org.bitcoinj.core.Base58
+
 
+
BASE64 - Static variable in class org.bitcoinj.core.CheckpointManager
+
 
+
BaseTaggableObject - Class in org.bitcoinj.utils
+
+
A simple implementation of TaggableObject that uses a hashmap that is + synchronized on this object's Java monitor.
+
+
BaseTaggableObject() - Constructor for class org.bitcoinj.utils.BaseTaggableObject
+
 
+
BasicKeyChain - Class in org.bitcoinj.wallet
+
+
A KeyChain that implements the simplest model possible: it can have keys imported into it, and just acts as + a dumb bag of keys.
+
+
BasicKeyChain() - Constructor for class org.bitcoinj.wallet.BasicKeyChain
+
 
+
BasicKeyChain(KeyCrypter) - Constructor for class org.bitcoinj.wallet.BasicKeyChain
+
 
+
BasicKeyChain.State - Enum Class in org.bitcoinj.wallet
+
+
Whether this basic key chain is empty, full of regular (usable for signing) keys, or full of watching keys.
+
+
Bech32 - Class in org.bitcoinj.core
+
+
Implementation of the Bech32 encoding.
+
+
Bech32() - Constructor for class org.bitcoinj.core.Bech32
+
 
+
BECH32 - Enum constant in enum class org.bitcoinj.core.Bech32.Encoding
+
 
+
Bech32.Bech32Data - Class in org.bitcoinj.core
+
 
+
Bech32.Encoding - Enum Class in org.bitcoinj.core
+
 
+
BECH32M - Enum constant in enum class org.bitcoinj.core.Bech32.Encoding
+
 
+
beginBloomFilterCalculation() - Method in interface org.bitcoinj.core.PeerFilterProvider
+
+
Called on all registered filter providers before PeerFilterProvider.getBloomFilterElementCount() and + PeerFilterProvider.getBloomFilter(int, double, long) are called.
+
+
beginBloomFilterCalculation() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
beginDatabaseBatchWrite() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
beginDatabaseBatchWrite() - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Begins/Commits/Aborts a database transaction.
+
+
beginDatabaseBatchWrite() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
beginDatabaseBatchWrite() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
BEST_CHAIN - Enum constant in enum class org.bitcoinj.core.AbstractBlockChain.NewBlockType
+
+
New block is on the best chain
+
+
bestHeight - Variable in class org.bitcoinj.core.VersionMessage
+
+
How many blocks are in the chain, according to the other side.
+
+
bigIntegerToBytes(BigInteger, int) - Static method in class org.bitcoinj.core.Utils
+
+
+ The regular BigInteger.toByteArray() includes the sign bit of the number and + might result in an extra byte addition.
+
+
bigNum(int, long) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number as a push data chunk to the given index in the program.
+
+
bigNum(long) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number as a push data chunk.
+
+
BIP16_ENFORCE_TIME - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
Blocks with a timestamp after this should enforce BIP 16, aka "Pay to script hash".
+
+
BIP32_STANDARDISATION_TIME_SECS - Static variable in class org.bitcoinj.crypto.DeterministicHierarchy
+
 
+
bip32HeaderP2PKHpriv - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
bip32HeaderP2PKHpub - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
bip32HeaderP2WPKHpriv - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
bip32HeaderP2WPKHpub - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
BIP38PrivateKey - Class in org.bitcoinj.crypto
+
+
Implementation of BIP 38 + passphrase-protected private keys.
+
+
BIP38PrivateKey.BadPassphraseException - Exception in org.bitcoinj.crypto
+
 
+
BIP39_STANDARDISATION_TIME_SECS - Static variable in class org.bitcoinj.crypto.MnemonicCode
+
+
UNIX time for when the BIP39 standard was finalised.
+
+
BIP44_ACCOUNT_ZERO_PATH - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
BITCOIN_SCHEME - Static variable in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+
Scheme part for Bitcoin URIs.
+
+
BITCOIN_SCHEME - Static variable in class org.bitcoinj.uri.BitcoinURI
+
+
Deprecated.
+
+
BITCOINJ_VERSION - Static variable in class org.bitcoinj.core.VersionMessage
+
+
The version of this library release, as a string.
+
+
BitcoinPacketHeader(ByteBuffer) - Constructor for class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
 
+
bitcoinSerialize() - Method in class org.bitcoinj.core.Block
+
+
Special handling to check if we have a valid byte array for both header + and transactions
+
+
bitcoinSerialize() - Method in class org.bitcoinj.core.EmptyMessage
+
 
+
bitcoinSerialize() - Method in class org.bitcoinj.core.Message
+
+
Returns a copy of the array returned by Message.unsafeBitcoinSerialize(), which is safe to mutate.
+
+
bitcoinSerialize(OutputStream) - Method in class org.bitcoinj.core.Message
+
+
Serialize this message to the provided OutputStream using the bitcoin wire format.
+
+
BitcoinSerializer - Class in org.bitcoinj.core
+
+
Methods to serialize and de-serialize messages to the Bitcoin network format as defined in + the protocol specification.
+
+
BitcoinSerializer(NetworkParameters, boolean) - Constructor for class org.bitcoinj.core.BitcoinSerializer
+
+
Constructs a BitcoinSerializer with the given behavior.
+
+
BitcoinSerializer(NetworkParameters, int, boolean) - Constructor for class org.bitcoinj.core.BitcoinSerializer
+
+
Constructs a BitcoinSerializer with the given behavior.
+
+
BitcoinSerializer.BitcoinPacketHeader - Class in org.bitcoinj.core
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.AddressMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.Block
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.BloomFilter
+
+
Serializes this message to the provided stream.
+
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.EmptyMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.FeeFilterMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.FilteredBlock
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.HeadersMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.ListMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.MemoryPoolMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.Message
+
+
Serializes this message to the provided stream.
+
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.PeerAddress
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.Ping
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.Pong
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.RejectMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.Transaction
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.TransactionInput
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.TransactionOutput
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.UTXOsMessage
+
 
+
bitcoinSerializeToStream(OutputStream) - Method in class org.bitcoinj.core.VersionMessage
+
 
+
bitcoinSerializeToStream(OutputStream, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Serialize according to BIP144 or the + classic format, depending on if segwit is + desired.
+
+
BitcoinURI - Class in org.bitcoinj.uri
+
+
Provides a standard implementation of a Bitcoin URI with support for the following:
+
+
BitcoinURI(String) - Constructor for class org.bitcoinj.uri.BitcoinURI
+
+
Constructs a new BitcoinURI from the given string.
+
+
BitcoinURI(NetworkParameters, String) - Constructor for class org.bitcoinj.uri.BitcoinURI
+
+
Constructs a new object by trying to parse the input as a valid Bitcoin URI.
+
+
BitcoinURIParseException - Exception in org.bitcoinj.uri
+
+
Exception to provide the following to BitcoinURI:
+
+
BitcoinURIParseException(String) - Constructor for exception org.bitcoinj.uri.BitcoinURIParseException
+
 
+
BitcoinURIParseException(String, Throwable) - Constructor for exception org.bitcoinj.uri.BitcoinURIParseException
+
 
+
bits - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
block - Variable in class org.bitcoinj.store.MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag
+
 
+
Block - Class in org.bitcoinj.core
+
+
A block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system.
+
+
Block(NetworkParameters, byte[], int, Message, MessageSerializer, int) - Constructor for class org.bitcoinj.core.Block
+
+
Construct a block object from the Bitcoin wire format.
+
+
Block(NetworkParameters, byte[], int, MessageSerializer, int) - Constructor for class org.bitcoinj.core.Block
+
+
Construct a block object from the Bitcoin wire format.
+
+
Block(NetworkParameters, byte[], MessageSerializer, int) - Constructor for class org.bitcoinj.core.Block
+
+
Construct a block object from the Bitcoin wire format.
+
+
Block(NetworkParameters, long, Sha256Hash, Sha256Hash, long, long, long, List<Transaction>) - Constructor for class org.bitcoinj.core.Block
+
+
Construct a block initialized with all the given fields.
+
+
BLOCK - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
BLOCK_HASH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
BLOCK_HEIGHT_GENESIS - Static variable in class org.bitcoinj.core.Block
+
+
Height of the first block
+
+
BLOCK_HEIGHT_UNKNOWN - Static variable in class org.bitcoinj.core.Block
+
+
Value to use if the block height is unknown
+
+
BLOCK_LENGTH - Static variable in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
The size of an AES block in bytes.
+
+
BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
BLOCK_VERSION_BIP34 - Static variable in class org.bitcoinj.core.Block
+
+
Block version introduced in BIP 34: Height in coinbase
+
+
BLOCK_VERSION_BIP65 - Static variable in class org.bitcoinj.core.Block
+
+
Block version introduced in BIP 65: OP_CHECKLOCKTIMEVERIFY
+
+
BLOCK_VERSION_BIP66 - Static variable in class org.bitcoinj.core.Block
+
+
Block version introduced in BIP 66: Strict DER signatures
+
+
BLOCK_VERSION_GENESIS - Static variable in class org.bitcoinj.core.Block
+
 
+
Block.VerifyFlag - Enum Class in org.bitcoinj.core
+
+
Flags used to control which elements of block validation are done on + received blocks.
+
+
blockCache - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
BlockChain - Class in org.bitcoinj.core
+
+
A BlockChain implements the simplified payment verification mode of the Bitcoin protocol.
+
+
BlockChain(Context, List<? extends Wallet>, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+
Constructs a BlockChain connected to the given list of listeners and a store.
+
+
BlockChain(Context, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+
Constructs a BlockChain that has no wallet at all.
+
+
BlockChain(Context, Wallet, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+
Constructs a BlockChain connected to the given wallet and store.
+
+
BlockChain(NetworkParameters, List<? extends Wallet>, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+ +
+
BlockChain(NetworkParameters, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+ +
+
BlockChain(NetworkParameters, Wallet, BlockStore) - Constructor for class org.bitcoinj.core.BlockChain
+
+ +
+
BlockFileLoader - Class in org.bitcoinj.utils
+
+
This class reads block files stored in the Bitcoin Core format.
+
+
BlockFileLoader(NetworkParameters, File) - Constructor for class org.bitcoinj.utils.BlockFileLoader
+
 
+
BlockFileLoader(NetworkParameters, List<File>) - Constructor for class org.bitcoinj.utils.BlockFileLoader
+
 
+
BlockingClient - Class in org.bitcoinj.net
+
+
Creates a simple connection to a server using a StreamConnection to process data.
+
+
BlockingClient(SocketAddress, StreamConnection, int, SocketFactory, Set<BlockingClient>) - Constructor for class org.bitcoinj.net.BlockingClient
+
+
Creates a new client to the given server address using the given StreamConnection to decode the data.
+
+
BlockingClientManager - Class in org.bitcoinj.net
+
+
A thin wrapper around a set of BlockingClients.
+
+
BlockingClientManager() - Constructor for class org.bitcoinj.net.BlockingClientManager
+
 
+
BlockingClientManager(SocketFactory) - Constructor for class org.bitcoinj.net.BlockingClientManager
+
+
Creates a blocking client manager that will obtain sockets from the given factory.
+
+
blockingStartup - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
BlockLocator - Class in org.bitcoinj.core
+
+
Represents Block Locator in GetBlocks and GetHeaders messages
+
+
BlockLocator() - Constructor for class org.bitcoinj.core.BlockLocator
+
 
+
BlockLocator(ImmutableList<Sha256Hash>) - Constructor for class org.bitcoinj.core.BlockLocator
+
+
Creates a Block locator with defined list of hashes.
+
+
BlocksDownloadedEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+
blockStore - Variable in class org.bitcoinj.core.BlockChain
+
+
Keeps a map of block hashes to StoredBlocks.
+
+
blockStore - Variable in class org.bitcoinj.core.FullPrunedBlockChain
+
+
Keeps a map of block hashes to StoredBlocks.
+
+
BlockStore - Interface in org.bitcoinj.store
+
+
An implementor of BlockStore saves StoredBlock objects to disk.
+
+
BlockStoreException - Exception in org.bitcoinj.store
+
+
Thrown when something goes wrong with storing a block.
+
+
BlockStoreException(String) - Constructor for exception org.bitcoinj.store.BlockStoreException
+
 
+
BlockStoreException(String, Throwable) - Constructor for exception org.bitcoinj.store.BlockStoreException
+
 
+
BlockStoreException(Throwable) - Constructor for exception org.bitcoinj.store.BlockStoreException
+
 
+
BlockVersionOutOfDate(long) - Constructor for exception org.bitcoinj.core.VerificationException.BlockVersionOutOfDate
+
 
+
bloom - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
BLOOM_FILTER - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
BLOOM_FILTER_BIP111 - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
BloomFilter - Class in org.bitcoinj.core
+
+
A Bloom filter is a probabilistic data structure which can be sent to another client so that it can avoid + sending us transactions that aren't relevant to our set of keys.
+
+
BloomFilter(int, double, long) - Constructor for class org.bitcoinj.core.BloomFilter
+
+
Constructs a filter with the given parameters which is updated on P2PK outputs only.
+
+
BloomFilter(int, double, long, BloomFilter.BloomUpdate) - Constructor for class org.bitcoinj.core.BloomFilter
+
+
Constructs a new Bloom Filter which will provide approximately the given false positive rate when the given + number of elements have been inserted.
+
+
BloomFilter(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.BloomFilter
+
+
Construct a BloomFilter by deserializing payloadBytes
+
+
BloomFilter.BloomUpdate - Enum Class in org.bitcoinj.core
+
+
The BLOOM_UPDATE_* constants control when the bloom filter is auto-updated by the peer using + it as a filter, either never, for all outputs or only for P2PK outputs (default)
+
+
BriefLogFormatter - Class in org.bitcoinj.utils
+
+
A Java logging formatter that writes more compact output than the default.
+
+
BriefLogFormatter() - Constructor for class org.bitcoinj.utils.BriefLogFormatter
+
 
+
broadcast - Variable in class org.bitcoinj.wallet.Wallet.SendResult
+
+
The broadcast object returned by the linked TransactionBroadcaster
+
+
broadcast() - Method in class org.bitcoinj.core.TransactionBroadcast
+
 
+
BROADCAST_BY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
broadcastComplete - Variable in class org.bitcoinj.wallet.Wallet.SendResult
+
+
A future that will complete once the tx message has been successfully broadcast to the network.
+
+
broadcastTransaction(Transaction) - Method in class org.bitcoinj.core.PeerGroup
+
+
Calls PeerGroup.broadcastTransaction(Transaction, int, boolean) with getMinBroadcastConnections() as + the number of connections to wait for before commencing broadcast.
+
+
broadcastTransaction(Transaction) - Method in interface org.bitcoinj.core.TransactionBroadcaster
+
+
Broadcast the given transaction on the network
+
+
broadcastTransaction(Transaction, int, boolean) - Method in class org.bitcoinj.core.PeerGroup
+
+
Given a transaction, sends it un-announced to one peer and then waits for it to be received back from other + peers.
+
+
BTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Standard format for the BTC denomination.
+
+
BtcAutoFormat - Class in org.bitcoinj.utils
+
+
This class, a concrete extension of BtcFormat, is distinguished by its + accommodation of multiple denominational units as follows:
+
+
BtcAutoFormat(Locale, BtcAutoFormat.Style, int) - Constructor for class org.bitcoinj.utils.BtcAutoFormat
+
+
Constructor
+
+
BtcAutoFormat.Style - Enum Class in org.bitcoinj.utils
+
+
Enum for specifying the style of currency indicators that are used + when formatting, either codes or symbols.
+
+
BtcFixedFormat - Class in org.bitcoinj.utils
+
+
This class, a concrete extension of BtcFormat, is distinguished in that each + instance formats and by-default parses all Bitcoin monetary values in units of a single + denomination that is specified at the time that instance is constructed.
+
+
BtcFixedFormat(Locale, int, int, List<Integer>) - Constructor for class org.bitcoinj.utils.BtcFixedFormat
+
+
Constructor
+
+
BtcFormat - Class in org.bitcoinj.utils
+
+
Instances of this class format and parse locale-specific numerical + representations of Bitcoin monetary values.
+
+
BtcFormat(DecimalFormat, int, List<Integer>) - Constructor for class org.bitcoinj.utils.BtcFormat
+
+
This single constructor is invoked by the overriding subclass constructors.
+
+
BtcFormat.Builder - Class in org.bitcoinj.utils
+
+
This class constructs new instances of BtcFormat, allowing for the + configuration of those instances before they are constructed.
+
+
btcToSatoshi(BigDecimal) - Static method in class org.bitcoinj.core.Coin
+
+
Convert a decimal amount of BTC into satoshis.
+
+
buffer - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
build() - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a new immutable Script based on the state of the builder.
+
+
build() - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Return a new BtcFormat instance.
+
+
build() - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
build() - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
 
+
build() - Method in class org.bitcoinj.wallet.MarriedKeyChain.Builder
+
 
+
build(Block) - Method in class org.bitcoinj.core.StoredBlock
+
+
Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.
+
+
builder() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new BtcFormat.Builder object.
+
+
builder() - Static method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
builder() - Static method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
builder(NetworkParameters) - Static method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
builder(NetworkParameters, KeyChainGroupStructure) - Static method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
Builder() - Constructor for class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
Builder() - Constructor for class org.bitcoinj.wallet.MarriedKeyChain.Builder
+
 
+
buildFromLeaves(NetworkParameters, byte[], List<Sha256Hash>) - Static method in class org.bitcoinj.core.PartialMerkleTree
+
+
Calculates a PMT given the list of leaf hashes and which leaves need to be included.
+
+
BUILDING - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
If BUILDING, then the transaction is included in the best chain and your confidence in it is increasing.
+
+
BUILDING - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ In best chain.
+
+
BUILDING_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ In best chain.
+
+
bytes - Variable in class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
byteStringToHash(ByteString) - Static method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
byteValue() - Method in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
+

C

+
+
calcLength(byte[], int) - Static method in class org.bitcoinj.core.Transaction
+
 
+
calcSigHashValue(Transaction.SigHash, boolean) - Static method in class org.bitcoinj.crypto.TransactionSignature
+
+
Calculates the byte used in the protocol to represent the combination of mode and anyoneCanPay.
+
+
calculate(ImmutableList<PeerFilterProvider>) - Method in class org.bitcoinj.net.FilterMerger
+
 
+
calculateAllSpendCandidates() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a list of the outputs that can potentially be spent, i.e.
+
+
calculateAllSpendCandidates(boolean, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a list of all outputs that are being tracked by this wallet either from the UTXOProvider + (in this case the existence or not of private keys is ignored), or the wallets internal storage (the default) + taking into account the flags.
+
+
calculateAllSpendCandidatesFromUTXOProvider(boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the spendable candidates from the UTXOProvider based on keys that the wallet contains.
+
+
calculateBalanceForAddress(Address) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Calculate the balance for a coinbase, to-address, or p2sh address.
+
+
calculateSignature(int, ECKey, byte[], Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature that is valid for being inserted into the input at the given position.
+
+
calculateSignature(int, ECKey, Script, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature that is valid for being inserted into the input at the given position.
+
+
calculateSignature(int, ECKey, KeyParameter, byte[], Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature that is valid for being inserted into the input at the given position.
+
+
calculateSignature(int, ECKey, KeyParameter, Script, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature that is valid for being inserted into the input at the given position.
+
+
calculateWitnessSignature(int, ECKey, byte[], Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
calculateWitnessSignature(int, ECKey, Script, Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
calculateWitnessSignature(int, ECKey, KeyParameter, byte[], Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
calculateWitnessSignature(int, ECKey, KeyParameter, Script, Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
canSignFor(Script) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if this wallet has at least one of the private keys needed to sign for this scriptPubKey.
+
+
CENT - Static variable in class org.bitcoinj.core.Coin
+
+
0.01 Bitcoins.
+
+
CERTIFICATE_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
certificates - Variable in exception org.bitcoinj.protocols.payments.PaymentProtocolException.PkiVerificationException
+
 
+
chain - Variable in class org.bitcoinj.core.PeerGroup
+
 
+
chain() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
CHAIN_CODE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
chainCode - Variable in class org.bitcoinj.crypto.HDKeyDerivation.RawKeyBytes
+
 
+
ChainDownloadStartedEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+
ChainFileLockedException - Exception in org.bitcoinj.store
+
+
Thrown by SPVBlockStore when the process cannot gain exclusive access to the chain file.
+
+
ChainFileLockedException(String) - Constructor for exception org.bitcoinj.store.ChainFileLockedException
+
 
+
ChainFileLockedException(Throwable) - Constructor for exception org.bitcoinj.store.ChainFileLockedException
+
 
+
chainHead - Variable in class org.bitcoinj.core.AbstractBlockChain
+
+
Tracks the top of the best known chain.
+
+
chainHeadBlock - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
chainHeadBlock - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
chainHeadHash - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
chainHeadHash - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
chains - Variable in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
chains(List<DeterministicKeyChain>) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Add multiple chains.
+
+
CHANGE - Enum constant in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
 
+
changeAddress - Variable in class org.bitcoinj.wallet.SendRequest
+
+
"Change" means the difference between the value gathered by a transactions inputs (the size of which you + don't really control as it depends on who sent you money), and the value being sent somewhere else.
+
+
changed - Variable in class org.bitcoinj.net.FilterMerger.Result
+
 
+
changeEncryptionKey(KeyCrypter, KeyParameter, KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Changes wallet AES encryption key, this is atomic operation.
+
+
changeEncryptionPassword(CharSequence, CharSequence) - Method in class org.bitcoinj.wallet.Wallet
+
+
Changes wallet encryption password, this is atomic operation.
+
+
character - Variable in exception org.bitcoinj.core.AddressFormatException.InvalidCharacter
+
 
+
check() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
+
Check if our mnemonic is a valid mnemonic phrase for our word list.
+
+
check(List<String>) - Method in class org.bitcoinj.crypto.MnemonicCode
+
+
Check to see if a mnemonic word list is valid.
+
+
checkAESKey(KeyParameter) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Check whether the AES key can decrypt the first encrypted key in the wallet.
+
+
checkAESKey(KeyParameter) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
checkAESKey(KeyParameter) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
 
+
checkAESKey(KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
checkAESKey(KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Check whether the AES key can decrypt the first encrypted key in the wallet.
+
+
checkBitLE(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Checks if the given bit is set in data, using little endian (not the same as Java native big endian)
+
+
checkCoinBaseHeight(int) - Method in class org.bitcoinj.core.Transaction
+
+
Check block height is in coinbase input script, for use after BIP 34 + enforcement is enabled.
+
+
checkDifficultyTransitions(StoredBlock, Block, BlockStore) - Method in class org.bitcoinj.core.NetworkParameters
+
+
Throws an exception if the block's difficulty is not correct.
+
+
checkDifficultyTransitions(StoredBlock, Block, BlockStore) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
checkDifficultyTransitions(StoredBlock, Block, BlockStore) - Method in class org.bitcoinj.params.TestNet3Params
+
 
+
checkForFilterExhaustion(FilteredBlock) - Method in class org.bitcoinj.wallet.Wallet
+
+
Used by Peer to decide whether or not to discard this block and any blocks building upon it, in case + the Bloom filter used to request them may be exhausted, that is, not have sufficient keys in the deterministic + sequence within it to reliably find relevant transactions.
+
+
CHECKLOCKTIMEVERIFY - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
checkPassword(CharSequence) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns whether the given password is correct for this key chain.
+
+
checkPassword(CharSequence) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
checkPassword(CharSequence) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
 
+
checkPassword(CharSequence) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
checkPassword(CharSequence) - Method in class org.bitcoinj.wallet.Wallet
+
+
Check whether the password can decrypt the first key in the wallet.
+
+
checkpoint(NetworkParameters, InputStream, BlockStore, long) - Static method in class org.bitcoinj.core.CheckpointManager
+
+
Convenience method that creates a CheckpointManager, loads the given data, gets the checkpoint for the given + time, then inserts it into the store and sets that to be the chain head.
+
+
CHECKPOINT - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message described a block which was invalid according to hard-coded checkpoint blocks.
+
+
CheckpointManager - Class in org.bitcoinj.core
+
+
Vends hard-coded StoredBlocks for blocks throughout the chain.
+
+
CheckpointManager(Context) - Constructor for class org.bitcoinj.core.CheckpointManager
+
+
Loads the default checkpoints bundled with bitcoinj
+
+
CheckpointManager(NetworkParameters, InputStream) - Constructor for class org.bitcoinj.core.CheckpointManager
+
+
Loads the checkpoints from the given stream
+
+
checkpoints - Variable in class org.bitcoinj.core.CheckpointManager
+
 
+
checkpoints - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
checkpoints - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
checkProofOfWork(boolean) - Method in class org.bitcoinj.core.Block
+
+
Returns true if the hash of the block is OK (lower than difficulty target).
+
+
CHECKSEQUENCEVERIFY - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
checksum - Variable in class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
 
+
ChildMessage - Class in org.bitcoinj.core
+
+
Represents a Message type that can be contained within another Message.
+
+
ChildMessage() - Constructor for class org.bitcoinj.core.ChildMessage
+
+
Deprecated. + +
+
+
ChildMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.ChildMessage
+
 
+
ChildMessage(NetworkParameters, byte[], int) - Constructor for class org.bitcoinj.core.ChildMessage
+
 
+
ChildMessage(NetworkParameters, byte[], int, Message, MessageSerializer, int) - Constructor for class org.bitcoinj.core.ChildMessage
+
 
+
CHILDNUM_ORDER - Static variable in class org.bitcoinj.crypto.DeterministicKey
+
+
Sorts deterministic keys in the order of their child number.
+
+
ChildNumber - Class in org.bitcoinj.crypto
+
+
This is just a wrapper for the i (child number) as per BIP 32 with a boolean getter for the most significant bit + and a getter for the actual 0-based child number.
+
+
ChildNumber(int) - Constructor for class org.bitcoinj.crypto.ChildNumber
+
 
+
ChildNumber(int, boolean) - Constructor for class org.bitcoinj.crypto.ChildNumber
+
 
+
childPaysForParent(Wallet, Transaction, Coin) - Static method in class org.bitcoinj.wallet.SendRequest
+
+
Construct a SendRequest for a CPFP (child-pays-for-parent) transaction.
+
+
chunks - Variable in class org.bitcoinj.script.Script
+
 
+
CLEANSTACK - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
cleanup() - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 Cleanup - This destroys the secp256k1 context object This should be called at the end of the program + for proper cleanup of the context.
+
+
cleanup() - Method in class org.bitcoinj.wallet.Wallet
+
+
Clean up the wallet.
+
+
clear() - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
clearAccountPath() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
clearAmount() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ amount is integer-number-of-satoshis
+
+
clearAppearedAtHeight() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
clearBlockHash() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
clearBlockRelativityOffsets() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
clearBroadcastBy() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Erases the set of broadcast/seen peers.
+
+
clearBroadcastBy() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
clearCertificate() - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
clearChainCode() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Random data that allows us to extend a key.
+
+
clearCoinValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
clearConfidence() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
clearCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
clearCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
clearData() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
required bytes data = 2;
+
+
clearData() - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
clearData() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required bytes data = 2;
+
+
clearDepth() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
clearDescription() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
clearDeterministicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
clearDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The seed for a deterministic key hierarchy.
+
+
clearEncryptedData() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
clearEncryptedDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
clearEncryptedPrivateKey() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The encrypted private key
+
+
clearEncryptionParameters() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
clearEncryptionType() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
clearExchangeRate() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
clearExpires() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when this request should be considered invalid
+
+
clearExtension() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
clearFiatCurrencyCode() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
clearFiatValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
clearHash() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
required bytes hash = 2;
+
+
clearId() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
clearInitialisationVector() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
clearInputs() - Method in class org.bitcoinj.core.Transaction
+
+
Removes all the inputs from this transaction.
+
+
clearIpAddress() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
clearIpAddress() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required bytes ip_address = 1;
+
+
clearIsFollowing() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
clearIssuedSubkeys() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
clearKey() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
clearKeyRotationTime() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ UNIX time in seconds since the epoch.
+
+
clearLabel() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
clearLastBroadcastedAt() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
clearLastSeenBlockHash() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
clearLastSeenBlockHeight() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The height in the chain of the last seen block.
+
+
clearLastSeenBlockTimeSecs() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
clearLockTime() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ The nLockTime field is useful for contracts.
+
+
clearLookaheadSize() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
optional uint32 lookahead_size = 4;
+
+
clearMandatory() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
clearMemo() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
clearMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
clearMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
clearMemo() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
clearMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ From PaymentDetails.merchant_data
+
+
clearMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Arbitrary data to include in the Payment message
+
+
clearN() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ CPU/ memory cost parameter
+
+
clearNet() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
clearNetwork() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
clearNetworkIdentifier() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
clearOutputs() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
clearOutputs() - Method in class org.bitcoinj.core.Transaction
+
+
Removes all the outputs from this transaction.
+
+
clearOutputScriptType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
clearOverridingTransaction() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
clearP() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Parallelisation parameter
+
+
clearPath() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
clearPayment() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
clearPaymentDetailsVersion() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
clearPaymentUrl() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
clearPeerSeeds() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes peer_seeds = 1;
+
+
clearPkiData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ depends on pki_type
+
+
clearPkiType() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
clearPool() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
clearPort() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 port = 2;
+
+
clearPort() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint32 port = 2;
+
+
clearProgram() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
required bytes program = 1;
+
+
clearPubkey() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes pubkey = 3;
+
+
clearPublicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The public EC key derived from the private key.
+
+
clearPurpose() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
clearR() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Block size parameter
+
+
clearRefundTo() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
clearSalt() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
clearScript() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ usually one of the standard Script forms
+
+
clearScriptBytes() - Method in class org.bitcoinj.core.TransactionInput
+
+
Clear input scripts, e.g.
+
+
clearScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Script that contains the signatures/pubkeys.
+
+
clearScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ script of transaction output
+
+
clearSecretBytes() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
clearSeed() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
clearSequence() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Sequence number.
+
+
clearSerializedPaymentDetails() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ PaymentDetails
+
+
clearServices() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 services = 3;
+
+
clearServices() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint64 services = 3;
+
+
clearSignature() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes signature = 2;
+
+
clearSignature() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ pki-dependent signature
+
+
clearSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Number of signatures required to spend.
+
+
clearSource() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
clearSpentByTransactionHash() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
clearSpentByTransactionIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
clearTag() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
clearTags() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
clearTime() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when payment request created
+
+
clearTimestamp() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
+ seconds since UNIX epoch
+
+
clearTransaction() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
clearTransactionInput() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
clearTransactionOutPointHash() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Hash of the transaction this input is using.
+
+
clearTransactionOutPointIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Index of transaction output used by this input.
+
+
clearTransactionOutput() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
clearTransactions() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
clearTransactions(int) - Method in class org.bitcoinj.wallet.Wallet
+
+
Deletes transactions which appeared above the given block height from the wallet, but does not touch the keys.
+
+
clearType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
required .wallet.Key.Type type = 1;
+
+
clearType() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
clearUpdatedAt() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ millis since epoch the transaction was last updated
+
+
clearValue() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Value of connected output, if known
+
+
clearValue() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
required int64 value = 1;
+
+
clearVersion() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
clearVersion() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
clearWatchedScript() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
clearWitness() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
ClientConnectionManager - Interface in org.bitcoinj.net
+
+
A generic interface for an object which keeps track of a set of open client connections, creates new ones and + ensures they are serviced properly.
+
+
clientVersion - Variable in class org.bitcoinj.core.VersionMessage
+
+
The version number of the protocol spoken.
+
+
clone() - Method in class org.bitcoinj.core.LegacyAddress
+
 
+
clone() - Method in class org.bitcoinj.core.PrefixedChecksummedBytes
+
+
This implementation narrows the return type to PrefixedChecksummedBytes + and allows subclasses to throw CloneNotSupportedException even though it + is never thrown by this implementation.
+
+
cloneAsHeader() - Method in class org.bitcoinj.core.Block
+
+
Returns a copy of the block, but without any transactions.
+
+
cloneContext() - Static method in class org.bitcoin.NativeSecp256k1
+
+
Clone context
+
+
close() - Method in class org.bitcoinj.core.PeerSocketHandler
+
+
Closes the connection to the peer if one exists, or immediately closes the connection as soon as it opens
+
+
close() - Method in interface org.bitcoinj.store.BlockStore
+
+
Closes the store.
+
+
close() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
close() - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
close() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
close() - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
close() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
close() - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
closeConnection() - Method in class org.bitcoinj.net.BlockingClient
+
+
Closes the connection to the server, triggering the StreamConnection.connectionClosed() + event on the network-handling thread where all callbacks occur.
+
+
closeConnection() - Method in interface org.bitcoinj.net.MessageWriteTarget
+
+
Closes the connection to the server, triggering the StreamConnection.connectionClosed() + event on the network-handling thread where all callbacks occur.
+
+
closeConnection() - Method in class org.bitcoinj.net.NioClient
+
 
+
closeConnections(int) - Method in class org.bitcoinj.net.BlockingClientManager
+
 
+
closeConnections(int) - Method in interface org.bitcoinj.net.ClientConnectionManager
+
+
Closes n peer connections
+
+
closeConnections(int) - Method in class org.bitcoinj.net.NioClientManager
+
 
+
code - Variable in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
code() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return the currency code that identifies the units in which values formatted and + (by-default) parsed by this instance are denominated.
+
+
code() - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Get currency code that will be used for current shift.
+
+
code(int, String) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Configure currency code for given decimal separator shift.
+
+
code(String) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify a custom currency code to be used in the denomination-unit indicators + of formatted values.
+
+
CODE - Enum constant in enum class org.bitcoinj.utils.BtcAutoFormat.Style
+
+
Constant for the formatting style that uses a currency code, e.g., "BTC".
+
+
CODE_BTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency code for base 1 Bitcoin.
+
+
CODE_MBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency code for base 1/1000 Bitcoin.
+
+
CODE_SAT - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency code for base 1 satoshi.
+
+
CODE_UBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency code for base 1/1000000 Bitcoin.
+
+
codeSeparator(char) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Separator between currency code and formatted value.
+
+
coin - Variable in class org.bitcoinj.utils.ExchangeRate
+
 
+
Coin - Class in org.bitcoinj.core
+
+
Represents a monetary Bitcoin value.
+
+
COIN - Static variable in class org.bitcoinj.core.Coin
+
+
One Bitcoin.
+
+
COIN_SCALE - Static variable in class org.bitcoinj.utils.BtcFormat
+
+
A constant useful for specifying a denomination of bitcoins, the int value + 0.
+
+
COIN_SYMBOL_ALT - Static variable in class org.bitcoinj.utils.BtcFormat
+
+
An alternative currency symbol to use in locales where the default symbol is used for the national currency.
+
+
COIN_VALUE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
CoinbaseHeightMismatch(String) - Constructor for exception org.bitcoinj.core.VerificationException.CoinbaseHeightMismatch
+
 
+
CoinbaseScriptSizeOutOfRange() - Constructor for exception org.bitcoinj.core.VerificationException.CoinbaseScriptSizeOutOfRange
+
 
+
coinCode() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return the unprefixed international currency code for bitcoins configured for this + object.
+
+
CoinSelection - Class in org.bitcoinj.wallet
+
+
Represents the results of a + CoinSelector.select(Coin, List) operation.
+
+
CoinSelection(Coin, Collection<TransactionOutput>) - Constructor for class org.bitcoinj.wallet.CoinSelection
+
 
+
coinSelector - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If not null, the CoinSelector to use instead of the wallets default.
+
+
coinSelector - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
CoinSelector - Interface in org.bitcoinj.wallet
+
+
A CoinSelector is responsible for picking some outputs to spend, from the list of all possible outputs.
+
+
coinSymbol() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return the unprefixed currency symbol for bitcoins configured for this object.
+
+
coinToFiat(Coin) - Method in class org.bitcoinj.utils.ExchangeRate
+
+
Convert a coin amount to a fiat amount using this exchange rate.
+
+
command - Variable in class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
 
+
commitDatabaseBatchWrite() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
commitDatabaseBatchWrite() - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
 
+
commitDatabaseBatchWrite() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
commitDatabaseBatchWrite() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
commitTx(Transaction) - Method in class org.bitcoinj.wallet.Wallet
+
+
Updates the wallet with the given transaction: puts it into the pending pool, sets the spent flags and runs + the onCoinsSent/onCoinsReceived event listener.
+
+
COMPACT_SERIALIZED_SIZE - Static variable in class org.bitcoinj.core.StoredBlock
+
 
+
compareAddressPartial(Address) - Method in class org.bitcoinj.core.Address
+
+
Comparator for the first two comparison fields in Address comparisons, see Address.compareTo(Address).
+
+
compareTo(Address) - Method in class org.bitcoinj.core.Address
+
+
Comparison field order for addresses is: + + NetworkParameters.getId() + Legacy vs.
+
+
compareTo(Address) - Method in class org.bitcoinj.core.LegacyAddress
+
+
Comparison field order for addresses is: + + NetworkParameters.getId() + Legacy vs.
+
+
compareTo(Address) - Method in class org.bitcoinj.core.SegwitAddress
+
+
Comparison field order for addresses is: + + NetworkParameters.getId() + Legacy vs.
+
+
compareTo(Coin) - Method in class org.bitcoinj.core.Coin
+
 
+
compareTo(Sha256Hash) - Method in class org.bitcoinj.core.Sha256Hash
+
 
+
compareTo(ChildNumber) - Method in class org.bitcoinj.crypto.ChildNumber
+
 
+
compareTo(ExponentialBackoff) - Method in class org.bitcoinj.utils.ExponentialBackoff
+
 
+
compareTo(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
 
+
completeTx(SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Given a spend request containing an incomplete transaction, makes it valid by adding outputs and signed inputs + according to the instructions in the request.
+
+
CompletionException() - Constructor for exception org.bitcoinj.wallet.Wallet.CompletionException
+
 
+
CompletionException(Throwable) - Constructor for exception org.bitcoinj.wallet.Wallet.CompletionException
+
 
+
compress() - Method in class org.bitcoinj.crypto.LazyECPoint
+
+
Returns a compressed version of this elliptic curve point.
+
+
compressed - Variable in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
compressPoint(LazyECPoint) - Static method in class org.bitcoinj.core.ECKey
+
+
Deprecated. + +
+
+
computePubkey(byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 Compute Pubkey - computes public key from secret key
+
+
concat(List<ChildNumber>, List<ChildNumber>) - Static method in class org.bitcoinj.crypto.HDUtils
+
+
Deprecated. +
Use HDPath#extend
+
+
+
CONFIDENCE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
conn - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
connect(Map<Sha256Hash, Transaction>, TransactionInput.ConnectMode) - Method in class org.bitcoinj.core.TransactionInput
+
+
Connects this input to the relevant output of the referenced transaction if it's in the given map.
+
+
connect(TransactionOutput) - Method in class org.bitcoinj.core.TransactionInput
+
+
Internal use only: connects this TransactionInput to the given output (updates pointers and spent flags)
+
+
connect(Transaction, TransactionInput.ConnectMode) - Method in class org.bitcoinj.core.TransactionInput
+
+
Connects this input to the relevant output of the referenced transaction.
+
+
connectionClosed() - Method in class org.bitcoinj.core.Peer
+
 
+
connectionClosed() - Method in interface org.bitcoinj.net.StreamConnection
+
+
Called when the connection socket is closed
+
+
connectionOpened() - Method in class org.bitcoinj.core.Peer
+
 
+
connectionOpened() - Method in interface org.bitcoinj.net.StreamConnection
+
+
Called when the connection socket is first opened
+
+
connectionURL - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
connectTo(InetSocketAddress) - Method in class org.bitcoinj.core.PeerGroup
+
+
Connect to a peer by creating a channel to the destination address.
+
+
connectTo(PeerAddress, boolean, int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Creates a version message to send, constructs a Peer object and attempts to connect it.
+
+
connectToLocalHost() - Method in class org.bitcoinj.core.PeerGroup
+
+
Helper for forcing a connection to localhost.
+
+
connectToLocalHost() - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Will only connect to localhost.
+
+
connectTransactions(int, Block) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Connect each transaction in block.transactions, verifying them as we go and removing spent outputs + If an error is encountered in a transaction, no changes should be made to the underlying BlockStore.
+
+
connectTransactions(int, Block) - Method in class org.bitcoinj.core.BlockChain
+
 
+
connectTransactions(int, Block) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
connectTransactions(StoredBlock) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Load newBlock from BlockStore and connect its transactions, returning changes to the set of unspent transactions.
+
+
connectTransactions(StoredBlock) - Method in class org.bitcoinj.core.BlockChain
+
 
+
connectTransactions(StoredBlock) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
+
Used during reorgs to connect a block previously on a fork
+
+
contains(byte[]) - Method in class org.bitcoinj.core.BloomFilter
+
+
Returns true if the given object matches the filter either because it was inserted, or because we have a + false-positive.
+
+
content - Variable in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
context - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
context - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
Context - Class in org.bitcoinj.core
+
+
The Context object holds various objects and pieces of configuration that are scoped to a specific instantiation of + bitcoinj for a specific network.
+
+
Context(NetworkParameters) - Constructor for class org.bitcoinj.core.Context
+
+
Creates a new context object.
+
+
Context(NetworkParameters, int, Coin, boolean) - Constructor for class org.bitcoinj.core.Context
+
+
Creates a new custom context object.
+
+
ContextPropagatingThreadFactory - Class in org.bitcoinj.utils
+
+
A ThreadFactory that propagates a Context from the creating + thread into the new thread.
+
+
ContextPropagatingThreadFactory(String) - Constructor for class org.bitcoinj.utils.ContextPropagatingThreadFactory
+
 
+
ContextPropagatingThreadFactory(String, int) - Constructor for class org.bitcoinj.utils.ContextPropagatingThreadFactory
+
 
+
convertToBitcoinURI(Address, Coin, String, String) - Static method in class org.bitcoinj.uri.BitcoinURI
+
+
Simple Bitcoin URI builder using known good fields.
+
+
convertToBitcoinURI(NetworkParameters, String, Coin, String, String) - Static method in class org.bitcoinj.uri.BitcoinURI
+
+
Simple Bitcoin URI builder using known good fields.
+
+
correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set<Script.VerifyFlag>) - Method in class org.bitcoinj.script.Script
+
+
Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
+
+
correctlySpends(Transaction, long, Script, Set<Script.VerifyFlag>) - Method in class org.bitcoinj.script.Script
+
+ +
+
CouldNotAdjustDownwards() - Constructor for exception org.bitcoinj.wallet.Wallet.CouldNotAdjustDownwards
+
 
+
create(NetworkParameters, KeyChainGroup) - Method in interface org.bitcoinj.wallet.WalletProtobufSerializer.WalletFactory
+
 
+
create(Wallet, Transaction, List<Transaction>) - Method in class org.bitcoinj.wallet.DefaultRiskAnalysis.Analyzer
+
 
+
create(Wallet, Transaction, List<Transaction>) - Method in interface org.bitcoinj.wallet.RiskAnalysis.Analyzer
+
 
+
createBasic(NetworkParameters) - Static method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Creates a keychain group with just a basic chain.
+
+
createBasic(NetworkParameters) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a new, empty wallet with just a basic keychain and no transactions.
+
+
createConfidence(Sha256Hash) - Method in class org.bitcoinj.core.TransactionConfidence.Factory
+
 
+
createDeterministic(Context, Script.ScriptType) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a new, empty wallet with a randomly chosen seed and no transactions.
+
+
createDeterministic(NetworkParameters, Script.ScriptType) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a new, empty wallet with a randomly chosen seed and no transactions.
+
+
createECDHSecret(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 create ECDH secret - constant time ECDH calculation
+
+
createEmpty() - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates an empty script.
+
+
createEmptyInputScript(ECKey, Script) - Method in class org.bitcoinj.script.Script
+
+
Creates an incomplete scriptSig that, once filled with signatures, can redeem output containing this scriptPubKey.
+
+
createEmptyWitness(ECKey) - Method in class org.bitcoinj.script.Script
+
 
+
createExecutor() - Method in class org.bitcoinj.net.discovery.DnsDiscovery
+
 
+
createExecutor() - Method in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
 
+
createFromBitcoinUri(BitcoinURI) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
+
+
createFromBitcoinUri(BitcoinURI, boolean) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
+
+
createFromBitcoinUri(BitcoinURI, boolean, TrustStoreLoader) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri.
+
+
createFromUrl(String) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
+
+
createFromUrl(String, boolean) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
+
+
createFromUrl(String, boolean, TrustStoreLoader) - Static method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url.
+
+
createGenesis(NetworkParameters) - Static method in class org.bitcoinj.core.Block
+
 
+
createInputScript(byte[]) - Static method in class org.bitcoinj.script.Script
+
 
+
createInputScript(byte[], byte[]) - Static method in class org.bitcoinj.script.Script
+
 
+
createInputScript(TransactionSignature) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptSig that can redeem a P2PK output.
+
+
createInputScript(TransactionSignature, ECKey) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptSig that can redeem a P2PKH output.
+
+
createMasterPrivateKey(byte[]) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
+
Generates a new deterministic key from the given seed, which can be any arbitrary byte array.
+
+
createMasterPrivKeyFromBytes(byte[], byte[]) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
createMasterPubKeyFromBytes(byte[], byte[]) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
createMockBroadcast(Transaction, SettableFuture<Transaction>) - Static method in class org.bitcoinj.core.TransactionBroadcast
+
 
+
createMultiSigInputScript(List<TransactionSignature>) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Create a program that satisfies an OP_CHECKMULTISIG program.
+
+
createMultiSigInputScript(TransactionSignature...) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Create a program that satisfies an OP_CHECKMULTISIG program.
+
+
createMultiSigInputScriptBytes(List<byte[]>) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Create a program that satisfies an OP_CHECKMULTISIG program, using pre-encoded signatures.
+
+
createMultiSigInputScriptBytes(List<byte[]>, byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Create a program that satisfies an OP_CHECKMULTISIG program, using pre-encoded signatures.
+
+
createMultiSigOutputScript(int, List<ECKey>) - Static method in class org.bitcoinj.script.Script
+
+
Creates a program that requires at least N of the given keys to sign, using OP_CHECKMULTISIG.
+
+
createMultiSigOutputScript(int, List<ECKey>) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a program that requires at least N of the given keys to sign, using OP_CHECKMULTISIG.
+
+
createNextBlock(Address) - Method in class org.bitcoinj.core.Block
+
 
+
createNextBlock(Address, long, long, int) - Method in class org.bitcoinj.core.Block
+
+
Returns a solved block that builds on top of this one.
+
+
createNextBlock(Address, Coin) - Method in class org.bitcoinj.core.Block
+
 
+
createNextBlock(Address, TransactionOutPoint) - Method in class org.bitcoinj.core.Block
+
 
+
createNextBlockWithCoinbase(long, byte[], Coin, int) - Method in class org.bitcoinj.core.Block
+
 
+
createOpReturnScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a script of the form OP_RETURN [data].
+
+
createOutputScript(Address) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that encodes payment to the given address.
+
+
createP2PKHOutputScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that sends to the given public key hash.
+
+
createP2PKHOutputScript(ECKey) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that sends to the given public key.
+
+
createP2PKOutputScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that encodes payment to the given raw public key.
+
+
createP2PKOutputScript(ECKey) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that encodes payment to the given raw public key.
+
+
createP2SHMultiSigInputScript(List<TransactionSignature>, Script) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Create a program that satisfies a P2SH OP_CHECKMULTISIG program.
+
+
createP2SHOutputScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey that sends to the given script hash.
+
+
createP2SHOutputScript(int, List<ECKey>) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a P2SH output script for n-of-m multisig with given public keys and threshold.
+
+
createP2SHOutputScript(Script) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a scriptPubKey for a given redeem script.
+
+
createP2WPKHOutputScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a segwit scriptPubKey that sends to the given public key hash.
+
+
createP2WPKHOutputScript(ECKey) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a segwit scriptPubKey that sends to the given public key.
+
+
createP2WSHOutputScript(byte[]) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a segwit scriptPubKey that sends to the given script hash.
+
+
createP2WSHOutputScript(Script) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates a segwit scriptPubKey for the given redeem script.
+
+
createPaymentAck(Protos.Payment, String) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Create a payment ack.
+
+
createPaymentMessage(List<Transaction>, List<Protos.Output>, String, byte[]) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Create a payment message.
+
+
createPaymentMessage(List<Transaction>, Coin, Address, String, byte[]) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Create a payment message with one standard pay to address output.
+
+
createPaymentRequest(NetworkParameters, List<Protos.Output>, String, String, byte[]) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Create a payment request.
+
+
createPaymentRequest(NetworkParameters, Coin, Address, String, String, byte[]) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Create a payment request with one standard pay to address output.
+
+
createPayToAddressOutput(Coin, Address) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+ +
+
createPeer(PeerAddress, VersionMessage) - Method in class org.bitcoinj.core.PeerGroup
+
+
You can override this to customise the creation of Peer objects.
+
+
createPeerGroup() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
createPrivateExecutor() - Method in class org.bitcoinj.core.PeerGroup
+
 
+
createRedeemScript(int, List<ECKey>) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Creates an n-of-m multisig redeem script with given public keys and threshold.
+
+
createSend(Address, Coin) - Method in class org.bitcoinj.wallet.Wallet
+
+
Statelessly creates a transaction that sends the given value to address.
+
+
createSend(Address, Coin, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Statelessly creates a transaction that sends the given value to address.
+
+
createWallet() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
CREATION_TIMESTAMP_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
CREATION_TIMESTAMP_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Script
+
 
+
creationTimeSeconds - Variable in class org.bitcoinj.core.ECKey
+
 
+
creationTimeSecs - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
currencyCode - Variable in class org.bitcoinj.utils.Fiat
+
 
+
CURRENT - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
CURRENT_WALLET_VERSION - Static variable in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Current version used for serializing wallets.
+
+
currentAddress(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+ +
+
currentAddress(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
currentChangeAddress() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the address used for change outputs.
+
+
currentKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a key that hasn't been seen in a transaction yet, and which is suitable for displaying in a wallet + user interface as "a convenient key to receive funds on" when the purpose parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS.
+
+
currentKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a key that hasn't been seen in a transaction yet, and which is suitable for displaying in a wallet + user interface as "a convenient key to receive funds on" when the purpose parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS.
+
+
CurrentKeyChangeEventListener - Interface in org.bitcoinj.wallet.listeners
+
 
+
currentReceiveAddress() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
currentReceiveKey() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
currentTimeMillis() - Static method in class org.bitcoinj.core.Utils
+
+
Returns the current time in milliseconds since the epoch, or a mocked out equivalent.
+
+
currentTimeSeconds() - Static method in class org.bitcoinj.core.Utils
+
+
Returns the current time in seconds since the epoch, or a mocked out equivalent.
+
+
cursor - Variable in class org.bitcoinj.core.Message
+
 
+
CURVE - Static variable in class org.bitcoinj.core.ECKey
+
+
The parameters of the secp256k1 curve that Bitcoin uses.
+
+
CustomTransactionSigner - Class in org.bitcoinj.signers
+
+
This signer may be used as a template for creating custom multisig transaction signers.
+
+
CustomTransactionSigner() - Constructor for class org.bitcoinj.signers.CustomTransactionSigner
+
 
+
CustomTransactionSigner.SignatureAndKey - Class in org.bitcoinj.signers
+
 
+
+

D

+
+
DaemonThreadFactory - Class in org.bitcoinj.utils
+
+
Thread factory whose threads are marked as daemon and won't prevent process exit.
+
+
DaemonThreadFactory() - Constructor for class org.bitcoinj.utils.DaemonThreadFactory
+
 
+
DaemonThreadFactory(String) - Constructor for class org.bitcoinj.utils.DaemonThreadFactory
+
 
+
data - Variable in class org.bitcoinj.core.Bech32.Bech32Data
+
 
+
data - Variable in class org.bitcoinj.script.ScriptChunk
+
+
For push operations, this is the vector to be pushed on the stack.
+
+
data(byte[]) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds a copy of the given byte array as a data element (i.e.
+
+
data(int, byte[]) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds a copy of the given byte array as a data element (i.e.
+
+
DATA_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Extension
+
 
+
DATA_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
DATA_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Tag
+
 
+
DatabaseFullPrunedBlockStore - Class in org.bitcoinj.store
+
+
A generic full pruned block store for a relational database.
+
+
DatabaseFullPrunedBlockStore(NetworkParameters, String, int, String, String, String) - Constructor for class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Create a new DatabaseFullPrunedBlockStore, using the full connection URL instead of a hostname and password, + and optionally allowing a schema to be specified.
+
+
dataHash - Variable in class org.bitcoinj.core.CheckpointManager
+
 
+
dateTimeFormat(long) - Static method in class org.bitcoinj.core.Utils
+
+
Formats a given date+time value to an ISO 8601 string.
+
+
dateTimeFormat(Date) - Static method in class org.bitcoinj.core.Utils
+
+
Formats a given date+time value to an ISO 8601 string.
+
+
DEAD - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
If DEAD, then it means the transaction won't confirm unless there is another re-org, + because some other transaction is spending one of its inputs.
+
+
DEAD - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ Double-spent by a transaction in the best chain
+
+
DEAD - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Either if overriding_transaction is present or transaction is dead coinbase.
+
+
DEAD - Enum constant in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
 
+
DEAD_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ Double-spent by a transaction in the best chain
+
+
DEAD_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Either if overriding_transaction is present or transaction is dead coinbase.
+
+
decimalGroups - Variable in class org.bitcoinj.utils.BtcFormat
+
 
+
decimalMark(char) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set character to use as the decimal mark.
+
+
decode(String) - Static method in class org.bitcoinj.core.Base58
+
+
Decodes the given base58 string into the original data bytes.
+
+
decode(String) - Static method in class org.bitcoinj.core.Bech32
+
+
Decode a Bech32 string.
+
+
decodeChecked(String) - Static method in class org.bitcoinj.core.Base58
+
+
Decodes the given base58 string into the original data bytes, using the checksum in the + last 4 bytes of the decoded data to verify that the rest are correct.
+
+
decodeCompactBits(long) - Static method in class org.bitcoinj.core.Utils
+
+
The "compact" format is a representation of a whole number N using an unsigned 32 bit number similar to a + floating point format.
+
+
decodeFromBitcoin(byte[], boolean, boolean) - Static method in class org.bitcoinj.crypto.TransactionSignature
+
+
Returns a decoded signature.
+
+
decodeFromDER(byte[]) - Static method in class org.bitcoinj.core.ECKey.ECDSASignature
+
 
+
decodeFromOpN(int) - Static method in class org.bitcoinj.script.Script
+
 
+
decodeMPI(byte[], boolean) - Static method in class org.bitcoinj.core.Utils
+
+
MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function.
+
+
decodeOpN() - Method in class org.bitcoinj.script.ScriptChunk
+
+
If this chunk is an OP_N opcode returns the equivalent integer value.
+
+
decodeToBigInteger(String) - Static method in class org.bitcoinj.core.Base58
+
 
+
decompress() - Method in class org.bitcoinj.core.ECKey
+
+
Returns a copy of this key, but with the public point represented in uncompressed form.
+
+
decompress() - Method in class org.bitcoinj.crypto.LazyECPoint
+
+
Returns a decompressed version of this elliptic curve point.
+
+
decompressPoint(LazyECPoint) - Static method in class org.bitcoinj.core.ECKey
+
+
Deprecated. + +
+
+
decrypt(CharSequence) - Method in class org.bitcoinj.wallet.Wallet
+
+
Decrypt the wallet with the wallets keyCrypter and password.
+
+
decrypt(String) - Method in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
decrypt(EncryptedData, KeyParameter) - Method in interface org.bitcoinj.crypto.KeyCrypter
+
+
Decrypt the provided encrypted bytes, converting them into unencrypted bytes.
+
+
decrypt(EncryptedData, KeyParameter) - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Decrypt bytes previously encrypted with this class.
+
+
decrypt(KeyCrypter, String, KeyParameter) - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
decrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Create a decrypted private key with the keyCrypter and AES key supplied.
+
+
decrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
decrypt(KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Create a decrypted private key with AES key.
+
+
decrypt(KeyParameter) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
decrypt(KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Decrypt the keys in the group using the previously given key crypter and the AES key.
+
+
decrypt(KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Decrypt the wallet with the wallets keyCrypter and AES key.
+
+
DecryptingKeyBag - Class in org.bitcoinj.wallet
+
+
A DecryptingKeyBag filters a pre-existing key bag, decrypting keys as they are requested using the provided + AES key.
+
+
DecryptingKeyBag(KeyBag, KeyParameter) - Constructor for class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
DEFAULT - Static variable in interface org.bitcoinj.wallet.KeyChainGroupStructure
+
+
Default KeyChainGroupStructure implementation.
+
+
DEFAULT_BLOOM_FILTER_FP_RATE - Static variable in class org.bitcoinj.core.PeerGroup
+
+
The default Bloom filter false positive rate, which is selected to be extremely low such that you hardly ever + download false positives.
+
+
DEFAULT_CAPACITY - Static variable in class org.bitcoinj.store.SPVBlockStore
+
+
The default number of headers that will be stored in the ring buffer.
+
+
DEFAULT_CONNECT_TIMEOUT_MILLIS - Static variable in class org.bitcoinj.core.PeerGroup
+
+
The default timeout between when a connection attempt begins and version message exchange completes
+
+
DEFAULT_CONNECTIONS - Static variable in class org.bitcoinj.core.PeerGroup
+
+
The default number of connections to the p2p network the library will try to build.
+
+
DEFAULT_EVENT_HORIZON - Static variable in class org.bitcoinj.core.Context
+
 
+
DEFAULT_INITIAL_MILLIS - Static variable in class org.bitcoinj.utils.ExponentialBackoff
+
 
+
DEFAULT_KEYSTORE_PASSWORD - Static variable in interface org.bitcoinj.crypto.TrustStoreLoader
+
 
+
DEFAULT_KEYSTORE_TYPE - Static variable in interface org.bitcoinj.crypto.TrustStoreLoader
+
 
+
DEFAULT_MAXIMUM_MILLIS - Static variable in class org.bitcoinj.utils.ExponentialBackoff
+
 
+
DEFAULT_MULTIPLIER - Static variable in class org.bitcoinj.utils.ExponentialBackoff
+
 
+
DEFAULT_PASSPHRASE_FOR_MNEMONIC - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
DEFAULT_PING_INTERVAL_MSEC - Static variable in class org.bitcoinj.core.PeerGroup
+
+
How many milliseconds to wait after receiving a pong before sending another ping.
+
+
DEFAULT_SEED_ENTROPY_BITS - Static variable in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
DEFAULT_TX_FEE - Static variable in class org.bitcoinj.core.Transaction
+
+
If using this feePerKb, transactions will get confirmed within the next couple of blocks.
+
+
defaultBlocksDir() - Static method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
DefaultCoinSelector - Class in org.bitcoinj.wallet
+
+
This class implements a CoinSelector which attempts to get the highest priority + possible.
+
+
DefaultCoinSelector() - Constructor for class org.bitcoinj.wallet.DefaultCoinSelector
+
 
+
DefaultKeyChainFactory - Class in org.bitcoinj.wallet
+
+
Default factory for creating keychains while de-serializing.
+
+
DefaultKeyChainFactory() - Constructor for class org.bitcoinj.wallet.DefaultKeyChainFactory
+
 
+
DefaultRiskAnalysis - Class in org.bitcoinj.wallet
+
+
The default risk analysis.
+
+
DefaultRiskAnalysis.Analyzer - Class in org.bitcoinj.wallet
+
 
+
DefaultRiskAnalysis.RuleViolation - Enum Class in org.bitcoinj.wallet
+
+
The reason a transaction is considered non-standard, returned by + DefaultRiskAnalysis.isStandard(Transaction).
+
+
defaultSerializer - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
DefaultTrustStoreLoader() - Constructor for class org.bitcoinj.crypto.TrustStoreLoader.DefaultTrustStoreLoader
+
 
+
delegate - Variable in class org.bitcoinj.wallet.FilteringCoinSelector
+
 
+
deleteStore() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Deletes the store by deleting the tables within the database.
+
+
dependencies - Variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
DEPTH - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
Occurs when a transaction that is in the best known block chain gets buried by another block.
+
+
DEPTH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
derByteStream() - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
 
+
derive(int) - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Derives a child at the given index using hardened derivation.
+
+
derive(String, String, int, int) - Static method in class org.bitcoinj.crypto.PBKDF2SHA512
+
 
+
deriveChild(List<ChildNumber>, boolean, boolean, ChildNumber) - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Extends the tree by calculating the requested child for the given path.
+
+
deriveChildKey(DeterministicKey, int) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
+
Derives a key given the "extended" child number, ie.
+
+
deriveChildKey(DeterministicKey, ChildNumber) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
deriveChildKeyBytesFromPrivate(DeterministicKey, ChildNumber) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
deriveChildKeyBytesFromPublic(DeterministicKey, ChildNumber, HDKeyDerivation.PublicDeriveMode) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
deriveChildKeyFromPrivate(DeterministicKey, ChildNumber) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
deriveChildKeyFromPublic(DeterministicKey, ChildNumber, HDKeyDerivation.PublicDeriveMode) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
 
+
deriveKey(CharSequence) - Method in interface org.bitcoinj.crypto.KeyCrypter
+
+
Create a KeyParameter (which typically contains an AES key)
+
+
deriveKey(CharSequence) - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Generate AES key.
+
+
deriveNextChild(List<ChildNumber>, boolean, boolean, boolean) - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Extends the tree by calculating the next key that hangs off the given parent path.
+
+
deriveThisOrNextChildKey(DeterministicKey, int) - Static method in class org.bitcoinj.crypto.HDKeyDerivation
+
+
Derives a key of the "extended" child number, ie.
+
+
DERSIG - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
DESCRIPTION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
deserialize(ByteBuffer) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Reads a message from the given ByteBuffer and returns it.
+
+
deserialize(ByteBuffer) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Reads a message from the given ByteBuffer and returns it.
+
+
deserialize(NetworkParameters, byte[]) - Static method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deserialize an HD Key with no parent
+
+
deserialize(NetworkParameters, byte[], DeterministicKey) - Static method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deserialize an HD Key.
+
+
deserializeB58(String, NetworkParameters) - Static method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deserialize a base-58-encoded HD Key with no parent
+
+
deserializeB58(DeterministicKey, String, NetworkParameters) - Static method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deserialize a base-58-encoded HD Key.
+
+
deserializeCompact(NetworkParameters, ByteBuffer) - Static method in class org.bitcoinj.core.StoredBlock
+
+
De-serializes the stored block from a custom packed format.
+
+
deserializeExtension(WalletExtension, byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
+
Deserialize the wallet extension with the supplied data and then install it, replacing any existing extension + that may have existed with the same ID.
+
+
deserializeHeader(ByteBuffer) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Deserializes only the header in case packet meta data is needed before decoding + the payload.
+
+
deserializeHeader(ByteBuffer) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Deserializes only the header in case packet meta data is needed before decoding + the payload.
+
+
deserializePayload(BitcoinSerializer.BitcoinPacketHeader, ByteBuffer) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Deserialize payload only.
+
+
deserializePayload(BitcoinSerializer.BitcoinPacketHeader, ByteBuffer) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Deserialize payload only.
+
+
deserializeWalletExtension(Wallet, byte[]) - Method in interface org.bitcoinj.wallet.WalletExtension
+
+
Loads the contents of this object from the wallet.
+
+
destroy() - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
Details(ECKey, URI) - Constructor for class org.bitcoinj.net.discovery.HttpDiscovery.Details
+
 
+
DETERMINISTIC_KEY - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ + A key that was derived deterministically.
+
+
DETERMINISTIC_KEY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
DETERMINISTIC_KEY_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ + A key that was derived deterministically.
+
+
DETERMINISTIC_MNEMONIC - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ + Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.
+
+
DETERMINISTIC_MNEMONIC_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ + Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.
+
+
DETERMINISTIC_SEED_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
DeterministicHierarchy - Class in org.bitcoinj.crypto
+
+
A DeterministicHierarchy calculates and keeps a whole tree (hierarchy) of keys originating from a single + root key.
+
+
DeterministicHierarchy(DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Constructs a new hierarchy rooted at the given key.
+
+
DeterministicKey - Class in org.bitcoinj.crypto
+
+
A deterministic key is a node in a DeterministicHierarchy.
+
+
DeterministicKey(List<ChildNumber>, byte[], BigInteger, DeterministicKey, int, int) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Constructs a key from its components, including its private key data and possibly-redundant + information about its parent key.
+
+
DeterministicKey(List<ChildNumber>, byte[], KeyCrypter, LazyECPoint, EncryptedData, DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Constructs a key from its components.
+
+
DeterministicKey(List<ChildNumber>, byte[], LazyECPoint, BigInteger, DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Constructs a key from its components.
+
+
DeterministicKey(List<ChildNumber>, byte[], LazyECPoint, DeterministicKey, int, int) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Constructs a key from its components, including its public key data and possibly-redundant + information about its parent key.
+
+
DeterministicKey(List<ChildNumber>, byte[], ECPoint, boolean, BigInteger, DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
 
+
DeterministicKey(DeterministicKey, DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Clones the key
+
+
DeterministicKey(HDPath, byte[], BigInteger, DeterministicKey) - Constructor for class org.bitcoinj.crypto.DeterministicKey
+
+
Constructs a key from its components.
+
+
DeterministicKeyChain - Class in org.bitcoinj.wallet
+
+
A deterministic key chain is a KeyChain that uses the + BIP 32 standard, as implemented by + DeterministicHierarchy, to derive all the keys in the keychain from a master seed.
+
+
DeterministicKeyChain(DeterministicKey, boolean, boolean, Script.ScriptType) - Constructor for class org.bitcoinj.wallet.DeterministicKeyChain
+
+
+ Creates a deterministic key chain from a watched or spendable account key.
+
+
DeterministicKeyChain(KeyCrypter, KeyParameter, DeterministicKeyChain) - Constructor for class org.bitcoinj.wallet.DeterministicKeyChain
+
+
For use in encryption when DeterministicKeyChain.toEncrypted(KeyCrypter, KeyParameter) is called, so that + subclasses can override that method and create an instance of the right class.
+
+
DeterministicKeyChain(DeterministicSeed, KeyCrypter, Script.ScriptType, List<ChildNumber>) - Constructor for class org.bitcoinj.wallet.DeterministicKeyChain
+
+
+ Creates a deterministic key chain with an encrypted deterministic seed using the provided account path.
+
+
DeterministicKeyChain.Builder<T extends DeterministicKeyChain.Builder<T>> - Class in org.bitcoinj.wallet
+
 
+
DeterministicSeed - Class in org.bitcoinj.wallet
+
+
Holds the seed bytes for the BIP32 deterministic wallet algorithm, inside a + DeterministicKeyChain.
+
+
DeterministicSeed(byte[], String, long) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
+
Constructs a seed from a BIP 39 mnemonic code.
+
+
DeterministicSeed(byte[], List<String>, long) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
 
+
DeterministicSeed(String, byte[], String, long) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
 
+
DeterministicSeed(SecureRandom, int, String) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
+
Constructs a seed from a BIP 39 mnemonic code.
+
+
DeterministicSeed(List<String>, byte[], String, long) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
+
Constructs a seed from a BIP 39 mnemonic code.
+
+
DeterministicSeed(EncryptedData, EncryptedData, long) - Constructor for class org.bitcoinj.wallet.DeterministicSeed
+
 
+
DeterministicUpgradeRequiredException - Exception in org.bitcoinj.wallet
+
+
Indicates that an attempt was made to use HD wallet features on a wallet that was deserialized from an old, + pre-HD random wallet without calling upgradeToDeterministic() beforehand.
+
+
DeterministicUpgradeRequiredException() - Constructor for exception org.bitcoinj.wallet.DeterministicUpgradeRequiredException
+
 
+
DeterministicUpgradeRequiresPassword - Exception in org.bitcoinj.wallet
+
+
Indicates that the pre-HD random wallet is encrypted, so you should try the upgrade again after getting the + users password.
+
+
DeterministicUpgradeRequiresPassword() - Constructor for exception org.bitcoinj.wallet.DeterministicUpgradeRequiresPassword
+
 
+
digits(char) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set character range to use for representing digits.
+
+
directory - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
directory() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
disconnect() - Method in class org.bitcoinj.core.TransactionInput
+
+
If this input is connected, check the output is connected back to this input and release it if so, making + it spendable once again.
+
+
DISCONNECT_ON_CONFLICT - Enum constant in enum class org.bitcoinj.core.TransactionInput.ConnectMode
+
 
+
disconnectTransactions(StoredBlock) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Disconnect each transaction in the block (after reading it from the block store) + Only called if(shouldVerifyTransactions())
+
+
disconnectTransactions(StoredBlock) - Method in class org.bitcoinj.core.BlockChain
+
 
+
disconnectTransactions(StoredBlock) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
+
This is broken for blocks that do not pass BIP30, so all BIP30-failing blocks which are allowed to fail BIP30 + must be checkpointed.
+
+
DISCOURAGE_UPGRADABLE_NOPS - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
discoverPeers() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns number of discovered peers.
+
+
discovery - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
displayName - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
+
Display name of the payment requestor, could be a domain name, email address, legal name, etc
+
+
div(int) - Method in class org.bitcoinj.core.Coin
+
+
Alias for divide
+
+
div(long) - Method in class org.bitcoinj.core.Coin
+
+
Alias for divide
+
+
divide(long) - Method in class org.bitcoinj.core.Coin
+
 
+
divide(long) - Method in class org.bitcoinj.utils.Fiat
+
 
+
divide(Coin) - Method in class org.bitcoinj.core.Coin
+
 
+
divide(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
 
+
divideAndRemainder(long) - Method in class org.bitcoinj.core.Coin
+
 
+
divideAndRemainder(long) - Method in class org.bitcoinj.utils.Fiat
+
 
+
DnsDiscovery - Class in org.bitcoinj.net.discovery
+
+
Supports peer discovery through DNS.
+
+
DnsDiscovery(String[], NetworkParameters) - Constructor for class org.bitcoinj.net.discovery.DnsDiscovery
+
+
Supports finding peers through DNS A records.
+
+
DnsDiscovery(NetworkParameters) - Constructor for class org.bitcoinj.net.discovery.DnsDiscovery
+
+
Supports finding peers through DNS A records.
+
+
DnsDiscovery.DnsSeedDiscovery - Class in org.bitcoinj.net.discovery
+
+
Implements discovery from a single DNS host.
+
+
DnsSeedDiscovery(NetworkParameters, String) - Constructor for class org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
+
 
+
dnsSeeds - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
doMaintenance(KeyChainGroupStructure, KeyParameter, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
A wallet app should call this from time to time in order to let the wallet craft and send transactions needed + to re-organise coins internally.
+
+
doMaintenance(KeyParameter, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
A wallet app should call this from time to time in order to let the wallet craft and send transactions needed + to re-organise coins internally.
+
+
doneDownload() - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
Called when we are done downloading the block chain.
+
+
DONT_SEND - Enum constant in enum class org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
 
+
doSetChainHead(StoredBlock) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Called before setting chain head in memory.
+
+
doSetChainHead(StoredBlock) - Method in class org.bitcoinj.core.BlockChain
+
 
+
doSetChainHead(StoredBlock) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
doSign(Sha256Hash, BigInteger) - Method in class org.bitcoinj.core.ECKey
+
 
+
downloadBlockChain() - Method in class org.bitcoinj.core.PeerGroup
+
+
Download the blockchain from peers.
+
+
downloadDependencies(Transaction) - Method in class org.bitcoinj.core.Peer
+
+
Returns a future that wraps a list of all transactions that the given transaction depends on, recursively.
+
+
downloadDependenciesInternal(int, int, Transaction, Object, List<Transaction>) - Method in class org.bitcoinj.core.Peer
+
 
+
downloadListener - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
DownloadProgressTracker - Class in org.bitcoinj.core.listeners
+
+
An implementation of AbstractPeerDataEventListener that listens to chain download events and tracks progress + as a percentage.
+
+
DownloadProgressTracker() - Constructor for class org.bitcoinj.core.listeners.DownloadProgressTracker
+
 
+
drainOrphanBlocks() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns the hashes of the currently stored orphan blocks and then deletes them from this objects storage.
+
+
DRMWorkaround - Class in org.bitcoinj.crypto
+
 
+
DRMWorkaround() - Constructor for class org.bitcoinj.crypto.DRMWorkaround
+
 
+
dropAllPeers() - Method in class org.bitcoinj.core.PeerGroup
+
+
Gracefully drops all connected peers.
+
+
dropParent() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the same key with the parent pointer removed (it still knows its own path and the parent fingerprint).
+
+
dropPrivateBytes() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the same key with the private bytes removed.
+
+
dummy() - Static method in class org.bitcoinj.crypto.TransactionSignature
+
+
Returns a dummy invalid signature whose R/S values are set such that they will take up the same number of + encoded bytes as a real signature.
+
+
DumpedPrivateKey - Class in org.bitcoinj.core
+
+
Parses and generates private keys in the form used by the Bitcoin "dumpprivkey" command.
+
+
dumpedPrivateKeyHeader - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
dumpSizes() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Dumps information about the size of actual data in the database to standard output + The only truly useless data counted is printed in the form "N in id indexes" + This does not take database indexes into account.
+
+
duplicate() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns a copy of this object.
+
+
duplicate() - Method in class org.bitcoinj.core.VersionMessage
+
 
+
DUPLICATE - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message was relayed multiple times or described an object which is in conflict with another.
+
+
duplicateDetached() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns a copy of the input detached from its containing transaction, if need be.
+
+
duplicateDetached() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns a copy of the output detached from its containing transaction, if need be.
+
+
DuplicatedOutPoint() - Constructor for exception org.bitcoinj.core.VerificationException.DuplicatedOutPoint
+
 
+
DUST - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
This refers to a specific form of NONSTANDARD transactions, which have an output smaller than some constant + defining them as dust (this is no longer used).
+
+
DUST - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
DustySendRequested() - Constructor for exception org.bitcoinj.wallet.Wallet.DustySendRequested
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Key
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Script
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
dynamicMethod(GeneratedMessageLite.MethodToInvoke, Object, Object) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
+

E

+
+
earliestKeyTimeSecs - Variable in class org.bitcoinj.net.FilterMerger.Result
+
 
+
EASIEST_DIFFICULTY_TARGET - Static variable in class org.bitcoinj.core.Block
+
+
A value for difficultyTarget (nBits) that allows (slightly less than) half of all possible hash solutions.
+
+
ECDSASignature(BigInteger, BigInteger) - Constructor for class org.bitcoinj.core.ECKey.ECDSASignature
+
+
Constructs a signature with the given components.
+
+
ECKey - Class in org.bitcoinj.core
+
+
Represents an elliptic curve public and (optionally) private key, usable for digital signatures but not encryption.
+
+
ECKey() - Constructor for class org.bitcoinj.core.ECKey
+
+
Generates an entirely new keypair.
+
+
ECKey(byte[], byte[]) - Constructor for class org.bitcoinj.core.ECKey
+
+
Deprecated.
+
+
ECKey(BigInteger, byte[], boolean) - Constructor for class org.bitcoinj.core.ECKey
+
+
Deprecated.
+
+
ECKey(BigInteger, LazyECPoint) - Constructor for class org.bitcoinj.core.ECKey
+
 
+
ECKey(BigInteger, ECPoint, boolean) - Constructor for class org.bitcoinj.core.ECKey
+
 
+
ECKey(SecureRandom) - Constructor for class org.bitcoinj.core.ECKey
+
+
Generates an entirely new keypair with the given SecureRandom object.
+
+
ECKey(EncryptedData, byte[], KeyCrypter) - Constructor for class org.bitcoinj.core.ECKey
+
+
Deprecated.
+
+
ECKey.ECDSASignature - Class in org.bitcoinj.core
+
+
Groups the two components that make up a signature, and provides a way to encode to DER form, which is + how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol.
+
+
ECKey.KeyIsEncryptedException - Exception in org.bitcoinj.core
+
 
+
ECKey.MissingPrivateKeyException - Exception in org.bitcoinj.core
+
 
+
ecMultiply - Variable in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
EMPTY - Enum constant in enum class org.bitcoinj.wallet.BasicKeyChain.State
+
 
+
EMPTY - Static variable in class org.bitcoinj.core.TransactionWitness
+
 
+
EmptyInputsOrOutputs() - Constructor for exception org.bitcoinj.core.VerificationException.EmptyInputsOrOutputs
+
 
+
EmptyMessage - Class in org.bitcoinj.core
+
+
Parent class for header only messages that don't have a payload.
+
+
EmptyMessage() - Constructor for class org.bitcoinj.core.EmptyMessage
+
 
+
EmptyMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.EmptyMessage
+
 
+
EmptyMessage(NetworkParameters, byte[], int) - Constructor for class org.bitcoinj.core.EmptyMessage
+
 
+
emptyWallet - Variable in class org.bitcoinj.wallet.SendRequest
+
+
When emptyWallet is set, all coins selected by the coin selector are sent to the first output in tx + (its value is ignored and set to Wallet.getBalance() - the fees required + for the transaction).
+
+
emptyWallet(Address) - Static method in class org.bitcoinj.wallet.SendRequest
+
 
+
enableStrictMode() - Static method in class org.bitcoinj.core.Context
+
+
Require that new threads use Context.propagate(Context) or ContextPropagatingThreadFactory, + rather than using a heuristic for the desired context.
+
+
encode() - Method in class org.bitcoinj.core.VarInt
+
+
Encodes the value into its minimal representation.
+
+
encode(byte[]) - Static method in class org.bitcoinj.core.Base58
+
+
Encodes the given bytes as a base58 string (no checksum is appended).
+
+
encode(String, byte[]) - Static method in class org.bitcoinj.core.Bech32
+
+ +
+
encode(Bech32.Bech32Data) - Static method in class org.bitcoinj.core.Bech32
+
+
Encode a Bech32 string.
+
+
encode(Bech32.Encoding, String, byte[]) - Static method in class org.bitcoinj.core.Bech32
+
+
Encode a Bech32 string.
+
+
encodeChecked(int, byte[]) - Static method in class org.bitcoinj.core.Base58
+
+
Encodes the given version and bytes as a base58 string.
+
+
encodeCompactBits(BigInteger) - Static method in class org.bitcoinj.core.Utils
+
 
+
encodeMPI(BigInteger, boolean) - Static method in class org.bitcoinj.core.Utils
+
+
MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function.
+
+
encodeToBitcoin() - Method in class org.bitcoinj.crypto.TransactionSignature
+
+
What we get back from the signer are the two components of a signature, r and s.
+
+
encodeToDER() - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
+
DER is an international standard for serializing data structures which is widely used in cryptography.
+
+
encodeToOpN(int) - Static method in class org.bitcoinj.script.Script
+
 
+
encoding - Variable in class org.bitcoinj.core.Bech32.Bech32Data
+
 
+
encrypt(byte[], KeyParameter) - Method in interface org.bitcoinj.crypto.KeyCrypter
+
+
Encrypt the supplied bytes, converting them into ciphertext.
+
+
encrypt(byte[], KeyParameter) - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Password based encryption using AES - CBC 256 bits.
+
+
encrypt(CharSequence) - Method in class org.bitcoinj.wallet.Wallet
+
+
Convenience wrapper around Wallet.encrypt(KeyCrypter, org.bouncycastle.crypto.params.KeyParameter) which uses the default Scrypt key derivation algorithm and + parameters to derive a key from the given password.
+
+
encrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Create an encrypted private key with the keyCrypter and the AES key supplied.
+
+
encrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
encrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
encrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Encrypt the keys in the group using the KeyCrypter and the AES key.
+
+
encrypt(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Encrypt the wallet using the KeyCrypter and the AES key.
+
+
encrypt(KeyCrypter, KeyParameter, DeterministicKey) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
EncryptableItem - Interface in org.bitcoinj.crypto
+
+
Provides a uniform way to access something that can be optionally encrypted with a + KeyCrypter, yielding an EncryptedData, and + which can have a creation time associated with it.
+
+
EncryptableKeyChain - Interface in org.bitcoinj.wallet
+
+
An encryptable key chain is a key-chain that can be encrypted with a user-provided password or AES key.
+
+
ENCRYPTED_DATA_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
ENCRYPTED_DETERMINISTIC_SEED_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
ENCRYPTED_PRIVATE_KEY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
ENCRYPTED_SCRYPT_AES - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
+
+
ENCRYPTED_SCRYPT_AES - Enum constant in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
+ All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
+
+
ENCRYPTED_SCRYPT_AES_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
+
+
ENCRYPTED_SCRYPT_AES_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
+ All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
+
+
encryptedBytes - Variable in class org.bitcoinj.crypto.EncryptedData
+
 
+
EncryptedData - Class in org.bitcoinj.crypto
+
+
An instance of EncryptedData is a holder for an initialization vector and encrypted bytes.
+
+
EncryptedData(byte[], byte[]) - Constructor for class org.bitcoinj.crypto.EncryptedData
+
 
+
encryptedPrivateKey - Variable in class org.bitcoinj.core.ECKey
+
 
+
ENCRYPTION_PARAMETERS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
ENCRYPTION_TYPE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
encryptionIsReversible(ECKey, ECKey, KeyCrypter, KeyParameter) - Static method in class org.bitcoinj.core.ECKey
+
+
Check that it is possible to decrypt the key with the keyCrypter and that the original key is returned.
+
+
endBloomFilterCalculation() - Method in interface org.bitcoinj.core.PeerFilterProvider
+
+ +
+
endBloomFilterCalculation() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
endFilteredBlock(FilteredBlock) - Method in class org.bitcoinj.core.Peer
+
 
+
engineGenerateSeed(int) - Method in class org.bitcoinj.crypto.LinuxSecureRandom
+
 
+
engineNextBytes(byte[]) - Method in class org.bitcoinj.crypto.LinuxSecureRandom
+
 
+
engineSetSeed(byte[]) - Method in class org.bitcoinj.crypto.LinuxSecureRandom
+
 
+
ensureMinRequiredFee - Variable in class org.bitcoinj.wallet.SendRequest
+
+
Requires that there be enough fee for a default Bitcoin Core to at least relay the transaction.
+
+
entropy - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
entropy(byte[], long) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Creates a deterministic key chain starting from the given entropy.
+
+
equals(Object) - Method in class org.bitcoinj.core.BitcoinSerializer
+
 
+
equals(Object) - Method in class org.bitcoinj.core.Block
+
 
+
equals(Object) - Method in class org.bitcoinj.core.BlockLocator
+
 
+
equals(Object) - Method in class org.bitcoinj.core.BloomFilter
+
 
+
equals(Object) - Method in class org.bitcoinj.core.Coin
+
 
+
equals(Object) - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
 
+
equals(Object) - Method in class org.bitcoinj.core.ECKey
+
 
+
equals(Object) - Method in class org.bitcoinj.core.FilteredBlock
+
 
+
equals(Object) - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.core.GetHeadersMessage
+
+
Compares two getheaders messages.
+
+
equals(Object) - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.core.InventoryItem
+
 
+
equals(Object) - Method in class org.bitcoinj.core.LegacyAddress
+
 
+
equals(Object) - Method in class org.bitcoinj.core.ListMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
equals(Object) - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
equals(Object) - Method in class org.bitcoinj.core.PeerAddress
+
 
+
equals(Object) - Method in class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
equals(Object) - Method in class org.bitcoinj.core.RejectMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.core.Sha256Hash
+
 
+
equals(Object) - Method in class org.bitcoinj.core.StoredBlock
+
 
+
equals(Object) - Method in class org.bitcoinj.core.StoredUndoableBlock
+
 
+
equals(Object) - Method in class org.bitcoinj.core.Transaction
+
 
+
equals(Object) - Method in class org.bitcoinj.core.TransactionInput
+
 
+
equals(Object) - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
equals(Object) - Method in class org.bitcoinj.core.TransactionOutput
+
 
+
equals(Object) - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
equals(Object) - Method in class org.bitcoinj.core.UTXO
+
 
+
equals(Object) - Method in class org.bitcoinj.core.UTXOsMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.core.VersionMessage
+
 
+
equals(Object) - Method in class org.bitcoinj.crypto.ChildNumber
+
 
+
equals(Object) - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Verifies equality of all fields but NOT the parent pointer (thus the same key derived in two separate hierarchy + objects will equal each other.
+
+
equals(Object) - Method in class org.bitcoinj.crypto.EncryptedData
+
 
+
equals(Object) - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
 
+
equals(Object) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
equals(Object) - Method in class org.bitcoinj.script.Script
+
 
+
equals(Object) - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
equals(Object) - Method in class org.bitcoinj.utils.BtcAutoFormat
+
+
Return true if the other instance is equivalent to this one.
+
+
equals(Object) - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return true if the given object is equivalent to this one.
+
+
equals(Object) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return true if the given object is equivalent to this one.
+
+
equals(Object) - Method in class org.bitcoinj.utils.ExchangeRate
+
 
+
equals(Object) - Method in class org.bitcoinj.utils.Fiat
+
 
+
equals(Object) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Two formats are equal if they have the same parameters.
+
+
equals(Object) - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
equals(ECPoint) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
equalsOpCode(int) - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
ERROR - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
estimateBlockTime(int) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns an estimate of when the given block will be reached, assuming a perfect 10 minute average for each + block.
+
+
ESTIMATED - Enum constant in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Balance calculated assuming all pending transactions are in fact included into the best chain by miners.
+
+
ESTIMATED_SPENDABLE - Enum constant in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Same as ESTIMATED but only for outputs we have the private keys for and can sign ourselves.
+
+
estimateLockTime(AbstractBlockChain) - Method in class org.bitcoinj.core.Transaction
+
+
Returns either the lock time as a date, if it was specified in seconds, or an estimate based on the time in + the current head block if it was specified as a block time.
+
+
ExceededMaxTransactionSize() - Constructor for exception org.bitcoinj.wallet.Wallet.ExceededMaxTransactionSize
+
 
+
ExcessiveValue() - Constructor for exception org.bitcoinj.core.VerificationException.ExcessiveValue
+
 
+
EXCHANGE_RATE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
exchangeRate - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If not null, this exchange rate is recorded with the transaction during completion.
+
+
ExchangeRate - Class in org.bitcoinj.utils
+
+
An exchange rate is expressed as a ratio of a Coin and a Fiat amount.
+
+
ExchangeRate(Coin, Fiat) - Constructor for class org.bitcoinj.utils.ExchangeRate
+
+
Construct exchange rate.
+
+
ExchangeRate(Fiat) - Constructor for class org.bitcoinj.utils.ExchangeRate
+
+
Construct exchange rate.
+
+
excludeOutputsSpentBy(Transaction) - Method in class org.bitcoinj.wallet.FilteringCoinSelector
+
 
+
execute(Runnable) - Method in class org.bitcoinj.utils.Threading.UserThread
+
 
+
executeScript(Transaction, long, Script, LinkedList<byte[]>, boolean) - Static method in class org.bitcoinj.script.Script
+
+ +
+
executeScript(Transaction, long, Script, LinkedList<byte[]>, Set<Script.VerifyFlag>) - Static method in class org.bitcoinj.script.Script
+
+
Exposes the script interpreter.
+
+
executor - Variable in class org.bitcoinj.core.PeerGroup
+
 
+
executor - Variable in class org.bitcoinj.utils.ListenerRegistration
+
 
+
executor() - Method in class org.bitcoinj.net.NioClientManager
+
 
+
Expired(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.Expired
+
 
+
EXPIRES_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
ExponentialBackoff - Class in org.bitcoinj.utils
+
+
Tracks successes and failures and calculates a time to retry the operation.
+
+
ExponentialBackoff(ExponentialBackoff.Params) - Constructor for class org.bitcoinj.utils.ExponentialBackoff
+
 
+
ExponentialBackoff.Params - Class in org.bitcoinj.utils
+
+
Parameters to configure a particular kind of exponential backoff.
+
+
extend(List<ChildNumber>) - Method in class org.bitcoinj.crypto.HDPath
+
+
Extend the path by appending a relative path.
+
+
extend(ChildNumber, ChildNumber...) - Method in class org.bitcoinj.crypto.HDPath
+
+
Extend the path by appending additional ChildNumber objects.
+
+
extend(HDPath) - Method in class org.bitcoinj.crypto.HDPath
+
+
Extend the path by appending a relative path.
+
+
EXTENSION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
EXTERNAL_SUBPATH - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
extractHashFromP2PKH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Extract the pubkey hash from a P2PKH scriptPubKey.
+
+
extractHashFromP2SH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Extract the script hash from a P2SH scriptPubKey.
+
+
extractHashFromP2WH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Extract the pubkey hash from a P2WPKH or the script hash from a P2WSH scriptPubKey.
+
+
extractKeyFromP2PK(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Extract the pubkey from a P2SH scriptPubKey.
+
+
extractOutputKeyFromP2TR(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Extract the taproot output key from a P2TR scriptPubKey.
+
+
extractWitnessCommitmentHash(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Retrieves the hash from a segwit commitment (in an output of the coinbase transaction).
+
+
+

F

+
+
factory - Static variable in class org.bitcoinj.utils.Threading
+
 
+
Factory() - Constructor for class org.bitcoinj.core.TransactionConfidence.Factory
+
 
+
FACTORY - Static variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
FAKE_SIGNATURES - Static variable in class org.bitcoinj.core.ECKey
+
+
If this global variable is set to true, sign() creates a dummy signature and verify() always returns true.
+
+
FEEFILTER - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
FeeFilterMessage - Class in org.bitcoinj.core
+
+
Represents an "feefilter" message on the P2P network, which instructs a peer to filter transaction invs for + transactions that fall below the feerate provided.
+
+
FeeFilterMessage(NetworkParameters, byte[], BitcoinSerializer, int) - Constructor for class org.bitcoinj.core.FeeFilterMessage
+
 
+
feePerKb - Variable in class org.bitcoinj.wallet.SendRequest
+
+
A transaction can have a fee attached, which is defined as the difference between the input values + and output values.
+
+
fiat - Variable in class org.bitcoinj.utils.ExchangeRate
+
 
+
Fiat - Class in org.bitcoinj.utils
+
+
Represents a monetary fiat value.
+
+
FIAT - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Standard format for fiat amounts.
+
+
FIAT_CURRENCY_CODE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
FIAT_VALUE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
fiatToCoin(Fiat) - Method in class org.bitcoinj.utils.ExchangeRate
+
+
Convert a fiat amount to a coin amount using this exchange rate.
+
+
FIELD_ADDRESS - Static variable in class org.bitcoinj.uri.BitcoinURI
+
 
+
FIELD_AMOUNT - Static variable in class org.bitcoinj.uri.BitcoinURI
+
 
+
FIELD_LABEL - Static variable in class org.bitcoinj.uri.BitcoinURI
+
 
+
FIELD_MESSAGE - Static variable in class org.bitcoinj.uri.BitcoinURI
+
 
+
FIELD_PAYMENT_REQUEST_URL - Static variable in class org.bitcoinj.uri.BitcoinURI
+
 
+
FIFTY_COINS - Static variable in class org.bitcoinj.core.Coin
+
 
+
FILE_PROLOGUE_BYTES - Static variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
fileLock - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
filename - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
filePrefix - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
FileTrustStoreLoader(File) - Constructor for class org.bitcoinj.crypto.TrustStoreLoader.FileTrustStoreLoader
+
 
+
filter - Variable in class org.bitcoinj.net.FilterMerger.Result
+
 
+
FILTERED_BLOCK - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
FilteredBlock - Class in org.bitcoinj.core
+
+
A FilteredBlock is used to relay a block with its transactions filtered using a BloomFilter.
+
+
FilteredBlock(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.FilteredBlock
+
 
+
FilteredBlock(NetworkParameters, Block, PartialMerkleTree) - Constructor for class org.bitcoinj.core.FilteredBlock
+
 
+
FilteringCoinSelector - Class in org.bitcoinj.wallet
+
+
A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.
+
+
FilteringCoinSelector(CoinSelector) - Constructor for class org.bitcoinj.wallet.FilteringCoinSelector
+
 
+
FilterMerger - Class in org.bitcoinj.net
+
+
A reusable object that will calculate, given a list of PeerFilterProviders, a merged + BloomFilter and earliest key time for all of them.
+
+
FilterMerger(double) - Constructor for class org.bitcoinj.net.FilterMerger
+
 
+
FilterMerger.Result - Class in org.bitcoinj.net
+
 
+
findKeyFromAddress(Address) - Method in class org.bitcoinj.wallet.Wallet
+
+
Locates a keypair from the wallet given the corresponding address.
+
+
findKeyFromPubHash(byte[]) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
findKeyFromPubHash(byte[]) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
findKeyFromPubHash(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
findKeyFromPubKey(byte[]) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
findKeyFromPubKey(byte[]) - Method in class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
findKeyFromPubKey(byte[]) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
findKeyFromPubKey(byte[]) - Method in interface org.bitcoinj.wallet.KeyBag
+
+
Locates a keypair from the keychain given the raw public key bytes.
+
+
findKeyFromPubKey(byte[]) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
findKeyFromPubKey(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
+
Locates a keypair from the basicKeyChain given the raw public key bytes.
+
+
findKeyFromPubKeyHash(byte[], Script.ScriptType) - Method in class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
findKeyFromPubKeyHash(byte[], Script.ScriptType) - Method in interface org.bitcoinj.wallet.KeyBag
+
+
Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type.
+
+
findKeyFromPubKeyHash(byte[], Script.ScriptType) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
findKeyFromPubKeyHash(byte[], Script.ScriptType) - Method in class org.bitcoinj.wallet.Wallet
+
+
Locates a keypair from the basicKeyChain given the hash of the public key.
+
+
findKeysBefore(long) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns a list of all ECKeys created after the given UNIX time.
+
+
findOldestKeyAfter(long) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns the first ECKey created after the given UNIX time, or null if there is none.
+
+
findPeersOfAtLeastVersion(long) - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns an array list of peers that implement the given protocol version or better.
+
+
findPeersWithServiceMask(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns an array list of peers that match the requested service bit mask.
+
+
findRecoveryId(Sha256Hash, ECKey.ECDSASignature) - Method in class org.bitcoinj.core.ECKey
+
+
Returns the recovery ID, a byte with value between 0 and 3, inclusive, that specifies which of 4 possible + curve points was used to sign a message.
+
+
findRedeemDataByScriptHash(ByteString) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the redeem script by its hash or null if this keychain did not generate the script.
+
+
findRedeemDataByScriptHash(ByteString) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
findRedeemDataFromScriptHash(byte[]) - Method in class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
findRedeemDataFromScriptHash(byte[]) - Method in interface org.bitcoinj.wallet.KeyBag
+
+
Locates a redeem data (redeem script and keys) from the keychain given the hash of the script.
+
+
findRedeemDataFromScriptHash(byte[]) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
findRedeemDataFromScriptHash(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
+
Locates a redeem data (redeem script and keys) from the keyChainGroup given the hash of the script.
+
+
findWitnessCommitment() - Method in class org.bitcoinj.core.Transaction
+
+
Loops the outputs of a coinbase transaction to locate the witness commitment.
+
+
followingKeys(List<DeterministicKey>) - Method in class org.bitcoinj.wallet.MarriedKeyChain.Builder
+
 
+
followingKeys(DeterministicKey, DeterministicKey...) - Method in class org.bitcoinj.wallet.MarriedKeyChain.Builder
+
 
+
FORCE_SEND_FOR_REFRESH - Enum constant in enum class org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
 
+
format(Object, int, int...) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Formats a bitcoin value as a number and possibly a units indicator to a + String.The type of monetary value argument can be any one of any of the + following classes: Coin, Integer, Long, + BigInteger, BigDecimal.
+
+
format(Object, StringBuffer, FieldPosition) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer.
+
+
format(Object, StringBuffer, FieldPosition, int, int...) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer.
+
+
format(LogRecord) - Method in class org.bitcoinj.utils.BriefLogFormatter
+
 
+
format(Monetary) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Format the given monetary value to a human readable form.
+
+
formatAddresses(boolean, boolean, KeyParameter, NetworkParameters, StringBuilder) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
formatAddresses(boolean, boolean, KeyParameter, NetworkParameters, StringBuilder) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
formatKeyWithAddress(boolean, KeyParameter, StringBuilder, NetworkParameters, Script.ScriptType, String) - Method in class org.bitcoinj.core.ECKey
+
 
+
formatKeyWithAddress(boolean, KeyParameter, StringBuilder, NetworkParameters, Script.ScriptType, String) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
formatPath(List<ChildNumber>) - Static method in class org.bitcoinj.crypto.HDUtils
+
+
Deprecated. +
Use HDPath#toString
+
+
+
formatToCharacterIterator(Object) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Formats a bitcoin monetary value and returns an AttributedCharacterIterator.
+
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
 
+
forNumber(int) - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
 
+
forServices(NetworkParameters, long) - Static method in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
+
Builds a suitable set of peer discoveries.
+
+
forServices(NetworkParameters, long, boolean, boolean) - Static method in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
+
Builds a suitable set of peer discoveries.
+
+
forTx(Transaction) - Static method in class org.bitcoinj.wallet.SendRequest
+
+
Simply wraps a pre-built incomplete transaction provided by you.
+
+
FP_ESTIMATOR_ALPHA - Static variable in class org.bitcoinj.core.AbstractBlockChain
+
+
False positive estimation uses a double exponential moving average.
+
+
FP_ESTIMATOR_BETA - Static variable in class org.bitcoinj.core.AbstractBlockChain
+
+
False positive estimation uses a double exponential moving average.
+
+
fractionDigits(int) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify the number of decimal places in the fraction part of formatted numbers.
+
+
fractionGroups(int...) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify the sizes of a variable number of optional decimal-place groups in the + fraction part of formatted values.
+
+
fractionPlaceGroups() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return the fractional decimal-placing used when formatting.
+
+
fractionPlaces() - Method in class org.bitcoinj.utils.BtcAutoFormat
+
+
Return the number of decimal places in the fraction part of numbers formatted by this + instance.
+
+
freshAddress(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+ +
+
freshAddress(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
freshAddress(KeyChain.KeyPurpose, Script.ScriptType, long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a fresh address for a given KeyChain.KeyPurpose and of a given + Script.ScriptType.
+
+
freshKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a key that has not been returned by this method before (fresh).
+
+
freshKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a key that has not been returned by this method before (fresh).
+
+
freshKeys(KeyChain.KeyPurpose, int) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a key/s that have not been returned by this method before (fresh).
+
+
freshKeys(KeyChain.KeyPurpose, int) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a key/s that has not been returned by this method before (fresh).
+
+
freshOutputScript(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Create a new key and return the matching output script.
+
+
freshOutputScript(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
+
Create a new married key and return the matching output script
+
+
freshReceiveAddress() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
freshReceiveAddress(Script.ScriptType) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a fresh receive address for a given Script.ScriptType.
+
+
freshReceiveKey() - Method in class org.bitcoinj.wallet.Wallet
+
+
An alias for calling Wallet.freshKey(KeyChain.KeyPurpose) with + KeyChain.KeyPurpose.RECEIVE_FUNDS as the parameter.
+
+
fromAddr - Variable in class org.bitcoinj.core.VersionMessage
+
+
The network address of the node emitting this message.
+
+
fromASN1(byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Construct an ECKey from an ASN.1 encoded private key.
+
+
fromBase58(NetworkParameters, String) - Static method in class org.bitcoinj.core.DumpedPrivateKey
+
+
Construct a private key from its Base58 representation.
+
+
fromBase58(NetworkParameters, String) - Static method in class org.bitcoinj.core.LegacyAddress
+
+
Construct a LegacyAddress from its base58 form.
+
+
fromBase58(NetworkParameters, String) - Static method in class org.bitcoinj.crypto.BIP38PrivateKey
+
+
Construct a password-protected private key from its Base58 representation.
+
+
fromBech32(NetworkParameters, String) - Static method in class org.bitcoinj.core.SegwitAddress
+
+
Construct a SegwitAddress from its textual form.
+
+
fromEncrypted(EncryptedData, KeyCrypter, byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Constructs a key that has an encrypted private component.
+
+
fromHash(NetworkParameters, byte[]) - Static method in class org.bitcoinj.core.SegwitAddress
+
+
Construct a SegwitAddress that represents the given hash, which is either a pubkey hash or a script hash.
+
+
fromID(String) - Static method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the network parameters for the given string ID or NULL if not recognized.
+
+
fromKey(NetworkParameters, ECKey) - Static method in class org.bitcoinj.core.LegacyAddress
+
+
Construct a LegacyAddress that represents the public part of the given ECKey.
+
+
fromKey(NetworkParameters, ECKey) - Static method in class org.bitcoinj.core.SegwitAddress
+
+
Construct a SegwitAddress that represents the public part of the given ECKey.
+
+
fromKey(NetworkParameters, ECKey, Script.ScriptType) - Static method in class org.bitcoinj.core.Address
+
+
Construct an Address that represents the public part of the given ECKey.
+
+
fromKey(DeterministicKey, Script.ScriptType) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Add chain from a given account key.
+
+
fromKeys(NetworkParameters, List<ECKey>) - Static method in class org.bitcoinj.wallet.Wallet
+
+ +
+
fromMasterKey(NetworkParameters, DeterministicKey, Script.ScriptType, ChildNumber) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key.
+
+
fromMnemonic(String) - Static method in enum class org.bitcoinj.script.ScriptError
+
 
+
fromPaymentDetails(Protos.PaymentDetails) - Method in class org.bitcoinj.wallet.SendRequest
+
+
Copy data from payment request.
+
+
fromPmtProtocolID(String) - Static method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the network parameters for the given string paymentProtocolID or NULL if not recognized.
+
+
fromPrivate(byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey given the private key only.
+
+
fromPrivate(byte[], boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey given the private key only.
+
+
fromPrivate(BigInteger) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey given the private key only.
+
+
fromPrivate(BigInteger, boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey given the private key only.
+
+
fromPrivateAndPrecalculatedPublic(byte[], byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key.
+
+
fromPrivateAndPrecalculatedPublic(BigInteger, ECPoint, boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key.
+
+
fromProgram(NetworkParameters, int, byte[]) - Static method in class org.bitcoinj.core.SegwitAddress
+
+
Construct a SegwitAddress that represents the given program, which is either a pubkey, a pubkey hash + or a script hash – depending on the script version.
+
+
fromProtobuf(List<Protos.Key>, KeyCrypter, KeyChainFactory) - Static method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns all the key chains found in the given list of keys.
+
+
fromProtobufEncrypted(List<Protos.Key>, KeyCrypter) - Static method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys and also any encrypted keys extracted + from the list.
+
+
fromProtobufEncrypted(NetworkParameters, List<Protos.Key>, KeyCrypter, KeyChainFactory) - Static method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
fromProtobufUnencrypted(List<Protos.Key>) - Static method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys extracted from the list.
+
+
fromProtobufUnencrypted(NetworkParameters, List<Protos.Key>, KeyChainFactory) - Static method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
fromPubKeyHash(NetworkParameters, byte[]) - Static method in class org.bitcoinj.core.LegacyAddress
+
+
Construct a LegacyAddress that represents the given pubkey hash.
+
+
fromPublicOnly(byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey that cannot be used for signing, only verifying signatures, from the given encoded point.
+
+
fromPublicOnly(ECKey) - Static method in class org.bitcoinj.core.ECKey
+
 
+
fromPublicOnly(ECPoint, boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Creates an ECKey that cannot be used for signing, only verifying signatures, from the given point.
+
+
fromRandom(Script.ScriptType) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Add chain from a random source.
+
+
fromScriptHash(NetworkParameters, byte[]) - Static method in class org.bitcoinj.core.LegacyAddress
+
+
Construct a LegacyAddress that represents the given P2SH script hash.
+
+
fromSeed(NetworkParameters, DeterministicSeed) - Static method in class org.bitcoinj.wallet.Wallet
+
+ +
+
fromSeed(NetworkParameters, DeterministicSeed, List<ChildNumber>) - Static method in class org.bitcoinj.wallet.Wallet
+
+ +
+
fromSeed(NetworkParameters, DeterministicSeed, Script.ScriptType) - Static method in class org.bitcoinj.wallet.Wallet
+
 
+
fromSeed(NetworkParameters, DeterministicSeed, Script.ScriptType, List<ChildNumber>) - Static method in class org.bitcoinj.wallet.Wallet
+
 
+
fromSeed(NetworkParameters, DeterministicSeed, Script.ScriptType, KeyChainGroupStructure) - Static method in class org.bitcoinj.wallet.Wallet
+
 
+
fromSeed(DeterministicSeed, Script.ScriptType) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Add chain from a given seed.
+
+
fromSpendingKey(NetworkParameters, DeterministicKey) - Static method in class org.bitcoinj.wallet.Wallet
+
+ +
+
fromSpendingKey(NetworkParameters, DeterministicKey, Script.ScriptType) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key.
+
+
fromSpendingKeyB58(NetworkParameters, String, long) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key.
+
+
fromStream(InputStream) - Static method in class org.bitcoinj.core.UTXO
+
 
+
fromString(NetworkParameters, String) - Static method in class org.bitcoinj.core.Address
+
+
Construct an address from its textual form.
+
+
fromWatchingKey(NetworkParameters, DeterministicKey) - Static method in class org.bitcoinj.wallet.Wallet
+
+ +
+
fromWatchingKey(NetworkParameters, DeterministicKey, Script.ScriptType) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
+
+
fromWatchingKeyB58(NetworkParameters, String, long) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
+
+
FullPrunedBlockChain - Class in org.bitcoinj.core
+
+
A FullPrunedBlockChain works in conjunction with a FullPrunedBlockStore to verify all the rules of the + Bitcoin system, with the downside being a large cost in system resources.
+
+
FullPrunedBlockChain(Context, List<Wallet>, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+
Constructs a block chain connected to the given list of wallets and a store.
+
+
FullPrunedBlockChain(Context, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+
Constructs a block chain connected to the given store.
+
+
FullPrunedBlockChain(Context, Wallet, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+
Constructs a block chain connected to the given wallet and store.
+
+
FullPrunedBlockChain(NetworkParameters, List<Wallet>, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+ +
+
FullPrunedBlockChain(NetworkParameters, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+ +
+
FullPrunedBlockChain(NetworkParameters, Wallet, FullPrunedBlockStore) - Constructor for class org.bitcoinj.core.FullPrunedBlockChain
+
+
Constructs a block chain connected to the given wallet and store.
+
+
FullPrunedBlockStore - Interface in org.bitcoinj.store
+
+
An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism.
+
+
fullStoreDepth - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
fullStoreDepth - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
future() - Method in class org.bitcoinj.core.TransactionBroadcast
+
 
+
FutureVersion() - Constructor for exception org.bitcoinj.wallet.UnreadableWalletException.FutureVersion
+
 
+
+

G

+
+
gathered - Variable in class org.bitcoinj.wallet.CoinSelection
+
 
+
genesisBlock - Variable in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+
lazy-initialized by the first call to NetworkParameters.getGenesisBlock()
+
+
get() - Static method in class org.bitcoinj.core.Context
+
+
Returns the current context that is associated with the calling thread.
+
+
get() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
get() - Static method in class org.bitcoinj.params.MainNetParams
+
 
+
get() - Static method in class org.bitcoinj.params.Networks
+
 
+
get() - Static method in class org.bitcoinj.params.RegTestParams
+
 
+
get() - Static method in class org.bitcoinj.params.TestNet3Params
+
 
+
get() - Static method in class org.bitcoinj.params.UnitTestParams
+
 
+
get() - Static method in class org.bitcoinj.wallet.AllowUnconfirmedCoinSelector
+
+
Returns a global static instance of the selector.
+
+
get() - Static method in class org.bitcoinj.wallet.DefaultCoinSelector
+
+
Returns a global static instance of the selector.
+
+
get(int) - Method in class org.bitcoinj.core.BlockLocator
+
+
Get hash by index from this block locator.
+
+
get(int) - Method in class org.bitcoinj.crypto.HDPath
+
 
+
get(String) - Static method in class org.bitcoinj.utils.AppDataDirectory
+
+
Get and create if necessary the Path to the application data directory.
+
+
get(List<ChildNumber>, boolean, boolean) - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Returns a key for the given path, optionally creating it.
+
+
get(Sha256Hash) - Method in class org.bitcoinj.core.TxConfidenceTable
+
+
Returns the TransactionConfidence for the given hash if we have downloaded it, or null if that tx hash + is unknown to the system at this time.
+
+
get(Sha256Hash) - Method in interface org.bitcoinj.store.BlockStore
+
+
Returns the StoredBlock given a hash.
+
+
get(Sha256Hash) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
get(Sha256Hash) - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
get(Sha256Hash) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
get(Sha256Hash) - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
get(Sha256Hash) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
get(Sha256Hash) - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
get(Sha256Hash, boolean) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
get(Sha256Hash, boolean) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getAccountPath() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getAccountPath(int) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
getAccountPath(int) - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The path to the root.
+
+
getAccountPath(int) - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The path to the root.
+
+
getAccountPathCount() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
getAccountPathCount() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The path to the root.
+
+
getAccountPathCount() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The path to the root.
+
+
getAccountPathList() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
getAccountPathList() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The path to the root.
+
+
getAccountPathList() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The path to the root.
+
+
getActiveKeyChain() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns the key chain that's used for generation of default fresh/current keys.
+
+
getActiveKeyChain() - Method in class org.bitcoinj.wallet.Wallet
+
+
Gets the default active keychain via KeyChainGroup.getActiveKeyChain().
+
+
getActiveKeyChain(Script.ScriptType, long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns the key chain that's used for generation of fresh/current keys of the given type.
+
+
getActiveKeyChains() - Method in class org.bitcoinj.wallet.Wallet
+
+
Gets the active keychains via KeyChainGroup.getActiveKeyChains(long).
+
+
getActiveKeyChains(long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns the key chains that are used for generation of fresh/current keys, in the order of how they + were added.
+
+
getAddr() - Method in class org.bitcoinj.core.Peer
+
+
Sends a getaddr request to the peer and returns a future that completes with the answer once the peer has replied.
+
+
getAddr() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getAddress() - Method in class org.bitcoinj.core.PeerSocketHandler
+
 
+
getAddress() - Method in class org.bitcoinj.core.UTXO
+
+
The address of this output, can be the empty string if none was provided at construction time or was deserialized
+
+
getAddress() - Method in class org.bitcoinj.uri.BitcoinURI
+
+
The Bitcoin address from the URI, if one was present.
+
+
getAddresses() - Method in class org.bitcoinj.core.AddressMessage
+
 
+
getAddressFromP2PKHScript(NetworkParameters) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Deprecated.
+
+
getAddressFromP2SH(NetworkParameters) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Deprecated.
+
+
getAddressHeader() - Method in class org.bitcoinj.core.NetworkParameters
+
+
First byte of a base58 encoded address.
+
+
GetAddrMessage - Class in org.bitcoinj.core
+
+
Represents the "getaddr" P2P protocol message, which requests network AddressMessages from a peer.
+
+
GetAddrMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.GetAddrMessage
+
 
+
getAddrSeeds() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns IP address of active peers.
+
+
getAffineXCoord() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getAffineYCoord() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getAmount() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ amount is integer-number-of-satoshis
+
+
getAmount() - Method in class org.bitcoin.protocols.payments.Protos.Output
+
+
+ amount is integer-number-of-satoshis
+
+
getAmount() - Method in interface org.bitcoin.protocols.payments.Protos.OutputOrBuilder
+
+
+ amount is integer-number-of-satoshis
+
+
getAmount() - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
getAppearedAtChainHeight() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns the chain height at which the transaction appeared if confidence type is BUILDING.
+
+
getAppearedAtHeight() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
getAppearedAtHeight() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
getAppearedAtHeight() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
getAppearsInHashes() - Method in class org.bitcoinj.core.Transaction
+
+
Returns a map of block [hashes] which contain the transaction mapped to relativity counters, or null if this + transaction doesn't have that data because it's not stored in the wallet or because it has never appeared in a + block.
+
+
getAssociatedTransactions() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Gets the set of transactions which were provided using provideTransaction() which match in getTransactionHashes()
+
+
getAvailableLocales() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return an array of all locales for which the getInstance() method of this class can + return localized instances.
+
+
getBalance() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the AVAILABLE balance of this wallet.
+
+
getBalance(CoinSelector) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the balance that would be considered spendable by the given coin selector, including watched outputs + (i.e.
+
+
getBalance(Wallet.BalanceType) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the balance of this wallet as calculated by the provided balanceType.
+
+
getBalanceFuture(Coin, Wallet.BalanceType) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a future that will complete when the balance of the given type has becom equal or larger to the given + value.
+
+
getBalanceSelectSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the total balance for a given address.
+
+
getBestChainHeight() - Method in class org.bitcoinj.core.AbstractBlockChain
+
 
+
getBestHeight() - Method in class org.bitcoinj.core.Peer
+
 
+
getBip32HeaderP2PKHpriv() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the 4 byte header for BIP32 wallet P2PKH - private key part.
+
+
getBip32HeaderP2PKHpub() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the 4 byte header for BIP32 wallet P2PKH - public key part.
+
+
getBip32HeaderP2WPKHpriv() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the 4 byte header for BIP32 wallet P2WPKH - private key part.
+
+
getBip32HeaderP2WPKHpub() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the 4 byte header for BIP32 wallet P2WPKH - public key part.
+
+
getBitcoinProtocolVersion() - Method in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
getBlock(Sha256Hash) - Method in class org.bitcoinj.core.Peer
+
+
Asks the connected peer for the block of the given hash, and returns a future representing the answer.
+
+
getBlockHash(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHash(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHash(int) - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashCount() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashCount() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashCount() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashList() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHashList() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
getBlockHeader() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Gets a copy of the block header
+
+
getBlockHeaders() - Method in class org.bitcoinj.core.HeadersMessage
+
 
+
getBlockInflation(int) - Method in class org.bitcoinj.core.Block
+
+ +
+
getBlockInflation(int) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+
A utility method that calculates how much new Bitcoin would be created by the block at the given height.
+
+
getBlockRelativityOffsets(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsets(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsets(int) - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsCount() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsCount() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsCount() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsList() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated int32 block_relativity_offsets = 11;
+
+
getBlockRelativityOffsetsList() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
GetBlocksMessage - Class in org.bitcoinj.core
+
+
Represents the "getblocks" P2P network message, which requests the hashes of the parts of the block chain we're + missing.
+
+
GetBlocksMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.GetBlocksMessage
+
 
+
GetBlocksMessage(NetworkParameters, BlockLocator, Sha256Hash) - Constructor for class org.bitcoinj.core.GetBlocksMessage
+
 
+
getBlockStore() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns the BlockStore the chain was constructed with.
+
+
getBlockVerificationFlags(Block, VersionTally, Integer) - Method in class org.bitcoinj.core.NetworkParameters
+
+
The flags indicating which block validation tests should be applied to + the given block.
+
+
getBloomFilter() - Method in class org.bitcoinj.core.Peer
+
+ +
+
getBloomFilter(double) - Method in class org.bitcoinj.wallet.Wallet
+
+
Gets a bloom filter that contains all of the public keys from this wallet, and which will provide the given + false-positive rate.
+
+
getBloomFilter(int, double, long) - Method in interface org.bitcoinj.core.PeerFilterProvider
+
+
Gets a bloom filter that contains all the necessary elements for the listener to receive relevant transactions.
+
+
getBloomFilter(int, double, long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
getBloomFilter(int, double, long) - Method in class org.bitcoinj.wallet.Wallet
+
+
Gets a bloom filter that contains all of the public keys from this wallet, and which will provide the given + false-positive rate if it has size elements.
+
+
getBloomFilterElementCount() - Method in interface org.bitcoinj.core.PeerFilterProvider
+
+
Gets the number of elements that will be added to a bloom filter returned by + PeerFilterProvider.getBloomFilter(int, double, long)
+
+
getBloomFilterElementCount() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
getBloomFilterElementCount() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the number of distinct data items (note: NOT keys) that will be inserted into a bloom filter, when it + is constructed.
+
+
getBloomFilterFPRate() - Method in class org.bitcoinj.net.FilterMerger
+
 
+
getBroadcastBy() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns a snapshot of PeerAddresses that announced the transaction.
+
+
getBroadcastBy(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastBy(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastBy(int) - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByCount() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByCount() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByCount() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByList() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByList() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByList() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBroadcastByOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
getBytes() - Method in class org.bitcoinj.core.Sha256Hash
+
+
Returns the internal byte array, without defensively copying.
+
+
getCertificate(int) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificate(int) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificate(int) - Method in interface org.bitcoin.protocols.payments.Protos.X509CertificatesOrBuilder
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateCount() - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateCount() - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateCount() - Method in interface org.bitcoin.protocols.payments.Protos.X509CertificatesOrBuilder
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateList() - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateList() - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
+
+ DER-encoded X.509 certificate chain
+
+
getCertificateList() - Method in interface org.bitcoin.protocols.payments.Protos.X509CertificatesOrBuilder
+
+
+ DER-encoded X.509 certificate chain
+
+
getChainCode() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the chain code associated with this key.
+
+
getChainCode() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Random data that allows us to extend a key.
+
+
getChainCode() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ Random data that allows us to extend a key.
+
+
getChainCode() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ Random data that allows us to extend a key.
+
+
getChainHead() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns the block at the head of the current best chain.
+
+
getChainHead() - Method in interface org.bitcoinj.store.BlockStore
+
+
Returns the StoredBlock that represents the top of the chain of greatest total work.
+
+
getChainHead() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getChainHead() - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
getChainHead() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getChainHead() - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
getChainHead() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getChainHead() - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
getChainHeadHeight() - Method in interface org.bitcoinj.core.UTXOProvider
+
+
Get the height of the chain head.
+
+
getChainHeadHeight() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getChainHeadHeight() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getChainHeadHeight() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getChainWork() - Method in class org.bitcoinj.core.StoredBlock
+
+
The total sum of work done in this block, and all the blocks below it in the chain.
+
+
getCheckpointBefore(long) - Method in class org.bitcoinj.core.CheckpointManager
+
+
Returns a StoredBlock representing the last checkpoint before the given time, for example, normally + you would want to know the checkpoint before the earliest wallet birthday.
+
+
getChildNumber() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the last element of the path returned by DeterministicKey.getPath()
+
+
getChunks() - Method in class org.bitcoinj.script.Script
+
+
Returns an immutable list of the scripts parsed form.
+
+
getCodeInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-denominating instance that will indicate units using a currency + code, for example, "BTC".
+
+
getCodeInstance(int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new code-style auto-formatter with the given number of fractional decimal + places.
+
+
getCodeInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new code-style auto-formatter for the given locale.
+
+
getCodeInstance(Locale, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new code-style auto-formatter for the given locale with the given number of + fraction places.
+
+
getCoinInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new coin-denominated formatter.
+
+
getCoinInstance(int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new coin-denominated formatter with the specified fraction-places.
+
+
getCoinInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new coin-denominated formatter for the given locale.
+
+
getCoinInstance(Locale, int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a newly-constructed instance for the given locale that will format + values in terms of bitcoins, with the given minimum number of fractional + decimal places.
+
+
getCoinSelector() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the default CoinSelector object that is used by this wallet if no custom selector is specified.
+
+
getCoinValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
getCoinValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
getCoinValue() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
getCombinedKeyLookaheadEpochs() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a counter that increases (by an arbitrary amount) each time new keys have been calculated due to + lookahead and thus the Bloom filter that was previously calculated has become stale.
+
+
getCompatibilitySQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL statements to check if the database is compatible.
+
+
getConfidence() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the confidence object for this transaction from the TxConfidenceTable + referenced by the implicit Context.
+
+
getConfidence() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
getConfidence() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Data describing where the transaction is in the chain.
+
+
getConfidence() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Data describing where the transaction is in the chain.
+
+
getConfidence(Context) - Method in class org.bitcoinj.core.Transaction
+
+
Returns the confidence object for this transaction from the TxConfidenceTable + referenced by the given Context.
+
+
getConfidence(TxConfidenceTable) - Method in class org.bitcoinj.core.Transaction
+
+
Returns the confidence object for this transaction from the TxConfidenceTable
+
+
getConfidenceTable() - Method in class org.bitcoinj.core.Context
+
+
Returns the TxConfidenceTable created by this context.
+
+
getConfidenceType() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns a general statement of the level of confidence you can have in this transaction.
+
+
getConnectedClientCount() - Method in class org.bitcoinj.net.BlockingClientManager
+
 
+
getConnectedClientCount() - Method in interface org.bitcoinj.net.ClientConnectionManager
+
+
Gets the number of connected peers
+
+
getConnectedClientCount() - Method in class org.bitcoinj.net.NioClientManager
+
 
+
getConnectedKey(KeyBag) - Method in class org.bitcoinj.core.TransactionOutPoint
+
+
Returns the ECKey identified in the connected output, for either P2PKH, P2WPKH or P2PK scripts.
+
+
getConnectedOutput() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns the connected output, assuming the input was connected with + TransactionInput.connect(TransactionOutput) or variants at some point.
+
+
getConnectedOutput() - Method in class org.bitcoinj.core.TransactionOutPoint
+
+
An outpoint is a part of a transaction input that points to the output of another transaction.
+
+
getConnectedPeers() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns a newly allocated list containing the currently connected peers.
+
+
getConnectedPubKeyScript() - Method in class org.bitcoinj.core.TransactionOutPoint
+
+
Returns the pubkey script from the connected output.
+
+
getConnectedRedeemData(KeyBag) - Method in class org.bitcoinj.core.TransactionInput
+
+
Alias for getOutpoint().getConnectedRedeemData(keyBag)
+
+
getConnectedRedeemData(KeyBag) - Method in class org.bitcoinj.core.TransactionOutPoint
+
+
Returns the RedeemData identified in the connected output, for either P2PKH, P2WPKH, P2PK + or P2SH scripts.
+
+
getConnectedTransaction() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns the connected transaction, assuming the input was connected with + TransactionInput.connect(TransactionOutput) or variants at some point.
+
+
getConnectFuture() - Method in class org.bitcoinj.net.BlockingClient
+
+
Returns a future that completes once connection has occurred at the socket level or with an exception if failed to connect.
+
+
getConnectionOpenFuture() - Method in class org.bitcoinj.core.Peer
+
+
Provides a ListenableFuture that can be used to wait for the socket to connect.
+
+
getContext() - Static method in class org.bitcoin.Secp256k1Context
+
 
+
getContext() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the API context that this wallet was created with.
+
+
getCountAtOrAbove(long) - Method in class org.bitcoinj.utils.VersionTally
+
+
Get the count of blocks at or above the given version, within the window.
+
+
getCreateIndexesSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL statements that create the indexes (DDL).
+
+
getCreateIndexesSQL() - Method in class org.bitcoinj.store.H2FullPrunedBlockStore
+
 
+
getCreateIndexesSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getCreateIndexesSQL() - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
getCreateSchemeSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL statements that create the schema (DDL).
+
+
getCreateSchemeSQL() - Method in class org.bitcoinj.store.H2FullPrunedBlockStore
+
 
+
getCreateSchemeSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getCreateSchemeSQL() - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
getCreateTablesSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL statements that create the tables (DDL).
+
+
getCreateTablesSQL() - Method in class org.bitcoinj.store.H2FullPrunedBlockStore
+
 
+
getCreateTablesSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getCreateTablesSQL() - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
getCreationTimeSeconds() - Method in class org.bitcoinj.core.ECKey
+
+
Returns the creation time of this key or zero if the key was deserialized from a version that did not store + that data.
+
+
getCreationTimeSeconds() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
The creation time of a deterministic key is equal to that of its parent, unless this key is the root of a tree + in which case the time is stored alongside the key as per normal, see ECKey.getCreationTimeSeconds().
+
+
getCreationTimeSeconds() - Method in interface org.bitcoinj.crypto.EncryptableItem
+
+
Returns the time in seconds since the UNIX epoch at which this encryptable item was first created/derived.
+
+
getCreationTimeSeconds() - Method in class org.bitcoinj.script.Script
+
 
+
getCreationTimeSeconds() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
getCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Timestamp stored as millis since epoch.
+
+
getCreationTimestamp() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Timestamp stored as millis since epoch.
+
+
getCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
getCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Script
+
+
+ Timestamp stored as millis since epoch.
+
+
getCreationTimestamp() - Method in interface org.bitcoinj.wallet.Protos.ScriptOrBuilder
+
+
+ Timestamp stored as millis since epoch.
+
+
getCurrencyCode() - Method in class org.bitcoinj.utils.Fiat
+
 
+
getCurve() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getData() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
required bytes data = 2;
+
+
getData() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
required bytes data = 2;
+
+
getData() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
required bytes data = 2;
+
+
getData() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required bytes data = 2;
+
+
getData() - Method in class org.bitcoinj.wallet.Protos.Tag
+
+
required bytes data = 2;
+
+
getData() - Method in interface org.bitcoinj.wallet.Protos.TagOrBuilder
+
+
required bytes data = 2;
+
+
getData(int) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
getData(int) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
+
repeated bytes data = 1;
+
+
getData(int) - Method in interface org.bitcoinj.wallet.Protos.ScriptWitnessOrBuilder
+
+
repeated bytes data = 1;
+
+
getData(Peer, GetDataMessage) - Method in class org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
Deprecated.
+
getData(Peer, GetDataMessage) - Method in interface org.bitcoinj.core.listeners.GetDataEventListener
+
+
Called when a peer receives a getdata message, usually in response to an "inv" being broadcast.
+
+
getDatabaseDriverClass() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the database driver class,
+
+
getDatabaseDriverClass() - Method in class org.bitcoinj.store.H2FullPrunedBlockStore
+
 
+
getDatabaseDriverClass() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getDatabaseDriverClass() - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
getDataCount() - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
getDataCount() - Method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
+
repeated bytes data = 1;
+
+
getDataCount() - Method in interface org.bitcoinj.wallet.Protos.ScriptWitnessOrBuilder
+
+
repeated bytes data = 1;
+
+
GetDataEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+
getDataHash() - Method in class org.bitcoinj.core.CheckpointManager
+
+
Returns a hash of the concatenated checkpoint data.
+
+
getDataList() - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
getDataList() - Method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
+
repeated bytes data = 1;
+
+
getDataList() - Method in interface org.bitcoinj.wallet.Protos.ScriptWitnessOrBuilder
+
+
repeated bytes data = 1;
+
+
GetDataMessage - Class in org.bitcoinj.core
+
+
Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their + hashes.
+
+
GetDataMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.GetDataMessage
+
 
+
GetDataMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.GetDataMessage
+
 
+
GetDataMessage(NetworkParameters, byte[], MessageSerializer, int) - Constructor for class org.bitcoinj.core.GetDataMessage
+
+
Deserializes a 'getdata' message.
+
+
getDate() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the date that the payment request was generated.
+
+
getDefaultInstance() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
getDefaultInstance() - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
getDefaultInstance() - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
getDefaultSerializer() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Return the default serializer for this network.
+
+
getDeleteOpenoutputsSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to delete a openoutputs record.
+
+
getDeleteOpenoutputsSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getDeleteUndoableBlocksSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to delete a undoableblocks record.
+
+
getDepth() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Return this key's depth in the hierarchy, where the root node is at depth zero.
+
+
getDepth() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
getDepth() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
getDepth() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
getDepthFuture(int) - Method in class org.bitcoinj.core.TransactionConfidence
+
 
+
getDepthFuture(int, Executor) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns a future that completes when the transaction has been confirmed by "depth" blocks.
+
+
getDepthInBlocks() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Depth in the chain is an approximation of how much time has elapsed since the transaction has been confirmed.
+
+
getDescription() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDescription() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDescription() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDescription() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get the description of the wallet.
+
+
getDescriptionBytes() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDescriptionBytes() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDescriptionBytes() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
getDetachedPoint() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getDeterministicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
getDeterministicKey() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
getDeterministicKey() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
getDeterministicKeyChains() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a copy of the current list of chains.
+
+
getDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The seed for a deterministic key hierarchy.
+
+
getDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The seed for a deterministic key hierarchy.
+
+
getDeterministicSeed() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The seed for a deterministic key hierarchy.
+
+
getDifficultyTarget() - Method in class org.bitcoinj.core.Block
+
+
Returns the difficulty of the proof of work that this block should meet encoded in compact form.
+
+
getDifficultyTargetAsInteger() - Method in class org.bitcoinj.core.Block
+
+
Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash.
+
+
getDisplayNameFromCertificate(X509Certificate, boolean) - Static method in class org.bitcoinj.crypto.X509Utils
+
+
Returns either a string that "sums up" the certificate for humans, in a similar manner to what you might see + in a web browser, or null if one cannot be extracted.
+
+
getDnsSeeds() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns DNS names that when resolved, give IP addresses of active peers.
+
+
getDownloadPeer() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the currently selected download peer.
+
+
getDropTablesSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to drop all the tables (DDL).
+
+
getDumpedPrivateKeyHeader() - Method in class org.bitcoinj.core.NetworkParameters
+
+
First byte of a base58 encoded dumped private key.
+
+
getDuplicateKeyErrorCode() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the database specific error code that indicated a duplicate key error when inserting a record.
+
+
getDuplicateKeyErrorCode() - Method in class org.bitcoinj.store.H2FullPrunedBlockStore
+
 
+
getDuplicateKeyErrorCode() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getDuplicateKeyErrorCode() - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
getEarliestKeyCreationTime() - Method in interface org.bitcoinj.core.PeerFilterProvider
+
+
Returns the earliest timestamp (seconds since epoch) for which full/bloom-filtered blocks must be downloaded.
+
+
getEarliestKeyCreationTime() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
getEarliestKeyCreationTime() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getEarliestKeyCreationTime() - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Returns the earliest creation time of keys in this chain, in seconds since the epoch.
+
+
getEarliestKeyCreationTime() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
getEarliestKeyCreationTime() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the earliest creation time of keys or watched scripts in this wallet, in seconds since the epoch, ie the min + of ECKey.getCreationTimeSeconds().
+
+
getEncoded() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getEncoded(boolean) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getEncryptedData() - Method in class org.bitcoinj.core.ECKey
+
+ +
+
getEncryptedData() - Method in interface org.bitcoinj.crypto.EncryptableItem
+
+
Returns the initialization vector and encrypted secret bytes, or null if not encrypted.
+
+
getEncryptedData() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getEncryptedData() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
getEncryptedData() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
getEncryptedData() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
getEncryptedDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
getEncryptedDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Encrypted version of the seed
+
+
getEncryptedDeterministicSeed() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Encrypted version of the seed
+
+
getEncryptedPrivateKey() - Method in class org.bitcoinj.core.ECKey
+
+
Returns the the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey + is not encrypted.
+
+
getEncryptedPrivateKey() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The encrypted private key
+
+
getEncryptedPrivateKey() - Method in class org.bitcoinj.wallet.Protos.EncryptedData
+
+
+ The encrypted private key
+
+
getEncryptedPrivateKey() - Method in interface org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder
+
+
+ The encrypted private key
+
+
getEncryptedSeedData() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getEncryptionParameters() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
getEncryptionParameters() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
getEncryptionParameters() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
getEncryptionType() - Method in class org.bitcoinj.core.ECKey
+
 
+
getEncryptionType() - Method in interface org.bitcoinj.crypto.EncryptableItem
+
+
Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
+
+
getEncryptionType() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getEncryptionType() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
getEncryptionType() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
getEncryptionType() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
getEncryptionType() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get the type of encryption used for this wallet.
+
+
getError() - Method in exception org.bitcoinj.script.ScriptException
+
 
+
getEventHorizon() - Method in class org.bitcoinj.core.Context
+
+
The event horizon is the number of blocks after which various bits of the library consider a transaction to be + so confirmed that it's safe to delete data.
+
+
getExchangeRate() - Method in class org.bitcoinj.core.Transaction
+
+
Getter for Transaction.exchangeRate.
+
+
getExchangeRate() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
getExchangeRate() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
getExchangeRate() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
getExpires() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when this request should be considered invalid
+
+
getExpires() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Timestamp; when this request should be considered invalid
+
+
getExpires() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Timestamp; when this request should be considered invalid
+
+
getExpires() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the expires time of the payment request, or null if none.
+
+
getExtension(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtension(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtension(int) - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionCount() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionCount() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionCount() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionList() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionList() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensionOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Extension extension = 10;
+
+
getExtensions() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a snapshot of all registered extension objects.
+
+
getFalsePositiveRate() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
The false positive rate is the average over all blockchain transactions of: + + - 1.0 if the transaction was false-positive (was irrelevant to all listeners) + - 0.0 if the transaction was relevant or filtered out
+
+
getFalsePositiveRate(int) - Method in class org.bitcoinj.core.BloomFilter
+
+
Returns the theoretical false positive rate of this filter if were to contain the given number of elements.
+
+
getFastCatchupTimeSecs() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the current fast catchup time.
+
+
getFee() - Method in class org.bitcoinj.core.Transaction
+
+
The transaction fee is the difference of the value of all inputs and the value of all outputs.
+
+
getFeeFilter() - Method in class org.bitcoinj.core.Peer
+
+
Returns the fee filter announced by the remote peer, interpreted as satoshis per kB.
+
+
getFeePerKb() - Method in class org.bitcoinj.core.Context
+
+
The default fee per 1000 virtual bytes of transaction data to pay when completing transactions.
+
+
getFeeRate() - Method in class org.bitcoinj.core.FeeFilterMessage
+
 
+
getFiatCurrencyCode() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatCurrencyCode() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatCurrencyCode() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatCurrencyCodeBytes() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatCurrencyCodeBytes() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatCurrencyCodeBytes() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
getFiatValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
getFiatValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
getFiatValue() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
getFileSize(int) - Static method in class org.bitcoinj.store.SPVBlockStore
+
+
Returns the size in bytes of the file that is used to store the chain with the current parameters.
+
+
getFilter(int, double, long) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
getFilter(int, double, long) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getFilter(int, double, long) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Gets a bloom filter that contains all of the public keys from this chain, and which will provide the given + false-positive rate if it has size elements.
+
+
getFilter(int, double, long) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
getFingerprint() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the first 32 bits of the result of DeterministicKey.getIdentifier().
+
+
getFullKey() - Method in class org.bitcoinj.wallet.RedeemData
+
+
Returns the first key that has private bytes
+
+
getFuture() - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
Returns a listenable future that completes with the height of the best chain (as reported by the peer) once chain + download seems to be finished.
+
+
getGenesisBlock() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Genesis block for this chain.
+
+
getGenesisBlock() - Method in class org.bitcoinj.params.MainNetParams
+
 
+
getGenesisBlock() - Method in class org.bitcoinj.params.RegTestParams
+
 
+
getGenesisBlock() - Method in class org.bitcoinj.params.TestNet3Params
+
 
+
getGenesisBlock() - Method in class org.bitcoinj.params.UnitTestParams
+
 
+
getHash() - Method in class org.bitcoinj.core.Address
+
+
Get either the public key hash or script hash that is encoded in the address.
+
+
getHash() - Method in class org.bitcoinj.core.Block
+
+
Returns the hash of the block (which for a valid, solved block should be + below the target).
+
+
getHash() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Gets the hash of the block represented in this Filtered Block
+
+
getHash() - Method in class org.bitcoinj.core.LegacyAddress
+
+
The (big endian) 20 byte hash that is the core of a Bitcoin address.
+
+
getHash() - Method in class org.bitcoinj.core.Message
+
+
This method is a NOP for all classes except Block and Transaction.
+
+
getHash() - Method in exception org.bitcoinj.core.PrunedException
+
 
+
getHash() - Method in class org.bitcoinj.core.SegwitAddress
+
 
+
getHash() - Method in class org.bitcoinj.core.StoredUndoableBlock
+
+
Get the hash of the represented block
+
+
getHash() - Method in class org.bitcoinj.core.Transaction
+
+
Deprecated. + +
+
+
getHash() - Method in class org.bitcoinj.core.TransactionOutPoint
+
+
Returns the hash of the transaction this outpoint references/spends/is connected to.
+
+
getHash() - Method in class org.bitcoinj.core.UTXO
+
+
The hash of the transaction which holds this output.
+
+
getHash() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
required bytes hash = 2;
+
+
getHash() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
required bytes hash = 2;
+
+
getHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
required bytes hash = 2;
+
+
getHashAsString() - Method in class org.bitcoinj.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 org.bitcoinj.core.Transaction
+
+
Deprecated. +
use Transaction.getTxId().toString()
+
+
+
getHashes() - Method in class org.bitcoinj.core.BlockLocator
+
+
Returns List of Block locator hashes.
+
+
getHashOf(int) - Method in class org.bitcoinj.core.GetDataMessage
+
 
+
getHeader() - Method in class org.bitcoinj.core.StoredBlock
+
+
The block header this object wraps.
+
+
GetHeadersMessage - Class in org.bitcoinj.core
+
+
The "getheaders" command is structurally identical to "getblocks", but has different meaning.
+
+
GetHeadersMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.GetHeadersMessage
+
 
+
GetHeadersMessage(NetworkParameters, BlockLocator, Sha256Hash) - Constructor for class org.bitcoinj.core.GetHeadersMessage
+
 
+
getHeight() - Method in class org.bitcoinj.core.StoredBlock
+
+
Position in the chain for this block.
+
+
getHeight() - Method in class org.bitcoinj.core.UTXO
+
+
Gets the height of the block that created this output.
+
+
getHeightFuture(int) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns a future that completes when the block chain has reached the given height.
+
+
getHeights() - Method in class org.bitcoinj.core.UTXOsMessage
+
+
Returns the block heights of each output returned in getOutputs(), or MEMPOOL_HEIGHT if not confirmed yet.
+
+
getHitMap() - Method in class org.bitcoinj.core.UTXOsMessage
+
+
Returns a bit map indicating which of the queried outputs were found in the UTXO set.
+
+
getHostname() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getHttpSeeds() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns discovery objects for seeds implementing the Cartographer protocol.
+
+
getI() - Method in class org.bitcoinj.crypto.ChildNumber
+
+
Returns the uint32 encoded form of the path element, including the most significant bit.
+
+
getId() - Method in class org.bitcoinj.core.NetworkParameters
+
+
A Java package style string acting as unique ID for these parameters
+
+
getId() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
getId() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
+ like org.whatever.foo.bar
+
+
getId() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
+ like org.whatever.foo.bar
+
+
getIdBytes() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
getIdBytes() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
+ like org.whatever.foo.bar
+
+
getIdBytes() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
+ like org.whatever.foo.bar
+
+
getIdentifier() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns RIPE-MD160(SHA256(pub key bytes)).
+
+
getImportedKeys() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a list of the non-deterministic keys that have been imported into the wallet, or the empty list if none.
+
+
getImportedKeys() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a list of the non-deterministic keys that have been imported into the wallet, or the empty list if none.
+
+
getIncludeMempool() - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
getIndex() - Method in class org.bitcoinj.core.TransactionInput
+
+
Gets the index of this input in the parent transaction, or throws if this input is free standing.
+
+
getIndex() - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
getIndex() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Gets the index of this output in the parent transaction, or throws if this output is free standing.
+
+
getIndex() - Method in class org.bitcoinj.core.UTXO
+
+
The index of this output in the transaction which holds it.
+
+
getInitialisationVector() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
getInitialisationVector() - Method in class org.bitcoinj.wallet.Protos.EncryptedData
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
getInitialisationVector() - Method in interface org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
getInput(long) - Method in class org.bitcoinj.core.Transaction
+
+
Same as getInputs().get(index).
+
+
getInputs() - Method in class org.bitcoinj.core.Transaction
+
+
Returns an unmodifiable view of all inputs.
+
+
getInputSum() - Method in class org.bitcoinj.core.Transaction
+
+
Gets the sum of the inputs, regardless of who owns them.
+
+
getInsertHeadersSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to insert a headers record.
+
+
getInsertOpenoutputsSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to insert a openoutputs record.
+
+
getInsertOpenoutputsSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getInsertSettingsSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to insert a settings record.
+
+
getInsertUndoableBlocksSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to insert a undoableblocks record.
+
+
getInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new instance of this class using all defaults.
+
+
getInstance(int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new fixed-denomination formatter.
+
+
getInstance(int, int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new fixed-denomination formatter with the specified fractional decimal + placing.
+
+
getInstance(int, Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new fixed-denomination formatter for the given locale.
+
+
getInstance(int, Locale, int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing.
+
+
getInstance(int, Locale, int, List<Integer>) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing.
+
+
getInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new code-style auto-formatter for the given locale.
+
+
getInstance(Locale, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new code-style auto-formatter for the given locale with the given number of + fraction places.
+
+
getInstance(BtcAutoFormat.Style) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-denominating formatter.
+
+
getInstance(BtcAutoFormat.Style, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-denominating formatter with the given number of fractional decimal + places.
+
+
getInstance(BtcAutoFormat.Style, Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-formatter with the given style for the given locale.
+
+
getInstance(BtcAutoFormat.Style, Locale, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-formatter for the given locale with the given number of fraction places.
+
+
getInterval() - Method in class org.bitcoinj.core.NetworkParameters
+
+
How many blocks pass between difficulty adjustment periods.
+
+
getIpAddress() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
getIpAddress() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required string ip_address = 1;
+
+
getIpAddress() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required string ip_address = 1;
+
+
getIpAddress() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required bytes ip_address = 1;
+
+
getIpAddress() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required bytes ip_address = 1;
+
+
getIpAddress() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required bytes ip_address = 1;
+
+
getIpAddressBytes() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
getIpAddressBytes() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required string ip_address = 1;
+
+
getIpAddressBytes() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required string ip_address = 1;
+
+
getIsFollowing() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
getIsFollowing() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
getIsFollowing() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
getIssuedExternalKeys() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns number of keys used on external path.
+
+
getIssuedInternalKeys() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns number of keys used on internal path.
+
+
getIssuedReceiveAddresses() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
getIssuedReceiveKeys() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns only the external keys that have been issued by this chain, lookahead not included.
+
+
getIssuedReceiveKeys() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
getIssuedSubkeys() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
getIssuedSubkeys() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
getIssuedSubkeys() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
getItems() - Method in class org.bitcoinj.core.ListMessage
+
 
+
getKey() - Method in class org.bitcoinj.core.DumpedPrivateKey
+
+
Returns an ECKey created from this encoded private key.
+
+
getKey(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
getKey(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Key key = 3;
+
+
getKey(int) - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Key key = 3;
+
+
getKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
getKey(KeyChain.KeyPurpose) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns a freshly derived key that has not been returned by this method before.
+
+
getKey(KeyChain.KeyPurpose) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Obtains a key intended for the given purpose.
+
+
getKeyByPath(List<ChildNumber>) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the deterministic key for the given absolute path in the hierarchy.
+
+
getKeyByPath(List<ChildNumber>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a key for the given HD path, assuming it's already been derived.
+
+
getKeyByPath(List<ChildNumber>, boolean) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the deterministic key for the given absolute path in the hierarchy, optionally creating it
+
+
getKeyByPath(ChildNumber...) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the deterministic key for the given absolute path in the hierarchy.
+
+
getKeyChainGroupCombinedKeyLookaheadEpochs() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
getKeyChainGroupLookaheadSize() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
getKeyChainGroupLookaheadThreshold() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
getKeyChainGroupSize() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the number of keys in the key chain group, including lookahead keys.
+
+
getKeyChainSeed() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the immutable seed for the current active HD chain.
+
+
getKeyCount() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
getKeyCount() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Key key = 3;
+
+
getKeyCount() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Key key = 3;
+
+
getKeyCrypter() - Method in class org.bitcoinj.core.ECKey
+
+
Returns the KeyCrypter that was used to encrypt to encrypt this ECKey.
+
+
getKeyCrypter() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns this keys KeyCrypter or the keycrypter of its parent key.
+
+
getKeyCrypter() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns the KeyCrypter in use or null if the key chain is not encrypted.
+
+
getKeyCrypter() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getKeyCrypter() - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
+
Returns the key crypter used by this key chain, or null if it's not encrypted.
+
+
getKeyCrypter() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns the key crypter or null if the group is not encrypted.
+
+
getKeyCrypter() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get the wallet's KeyCrypter, or null if the wallet is not encrypted.
+
+
getKeyList() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
getKeyList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Key key = 3;
+
+
getKeyList() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Key key = 3;
+
+
getKeyLookaheadEpoch() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns a counter that is incremented each time new keys are generated due to lookahead.
+
+
getKeyOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Key key = 3;
+
+
getKeyOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Key key = 3;
+
+
getKeyRotationTime() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ UNIX time in seconds since the epoch.
+
+
getKeyRotationTime() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ UNIX time in seconds since the epoch.
+
+
getKeyRotationTime() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ UNIX time in seconds since the epoch.
+
+
getKeyRotationTime() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the key rotation time, or null if unconfigured.
+
+
getKeys() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns a copy of the list of keys that this chain is managing.
+
+
getKeys(KeyChain.KeyPurpose, int) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
getKeys(KeyChain.KeyPurpose, int) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns freshly derived key/s that have not been returned by this method before.
+
+
getKeys(KeyChain.KeyPurpose, int) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Obtains a number of key/s intended for the given purpose.
+
+
getKeyStore() - Method in class org.bitcoinj.crypto.TrustStoreLoader.DefaultTrustStoreLoader
+
 
+
getKeyStore() - Method in class org.bitcoinj.crypto.TrustStoreLoader.FileTrustStoreLoader
+
 
+
getKeyStore() - Method in interface org.bitcoinj.crypto.TrustStoreLoader
+
 
+
getLabel() - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
getLabel() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
getLabel() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ User-provided label associated with the key.
+
+
getLabel() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ User-provided label associated with the key.
+
+
getLabelBytes() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
getLabelBytes() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ User-provided label associated with the key.
+
+
getLabelBytes() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ User-provided label associated with the key.
+
+
getLastBlockSeenHash() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the hash of the last seen best-chain block, or null if the wallet is too old to store this data.
+
+
getLastBlockSeenHeight() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the height of the last seen best-chain block.
+
+
getLastBlockSeenTime() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a Date representing the time extracted from the last best seen block header.
+
+
getLastBlockSeenTimeSecs() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the UNIX time in seconds since the epoch extracted from the last best seen block header.
+
+
getLastBroadcastedAt() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Return the time the transaction was last announced to us.
+
+
getLastBroadcastedAt() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
getLastBroadcastedAt() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
getLastBroadcastedAt() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
getLastFilter() - Method in class org.bitcoinj.net.FilterMerger
+
 
+
getLastPingTime() - Method in class org.bitcoinj.core.Peer
+
+
Returns the elapsed time of the last ping/pong cycle.
+
+
getLastSeenBlockHash() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
getLastSeenBlockHash() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
getLastSeenBlockHash() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
getLastSeenBlockHeight() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The height in the chain of the last seen block.
+
+
getLastSeenBlockHeight() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The height in the chain of the last seen block.
+
+
getLastSeenBlockHeight() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The height in the chain of the last seen block.
+
+
getLastSeenBlockTimeSecs() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
getLastSeenBlockTimeSecs() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
getLastSeenBlockTimeSecs() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
getLeafKeys() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns leaf keys issued by this chain (including lookahead zone)
+
+
getListeners() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
getLocator() - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
getLockTime() - Method in class org.bitcoinj.core.Transaction
+
+
Transactions can have an associated lock time, specified either as a block height or in seconds since the + UNIX epoch.
+
+
getLockTime() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ The nLockTime field is useful for contracts.
+
+
getLockTime() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ The nLockTime field is useful for contracts.
+
+
getLockTime() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ The nLockTime field is useful for contracts.
+
+
getLookaheadSize() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
The number of public keys we should pre-generate on each path before they are requested by the app.
+
+
getLookaheadSize() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Gets the current lookahead size being used for ALL deterministic key chains.
+
+
getLookaheadSize() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
optional uint32 lookahead_size = 4;
+
+
getLookaheadSize() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
optional uint32 lookahead_size = 4;
+
+
getLookaheadSize() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
optional uint32 lookahead_size = 4;
+
+
getLookaheadThreshold() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Gets the threshold for the key pre-generation.
+
+
getLookaheadThreshold() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Gets the current lookahead threshold being used for ALL deterministic key chains.
+
+
getMajorityEnforceBlockUpgrade() - Method in class org.bitcoinj.core.NetworkParameters
+
+
The number of blocks in the last NetworkParameters.getMajorityWindow() blocks + at which to trigger a notice to the user to upgrade their client, where + the client does not understand those blocks.
+
+
getMajorityRejectBlockOutdated() - Method in class org.bitcoinj.core.NetworkParameters
+
+
The number of blocks in the last NetworkParameters.getMajorityWindow() blocks + at which to enforce the requirement that all new blocks are of the + newer type (i.e.
+
+
getMajorityWindow() - Method in class org.bitcoinj.core.NetworkParameters
+
+
The sampling window from which the version numbers of blocks are taken + in order to determine if a new block version is now the majority.
+
+
getMandatory() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
getMandatory() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
getMandatory() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
getMaxConnections() - Method in class org.bitcoinj.core.PeerGroup
+
+
The maximum number of connections that we will create to peers.
+
+
getMaxMessageSize() - Method in class org.bitcoinj.core.PeerSocketHandler
+
 
+
getMaxMessageSize() - Method in interface org.bitcoinj.net.StreamConnection
+
+
Returns the maximum message size of a message on the socket.
+
+
getMaxMoney() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns the number of coins that will be produced in total, on this + network.
+
+
getMaxMoney() - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
getMaxPeersToDiscoverCount() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the maximum number of Peers to discover.
+
+
getMaxTarget() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Maximum target represents the easiest allowable proof of work.
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Human-readable message for the merchant
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+ human-readable message for customer
+
+
getMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentACKOrBuilder
+
+
+ human-readable message for customer
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
getMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Human-readable description of request for the customer
+
+
getMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Human-readable description of request for the customer
+
+
getMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Human-readable message for the merchant
+
+
getMemo() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the transaction Transaction.memo.
+
+
getMemo() - Method in class org.bitcoinj.protocols.payments.PaymentProtocol.Ack
+
+
Returns the memo included by the merchant in the payment ack.
+
+
getMemo() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the memo included by the merchant in the payment request, or null if not found.
+
+
getMemo() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
getMemo() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Memo of the transaction.
+
+
getMemo() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Memo of the transaction.
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Human-readable message for the merchant
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+ human-readable message for customer
+
+
getMemoBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentACKOrBuilder
+
+
+ human-readable message for customer
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
getMemoBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Human-readable description of request for the customer
+
+
getMemoBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Human-readable description of request for the customer
+
+
getMemoBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Human-readable message for the merchant
+
+
getMemoBytes() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
getMemoBytes() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Memo of the transaction.
+
+
getMemoBytes() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Memo of the transaction.
+
+
getMemoryPool() - Method in class org.bitcoinj.core.PeerGroup
+
+
Deprecated.
+
+
getMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ From PaymentDetails.merchant_data
+
+
getMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ From PaymentDetails.merchant_data
+
+
getMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Arbitrary data to include in the Payment message
+
+
getMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Arbitrary data to include in the Payment message
+
+
getMerchantData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Arbitrary data to include in the Payment message
+
+
getMerchantData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ From PaymentDetails.merchant_data
+
+
getMerchantData() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the merchant data included by the merchant in the payment request, or null if none.
+
+
getMerkleRoot() - Method in class org.bitcoinj.core.Block
+
+
Returns the merkle root in big endian form, calculating it from transactions if necessary.
+
+
getMessage() - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
getMessageSize() - Method in class org.bitcoinj.core.Message
+
+
This returns a correct value by parsing the message.
+
+
getMessageSizeForPriorityCalc() - Method in class org.bitcoinj.core.Transaction
+
+
The priority (coin age) calculation doesn't use the regular message size, but rather one adjusted downwards + for the number of inputs.
+
+
getMicroInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new microcoin-denominated formatter for the default locale.
+
+
getMicroInstance(int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new microcoin-denominated formatter with the specified fractional decimal + placing.
+
+
getMicroInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new microcoin-denominated formatter for the given locale.
+
+
getMicroInstance(Locale, int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new microcoin-denominated formatter for the given locale with the specified + fractional decimal placing.
+
+
getMilliInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new millicoin-denominated formatter.
+
+
getMilliInstance(int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new millicoin-denominated formatter with the specified fractional decimal + placing.
+
+
getMilliInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new millicoin-denominated formatter for the given locale.
+
+
getMilliInstance(Locale, int, int...) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new millicoin-denominated formatter for the given locale with the specified + fractional decimal placing.
+
+
getMinBroadcastConnections() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the number of connections that are required before transactions will be broadcast.
+
+
getMinNonDustOutput() - Method in class org.bitcoinj.core.NetworkParameters
+
+ +
+
getMinNonDustOutput() - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+ +
+
getMinNonDustValue() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the minimum value for this output to be considered "not dust", i.e.
+
+
getMinNonDustValue(Coin) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Gets the minimum value for a txout of this size to be considered non-dust by Bitcoin Core + (and thus relayed).
+
+
getMinRequiredProtocolVersion() - Method in class org.bitcoinj.core.PeerGroup
+
+
The minimum protocol version required: defaults to the version required for Bloom filtering.
+
+
getMnemonic() - Method in enum class org.bitcoinj.script.ScriptError
+
 
+
getMnemonicCode() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns a list of words that represent the seed or null if this chain is a watching chain.
+
+
getMnemonicCode() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
+
Get the mnemonic code, or null if unknown.
+
+
getMnemonicString() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
+
Get the mnemonic code as string, or null if unknown.
+
+
getMonetaryFormat() - Method in class org.bitcoinj.core.NetworkParameters
+
+
The monetary object for this currency.
+
+
getMonetaryFormat() - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
getMostCommonChainHeight() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns our peers most commonly reported chain height.
+
+
getMostCommonChainHeight(List<Peer>) - Static method in class org.bitcoinj.core.PeerGroup
+
+
Returns most commonly reported chain height from the given list of Peers.
+
+
getN() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ CPU/ memory cost parameter
+
+
getN() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ CPU/ memory cost parameter
+
+
getN() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ CPU/ memory cost parameter
+
+
getNet() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
getNet() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
required string net = 3;
+
+
getNet() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
required string net = 3;
+
+
getNetBytes() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
getNetBytes() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
required string net = 3;
+
+
getNetBytes() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
required string net = 3;
+
+
getNetwork() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
getNetwork() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ "main" or "test"
+
+
getNetwork() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ "main" or "test"
+
+
getNetworkBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
getNetworkBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ "main" or "test"
+
+
getNetworkBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ "main" or "test"
+
+
getNetworkIdentifier() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
getNetworkIdentifier() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ the network used by this wallet
+
+
getNetworkIdentifier() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ the network used by this wallet
+
+
getNetworkIdentifierBytes() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
getNetworkIdentifierBytes() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ the network used by this wallet
+
+
getNetworkIdentifierBytes() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ the network used by this wallet
+
+
getNetworkParameters() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Gets the params as read from the PaymentRequest.network field: main is the default if missing.
+
+
getNetworkParameters() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
getNewConnection(InetAddress, int) - Method in interface org.bitcoinj.net.StreamConnectionFactory
+
+
Returns a new handler or null to have the connection close.
+
+
getNonce() - Method in class org.bitcoinj.core.Block
+
+
Returns the nonce, an arbitrary value that exists only to make the hash of the block header fall below the + difficulty target.
+
+
getNonce() - Method in class org.bitcoinj.core.Ping
+
 
+
getNonce() - Method in class org.bitcoinj.core.Pong
+
+
Returns the nonce sent by the remote peer.
+
+
getNonFinal() - Method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
Returns the transaction that was found to be non-final, or null.
+
+
getNonStandard() - Method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
Returns the transaction that was found to be non-standard, or null.
+
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
 
+
getNumber() - Method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
 
+
getNumberOfBytesRequiredToSpend(ECKey, Script) - Method in class org.bitcoinj.script.Script
+
+
Returns number of bytes required to spend this script.
+
+
getNumberOfSignaturesRequiredToSpend() - Method in class org.bitcoinj.script.Script
+
+
Returns number of signatures required to satisfy this script.
+
+
getNumChildren(HDPath) - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
 
+
getOnceUndoableStoredBlock(Sha256Hash) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getOnceUndoableStoredBlock(Sha256Hash) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Returns the StoredBlock that was added as a StoredUndoableBlock given a hash.
+
+
getOnceUndoableStoredBlock(Sha256Hash) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getOnceUndoableStoredBlock(Sha256Hash) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getOpCode(String) - Static method in class org.bitcoinj.script.ScriptOpCodes
+
+
Converts the given OpCodeName into an int
+
+
getOpCodeName(int) - Static method in class org.bitcoinj.script.ScriptOpCodes
+
+
Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)")
+
+
getOpenTransactionOutputs(List<ECKey>) - Method in interface org.bitcoinj.core.UTXOProvider
+
+
Get the list of UTXO's for given keys.
+
+
getOpenTransactionOutputs(List<ECKey>) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getOpenTransactionOutputs(List<ECKey>) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getOpenTransactionOutputs(List<ECKey>) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getOptimalEncodingMessageSize() - Method in class org.bitcoinj.core.Block
+
 
+
getOptimalEncodingMessageSize() - Method in class org.bitcoinj.core.Transaction
+
 
+
getOrCreate(NetworkParameters) - Static method in class org.bitcoinj.core.Context
+
 
+
getOrCreate(Sha256Hash) - Method in class org.bitcoinj.core.TxConfidenceTable
+
+
Returns the TransactionConfidence for the given hash if we have downloaded it, or null if that tx hash + is unknown to the system at this time.
+
+
getOriginalSizeInBytes() - Method in class org.bitcoinj.core.VarInt
+
+
Returns the original number of bytes used to encode the value if it was + deserialized from a byte array, or the minimum encoded size if it was not.
+
+
getOrphanRoot(Sha256Hash) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
An orphan block is one that does not connect to the chain anywhere (ie we can't find its parent, therefore + it's an orphan).
+
+
getOutpoint() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
getOutPointFor() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns a new TransactionOutPoint, which is essentially a structure pointing to this output.
+
+
getOutPoints() - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
getOutput(long) - Method in class org.bitcoinj.core.Transaction
+
+
Same as getOutputs().get(index)
+
+
getOutputs() - Method in class org.bitcoinj.core.Transaction
+
+
Returns an unmodifiable view of all outputs.
+
+
getOutputs() - Method in class org.bitcoinj.core.UTXOsMessage
+
+
Returns the list of outputs that matched the query.
+
+
getOutputs() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the outputs of the payment request.
+
+
getOutputs(int) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
getOutputs(int) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Where payment should be sent
+
+
getOutputs(int) - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Where payment should be sent
+
+
getOutputsCount() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
getOutputsCount() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Where payment should be sent
+
+
getOutputsCount() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Where payment should be sent
+
+
getOutputScriptType() - Method in class org.bitcoinj.core.Address
+
+
Get the type of output script that will be used for sending to the address.
+
+
getOutputScriptType() - Method in class org.bitcoinj.core.LegacyAddress
+
+
Get the type of output script that will be used for sending to the address.
+
+
getOutputScriptType() - Method in class org.bitcoinj.core.SegwitAddress
+
+
Get the type of output script that will be used for sending to the address.
+
+
getOutputScriptType() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getOutputScriptType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
getOutputScriptType() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
getOutputScriptType() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
getOutputsList() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
getOutputsList() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Where payment should be sent
+
+
getOutputsList() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Where payment should be sent
+
+
getOutputsOrBuilder(int) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Where payment should be sent
+
+
getOutputsOrBuilderList() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Where payment should be sent
+
+
getOutputSum() - Method in class org.bitcoinj.core.Transaction
+
+
Gets the sum of the outputs of the transaction.
+
+
getOverridingTransaction() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
If this transaction has been overridden by a double spend (is dead), this call returns the overriding transaction.
+
+
getOverridingTransaction() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
getOverridingTransaction() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
getOverridingTransaction() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
getP() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Parallelisation parameter
+
+
getP() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Parallelisation parameter
+
+
getP() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Parallelisation parameter
+
+
getP2SHHeader() - Method in class org.bitcoinj.core.NetworkParameters
+
+
First byte of a base58 encoded P2SH address.
+
+
getP2SHSigOpCount(byte[]) - Static method in class org.bitcoinj.script.Script
+
+
Gets the count of P2SH Sig Ops in the Script scriptSig
+
+
getPacketMagic() - Method in class org.bitcoinj.core.NetworkParameters
+
+
The header bytes that identify the start of a packet on this network.
+
+
getParameterByName(String) - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
getParameters() - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Get the network parameters for this serializer.
+
+
getParameters() - Method in class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
getParametersFromAddress(String) - Static method in class org.bitcoinj.core.LegacyAddress
+
+
Given an address, examines the version byte and attempts to find a matching NetworkParameters.
+
+
getParams() - Method in class org.bitcoinj.core.Context
+
+
Returns the NetworkParameters specified when this context was (auto) created.
+
+
getParams() - Method in class org.bitcoinj.core.Message
+
+
Network parameters this message was created with.
+
+
getParams() - Method in interface org.bitcoinj.core.UTXOProvider
+
+
The NetworkParameters of this provider.
+
+
getParams() - Method in interface org.bitcoinj.store.BlockStore
+
+
Get the NetworkParameters of this store.
+
+
getParams() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
getParams() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the parameters this wallet was created with.
+
+
getParent() - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
getParentFingerprint() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Return the fingerprint of the key from which this key was derived, if this is a + child key, or else an array of four zero-value bytes.
+
+
getParentTransaction() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
getParentTransaction() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the transaction that owns this output.
+
+
getParentTransactionDepthInBlocks() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the depth in blocks of the parent tx.
+
+
getParentTransactionHash() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the transaction hash that owns this output.
+
+
getPartialMerkleTree() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Returns the PartialMerkleTree object that provides the mathematical proof of transaction inclusion in the block.
+
+
getPassphrase() - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
getPath() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the path through some DeterministicHierarchy which reaches this keys position in the tree.
+
+
getPath(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
getPath(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ The path through the key tree.
+
+
getPath(int) - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ The path through the key tree.
+
+
getPath(String) - Static method in class org.bitcoinj.utils.AppDataDirectory
+
+
Return the Path to the application data directory without making + sure it exists or creating it.
+
+
getPathAsString() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the path of this key as a human readable string starting with M or m to indicate the master key.
+
+
getPathCount() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
getPathCount() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ The path through the key tree.
+
+
getPathCount() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ The path through the key tree.
+
+
getPathList() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
getPathList() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ The path through the key tree.
+
+
getPathList() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ The path through the key tree.
+
+
getPayment() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
getPayment() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+ Payment message that triggered this ACK
+
+
getPayment() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentACKOrBuilder
+
+
+ Payment message that triggered this ACK
+
+
getPayment(List<Transaction>, Address, String) - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Generates a Payment message based on the information in the PaymentRequest.
+
+
getPaymentDetails() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the protobuf that describes the payment to be made.
+
+
getPaymentDetailsVersion() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
getPaymentDetailsVersion() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
getPaymentDetailsVersion() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
getPaymentProtocolId() - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
getPaymentProtocolId() - Method in class org.bitcoinj.params.MainNetParams
+
 
+
getPaymentProtocolId() - Method in class org.bitcoinj.params.RegTestParams
+
 
+
getPaymentProtocolId() - Method in class org.bitcoinj.params.TestNet3Params
+
 
+
getPaymentProtocolId() - Method in class org.bitcoinj.params.UnitTestParams
+
 
+
getPaymentRequest() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the protobuf that this object was instantiated with.
+
+
getPaymentRequestUrl() - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
getPaymentRequestUrls() - Method in class org.bitcoinj.uri.BitcoinURI
+
+
Returns the URLs where a payment request (as specified in BIP 70) may be fetched.
+
+
getPaymentUrl() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
getPaymentUrl() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ URL to send Payment and get PaymentACK
+
+
getPaymentUrl() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ URL to send Payment and get PaymentACK
+
+
getPaymentUrl() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the payment url where the Payment message should be sent.
+
+
getPaymentUrlBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
getPaymentUrlBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ URL to send Payment and get PaymentACK
+
+
getPaymentUrlBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ URL to send Payment and get PaymentACK
+
+
getPeer() - Method in class org.bitcoinj.net.discovery.SeedPeers
+
+
Acts as an iterator, returning the address of each node in the list sequentially.
+
+
getPeerBlockHeightDifference() - Method in class org.bitcoinj.core.Peer
+
+
Returns the difference between our best chain height and the peers, which can either be positive if we are + behind the peer, or negative if the peer is ahead of us.
+
+
getPeerMempoolTransaction(Sha256Hash) - Method in class org.bitcoinj.core.Peer
+
+
Asks the connected peer for the given transaction from its memory pool.
+
+
getPeers(long, long, TimeUnit) - Method in class org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
+
 
+
getPeers(long, long, TimeUnit) - Method in class org.bitcoinj.net.discovery.HttpDiscovery
+
 
+
getPeers(long, long, TimeUnit) - Method in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
 
+
getPeers(long, long, TimeUnit) - Method in interface org.bitcoinj.net.discovery.PeerDiscovery
+
+
Queries the addresses.
+
+
getPeers(long, long, TimeUnit) - Method in class org.bitcoinj.net.discovery.SeedPeers
+
+
Returns all the Bitcoin nodes within the list.
+
+
getPeerSeeds() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes peer_seeds = 1;
+
+
getPeerSeeds() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes peer_seeds = 1;
+
+
getPeerSeeds() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes peer_seeds = 1;
+
+
getPeerVersionMessage() - Method in class org.bitcoinj.core.Peer
+
+
Returns version data announced by the remote peer.
+
+
getPendingPeers() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns a list containing Peers that did not complete connection yet.
+
+
getPendingTransactions() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns an immutable view of the transactions currently waiting for network confirmations.
+
+
getPingIntervalMsec() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the period between pings for an individual peer.
+
+
getPingTime() - Method in class org.bitcoinj.core.Peer
+
+
Returns a moving average of the last N ping/pong cycles.
+
+
getPkiData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ depends on pki_type
+
+
getPkiData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ depends on pki_type
+
+
getPkiData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ depends on pki_type
+
+
getPkiType() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPkiType() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPkiType() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPkiTypeBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPkiTypeBytes() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPkiTypeBytes() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ none / x509+sha256 / x509+sha1
+
+
getPolicy() - Static method in class org.bitcoinj.utils.Threading
+
 
+
getPool() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
getPool() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
getPool() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
getPool() - Method in class org.bitcoinj.wallet.WalletTransaction
+
 
+
getPoolSize(WalletTransaction.Pool) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
getPort() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 port = 2;
+
+
getPort() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required uint32 port = 2;
+
+
getPort() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required uint32 port = 2;
+
+
getPort() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Default TCP port on which to connect to nodes.
+
+
getPort() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getPort() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint32 port = 2;
+
+
getPort() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required uint32 port = 2;
+
+
getPort() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required uint32 port = 2;
+
+
getPrev(BlockStore) - Method in class org.bitcoinj.core.StoredBlock
+
+
Given a block store, looks up the previous block in this chain.
+
+
getPrevBlockHash() - Method in class org.bitcoinj.core.Block
+
+
Returns the hash of the previous block in the chain, as defined by the block header.
+
+
getPrivateKeyAsHex() - Method in class org.bitcoinj.core.ECKey
+
 
+
getPrivateKeyAsWiF(NetworkParameters) - Method in class org.bitcoinj.core.ECKey
+
 
+
getPrivateKeyEncoded(NetworkParameters) - Method in class org.bitcoinj.core.ECKey
+
+
Exports the private key in the form used by Bitcoin Core's "dumpprivkey" and "importprivkey" commands.
+
+
getPrivKey() - Method in class org.bitcoinj.core.ECKey
+
+
Gets the private key in the form of an integer field element.
+
+
getPrivKey() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns the private key of this deterministic key.
+
+
getPrivKeyBytes() - Method in class org.bitcoinj.core.ECKey
+
+
Returns a 32 byte array containing the private key.
+
+
getPrivKeyBytes33() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Returns private key bytes, padded with zeros to 33 bytes.
+
+
getProgram() - Method in class org.bitcoinj.script.Script
+
+
Returns the serialized program as a newly created byte array.
+
+
getProgram() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
required bytes program = 1;
+
+
getProgram() - Method in class org.bitcoinj.wallet.Protos.Script
+
+
required bytes program = 1;
+
+
getProgram() - Method in interface org.bitcoinj.wallet.Protos.ScriptOrBuilder
+
+
required bytes program = 1;
+
+
getProtocolVersion() - Method in class org.bitcoinj.core.BitcoinSerializer
+
 
+
getProtocolVersion() - Method in class org.bitcoinj.core.MessageSerializer
+
+
Get the protocol version of this serializer.
+
+
getProtocolVersionNum(NetworkParameters.ProtocolVersion) - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
getProtocolVersionNum(NetworkParameters.ProtocolVersion) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
getPubkey() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes pubkey = 3;
+
+
getPubkey() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes pubkey = 3;
+
+
getPubkey() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes pubkey = 3;
+
+
getPubKey() - Method in class org.bitcoinj.core.ECKey
+
+
Gets the raw public key value.
+
+
getPubKeyHash() - Method in class org.bitcoinj.core.ECKey
+
+
Gets the hash160 form of the public key (as seen in addresses).
+
+
getPubKeyHash() - Method in class org.bitcoinj.script.Script
+
+
If the program somehow pays to a hash, returns the hash.
+
+
getPubKeyPoint() - Method in class org.bitcoinj.core.ECKey
+
+
Gets the public key in the form of an elliptic curve point object from Bouncy Castle.
+
+
getPubKeys() - Method in class org.bitcoinj.script.Script
+
+
Returns a list of the keys required by this script, assuming a multi-sig script.
+
+
getPublicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The public EC key derived from the private key.
+
+
getPublicKey() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The public EC key derived from the private key.
+
+
getPublicKey() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The public EC key derived from the private key.
+
+
getPublicKeyAsHex() - Method in class org.bitcoinj.core.ECKey
+
 
+
getPurpose() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the purpose for which this transaction was created.
+
+
getPurpose() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
getPurpose() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
getPurpose() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
getPush(int) - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
getPushCount() - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
getPushDataName(int) - Static method in class org.bitcoinj.script.ScriptOpCodes
+
+
Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)")
+
+
getR() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Block size parameter
+
+
getR() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Block size parameter
+
+
getR() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Block size parameter
+
+
getReasonCode() - Method in class org.bitcoinj.core.RejectMessage
+
+
The reason code given for why the peer rejected the message.
+
+
getReasonString() - Method in class org.bitcoinj.core.RejectMessage
+
+
The reason message given for rejection.
+
+
getRecentTransactions(int, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns an list of N transactions, ordered by increasing age.
+
+
getRedeemData(DeterministicKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Get redeem data for a key.
+
+
getRedeemData(DeterministicKey) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
+
Get the redeem data for a key in this married chain
+
+
getReferenceClientBlockFileList() - Static method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
getReferenceClientBlockFileList(File) - Static method in class org.bitcoinj.utils.BlockFileLoader
+
+
Gets the list of files which contain blocks from Bitcoin Core.
+
+
getRefundTo(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundTo(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundTo(int) - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToCount() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToCount() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToCount() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToList() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToList() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToList() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToOrBuilder(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRefundToOrBuilderList() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Where to send refunds, if a refund is necessary
+
+
getRejectedMessage() - Method in class org.bitcoinj.core.RejectMessage
+
+
Provides the type of message which was rejected by the peer.
+
+
getRejectedObjectHash() - Method in class org.bitcoinj.core.RejectMessage
+
+
Provides the hash of the rejected object (if getRejectedMessage() is either "tx" or "block"), otherwise null.
+
+
getRejectMessage() - Method in exception org.bitcoinj.core.RejectedTransactionException
+
+
Return the RejectMessage object representing the broadcast rejection.
+
+
getRetryTime() - Method in class org.bitcoinj.utils.ExponentialBackoff
+
+
Get the next time to retry, in milliseconds since the epoch
+
+
getReversedBytes() - Method in class org.bitcoinj.core.Sha256Hash
+
+
Returns a reversed copy of the internal byte array.
+
+
getRiskAnalyzer() - Method in class org.bitcoinj.wallet.Wallet
+
+
Gets the current RiskAnalysis implementation.
+
+
getRootKey() - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Returns the root key that the DeterministicHierarchy was created with.
+
+
getRootKey() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
getSalt() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
getSalt() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
getSalt() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
getScript() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ usually one of the standard Script forms
+
+
getScript() - Method in class org.bitcoin.protocols.payments.Protos.Output
+
+
+ usually one of the standard Script forms
+
+
getScript() - Method in interface org.bitcoin.protocols.payments.Protos.OutputOrBuilder
+
+
+ usually one of the standard Script forms
+
+
getScript() - Method in class org.bitcoinj.core.UTXO
+
+
The Script object which you can use to get address, script bytes or script type.
+
+
getScriptBytes() - Method in class org.bitcoinj.core.TransactionInput
+
+
The "script bytes" might not actually be a script.
+
+
getScriptBytes() - Method in class org.bitcoinj.core.TransactionOutput
+
+
The backing script bytes which can be turned into a Script object.
+
+
getScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Script that contains the signatures/pubkeys.
+
+
getScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Script that contains the signatures/pubkeys.
+
+
getScriptBytes() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Script that contains the signatures/pubkeys.
+
+
getScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ script of transaction output
+
+
getScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ script of transaction output
+
+
getScriptBytes() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ script of transaction output
+
+
getScriptPubKey() - Method in class org.bitcoinj.core.TransactionOutput
+
 
+
getScriptSig() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns the script that is fed to the referenced output (scriptPubKey) script in order to satisfy it: usually + contains signatures and maybe keys, but can contain arbitrary data if the output script accepts it.
+
+
getScriptSigWithSignature(Script, byte[], int) - Method in class org.bitcoinj.script.Script
+
+
Returns a copy of the given scriptSig with the signature inserted in the given position.
+
+
getScriptType() - Method in class org.bitcoinj.script.Script
+
+ +
+
getScryptParameters() - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
 
+
getSecretBytes() - Method in class org.bitcoinj.core.ECKey
+
+
A wrapper for ECKey.getPrivKeyBytes() that returns null if the private key bytes are missing or would have + to be derived (for the HD key case).
+
+
getSecretBytes() - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
getSecretBytes() - Method in interface org.bitcoinj.crypto.EncryptableItem
+
+
Returns the raw bytes of the item, if not encrypted, or null if encrypted or the secret is missing.
+
+
getSecretBytes() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getSecretBytes() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
getSecretBytes() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
getSecretBytes() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
getSeed() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the seed or null if this chain is a watching chain.
+
+
getSeed(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeed(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeed(int) - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedBytes() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
getSeedCount() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedCount() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedCount() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedList() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedList() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedList() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedOrBuilder(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSeedOrBuilderList() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
getSegwitAddressHrp() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Human readable part of bech32 encoded segwit address.
+
+
getSelectHeadersDumpSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the headers dump fields for sizing/statistics.
+
+
getSelectHeadersSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select a headers record.
+
+
getSelectOpenoutputsCountSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select count of openoutputs.
+
+
getSelectopenoutputsDumpSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the openoutouts dump fields for sizing/statistics.
+
+
getSelectOpenoutputsSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select a openoutputs record.
+
+
getSelectOpenoutputsSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getSelectSettingsDumpSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the setting dump fields for sizing/statistics.
+
+
getSelectSettingsSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select a setting value.
+
+
getSelectUndoableblocksDumpSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the undoableblocks dump fields for sizing/statistics.
+
+
getSelectUndoableBlocksSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select an undoableblocks record.
+
+
getSendRequest() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns a SendRequest suitable for broadcasting to the network.
+
+
getSequence() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Sequence number.
+
+
getSequence() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Sequence number.
+
+
getSequence() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Sequence number.
+
+
getSequenceNumber() - Method in class org.bitcoinj.core.TransactionInput
+
+
Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the + transaction independently of each other.
+
+
getSerializedPaymentDetails() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ PaymentDetails
+
+
getSerializedPaymentDetails() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ PaymentDetails
+
+
getSerializedPaymentDetails() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ PaymentDetails
+
+
getSerializer(boolean) - Method in class org.bitcoinj.core.NetworkParameters
+
+
Construct and return a custom serializer.
+
+
getSerializer(boolean) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
getServices() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 services = 3;
+
+
getServices() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required uint32 services = 3;
+
+
getServices() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required uint32 services = 3;
+
+
getServices() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getServices() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint64 services = 3;
+
+
getServices() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required uint64 services = 3;
+
+
getServices() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required uint64 services = 3;
+
+
getSigInsertionIndex(Sha256Hash, ECKey) - Method in class org.bitcoinj.script.Script
+
+
Returns the index where a signature by the key should be inserted.
+
+
getSignature() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes signature = 2;
+
+
getSignature() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes signature = 2;
+
+
getSignature() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes signature = 2;
+
+
getSignature() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ pki-dependent signature
+
+
getSignature() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ pki-dependent signature
+
+
getSignature() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ pki-dependent signature
+
+
getSignature(Sha256Hash, List<ChildNumber>) - Method in class org.bitcoinj.signers.CustomTransactionSigner
+
 
+
getSigOpCount() - Method in class org.bitcoinj.core.Transaction
+
+
Gets the count of regular SigOps in this transactions
+
+
getSigOpCount(byte[]) - Static method in class org.bitcoinj.script.Script
+
+
Gets the count of regular SigOps in the script program (counting multisig ops as 20)
+
+
getSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns the number of signatures required to spend transactions for this KeyChain.
+
+
getSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Number of signatures required to spend.
+
+
getSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ Number of signatures required to spend.
+
+
getSigsRequiredToSpend() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ Number of signatures required to spend.
+
+
getSizeInBytes() - Method in class org.bitcoinj.core.VarInt
+
+
Returns the minimum encoded size of the value.
+
+
getSocketAddress() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getSource() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
The source of a transaction tries to identify where it came from originally.
+
+
getSource() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
getSource() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
getSource() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
getSpendableCoinbaseDepth() - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
getSpentBy() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the connected input.
+
+
getSpentByTransactionHash() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
getSpentByTransactionHash() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
getSpentByTransactionHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
getSpentByTransactionIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
getSpentByTransactionIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
getSpentByTransactionIndex() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
getStopHash() - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
getStoredBlockInCurrentScope(Sha256Hash) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
For a standard BlockChain, this should return blockStore.get(hash), + for a FullPrunedBlockChain blockStore.getOnceUndoableStoredBlock(hash)
+
+
getStoredBlockInCurrentScope(Sha256Hash) - Method in class org.bitcoinj.core.BlockChain
+
 
+
getStoredBlockInCurrentScope(Sha256Hash) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
getStoredOutputsFromUTXOProvider() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get all the UTXO's from the UTXOProvider based on keys that the + wallet contains.
+
+
getSubsidyDecreaseBlockCount() - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
getSymbolInstance() - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new auto-denominating instance that will indicate units using a currency + symbol, for example, "฿".
+
+
getSymbolInstance(int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new symbol-style auto-formatter with the given number of fractional decimal + places.
+
+
getSymbolInstance(Locale) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new symbol-style auto-formatter for the given locale.
+
+
getSymbolInstance(Locale, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Return a new symbol-style auto-formatter for the given locale with the given number of + fraction places.
+
+
getTablesExistSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL statement that checks if tables exist.
+
+
getTag() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
getTag() - Method in class org.bitcoinj.wallet.Protos.Tag
+
+
required string tag = 1;
+
+
getTag() - Method in interface org.bitcoinj.wallet.Protos.TagOrBuilder
+
+
required string tag = 1;
+
+
getTag(String) - Method in class org.bitcoinj.utils.BaseTaggableObject
+
 
+
getTag(String) - Method in interface org.bitcoinj.utils.TaggableObject
+
+
Returns the immutable byte array associated with the given tag name, or throws IllegalArgumentException + if that tag wasn't set yet.
+
+
getTagBytes() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
getTagBytes() - Method in class org.bitcoinj.wallet.Protos.Tag
+
+
required string tag = 1;
+
+
getTagBytes() - Method in interface org.bitcoinj.wallet.Protos.TagOrBuilder
+
+
required string tag = 1;
+
+
getTags() - Method in class org.bitcoinj.utils.BaseTaggableObject
+
 
+
getTags() - Method in interface org.bitcoinj.utils.TaggableObject
+
+
Returns a copy of all the tags held by this object.
+
+
getTags(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTags(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Tag tags = 16;
+
+
getTags(int) - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsCount() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsCount() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsCount() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsList() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsList() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Tag tags = 16;
+
+
getTagsOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Tag tags = 16;
+
+
getTargetTimespan() - Method in class org.bitcoinj.core.NetworkParameters
+
+
How much time in seconds is supposed to pass between "interval" blocks.
+
+
getTime() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when payment request created
+
+
getTime() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Timestamp; when payment request created
+
+
getTime() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Timestamp; when payment request created
+
+
getTime() - Method in class org.bitcoinj.core.Block
+
+
Returns the time at which the block was solved and broadcast, according to the clock of the solving node.
+
+
getTime() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
getTimeSeconds() - Method in class org.bitcoinj.core.Block
+
+
Returns the time at which the block was solved and broadcast, according to the clock of the solving node.
+
+
getTimestamp() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
+ seconds since UNIX epoch
+
+
getTimestamp() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
+ seconds since UNIX epoch
+
+
getTimestamp() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
+ seconds since UNIX epoch
+
+
getToAddress(NetworkParameters) - Method in class org.bitcoinj.script.Script
+
+
Gets the destination address from this script, if it's in the required form.
+
+
getToAddress(NetworkParameters, boolean) - Method in class org.bitcoinj.script.Script
+
+
Gets the destination address from this script, if it's in the required form.
+
+
getTotalReceived() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the amount of bitcoin ever received via output.
+
+
getTotalSent() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns the amount of bitcoin ever sent via output.
+
+
getTransaction() - Method in exception org.bitcoinj.core.RejectedTransactionException
+
+
Return the original Transaction object whose broadcast was rejected.
+
+
getTransaction() - Method in class org.bitcoinj.wallet.WalletTransaction
+
 
+
getTransaction(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransaction(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransaction(int) - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransaction(Sha256Hash) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a transaction object given its hash, if it exists in this wallet, or null otherwise.
+
+
getTransactionCount() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Number of transactions in this block, before it was filtered
+
+
getTransactionCount() - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
getTransactionCount() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionCount() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionCount() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionHash() - Method in class org.bitcoinj.core.TransactionConfidence
+
 
+
getTransactionHashes() - Method in class org.bitcoinj.core.FilteredBlock
+
+
Gets a list of leaf hashes which are contained in the partial merkle tree in this filtered block
+
+
getTransactionInput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInput(int) - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputCount() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputCount() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputCount() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputList() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputList() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionInputOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
getTransactionList() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionList() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Transaction transaction = 4;
+
+
getTransactionOutPointHash() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Hash of the transaction this input is using.
+
+
getTransactionOutPointHash() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Hash of the transaction this input is using.
+
+
getTransactionOutPointHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Hash of the transaction this input is using.
+
+
getTransactionOutPointIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Index of transaction output used by this input.
+
+
getTransactionOutPointIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Index of transaction output used by this input.
+
+
getTransactionOutPointIndex() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Index of transaction output used by this input.
+
+
getTransactionOutput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutput(int) - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutput(Sha256Hash, long) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getTransactionOutput(Sha256Hash, long) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Gets a UTXO with the given hash and index, or null if none is found
+
+
getTransactionOutput(Sha256Hash, long) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getTransactionOutput(Sha256Hash, long) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getTransactionOutputCount() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputCount() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputCount() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputList() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputList() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
getTransactionOutputSelectSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to select the transaction outputs for a given address.
+
+
getTransactionOutputSelectSQL() - Method in class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
 
+
getTransactionPool(WalletTransaction.Pool) - Method in interface org.bitcoinj.core.TransactionBag
+
+
Returns transactions from a specific pool.
+
+
getTransactionPool(WalletTransaction.Pool) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
getTransactions() - Method in class org.bitcoinj.core.Block
+
+
Returns an immutable list of transactions held in this block, or null if this object represents just a header.
+
+
getTransactions() - Method in class org.bitcoinj.core.StoredUndoableBlock
+
+
Get the full list of transactions if it is stored, otherwise null.
+
+
getTransactions(boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a set of all transactions in the wallet.
+
+
getTransactions(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactions(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactions(int) - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionsByTime() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns all non-dead, active transactions ordered by recency.
+
+
getTransactionsCount() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionsCount() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionsCount() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionSigners() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
getTransactionsList() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionsList() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionsList() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
getTransactionVerificationFlags(Block, Transaction, VersionTally, Integer) - Method in class org.bitcoinj.core.NetworkParameters
+
+
The flags indicating which script validation tests should be applied to + the given transaction.
+
+
getTxId() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the transaction id as you see them in block explorers.
+
+
getTxnHashAndMerkleRoot(List<Sha256Hash>) - Method in class org.bitcoinj.core.PartialMerkleTree
+
+
Extracts tx hashes that are in this merkle tree + and returns the merkle root of this tree.
+
+
getTxOutChanges() - Method in class org.bitcoinj.core.StoredUndoableBlock
+
+
Get the transaction output changes if they have been calculated, otherwise null.
+
+
getType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
required .wallet.Key.Type type = 1;
+
+
getType() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
required .wallet.Key.Type type = 1;
+
+
getType() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
required .wallet.Key.Type type = 1;
+
+
getType() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
getType() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
getType() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
getUnderstoodEncryptionType() - Method in interface org.bitcoinj.crypto.KeyCrypter
+
+
Return the EncryptionType enum value which denotes the type of encryption/ decryption that this KeyCrypter + can understand.
+
+
getUnderstoodEncryptionType() - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Return the EncryptionType enum value which denotes the type of encryption/ decryption that this KeyCrypter + can understand.
+
+
getUndoBlock(Sha256Hash) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getUndoBlock(Sha256Hash) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Returns a StoredUndoableBlock whose block.getHash() method will be equal to the parameter.
+
+
getUndoBlock(Sha256Hash) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getUndoBlock(Sha256Hash) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getUnspents() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a copy of the internal unspent outputs list
+
+
getUpdatedAt() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ millis since epoch the transaction was last updated
+
+
getUpdatedAt() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ millis since epoch the transaction was last updated
+
+
getUpdatedAt() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ millis since epoch the transaction was last updated
+
+
getUpdateFlag() - Method in class org.bitcoinj.core.BloomFilter
+
+
The update flag controls how application of the filter to a block modifies the filter.
+
+
getUpdateHeadersSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to update a headers record.
+
+
getUpdateSettingsSLQ() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to update a setting value.
+
+
getUpdateTime() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the earliest time at which the transaction was seen (broadcast or included into the chain), + or the epoch if that information isn't available.
+
+
getUpdateUndoableBlocksSQL() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Get the SQL to update a undoableblocks record.
+
+
getUriScheme() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Scheme part for URIs, for example "bitcoin".
+
+
getUriScheme() - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
getUseLocalhostPeerWhenPossible() - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
getUTXOProvider() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get the UTXOProvider.
+
+
getUTXOs(List<TransactionOutPoint>) - Method in class org.bitcoinj.core.Peer
+
+
Sends a query to the remote peer asking for the unspent transaction outputs (UTXOs) for the given outpoints, + with the memory pool included.
+
+
getUTXOs(List<TransactionOutPoint>, boolean) - Method in class org.bitcoinj.core.Peer
+
+
Sends a query to the remote peer asking for the unspent transaction outputs (UTXOs) for the given outpoints.
+
+
GetUTXOsMessage - Class in org.bitcoinj.core
+
+
This command is supported only by Bitcoin XT nodes, which + advertise themselves using the second service bit flag.
+
+
GetUTXOsMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.GetUTXOsMessage
+
 
+
GetUTXOsMessage(NetworkParameters, List<TransactionOutPoint>, boolean) - Constructor for class org.bitcoinj.core.GetUTXOsMessage
+
 
+
getValue() - Method in class org.bitcoinj.core.Coin
+
+
Returns the number of satoshis of this monetary value.
+
+
getValue() - Method in interface org.bitcoinj.core.Monetary
+
+
Returns the number of "smallest units" of this monetary value.
+
+
getValue() - Method in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
 
+
getValue() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
getValue() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns the value of this output.
+
+
getValue() - Method in class org.bitcoinj.core.UTXO
+
+
The value which this Transaction output holds.
+
+
getValue() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the total amount of bitcoins requested.
+
+
getValue() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns the number of "smallest units" of this monetary value.
+
+
getValue() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Value of connected output, if known
+
+
getValue() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Value of connected output, if known
+
+
getValue() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Value of connected output, if known
+
+
getValue() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
required int64 value = 1;
+
+
getValue() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
required int64 value = 1;
+
+
getValue() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
required int64 value = 1;
+
+
getValue(TransactionBag) - Method in class org.bitcoinj.core.Transaction
+
+ +
+
getValueSentFromMe(TransactionBag) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates the sum of the inputs that are spending coins with keys in the wallet.
+
+
getValueSentToMe(TransactionBag) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates the sum of the outputs that are sending coins to a key in the wallet.
+
+
getVerifiedChainHead() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
getVerifiedChainHead() - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Returns the StoredBlock that represents the top of the chain of greatest total work that has + been fully verified and the point in the chain at which the unspent transaction output set in this + store represents.
+
+
getVerifiedChainHead() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
getVerifiedChainHead() - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
getVersion() - Method in class org.bitcoinj.core.Block
+
+
Returns the version of the block data structure as defined by the Bitcoin protocol.
+
+
getVersion() - Method in class org.bitcoinj.core.LegacyAddress
+
+
Get the version header of an address.
+
+
getVersion() - Method in class org.bitcoinj.core.Transaction
+
 
+
getVersion() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
getVersion() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
getVersion() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
getVersion() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
getVersion() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
getVersion() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
getVersion() - Method in class org.bitcoinj.wallet.Wallet
+
+
Get the version of the Wallet.
+
+
getVersionHandshakeFuture() - Method in class org.bitcoinj.core.Peer
+
 
+
getVersionMessage() - Method in class org.bitcoinj.core.Peer
+
+
Returns version data we announce to our remote peers.
+
+
getVersionMessage() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the version message provided by setVersionMessage or a default if none was given.
+
+
getVersionTally() - Method in class org.bitcoinj.core.AbstractBlockChain
+
 
+
getVsize() - Method in class org.bitcoinj.core.Transaction
+
+
Gets the virtual transaction size as defined in BIP141.
+
+
getWallet() - Method in class org.bitcoinj.wallet.WalletFiles
+
+
Get the Wallet this WalletFiles is managing.
+
+
getWalletExtensionID() - Method in interface org.bitcoinj.wallet.WalletExtension
+
+
Returns a Java package/class style name used to disambiguate this extension from others.
+
+
getWalletOutputs(TransactionBag) - Method in class org.bitcoinj.core.Transaction
+
+
Returns the list of transacion outputs, whether spent or unspent, that match a wallet by address or that are + watched by a wallet, i.e., transaction outputs whose script's address is controlled by the wallet and transaction + outputs whose script is watched by the wallet.
+
+
getWalletTransactions() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a set of all WalletTransactions in the wallet.
+
+
getWatchedAddresses() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns all addresses watched by this wallet.
+
+
getWatchedOutputs(boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns all the outputs that match addresses or scripts added via Wallet.addWatchedAddress(Address) or + Wallet.addWatchedScripts(java.util.List).
+
+
getWatchedScript(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScript(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScript(int) - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptCount() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptCount() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptCount() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptList() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptList() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptOrBuilder(int) - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScriptOrBuilderList() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
repeated .wallet.Script watched_script = 15;
+
+
getWatchedScripts() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a snapshot of the watched scripts.
+
+
getWatchingKey() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
An alias for getKeyByPath(getAccountPath()).
+
+
getWatchingKey() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns a public-only DeterministicKey that can be used to set up a watching wallet: that is, a wallet that + can import transactions from the block chain just as the normal wallet can, but which cannot spend.
+
+
getWeight() - Method in class org.bitcoinj.core.Transaction
+
+
Gets the transaction weight as defined in BIP141.
+
+
getWitness() - Method in class org.bitcoinj.core.TransactionInput
+
+
Get the transaction witness of this input.
+
+
getWitness() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
getWitness() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ script witness
+
+
getWitness() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ script witness
+
+
getWitnessProgram() - Method in class org.bitcoinj.core.SegwitAddress
+
+
Returns the witness program in decoded form.
+
+
getWitnessRoot() - Method in class org.bitcoinj.core.Block
+
+
Returns the witness root in big endian form, calculating it from transactions if necessary.
+
+
getWitnessVersion() - Method in class org.bitcoinj.core.SegwitAddress
+
+
Returns the witness version in decoded form.
+
+
getWordList() - Method in class org.bitcoinj.crypto.MnemonicCode
+
+
Gets the word list this code uses.
+
+
getWork() - Method in class org.bitcoinj.core.Block
+
+
Returns the work represented by this block.
+
+
getWTxId() - Method in class org.bitcoinj.core.Transaction
+
+
Returns the witness transaction id (aka witness id) as per BIP144.
+
+
getX() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getXCoord() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getY() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getYCoord() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getZCoord(int) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
getZCoords() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
+

H

+
+
H2FullPrunedBlockStore - Class in org.bitcoinj.store
+
+
A full pruned block store using the H2 pure-java embedded database.
+
+
H2FullPrunedBlockStore(NetworkParameters, String, int) - Constructor for class org.bitcoinj.store.H2FullPrunedBlockStore
+
+
Creates a new H2FullPrunedBlockStore
+
+
H2FullPrunedBlockStore(NetworkParameters, String, int, int) - Constructor for class org.bitcoinj.store.H2FullPrunedBlockStore
+
+
Creates a new H2FullPrunedBlockStore with the given cache size
+
+
H2FullPrunedBlockStore(NetworkParameters, String, String, String, int) - Constructor for class org.bitcoinj.store.H2FullPrunedBlockStore
+
+
Creates a new H2FullPrunedBlockStore, with given credentials for H2 database
+
+
HALF_CURVE_ORDER - Static variable in class org.bitcoinj.core.ECKey
+
+
Equal to CURVE.getN().shiftRight(1), used for canonicalising the S value of a signature.
+
+
handleNewPeer(Peer) - Method in class org.bitcoinj.core.PeerGroup
+
 
+
handlePeerDeath(Peer, Throwable) - Method in class org.bitcoinj.core.PeerGroup
+
 
+
HARDENED_BIT - Static variable in class org.bitcoinj.crypto.ChildNumber
+
+
The bit that's set in the child number to indicate whether this key is "hardened".
+
+
hasAmount() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ amount is integer-number-of-satoshis
+
+
hasAmount() - Method in class org.bitcoin.protocols.payments.Protos.Output
+
+
+ amount is integer-number-of-satoshis
+
+
hasAmount() - Method in interface org.bitcoin.protocols.payments.Protos.OutputOrBuilder
+
+
+ amount is integer-number-of-satoshis
+
+
hasAppearedAtHeight() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
hasAppearedAtHeight() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
hasAppearedAtHeight() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
hasBlockChain() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if the version message indicates the sender has a full copy of the block chain, or false if it's + running in client mode (only has the headers).
+
+
hasChainCode() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Random data that allows us to extend a key.
+
+
hasChainCode() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ Random data that allows us to extend a key.
+
+
hasChainCode() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ Random data that allows us to extend a key.
+
+
hasCoinValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
hasCoinValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
hasCoinValue() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
hasConfidence() - Method in class org.bitcoinj.core.Transaction
+
+
Check if the transaction has a known confidence
+
+
hasConfidence() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
hasConfidence() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Data describing where the transaction is in the chain.
+
+
hasConfidence() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Data describing where the transaction is in the chain.
+
+
hasCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
hasCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Timestamp stored as millis since epoch.
+
+
hasCreationTimestamp() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Timestamp stored as millis since epoch.
+
+
hasCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
hasCreationTimestamp() - Method in class org.bitcoinj.wallet.Protos.Script
+
+
+ Timestamp stored as millis since epoch.
+
+
hasCreationTimestamp() - Method in interface org.bitcoinj.wallet.Protos.ScriptOrBuilder
+
+
+ Timestamp stored as millis since epoch.
+
+
hasData() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
required bytes data = 2;
+
+
hasData() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
required bytes data = 2;
+
+
hasData() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
required bytes data = 2;
+
+
hasData() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required bytes data = 2;
+
+
hasData() - Method in class org.bitcoinj.wallet.Protos.Tag
+
+
required bytes data = 2;
+
+
hasData() - Method in interface org.bitcoinj.wallet.Protos.TagOrBuilder
+
+
required bytes data = 2;
+
+
hasDepth() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
hasDepth() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
hasDepth() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
hasDescription() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
hasDescription() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
hasDescription() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
hasDeterministicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
hasDeterministicKey() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
hasDeterministicKey() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
hasDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The seed for a deterministic key hierarchy.
+
+
hasDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The seed for a deterministic key hierarchy.
+
+
hasDeterministicSeed() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The seed for a deterministic key hierarchy.
+
+
hasEncryptedData() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
hasEncryptedData() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
hasEncryptedData() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
hasEncryptedDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
hasEncryptedDeterministicSeed() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Encrypted version of the seed
+
+
hasEncryptedDeterministicSeed() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Encrypted version of the seed
+
+
hasEncryptedPrivateKey() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The encrypted private key
+
+
hasEncryptedPrivateKey() - Method in class org.bitcoinj.wallet.Protos.EncryptedData
+
+
+ The encrypted private key
+
+
hasEncryptedPrivateKey() - Method in interface org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder
+
+
+ The encrypted private key
+
+
hasEncryptionParameters() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
hasEncryptionParameters() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
hasEncryptionParameters() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
hasEncryptionType() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
hasEncryptionType() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
hasEncryptionType() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
hasExchangeRate() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
hasExchangeRate() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
hasExchangeRate() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
hasExpires() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when this request should be considered invalid
+
+
hasExpires() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Timestamp; when this request should be considered invalid
+
+
hasExpires() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Timestamp; when this request should be considered invalid
+
+
hasFiatCurrencyCode() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
hasFiatCurrencyCode() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
hasFiatCurrencyCode() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
hasFiatValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
hasFiatValue() - Method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
hasFiatValue() - Method in interface org.bitcoinj.wallet.Protos.ExchangeRateOrBuilder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
hash - Variable in class org.bitcoinj.core.InventoryItem
+
 
+
hash(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the SHA-256 hash of the given bytes.
+
+
hash(byte[], int, int) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the SHA-256 hash of the given byte range.
+
+
HASH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
hasHash() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
required bytes hash = 2;
+
+
hasHash() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
required bytes hash = 2;
+
+
hasHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
required bytes hash = 2;
+
+
hashCode() - Method in class org.bitcoinj.core.BitcoinSerializer
+
 
+
hashCode() - Method in class org.bitcoinj.core.Block
+
 
+
hashCode() - Method in class org.bitcoinj.core.BlockLocator
+
 
+
hashCode() - Method in class org.bitcoinj.core.BloomFilter
+
 
+
hashCode() - Method in class org.bitcoinj.core.Coin
+
 
+
hashCode() - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
 
+
hashCode() - Method in class org.bitcoinj.core.ECKey
+
 
+
hashCode() - Method in class org.bitcoinj.core.FilteredBlock
+
 
+
hashCode() - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.GetHeadersMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.InventoryItem
+
 
+
hashCode() - Method in class org.bitcoinj.core.LegacyAddress
+
 
+
hashCode() - Method in class org.bitcoinj.core.ListMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.NetworkParameters
+
 
+
hashCode() - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
hashCode() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
hashCode() - Method in class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
hashCode() - Method in class org.bitcoinj.core.RejectMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.Sha256Hash
+
+
Returns the last four bytes of the wrapped hash.
+
+
hashCode() - Method in class org.bitcoinj.core.StoredBlock
+
 
+
hashCode() - Method in class org.bitcoinj.core.StoredUndoableBlock
+
 
+
hashCode() - Method in class org.bitcoinj.core.Transaction
+
 
+
hashCode() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
hashCode() - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
hashCode() - Method in class org.bitcoinj.core.TransactionOutput
+
 
+
hashCode() - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
hashCode() - Method in class org.bitcoinj.core.UTXO
+
 
+
hashCode() - Method in class org.bitcoinj.core.UTXOsMessage
+
 
+
hashCode() - Method in class org.bitcoinj.core.VersionMessage
+
 
+
hashCode() - Method in class org.bitcoinj.crypto.ChildNumber
+
 
+
hashCode() - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
hashCode() - Method in class org.bitcoinj.crypto.EncryptedData
+
 
+
hashCode() - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
 
+
hashCode() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
hashCode() - Method in class org.bitcoinj.script.Script
+
 
+
hashCode() - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
hashCode() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return a hash code value for this instance.
+
+
hashCode() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return a hash code value for this instance.
+
+
hashCode() - Method in class org.bitcoinj.utils.ExchangeRate
+
 
+
hashCode() - Method in class org.bitcoinj.utils.Fiat
+
 
+
hashCode() - Method in class org.bitcoinj.utils.MonetaryFormat
+
 
+
hashCode() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
hashForSignature(int, byte[], byte) - Method in class org.bitcoinj.core.Transaction
+
+
This is required for signatures which use a sigHashType which cannot be represented using SigHash and anyoneCanPay + See transaction c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73, which has sigHashType 0
+
+
hashForSignature(int, byte[], Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature hash, that is, a hash of a simplified form of the transaction.
+
+
hashForSignature(int, Script, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature hash, that is, a hash of a simplified form of the transaction.
+
+
hashForWitnessSignature(int, byte[], Coin, byte) - Method in class org.bitcoinj.core.Transaction
+
 
+
hashForWitnessSignature(int, byte[], Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
 
+
hashForWitnessSignature(int, Script, Coin, Transaction.SigHash, boolean) - Method in class org.bitcoinj.core.Transaction
+
+
Calculates a signature hash, that is, a hash of a simplified form of the transaction.
+
+
hashToByteString(Sha256Hash) - Static method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
hashTwice(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the SHA-256 hash of the given bytes, + and then hashes the resulting hash again.
+
+
hashTwice(byte[], byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the hash of hash on the given chunks of bytes.
+
+
hashTwice(byte[], int, int) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the SHA-256 hash of the given byte range, + and then hashes the resulting hash again.
+
+
hashTwice(byte[], int, int, byte[], int, int) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Calculates the hash of hash on the given byte ranges.
+
+
hasId() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
hasId() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
+ like org.whatever.foo.bar
+
+
hasId() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
+ like org.whatever.foo.bar
+
+
hasInitialisationVector() - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
hasInitialisationVector() - Method in class org.bitcoinj.wallet.Protos.EncryptedData
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
hasInitialisationVector() - Method in interface org.bitcoinj.wallet.Protos.EncryptedDataOrBuilder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
hasIpAddress() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
hasIpAddress() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required string ip_address = 1;
+
+
hasIpAddress() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required string ip_address = 1;
+
+
hasIpAddress() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required bytes ip_address = 1;
+
+
hasIpAddress() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required bytes ip_address = 1;
+
+
hasIpAddress() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required bytes ip_address = 1;
+
+
hasIsFollowing() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
hasIsFollowing() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
hasIsFollowing() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
hasIssuedSubkeys() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
hasIssuedSubkeys() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
hasIssuedSubkeys() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
hasKey(ECKey) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
hasKey(ECKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
hasKey(ECKey) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Returns true if the given key is in the chain.
+
+
hasKey(ECKey) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
hasKey(ECKey) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if the given key is in the wallet, false otherwise.
+
+
hasKeyRotationTime() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ UNIX time in seconds since the epoch.
+
+
hasKeyRotationTime() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ UNIX time in seconds since the epoch.
+
+
hasKeyRotationTime() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ UNIX time in seconds since the epoch.
+
+
hasLabel() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
hasLabel() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ User-provided label associated with the key.
+
+
hasLabel() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ User-provided label associated with the key.
+
+
hasLastBroadcastedAt() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
hasLastBroadcastedAt() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
hasLastBroadcastedAt() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
hasLastSeenBlockHash() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
hasLastSeenBlockHash() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
hasLastSeenBlockHash() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
hasLastSeenBlockHeight() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The height in the chain of the last seen block.
+
+
hasLastSeenBlockHeight() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The height in the chain of the last seen block.
+
+
hasLastSeenBlockHeight() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The height in the chain of the last seen block.
+
+
hasLastSeenBlockTimeSecs() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
hasLastSeenBlockTimeSecs() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
hasLastSeenBlockTimeSecs() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
hasLimitedBlockChain() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if the peer has at least the last two days worth of blockchain (BIP159).
+
+
hasLockTime() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ The nLockTime field is useful for contracts.
+
+
hasLockTime() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ The nLockTime field is useful for contracts.
+
+
hasLockTime() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ The nLockTime field is useful for contracts.
+
+
hasLookaheadSize() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
optional uint32 lookahead_size = 4;
+
+
hasLookaheadSize() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
optional uint32 lookahead_size = 4;
+
+
hasLookaheadSize() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
optional uint32 lookahead_size = 4;
+
+
hasLotAndSequence - Variable in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
hasMandatory() - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
hasMandatory() - Method in class org.bitcoinj.wallet.Protos.Extension
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
hasMandatory() - Method in interface org.bitcoinj.wallet.Protos.ExtensionOrBuilder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
hasMaxMoney() - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns whether this network has a maximum number of coins (finite supply) or + not.
+
+
hasMaxMoney() - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ Human-readable message for the merchant
+
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+ human-readable message for customer
+
+
hasMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentACKOrBuilder
+
+
+ human-readable message for customer
+
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
hasMemo() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Human-readable description of request for the customer
+
+
hasMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Human-readable description of request for the customer
+
+
hasMemo() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ Human-readable message for the merchant
+
+
hasMemo() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
hasMemo() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ Memo of the transaction.
+
+
hasMemo() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ Memo of the transaction.
+
+
hasMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ From PaymentDetails.merchant_data
+
+
hasMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.Payment
+
+
+ From PaymentDetails.merchant_data
+
+
hasMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Arbitrary data to include in the Payment message
+
+
hasMerchantData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Arbitrary data to include in the Payment message
+
+
hasMerchantData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Arbitrary data to include in the Payment message
+
+
hasMerchantData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentOrBuilder
+
+
+ From PaymentDetails.merchant_data
+
+
hasMoreBytes() - Method in class org.bitcoinj.core.Message
+
 
+
hasN() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ CPU/ memory cost parameter
+
+
hasN() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ CPU/ memory cost parameter
+
+
hasN() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ CPU/ memory cost parameter
+
+
hasNet() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
hasNet() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
required string net = 3;
+
+
hasNet() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
required string net = 3;
+
+
hasNetwork() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
hasNetwork() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ "main" or "test"
+
+
hasNetwork() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ "main" or "test"
+
+
hasNetworkIdentifier() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
hasNetworkIdentifier() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ the network used by this wallet
+
+
hasNetworkIdentifier() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ the network used by this wallet
+
+
hasNext() - Method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
hasNonce() - Method in class org.bitcoinj.core.Ping
+
 
+
hasOutputScriptType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
hasOutputScriptType() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
hasOutputScriptType() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
hasOverridingTransaction() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
hasOverridingTransaction() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
hasOverridingTransaction() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
hasP() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Parallelisation parameter
+
+
hasP() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Parallelisation parameter
+
+
hasP() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Parallelisation parameter
+
+
hasPayment() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
hasPayment() - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+ Payment message that triggered this ACK
+
+
hasPayment() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentACKOrBuilder
+
+
+ Payment message that triggered this ACK
+
+
hasPaymentDetailsVersion() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
hasPaymentDetailsVersion() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
hasPaymentDetailsVersion() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
hasPaymentUrl() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
hasPaymentUrl() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ URL to send Payment and get PaymentACK
+
+
hasPaymentUrl() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ URL to send Payment and get PaymentACK
+
+
hasPeerSeeds() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes peer_seeds = 1;
+
+
hasPeerSeeds() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes peer_seeds = 1;
+
+
hasPeerSeeds() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes peer_seeds = 1;
+
+
hasPkiData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ depends on pki_type
+
+
hasPkiData() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ depends on pki_type
+
+
hasPkiData() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ depends on pki_type
+
+
hasPkiType() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
hasPkiType() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ none / x509+sha256 / x509+sha1
+
+
hasPkiType() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ none / x509+sha256 / x509+sha1
+
+
hasPool() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
hasPool() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
hasPool() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
hasPort() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 port = 2;
+
+
hasPort() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required uint32 port = 2;
+
+
hasPort() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required uint32 port = 2;
+
+
hasPort() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint32 port = 2;
+
+
hasPort() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required uint32 port = 2;
+
+
hasPort() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required uint32 port = 2;
+
+
hasPrivateKey - Variable in class org.bitcoinj.crypto.HDPath
+
 
+
hasPrivateKey() - Method in class org.bitcoinj.crypto.HDPath
+
+
Is this a path to a private key?
+
+
hasPrivKey() - Method in class org.bitcoinj.core.ECKey
+
+
Returns true if this key has unencrypted access to private key bytes.
+
+
hasPrivKey() - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
hasProgram() - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
required bytes program = 1;
+
+
hasProgram() - Method in class org.bitcoinj.wallet.Protos.Script
+
+
required bytes program = 1;
+
+
hasProgram() - Method in interface org.bitcoinj.wallet.Protos.ScriptOrBuilder
+
+
required bytes program = 1;
+
+
hasPubkey() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes pubkey = 3;
+
+
hasPubkey() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes pubkey = 3;
+
+
hasPubkey() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes pubkey = 3;
+
+
hasPublicKey() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The public EC key derived from the private key.
+
+
hasPublicKey() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ The public EC key derived from the private key.
+
+
hasPublicKey() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ The public EC key derived from the private key.
+
+
hasPurpose() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
hasPurpose() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
hasPurpose() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
hasR() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Block size parameter
+
+
hasR() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Block size parameter
+
+
hasR() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Block size parameter
+
+
hasRelativeLockTime() - Method in class org.bitcoinj.core.Transaction
+
+
A transaction has a relative lock time + (BIP 68) if it is version 2 or + higher and at least one of its inputs has its TransactionInput.SEQUENCE_LOCKTIME_DISABLE_FLAG cleared.
+
+
hasRelativeLockTime() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns whether this input, if it belongs to a version 2 (or higher) transaction, has + relative lock-time enabled.
+
+
hasSalt() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
hasSalt() - Method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
hasSalt() - Method in interface org.bitcoinj.wallet.Protos.ScryptParametersOrBuilder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
hasScript() - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ usually one of the standard Script forms
+
+
hasScript() - Method in class org.bitcoin.protocols.payments.Protos.Output
+
+
+ usually one of the standard Script forms
+
+
hasScript() - Method in interface org.bitcoin.protocols.payments.Protos.OutputOrBuilder
+
+
+ usually one of the standard Script forms
+
+
hasScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Script that contains the signatures/pubkeys.
+
+
hasScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Script that contains the signatures/pubkeys.
+
+
hasScriptBytes() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Script that contains the signatures/pubkeys.
+
+
hasScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ script of transaction output
+
+
hasScriptBytes() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ script of transaction output
+
+
hasScriptBytes() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ script of transaction output
+
+
hasSecretBytes() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
hasSecretBytes() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
hasSecretBytes() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
hasSequence() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
hasSequence() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Sequence number.
+
+
hasSequence() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Sequence number.
+
+
hasSequence() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Sequence number.
+
+
hasSerializedPaymentDetails() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ PaymentDetails
+
+
hasSerializedPaymentDetails() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ PaymentDetails
+
+
hasSerializedPaymentDetails() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ PaymentDetails
+
+
hasServices() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 services = 3;
+
+
hasServices() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
required uint32 services = 3;
+
+
hasServices() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedDataOrBuilder
+
+
required uint32 services = 3;
+
+
hasServices() - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint64 services = 3;
+
+
hasServices() - Method in class org.bitcoinj.wallet.Protos.PeerAddress
+
+
required uint64 services = 3;
+
+
hasServices() - Method in interface org.bitcoinj.wallet.Protos.PeerAddressOrBuilder
+
+
required uint64 services = 3;
+
+
hasSignature() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes signature = 2;
+
+
hasSignature() - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
required bytes signature = 2;
+
+
hasSignature() - Method in interface org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
required bytes signature = 2;
+
+
hasSignature() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ pki-dependent signature
+
+
hasSignature() - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+ pki-dependent signature
+
+
hasSignature() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentRequestOrBuilder
+
+
+ pki-dependent signature
+
+
hasSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Number of signatures required to spend.
+
+
hasSigsRequiredToSpend() - Method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+ Number of signatures required to spend.
+
+
hasSigsRequiredToSpend() - Method in interface org.bitcoinj.wallet.Protos.DeterministicKeyOrBuilder
+
+
+ Number of signatures required to spend.
+
+
hasSource() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
hasSource() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
hasSource() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
hasSpentByTransactionHash() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
hasSpentByTransactionHash() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
hasSpentByTransactionHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
hasSpentByTransactionIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
hasSpentByTransactionIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
hasSpentByTransactionIndex() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
hasTag() - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
hasTag() - Method in class org.bitcoinj.wallet.Protos.Tag
+
+
required string tag = 1;
+
+
hasTag() - Method in interface org.bitcoinj.wallet.Protos.TagOrBuilder
+
+
required string tag = 1;
+
+
hasTime() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when payment request created
+
+
hasTime() - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+ Timestamp; when payment request created
+
+
hasTime() - Method in interface org.bitcoin.protocols.payments.Protos.PaymentDetailsOrBuilder
+
+
+ Timestamp; when payment request created
+
+
hasTimestamp() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
+ seconds since UNIX epoch
+
+
hasTimestamp() - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
+ seconds since UNIX epoch
+
+
hasTimestamp() - Method in interface org.bitcoin.crawler.PeerSeedProtos.PeerSeedsOrBuilder
+
+
+ seconds since UNIX epoch
+
+
hasTransactionOutPointHash() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Hash of the transaction this input is using.
+
+
hasTransactionOutPointHash() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Hash of the transaction this input is using.
+
+
hasTransactionOutPointHash() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Hash of the transaction this input is using.
+
+
hasTransactionOutPointIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Index of transaction output used by this input.
+
+
hasTransactionOutPointIndex() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Index of transaction output used by this input.
+
+
hasTransactionOutPointIndex() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Index of transaction output used by this input.
+
+
hasTransactions() - Method in class org.bitcoinj.core.Block
+
+
Return whether this block contains any transactions.
+
+
hasType() - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
required .wallet.Key.Type type = 1;
+
+
hasType() - Method in class org.bitcoinj.wallet.Protos.Key
+
+
required .wallet.Key.Type type = 1;
+
+
hasType() - Method in interface org.bitcoinj.wallet.Protos.KeyOrBuilder
+
+
required .wallet.Key.Type type = 1;
+
+
hasType() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
hasType() - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
hasType() - Method in interface org.bitcoinj.wallet.Protos.TransactionConfidenceOrBuilder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
hasUnspentOutputs(Sha256Hash, int) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
hasUnspentOutputs(Sha256Hash, int) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
True if this store has any unspent outputs from a transaction with a hash equal to the first parameter
+
+
hasUnspentOutputs(Sha256Hash, int) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
hasUnspentOutputs(Sha256Hash, int) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
hasUpdatedAt() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ millis since epoch the transaction was last updated
+
+
hasUpdatedAt() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ millis since epoch the transaction was last updated
+
+
hasUpdatedAt() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ millis since epoch the transaction was last updated
+
+
hasValue() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Value of connected output, if known
+
+
hasValue() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ Value of connected output, if known
+
+
hasValue() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ Value of connected output, if known
+
+
hasValue() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
required int64 value = 1;
+
+
hasValue() - Method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
+
required int64 value = 1;
+
+
hasValue() - Method in interface org.bitcoinj.wallet.Protos.TransactionOutputOrBuilder
+
+
required int64 value = 1;
+
+
hasVersion() - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
hasVersion() - Method in class org.bitcoinj.wallet.Protos.Transaction
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
hasVersion() - Method in interface org.bitcoinj.wallet.Protos.TransactionOrBuilder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
hasVersion() - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
hasVersion() - Method in class org.bitcoinj.wallet.Protos.Wallet
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
hasVersion() - Method in interface org.bitcoinj.wallet.Protos.WalletOrBuilder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
hasWitness() - Method in class org.bitcoinj.core.TransactionInput
+
+
Determine if the transaction has witnesses.
+
+
hasWitness() - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
hasWitness() - Method in class org.bitcoinj.wallet.Protos.TransactionInput
+
+
+ script witness
+
+
hasWitness() - Method in interface org.bitcoinj.wallet.Protos.TransactionInputOrBuilder
+
+
+ script witness
+
+
hasWitnesses() - Method in class org.bitcoinj.core.Transaction
+
 
+
HDDerivationException - Exception in org.bitcoinj.crypto
+
 
+
HDDerivationException(String) - Constructor for exception org.bitcoinj.crypto.HDDerivationException
+
 
+
HDKeyDerivation - Class in org.bitcoinj.crypto
+
+
Implementation of the BIP 32 + deterministic wallet child key generation algorithm.
+
+
HDKeyDerivation.PublicDeriveMode - Enum Class in org.bitcoinj.crypto
+
 
+
HDKeyDerivation.RawKeyBytes - Class in org.bitcoinj.crypto
+
 
+
HDPath - Class in org.bitcoinj.crypto
+
+
HD Key derivation path.
+
+
HDPath(boolean, List<ChildNumber>) - Constructor for class org.bitcoinj.crypto.HDPath
+
+
Constructs a path for a public or private key.
+
+
HDPath(List<ChildNumber>) - Constructor for class org.bitcoinj.crypto.HDPath
+
+
Constructs a path for a public key.
+
+
HDUtils - Class in org.bitcoinj.crypto
+
+
Static utilities used in BIP 32 Hierarchical Deterministic Wallets (HDW).
+
+
HDUtils() - Constructor for class org.bitcoinj.crypto.HDUtils
+
 
+
header - Variable in class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
 
+
HEADER_LENGTH - Static variable in class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
+
The largest number of bytes that a header can represent
+
+
HEADER_MAGIC - Static variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
HEADER_SIZE - Static variable in class org.bitcoinj.core.Block
+
+
How many bytes are required to represent a block header WITHOUT the trailing 00 length byte.
+
+
headerBytesValid - Variable in class org.bitcoinj.core.Block
+
 
+
HeadersMessage - Class in org.bitcoinj.core
+
+
A protocol message that contains a repeated series of block headers, sent in response to the "getheaders" command.
+
+
HeadersMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.HeadersMessage
+
 
+
HeadersMessage(NetworkParameters, List<Block>) - Constructor for class org.bitcoinj.core.HeadersMessage
+
 
+
HeadersMessage(NetworkParameters, Block...) - Constructor for class org.bitcoinj.core.HeadersMessage
+
 
+
HEIGHT_IN_COINBASE - Enum constant in enum class org.bitcoinj.core.Block.VerifyFlag
+
+
Check that block height is in coinbase transaction (BIP 34).
+
+
HEX - Static variable in class org.bitcoinj.core.Utils
+
+
Hex encoding used throughout the framework.
+
+
hit - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
hmacSha512(byte[], byte[]) - Static method in class org.bitcoinj.crypto.HDUtils
+
 
+
hrp - Variable in class org.bitcoinj.core.Bech32.Bech32Data
+
 
+
HttpDiscovery - Class in org.bitcoinj.net.discovery
+
+
A class that knows how to read signed sets of seeds over HTTP, using a simple protobuf based protocol.
+
+
HttpDiscovery(NetworkParameters, URI, ECKey) - Constructor for class org.bitcoinj.net.discovery.HttpDiscovery
+
+
Constructs a discovery object that will read data from the given HTTP[S] URI and, if a public key is provided, + will check the signature using that key.
+
+
HttpDiscovery(NetworkParameters, HttpDiscovery.Details) - Constructor for class org.bitcoinj.net.discovery.HttpDiscovery
+
+
Constructs a discovery object that will read data from the given HTTP[S] URI and, if a public key is provided, + will check the signature using that key.
+
+
HttpDiscovery(NetworkParameters, HttpDiscovery.Details, OkHttpClient) - Constructor for class org.bitcoinj.net.discovery.HttpDiscovery
+
 
+
HttpDiscovery.Details - Class in org.bitcoinj.net.discovery
+
 
+
httpSeeds - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
+

I

+
+
i() - Method in class org.bitcoinj.crypto.ChildNumber
+
+
Returns the uint32 encoded form of the path element, including the most significant bit.
+
+
id - Variable in class org.bitcoinj.core.NetworkParameters
+
+
See getId().
+
+
id - Variable in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
ID_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Extension
+
 
+
ID_MAINNET - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string returned by getId() for the main, production network where people trade things.
+
+
ID_REGTEST - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string returned by getId() for regtest mode.
+
+
ID_TESTNET - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string returned by getId() for the testnet.
+
+
ID_UNITTESTNET - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
Unit test network.
+
+
ignoreLockCycles() - Static method in class org.bitcoinj.utils.Threading
+
 
+
importKey(ECKey) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Imports a key to the key chain.
+
+
importKey(ECKey) - Method in class org.bitcoinj.wallet.Wallet
+
+
Imports the given ECKey to the wallet.
+
+
importKeys(List<? extends ECKey>) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
importKeys(List<ECKey>) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Imports the given keys into the basic chain, creating it if necessary.
+
+
importKeys(List<ECKey>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Imports the given keys to the wallet.
+
+
importKeys(ECKey...) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
importKeys(ECKey...) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Imports the given keys into the basic chain, creating it if necessary.
+
+
importKeysAndEncrypt(List<ECKey>, CharSequence) - Method in class org.bitcoinj.wallet.Wallet
+
+
Takes a list of keys and a password, then encrypts and imports them in one step using the current keycrypter.
+
+
importKeysAndEncrypt(List<ECKey>, KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Imports the given unencrypted keys into the basic chain, encrypting them along the way with the given key.
+
+
importKeysAndEncrypt(List<ECKey>, KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter.
+
+
IN_CONFLICT - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
If IN_CONFLICT, then it means there is another transaction (or several other transactions) spending one + (or several) of its inputs but nor this transaction nor the other/s transaction/s are included in the best chain.
+
+
IN_CONFLICT - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ There is another transaction spending one of this transaction inputs.
+
+
IN_CONFLICT_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ There is another transaction spending one of this transaction inputs.
+
+
INACTIVE - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In non-best chain, not our transaction
+
+
INACTIVE_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In non-best chain, not our transaction
+
+
incrementDepthInBlocks() - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Called by the wallet when the tx appears on the best chain and a new block is added to the top.
+
+
init() - Static method in class org.bitcoinj.utils.BriefLogFormatter
+
+
Configures JDK logging to use this class for everything.
+
+
INITIALISATION_VECTOR_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
initialisationVector - Variable in class org.bitcoinj.crypto.EncryptedData
+
 
+
initialize(BlockStore, StoredBlock) - Method in class org.bitcoinj.utils.VersionTally
+
+
Initialize the version tally from the block store.
+
+
initVerbose() - Static method in class org.bitcoinj.utils.BriefLogFormatter
+
 
+
initWithSilentBitcoinJ() - Static method in class org.bitcoinj.utils.BriefLogFormatter
+
 
+
insert(byte[]) - Method in class org.bitcoinj.core.BloomFilter
+
+
Insert the given arbitrary data into the filter
+
+
insert(ECKey) - Method in class org.bitcoinj.core.BloomFilter
+
+
Inserts the given key and equivalent hashed form (for the address).
+
+
insert(TransactionOutPoint) - Method in class org.bitcoinj.core.BloomFilter
+
+
Inserts the given transaction outpoint.
+
+
INSTANCE - Static variable in class org.bitcoinj.crypto.MnemonicCode
+
 
+
instrument - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
INSUFFICIENTFEE - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The messages described an object which did not have sufficient fee to be relayed further.
+
+
InsufficientMoneyException - Exception in org.bitcoinj.core
+
+
Thrown to indicate that you don't have enough money available to perform the requested operation.
+
+
InsufficientMoneyException() - Constructor for exception org.bitcoinj.core.InsufficientMoneyException
+
 
+
InsufficientMoneyException(Coin) - Constructor for exception org.bitcoinj.core.InsufficientMoneyException
+
 
+
InsufficientMoneyException(Coin, String) - Constructor for exception org.bitcoinj.core.InsufficientMoneyException
+
 
+
int64ToByteArrayLE(long, byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Write 8 bytes to the byte array (starting at the offset) as signed 64-bit integer in little endian format.
+
+
int64ToByteStreamLE(long, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 8 bytes to the output stream as signed 64-bit integer in little endian format.
+
+
INTERNAL_SUBPATH - Static variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
 
+
internalGetValueMap() - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
 
+
internalGetVerifier() - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
 
+
interval - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
INTERVAL - Static variable in class org.bitcoinj.core.NetworkParameters
+
 
+
intValue() - Method in class org.bitcoinj.core.VarInt
+
 
+
INVALID - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message described an invalid object
+
+
InvalidCharacter(char, int) - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidCharacter
+
 
+
InvalidChecksum() - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidChecksum
+
 
+
InvalidChecksum(String) - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidChecksum
+
 
+
InvalidCipherText(String) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException.InvalidCipherText
+
 
+
InvalidCipherText(String, Throwable) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException.InvalidCipherText
+
 
+
InvalidDataLength() - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidDataLength
+
 
+
InvalidDataLength(String) - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidDataLength
+
 
+
InvalidNetwork(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidNetwork
+
 
+
InvalidOutputs(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidOutputs
+
 
+
InvalidPaymentRequestURL(Exception) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentRequestURL
+
 
+
InvalidPaymentRequestURL(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentRequestURL
+
 
+
InvalidPaymentURL(Exception) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentURL
+
 
+
InvalidPaymentURL(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentURL
+
 
+
InvalidPkiData(Exception) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPkiData
+
 
+
InvalidPkiData(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPkiData
+
 
+
InvalidPkiType(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPkiType
+
 
+
InvalidPrefix() - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidPrefix
+
 
+
InvalidPrefix(String) - Constructor for exception org.bitcoinj.core.AddressFormatException.InvalidPrefix
+
 
+
InvalidVersion(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidVersion
+
 
+
InventoryItem - Class in org.bitcoinj.core
+
 
+
InventoryItem(InventoryItem.Type, Sha256Hash) - Constructor for class org.bitcoinj.core.InventoryItem
+
 
+
InventoryItem.Type - Enum Class in org.bitcoinj.core
+
 
+
InventoryMessage - Class in org.bitcoinj.core
+
+
Represents the "inv" P2P network message.
+
+
InventoryMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.InventoryMessage
+
 
+
InventoryMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.InventoryMessage
+
 
+
InventoryMessage(NetworkParameters, byte[], MessageSerializer, int) - Constructor for class org.bitcoinj.core.InventoryMessage
+
+
Deserializes an 'inv' message.
+
+
IP_ADDRESS_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
IP_ADDRESS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
isAcceptRiskyTransactions() - Method in class org.bitcoinj.wallet.Wallet
+
+
See Wallet.setAcceptRiskyTransactions(boolean) for an explanation of this property.
+
+
isAddressMine(Address) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if the address is belongs to this wallet.
+
+
isAddressWatched(Address) - Method in class org.bitcoinj.wallet.Wallet
+
+
Return true if we are watching this address.
+
+
isAndroidRuntime() - Static method in class org.bitcoinj.core.Utils
+
 
+
isAnyOutputSpent() - Method in class org.bitcoinj.core.Transaction
+
+
Returns true if any of the outputs is marked as spent.
+
+
isAvailableForSpending() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns whether TransactionOutput.markAsSpent(TransactionInput) has been called on this class.
+
+
isBIP34() - Method in class org.bitcoinj.core.Block
+
+
Returns whether this block conforms to + BIP34: Height in Coinbase.
+
+
isBIP65() - Method in class org.bitcoinj.core.Block
+
+
Returns whether this block conforms to + BIP65: OP_CHECKLOCKTIMEVERIFY.
+
+
isBIP66() - Method in class org.bitcoinj.core.Block
+
+
Returns whether this block conforms to + BIP66: Strict DER signatures.
+
+
isBloomFilteringEnabled() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns whether the Bloom filtering protocol optimisation is in use: defaults to true.
+
+
isBloomFilteringSupported() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if the peer supports bloom filtering according to BIP37 and BIP111.
+
+
isCached() - Method in class org.bitcoinj.core.Message
+
+
used for unit testing
+
+
isCanonical() - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
+
Returns true if the S component is "low", that means it is below ECKey.HALF_CURVE_ORDER.
+
+
isChainFileLocked() - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Tests to see if the spvchain file has an operating system file lock on it.
+
+
isCheckpoint(int) - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns true if the given height has a recorded checkpoint.
+
+
isCoinbase() - Method in class org.bitcoinj.core.UTXO
+
+
Gets the flag of whether this was created by a coinbase tx.
+
+
isCoinBase() - Method in class org.bitcoinj.core.Transaction
+
+
A coinbase transaction is one that creates a new coin.
+
+
isCoinBase() - Method in class org.bitcoinj.core.TransactionInput
+
+
Coinbase transactions have special inputs with hashes of zero.
+
+
isCompressed() - Method in class org.bitcoinj.core.ECKey
+
+
Returns whether this key is using the compressed form or not.
+
+
isCompressed() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
isConsistent() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns if this wallet is structurally consistent, so e.g.
+
+
isConsistentOrThrow() - Method in class org.bitcoinj.wallet.Wallet
+
+
Variant of Wallet.isConsistent() that throws an IllegalStateException describing the first + inconsistency.
+
+
isDeterministicUpgradeRequired() - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
isDeterministicUpgradeRequired(Script.ScriptType) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if the wallet contains random keys and no HD chains, in which case you should call + Wallet.upgradeToDeterministic(ScriptType, KeyParameter) before attempting to do anything + that would require a new address or key.
+
+
isDeterministicUpgradeRequired(Script.ScriptType, long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns true if a call to KeyChainGroup.upgradeToDeterministic(ScriptType, KeyChainGroupStructure, long, KeyParameter) is required + in order to have an active deterministic keychain of the desired script type.
+
+
isDifficultyTransitionPoint(int) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+
Checks if we are at a difficulty transition point.
+
+
isDownloadData() - Method in class org.bitcoinj.core.Peer
+
+
Returns true if this peer will try and download things it is sent in "inv" messages.
+
+
isDownloadTxDependencies() - Method in class org.bitcoinj.core.Peer
+
+
Returns true if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet.
+
+
isDust() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Will this transaction be relayable and mined by default miners?
+
+
isEnabled() - Static method in class org.bitcoin.Secp256k1Context
+
 
+
isEncodingCanonical(byte[]) - Static method in class org.bitcoinj.crypto.TransactionSignature
+
+
Returns true if the given signature is has canonical encoding, and will thus be accepted as standard by + Bitcoin Core.
+
+
isEncrypted() - Method in class org.bitcoinj.core.ECKey
+
+
Indicates whether the private key is encrypted (true) or not (false).
+
+
isEncrypted() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
A deterministic key is considered to be encrypted if it has access to encrypted private key bytes, OR if its + parent does.
+
+
isEncrypted() - Method in interface org.bitcoinj.crypto.EncryptableItem
+
+
Returns whether the item is encrypted or not.
+
+
isEncrypted() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
isEncrypted() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns true if the group is encrypted.
+
+
isEncrypted() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if the wallet is encrypted using any scheme, false if not.
+
+
isEnsureMinRequiredFee() - Method in class org.bitcoinj.core.Context
+
+
Whether to ensure the minimum required fee by default when completing transactions.
+
+
isEveryOwnedOutputSpent(TransactionBag) - Method in class org.bitcoinj.core.Transaction
+
+
Returns false if this transaction has at least one output that is owned by the given wallet and unspent, true + otherwise.
+
+
isExpired() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
This should always be called before attempting to call sendPayment.
+
+
isFinal(int, long) - Method in class org.bitcoinj.core.Transaction
+
+
Returns true if this transaction is considered finalized and can be placed in a block.
+
+
isFollowing - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
isFollowing() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Return true if this keychain is following another keychain
+
+
ISFOLLOWING_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
isGetUTXOsSupported() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if the protocol version and service bits both indicate support for the getutxos message.
+
+
isGreaterThan(Coin) - Method in class org.bitcoinj.core.Coin
+
+
Returns true if the monetary value represented by this instance is greater than that + of the given other Coin, otherwise false.
+
+
isGreaterThan(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
+
Returns true if the monetary value represented by this instance is greater than that of the given other Fiat, + otherwise false.
+
+
isHardened() - Method in class org.bitcoinj.crypto.ChildNumber
+
 
+
isInfinity() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
isInputStandard(TransactionInput) - Static method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
Checks if the given input passes some of the AreInputsStandard checks.
+
+
isKeyRotating(ECKey) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns whether the keys creation time is before the key rotation time, if one was set.
+
+
isLessThan(Coin) - Method in class org.bitcoinj.core.Coin
+
+
Returns true if the monetary value represented by this instance is less than that + of the given other Coin, otherwise false.
+
+
isLessThan(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
+
Returns true if the monetary value represented by this instance is less than that of the given other Fiat, + otherwise false.
+
+
isLinux() - Static method in class org.bitcoinj.core.Utils
+
 
+
isMac() - Static method in class org.bitcoinj.core.Utils
+
 
+
isMarried() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Whether the keychain is married.
+
+
isMarried() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Whether the active keychain is married.
+
+
isMarried() - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
isMature() - Method in class org.bitcoinj.core.Transaction
+
+
A transaction is mature if it is either a building coinbase tx that is as deep or deeper than the required coinbase depth, or a non-coinbase tx.
+
+
isMine(TransactionBag) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns true if this output is to a key, or an address we have the keys for, in the wallet.
+
+
isMineOrWatched(TransactionBag) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns true if this output is to a key in the wallet or to an address/script we are watching.
+
+
isNegative() - Method in class org.bitcoinj.core.Coin
+
+
Returns true if and only if this instance represents a monetary value less than zero, + otherwise false.
+
+
isNegative() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns true if and only if this instance represents a monetary value less than zero, otherwise false.
+
+
isNormalized() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
isOpCode() - Method in class org.bitcoinj.script.ScriptChunk
+
+
If this chunk is a single byte of non-pushdata content (could be OP_RESERVED or some invalid Opcode)
+
+
isOpenJDKRuntime() - Static method in class org.bitcoinj.core.Utils
+
 
+
isOpReturn() - Method in class org.bitcoinj.script.Script
+
+ +
+
isOpReturn(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns whether this script is using OP_RETURN to store arbitrary data.
+
+
isOptInFullRBF() - Method in class org.bitcoinj.core.Transaction
+
+
Returns whether this transaction will opt into the + full replace-by-fee semantics.
+
+
isOptInFullRBF() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns whether this input will cause a transaction to opt into the + full replace-by-fee semantics.
+
+
isOracleJavaRuntime() - Static method in class org.bitcoinj.core.Utils
+
 
+
isOrphan(Sha256Hash) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Returns true if the given block is currently in the orphan blocks list.
+
+
isOutputStandard(TransactionOutput) - Static method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
Checks the output to see if the script violates a standardness rule.
+
+
isP2PK(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form <pubkey> OP_CHECKSIG.
+
+
isP2PKH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form DUP HASH160 <pubkey hash> EQUALVERIFY CHECKSIG, ie, payment to an + address like 1VayNert3x1KzbpzMGt2qdqrAThiRovi8.
+
+
isP2SH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
+ Whether or not this is a scriptPubKey representing a P2SH output.
+
+
isP2TR(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form OP_1 <pubkey>.
+
+
isP2WH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form OP_0 <hash>.
+
+
isP2WPKH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form OP_0 <hash> and hash is 20 bytes long.
+
+
isP2WSH(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns true if this script is of the form OP_0 <hash> and hash is 32 bytes long.
+
+
isParseRetainMode() - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Whether the serializer will produce cached mode Messages
+
+
isParseRetainMode() - Method in class org.bitcoinj.core.MessageSerializer
+
+
Whether the serializer will produce cached mode Messages
+
+
isPayToScriptHash() - Method in class org.bitcoinj.script.Script
+
+
Deprecated. + +
+
+
isPayToScriptHashMine(byte[]) - Method in interface org.bitcoinj.core.TransactionBag
+
+
Returns true if this wallet knows the script corresponding to the given hash.
+
+
isPayToScriptHashMine(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
isPending() - Method in class org.bitcoinj.core.Transaction
+
+
Convenience wrapper around getConfidence().getConfidenceType()
+
+
isPendingTransactionRelevant(Transaction) - Method in class org.bitcoinj.wallet.Wallet
+
+
This method is used by a Peer to find out if a transaction that has been announced is interesting, + that is, whether we should bother downloading its dependencies and exploring the transaction to decide how + risky it is.
+
+
isPingPongSupported() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if the clientVersion field is NetworkParameters.ProtocolVersion.PONG or higher.
+
+
isPositive() - Method in class org.bitcoinj.core.Coin
+
+
Returns true if and only if this instance represents a monetary value greater than zero, + otherwise false.
+
+
isPositive() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns true if and only if this instance represents a monetary value greater than zero, otherwise false.
+
+
isPubKeyCanonical(byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Returns true if the given pubkey is canonical, i.e.
+
+
isPubKeyCompressed() - Method in class org.bitcoinj.core.DumpedPrivateKey
+
+
Returns true if the public key corresponding to this private key is compressed.
+
+
isPubKeyCompressed(byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Returns true if the given pubkey is in its compressed form.
+
+
isPubKeyHashMine(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
isPubKeyHashMine(byte[], Script.ScriptType) - Method in interface org.bitcoinj.core.TransactionBag
+
+
Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.
+
+
isPubKeyHashMine(byte[], Script.ScriptType) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
isPubKeyMine(byte[]) - Method in interface org.bitcoinj.core.TransactionBag
+
+
Returns true if this wallet contains a keypair with the given public key.
+
+
isPubKeyMine(byte[]) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
isPubKeyOnly() - Method in class org.bitcoinj.core.ECKey
+
+
Returns true if this key doesn't have unencrypted access to private key bytes.
+
+
isPubKeyOnly() - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
A deterministic key is considered to be 'public key only' if it hasn't got a private key part and it cannot be + rederived.
+
+
isPushData() - Method in class org.bitcoinj.script.ScriptChunk
+
+
Returns true if this chunk is pushdata content, including the single-byte pushdatas.
+
+
isReady() - Method in class org.bitcoinj.signers.CustomTransactionSigner
+
 
+
isReady() - Method in class org.bitcoinj.signers.LocalTransactionSigner
+
 
+
isReady() - Method in class org.bitcoinj.signers.MissingSigResolutionSigner
+
 
+
isReady() - Method in interface org.bitcoinj.signers.TransactionSigner
+
+
Returns true if this signer is ready to be used.
+
+
isRecached() - Method in class org.bitcoinj.core.Message
+
 
+
isRequiringUpdateAllBloomFilter() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
isRewardHalvingPoint(int) - Method in class org.bitcoinj.params.AbstractBitcoinNetParams
+
+
Checks if we are at a reward halving point.
+
+
isRunning() - Method in class org.bitcoinj.core.PeerGroup
+
 
+
isSelectable(Transaction) - Static method in class org.bitcoinj.wallet.DefaultCoinSelector
+
 
+
isSentToAddress() - Method in class org.bitcoinj.script.Script
+
+ +
+
isSentToMultisig(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns whether this script matches the format used for m-of-n multisig outputs: + [m] [keys...] [n] CHECKMULTISIG
+
+
isSentToMultiSig() - Method in class org.bitcoinj.script.Script
+
+ +
+
isSentToRawPubKey() - Method in class org.bitcoinj.script.Script
+
+
Deprecated. + +
+
+
isShortestPossiblePushData() - Method in class org.bitcoinj.script.ScriptChunk
+
+
Called on a pushdata chunk, returns true if it uses the smallest possible way (according to BIP62) to push the data.
+
+
isStandard() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns either RuleViolation.NONE if the input is standard, or which rule makes it non-standard if so.
+
+
isStandard(Transaction) - Static method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
Checks if a transaction is considered "standard" by Bitcoin Core's IsStandardTx and AreInputsStandard + functions.
+
+
ISSUED_SUBKEYS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
isSupportsDeterministicChains() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns true if it contains any deterministic keychain or one could be created.
+
+
isTimeLocked() - Method in class org.bitcoinj.core.Transaction
+
+
A transaction is time-locked if at least one of its inputs is non-final and it has a lock time.
+
+
isTransactionRelevant(Transaction) - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns true if the given transaction sends coins to any of our keys, or has inputs spending any of our outputs, + and also returns true if tx has inputs that are spending outputs which are + not ours but which are spent by pending transactions.
+
+
isTransactionRisky(Transaction, List<Transaction>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Given a transaction and an optional list of dependencies (recursive/flattened), returns true if the given + transaction would be rejected by the analyzer, or false otherwise.
+
+
isValid() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
isWallet(InputStream) - Static method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Cheap test to see if input stream is a wallet.
+
+
isWalletExtensionMandatory() - Method in interface org.bitcoinj.wallet.WalletExtension
+
+
If this returns true, the mandatory flag is set when the wallet is serialized and attempts to load it without + the extension being in the wallet will throw an exception.
+
+
isWatched(TransactionBag) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns true if this output is to a key, or an address we have the keys for, in the wallet.
+
+
isWatchedScript(Script) - Method in interface org.bitcoinj.core.TransactionBag
+
+
Returns true if this wallet is watching transactions for outputs with the script.
+
+
isWatchedScript(Script) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
isWatching() - Method in class org.bitcoinj.core.ECKey
+
+
Returns true if this key is watch only, meaning it has a public key but no private key.
+
+
isWatching() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Returns whether this chain consists of pubkey only (watching) keys, regular keys (usable for signing), or + has no keys in it yet at all (thus we cannot tell).
+
+
isWatching() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns true if this chain is watch only, meaning it has public keys but no private key.
+
+
isWatching() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns whether this chain has only watching keys (unencrypted keys with no private part).
+
+
isWatching() - Method in class org.bitcoinj.wallet.Wallet
+
+
Returns whether this wallet consists entirely of watching keys (unencrypted keys with no private part).
+
+
isWindows() - Static method in class org.bitcoinj.core.Utils
+
 
+
isWitnessCommitment(Script) - Static method in class org.bitcoinj.script.ScriptPattern
+
+
Returns whether this script matches the pattern for a segwit commitment (in an output of the coinbase + transaction).
+
+
isWitnessSupported() - Method in class org.bitcoinj.core.VersionMessage
+
+
Returns true if a peer can be asked for blocks and transactions including witness data.
+
+
isZero() - Method in class org.bitcoinj.core.Coin
+
+
Returns true if and only if this instance represents zero monetary value, + otherwise false.
+
+
isZero() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns true if and only if this instance represents zero monetary value, otherwise false.
+
+
items - Variable in class org.bitcoinj.core.ListMessage
+
 
+
iterator() - Method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
+

K

+
+
KEY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
KEY_LENGTH - Static variable in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Key length in bytes.
+
+
KEY_ROTATION - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Transaction automatically created and broadcast in order to reallocate money from old to new keys.
+
+
KEY_ROTATION - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Created automatically to move money from rotated keys.
+
+
KEY_ROTATION_TIME_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
KEY_ROTATION_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Created automatically to move money from rotated keys.
+
+
KeyBag - Interface in org.bitcoinj.wallet
+
+
A KeyBag is simply an object that can map public keys, their 160-bit hashes and script hashes to ECKey + and RedeemData objects.
+
+
keyBytes - Variable in class org.bitcoinj.crypto.HDKeyDerivation.RawKeyBytes
+
 
+
KeyChain - Interface in org.bitcoinj.wallet
+
+
A KeyChain is a class that stores a collection of keys for a Wallet.
+
+
KeyChain.KeyPurpose - Enum Class in org.bitcoinj.wallet
+
 
+
KeyChainEventListener - Interface in org.bitcoinj.wallet.listeners
+
 
+
KeyChainFactory - Interface in org.bitcoinj.wallet
+
+
Factory interface for creation keychains while de-serializing a wallet.
+
+
KeyChainGroup - Class in org.bitcoinj.wallet
+
+
A KeyChainGroup is used by the Wallet and manages: a BasicKeyChain object + (which will normally be empty), and zero or more DeterministicKeyChains.
+
+
KeyChainGroup.Builder - Class in org.bitcoinj.wallet
+
+
Builder for KeyChainGroup.
+
+
keyChainGroupLock - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
KeyChainGroupStructure - Interface in org.bitcoinj.wallet
+
+
Defines a structure for hierarchical deterministic wallets.
+
+
keyCrypter - Variable in class org.bitcoinj.core.ECKey
+
 
+
KeyCrypter - Interface in org.bitcoinj.crypto
+
+
A KeyCrypter can be used to encrypt and decrypt a message.
+
+
KeyCrypterException - Exception in org.bitcoinj.crypto
+
+
Exception to provide the following:
+
+
KeyCrypterException(String) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException
+
 
+
KeyCrypterException(String, Throwable) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException
+
 
+
KeyCrypterException.InvalidCipherText - Exception in org.bitcoinj.crypto
+
+
This exception is thrown when a private key or seed is decrypted, the decrypted message is damaged + (e.g.
+
+
KeyCrypterException.PublicPrivateMismatch - Exception in org.bitcoinj.crypto
+
+
This exception is thrown when a private key or seed is decrypted, it doesn't match its public key any + more.
+
+
KeyCrypterScrypt - Class in org.bitcoinj.crypto
+
+
This class encrypts and decrypts byte arrays and strings using scrypt as the + key derivation function and AES for the encryption.
+
+
KeyCrypterScrypt() - Constructor for class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Encryption/Decryption using default parameters and a random salt.
+
+
KeyCrypterScrypt(int) - Constructor for class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Encryption/Decryption using custom number of iterations parameters and a random salt.
+
+
KeyCrypterScrypt(Protos.ScryptParameters) - Constructor for class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Encryption/ Decryption using specified Scrypt parameters.
+
+
KeyIsEncryptedException() - Constructor for exception org.bitcoinj.core.ECKey.KeyIsEncryptedException
+
 
+
keyPaths - Variable in class org.bitcoinj.signers.TransactionSigner.ProposedTransaction
+
+
HD key paths used for each input to derive a signing key.
+
+
keys - Variable in class org.bitcoinj.wallet.RedeemData
+
 
+
KeyTimeCoinSelector - Class in org.bitcoinj.wallet
+
+
A coin selector that takes all coins assigned to keys created before the given timestamp.
+
+
KeyTimeCoinSelector(Wallet, long, boolean) - Constructor for class org.bitcoinj.wallet.KeyTimeCoinSelector
+
 
+
+

L

+
+
LABEL_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
LargerThanMaxBlockSize() - Constructor for exception org.bitcoinj.core.VerificationException.LargerThanMaxBlockSize
+
 
+
LAST_BROADCASTED_AT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
LAST_SEEN_BLOCK_HASH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
lastChainHead - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
LazyECPoint - Class in org.bitcoinj.crypto
+
+
A wrapper around ECPoint that delays decoding of the point for as long as possible.
+
+
LazyECPoint(ECCurve, byte[]) - Constructor for class org.bitcoinj.crypto.LazyECPoint
+
+
Construct a LazyECPoint from a public key.
+
+
LazyECPoint(ECPoint, boolean) - Constructor for class org.bitcoinj.crypto.LazyECPoint
+
+
Construct a LazyECPoint from an already decoded point.
+
+
LegacyAddress - Class in org.bitcoinj.core
+
+
A Bitcoin address looks like 1MsScoe2fTJoq4ZPdQgqyhgWeoNamYPevy and is derived from an elliptic curve public key + plus a set of network parameters.
+
+
length - Variable in class org.bitcoinj.core.Message
+
 
+
LENGTH - Static variable in class org.bitcoinj.core.LegacyAddress
+
+
An address is a RIPEMD160 hash of a public key, therefore is always 160 bits or 20 bytes.
+
+
LENGTH - Static variable in class org.bitcoinj.core.Sha256Hash
+
 
+
LevelDBBlockStore - Class in org.bitcoinj.store
+
+
An SPV block store that writes every header it sees to a LevelDB.
+
+
LevelDBBlockStore(Context, File) - Constructor for class org.bitcoinj.store.LevelDBBlockStore
+
+
Creates a LevelDB SPV block store using the JNI/C++ version of LevelDB.
+
+
LevelDBBlockStore(Context, File, DBFactory) - Constructor for class org.bitcoinj.store.LevelDBBlockStore
+
+
Creates a LevelDB SPV block store using the given factory, which is useful if you want a pure Java version.
+
+
LevelDBFullPrunedBlockStore - Class in org.bitcoinj.store
+
+
+ An implementation of a Fully Pruned Block Store using a leveldb implementation as the backing data store.
+
+
LevelDBFullPrunedBlockStore(NetworkParameters, String, int) - Constructor for class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
LevelDBFullPrunedBlockStore(NetworkParameters, String, int, long, int, int, boolean, int) - Constructor for class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
LevelDBFullPrunedBlockStore.LRUCache - Class in org.bitcoinj.store
+
 
+
leveldbReadCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
leveldbWriteCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
LIBRARY_SUBVER - Static variable in class org.bitcoinj.core.VersionMessage
+
+
The value that is prepended to the subVer field of this application.
+
+
LinuxSecureRandom - Class in org.bitcoinj.crypto
+
+
A SecureRandom implementation that is able to override the standard JVM provided implementation, and which simply + serves random numbers by reading /dev/urandom.
+
+
LinuxSecureRandom() - Constructor for class org.bitcoinj.crypto.LinuxSecureRandom
+
 
+
listener - Variable in class org.bitcoinj.utils.ListenerRegistration
+
 
+
ListenerRegistration<T> - Class in org.bitcoinj.utils
+
+
A simple wrapper around a listener and an executor, with some utility methods.
+
+
ListenerRegistration(T, Executor) - Constructor for class org.bitcoinj.utils.ListenerRegistration
+
 
+
ListMessage - Class in org.bitcoinj.core
+
+
Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.
+
+
ListMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.ListMessage
+
 
+
ListMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.ListMessage
+
 
+
ListMessage(NetworkParameters, byte[], MessageSerializer, int) - Constructor for class org.bitcoinj.core.ListMessage
+
 
+
loadFromFile(File, WalletExtension...) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Returns a wallet deserialized from the given file.
+
+
loadFromFileStream(InputStream, WalletExtension...) - Static method in class org.bitcoinj.wallet.Wallet
+
+
Returns a wallet deserialized from the given input stream and wallet extensions.
+
+
loadKeyStore(String, String, InputStream) - Static method in class org.bitcoinj.crypto.X509Utils
+
+
Returns a key store loaded from the given stream.
+
+
locale(Locale) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify the Locale for formatting and parsing.
+
+
localhost(NetworkParameters) - Static method in class org.bitcoinj.core.PeerAddress
+
 
+
localizedPattern(String) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Use the given localized-pattern for formatting and parsing.
+
+
localServices - Variable in class org.bitcoinj.core.VersionMessage
+
+
Flags defining what optional services are supported.
+
+
LocalTransactionSigner - Class in org.bitcoinj.signers
+
+
TransactionSigner implementation for signing inputs using keys from provided KeyBag.
+
+
LocalTransactionSigner() - Constructor for class org.bitcoinj.signers.LocalTransactionSigner
+
 
+
locator - Variable in class org.bitcoinj.core.GetBlocksMessage
+
 
+
lock - Variable in class org.bitcoinj.core.AbstractBlockChain
+
+
synchronization lock
+
+
lock - Variable in class org.bitcoinj.core.Peer
+
 
+
lock - Variable in class org.bitcoinj.core.PeerGroup
+
 
+
lock - Variable in class org.bitcoinj.core.TxConfidenceTable
+
 
+
lock - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
lock - Variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
lock - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
lock(Class) - Static method in class org.bitcoinj.utils.Threading
+
 
+
lock(String) - Static method in class org.bitcoinj.utils.Threading
+
 
+
LOCK_TIME_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
LOCKTIME_THRESHOLD - Static variable in class org.bitcoinj.core.Transaction
+
+
Threshold for lockTime: below this value it is interpreted as block number, otherwise as timestamp.
+
+
LOCKTIME_THRESHOLD_BIG - Static variable in class org.bitcoinj.core.Transaction
+
+
Same but as a BigInteger for CHECKLOCKTIMEVERIFY
+
+
log - Static variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
longValue() - Method in class org.bitcoinj.core.Coin
+
+
Returns the number of satoshis of this monetary value.
+
+
longValue() - Method in class org.bitcoinj.core.VarInt
+
 
+
longValue() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns the number of "smallest units" of this monetary value.
+
+
LOOKAHEAD_SIZE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
lookaheadSize - Variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
lookaheadSize(int) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Set a custom lookahead size for all deterministic chains
+
+
lookaheadThreshold - Variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
lookaheadThreshold(int) - Method in class org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
Set a custom lookahead threshold for all deterministic chains
+
+
LOW_S - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
LRUCache(int, float) - Constructor for class org.bitcoinj.store.LevelDBFullPrunedBlockStore.LRUCache
+
 
+
+

M

+
+
m() - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns an empty path for a private key.
+
+
m(List<ChildNumber>) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a private key.
+
+
m(ChildNumber) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a private key.
+
+
m(ChildNumber...) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a private key.
+
+
M() - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns an empty path for a public key.
+
+
M(List<ChildNumber>) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a public key.
+
+
M(ChildNumber) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a public key.
+
+
M(ChildNumber...) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Returns a path for a public key.
+
+
MAINNET_MAJORITY_ENFORCE_BLOCK_UPGRADE - Static variable in class org.bitcoinj.params.MainNetParams
+
 
+
MAINNET_MAJORITY_REJECT_BLOCK_OUTDATED - Static variable in class org.bitcoinj.params.MainNetParams
+
 
+
MAINNET_MAJORITY_WINDOW - Static variable in class org.bitcoinj.params.MainNetParams
+
 
+
MainNetParams - Class in org.bitcoinj.params
+
+
Parameters for the main production network on which people trade goods and services.
+
+
MainNetParams() - Constructor for class org.bitcoinj.params.MainNetParams
+
 
+
majorityEnforceBlockUpgrade - Variable in class org.bitcoinj.core.NetworkParameters
+
+
Used to check majorities for block version upgrade
+
+
majorityRejectBlockOutdated - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
majorityWindow - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
makeAddressV1Message(byte[], int) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make an address message from the payload.
+
+
makeAddressV1Message(byte[], int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make an address message from the payload.
+
+
makeAddressV2Message(byte[], int) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make an address message from the payload.
+
+
makeAddressV2Message(byte[], int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make an address message from the payload.
+
+
makeBlock(byte[]) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a block from the payload, using an offset of zero and the payload + length as block length.
+
+
makeBlock(byte[], int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a block from the payload, using an offset of zero and the provided + length as block length.
+
+
makeBlock(byte[], int, int) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make a block from the payload.
+
+
makeBlock(byte[], int, int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a block from the payload, using an offset of zero and the provided + length as block length.
+
+
makeBloomFilter(byte[]) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make an filter message from the payload.
+
+
makeBloomFilter(byte[]) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make an filter message from the payload.
+
+
makeFilteredBlock(byte[]) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make a filtered block from the payload.
+
+
makeFilteredBlock(byte[]) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a filtered block from the payload.
+
+
makeInventoryMessage(byte[], int) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make an inventory message from the payload.
+
+
makeInventoryMessage(byte[], int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make an inventory message from the payload.
+
+
makeKeyChain(DeterministicSeed, KeyCrypter, boolean, Script.ScriptType, List<ChildNumber>) - Method in class org.bitcoinj.wallet.DefaultKeyChainFactory
+
 
+
makeKeyChain(DeterministicSeed, KeyCrypter, boolean, Script.ScriptType, List<ChildNumber>) - Method in interface org.bitcoinj.wallet.KeyChainFactory
+
+
Make a keychain (but not a watching one) with the specified account path
+
+
makeKeyChainFromSeed(DeterministicSeed, List<ChildNumber>, Script.ScriptType) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Factory method to create a key chain from a seed.
+
+
makeSpendingKeyChain(DeterministicKey, boolean, Script.ScriptType) - Method in class org.bitcoinj.wallet.DefaultKeyChainFactory
+
 
+
makeSpendingKeyChain(DeterministicKey, boolean, Script.ScriptType) - Method in interface org.bitcoinj.wallet.KeyChainFactory
+
+
Make a spending keychain.
+
+
makeTransaction(byte[]) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a transaction from the payload.
+
+
makeTransaction(byte[], int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a transaction from the payload.
+
+
makeTransaction(byte[], int, int, byte[]) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Make a transaction from the payload.
+
+
makeTransaction(byte[], int, int, byte[]) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Make a transaction from the payload.
+
+
makeWatchingKeyChain(DeterministicKey, boolean, boolean, Script.ScriptType) - Method in class org.bitcoinj.wallet.DefaultKeyChainFactory
+
 
+
makeWatchingKeyChain(DeterministicKey, boolean, boolean, Script.ScriptType) - Method in interface org.bitcoinj.wallet.KeyChainFactory
+
+
Make a watching keychain.
+
+
MALFORMED - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message was not able to be parsed
+
+
MANDATORY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Extension
+
 
+
markAsSpent(TransactionInput) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Sets this objects availableForSpending flag to false and the spentBy pointer to the given input.
+
+
markAsUnspent() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Resets the spent pointer / availableForSpending flag to null.
+
+
markBroadcastBy(PeerAddress) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Called by a Peer when a transaction is pending and announced by a peer.
+
+
markKeyAsUsed(DeterministicKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Mark the DeterministicKey as used.
+
+
markP2SHAddressAsUsed(LegacyAddress) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
markPubHashAsUsed(byte[]) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Mark the DeterministicKeys as used, if they match the pubkeyHash + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
+
+
markPubKeyAsUsed(byte[]) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Mark the DeterministicKeys as used, if they match the pubkey + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
+
+
markPubKeyAsUsed(byte[]) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Mark the DeterministicKeys as used, if they match the pubkey + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
+
+
markPubKeyHashAsUsed(byte[]) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Mark the DeterministicKeys as used, if they match the pubKeyHash + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
+
+
MarriedKeyChain - Class in org.bitcoinj.wallet
+
+
A multi-signature keychain using synchronized HD keys (a.k.a HDM)
+
+
MarriedKeyChain(DeterministicKey, Script.ScriptType) - Constructor for class org.bitcoinj.wallet.MarriedKeyChain
+
+
This constructor is not stable across releases! If you need a stable API, use MarriedKeyChain.builder() to use a + MarriedKeyChain.Builder.
+
+
MarriedKeyChain(DeterministicSeed, KeyCrypter, Script.ScriptType, List<ChildNumber>) - Constructor for class org.bitcoinj.wallet.MarriedKeyChain
+
+
This constructor is not stable across releases! If you need a stable API, use MarriedKeyChain.builder() to use a + MarriedKeyChain.Builder.
+
+
MarriedKeyChain.Builder<T extends MarriedKeyChain.Builder<T>> - Class in org.bitcoinj.wallet
+
+ +
+
matchesAll() - Method in class org.bitcoinj.core.BloomFilter
+
+
Returns true if this filter will match anything.
+
+
MAX_ADDRESSES - Static variable in class org.bitcoinj.core.AddressMessage
+
 
+
MAX_BLOCK_SIGOPS - Static variable in class org.bitcoinj.core.Block
+
+
A "sigop" is a signature verification operation.
+
+
MAX_BLOCK_SIZE - Static variable in class org.bitcoinj.core.Block
+
+
A constant shared by the entire network: how large in bytes a block is allowed to be.
+
+
MAX_CHILD_DERIVATION_ATTEMPTS - Static variable in class org.bitcoinj.crypto.HDKeyDerivation
+
+
Child derivation may fail (although with extremely low probability); in such case it is re-attempted.
+
+
MAX_COINS - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The maximum number of coins to be generated
+
+
MAX_DECIMALS - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
 
+
MAX_FP_RATE_INCREASE - Static variable in class org.bitcoinj.core.PeerGroup
+
+
Maximum increase in FP rate before forced refresh of the bloom filter
+
+
MAX_HEADERS - Static variable in class org.bitcoinj.core.HeadersMessage
+
 
+
MAX_INITIAL_ARRAY_LENGTH - Static variable in class org.bitcoinj.core.Utils
+
+
Max initial size of variable length arrays and ArrayLists that could be attacked.
+
+
MAX_INV_SIZE - Static variable in class org.bitcoinj.core.InventoryMessage
+
+
A hard coded constant in the protocol.
+
+
MAX_INVENTORY_ITEMS - Static variable in class org.bitcoinj.core.ListMessage
+
 
+
MAX_MONEY - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The maximum money to be generated
+
+
MAX_P2SH_SIGOPS - Static variable in class org.bitcoinj.script.Script
+
+
Max number of sigops allowed in a standard p2sh redeem script
+
+
MAX_SCRIPT_ELEMENT_SIZE - Static variable in class org.bitcoinj.script.Script
+
 
+
MAX_SEED_ENTROPY_BITS - Static variable in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
MAX_SIMULTANEOUS_INPUTS - Static variable in class org.bitcoinj.wallet.KeyTimeCoinSelector
+
+
A number of inputs chosen to avoid hitting Transaction.MAX_STANDARD_TX_SIZE
+
+
MAX_SIZE - Static variable in class org.bitcoinj.core.Message
+
 
+
MAX_SIZE - Static variable in class org.bitcoinj.core.TxConfidenceTable
+
+
The max size of a table created with the no-args constructor.
+
+
MAX_STANDARD_TX_SIZE - Static variable in class org.bitcoinj.core.Transaction
+
+
How many bytes a transaction can be before it won't be relayed anymore.
+
+
maxTarget - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
maybeCommitTx(Transaction) - Method in class org.bitcoinj.wallet.Wallet
+
+
Updates the wallet with the given transaction: puts it into the pending pool, sets the spent flags and runs + the onCoinsSent/onCoinsReceived event listener.
+
+
maybeConnect() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
If there isn't a connection on the ThreadLocal then create and store it.
+
+
maybeDecrypt(KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Creates decrypted private key if needed.
+
+
maybeDisableExportControls() - Static method in class org.bitcoinj.crypto.DRMWorkaround
+
 
+
maybeGetTag(String) - Method in class org.bitcoinj.utils.BaseTaggableObject
+
 
+
maybeGetTag(String) - Method in interface org.bitcoinj.utils.TaggableObject
+
+
Returns the immutable byte array associated with the given tag name, or null if there is none.
+
+
maybeLookAhead() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Pre-generate enough keys to reach the lookahead size.
+
+
maybeLookAheadScripts() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Housekeeping call to call when lookahead might be needed.
+
+
maybeLookAheadScripts() - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
maybeQueueOnWalletChanged() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
MBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Standard format for the mBTC denomination.
+
+
memo - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If not null, this memo is recorded with the transaction during completion.
+
+
MEMO_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
MEMO_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
MEMO_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
MEMO_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
MemoryBlockStore - Class in org.bitcoinj.store
+
+
Keeps StoredBlocks in memory.
+
+
MemoryBlockStore(NetworkParameters) - Constructor for class org.bitcoinj.store.MemoryBlockStore
+
 
+
MemoryFullPrunedBlockStore - Class in org.bitcoinj.store
+
+
Keeps StoredBlocks, StoredUndoableBlocks and UTXOs in memory.
+
+
MemoryFullPrunedBlockStore(NetworkParameters, int) - Constructor for class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
+
Set up the MemoryFullPrunedBlockStore
+
+
MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag - Class in org.bitcoinj.store
+
 
+
MemoryPoolMessage - Class in org.bitcoinj.core
+
+
The "mempool" message asks a remote peer to announce all transactions in its memory pool, possibly restricted by + any Bloom filter set on the connection.
+
+
MemoryPoolMessage() - Constructor for class org.bitcoinj.core.MemoryPoolMessage
+
 
+
MEMPOOL_HEIGHT - Static variable in class org.bitcoinj.core.UTXOsMessage
+
+
This is a special sentinel value that can appear in the heights field if the given tx is in the mempool.
+
+
MERCHANT_DATA_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
MERCHANT_DATA_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
merchantSigningKey - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
+
SSL public key that was used to sign.
+
+
merge(BloomFilter) - Method in class org.bitcoinj.core.BloomFilter
+
+
Copies filter into this.
+
+
mergeActiveKeyChains(KeyChainGroup, long) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Merge all active chains from the given keychain group into this keychain group.
+
+
mergeConfidence(Protos.TransactionConfidence) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
mergeDeterministicKey(Protos.DeterministicKey) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
mergeEncryptedData(Protos.EncryptedData) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
mergeEncryptedDeterministicSeed(Protos.EncryptedData) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
mergeEncryptionParameters(Protos.ScryptParameters) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
mergeExchangeRate(Protos.ExchangeRate) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
mergePayment(Protos.Payment) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
mergeWitness(Protos.ScriptWitness) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
Message - Class in org.bitcoinj.core
+
+
A Message is a data structure that can be serialized/deserialized using the Bitcoin serialization format.
+
+
Message() - Constructor for class org.bitcoinj.core.Message
+
 
+
Message(NetworkParameters) - Constructor for class org.bitcoinj.core.Message
+
 
+
Message(NetworkParameters, byte[], int) - Constructor for class org.bitcoinj.core.Message
+
 
+
Message(NetworkParameters, byte[], int, MessageSerializer, int) - Constructor for class org.bitcoinj.core.Message
+
 
+
MessageSerializer - Class in org.bitcoinj.core
+
+
Generic interface for classes which serialize/deserialize messages.
+
+
MessageSerializer() - Constructor for class org.bitcoinj.core.MessageSerializer
+
 
+
MessageWriteTarget - Interface in org.bitcoinj.net
+
+
A target to which messages can be written/connection can be closed
+
+
MICROCOIN - Static variable in class org.bitcoinj.core.Coin
+
+
0.000001 Bitcoins, also known as 1 µBTC or 1 uBTC.
+
+
MICROCOIN_SCALE - Static variable in class org.bitcoinj.utils.BtcFormat
+
+
A constant useful for specifying a denomination of microbitcoins, the int + value 6.
+
+
MILLICOIN - Static variable in class org.bitcoinj.core.Coin
+
+
0.001 Bitcoins, also known as 1 mBTC.
+
+
MILLICOIN_SCALE - Static variable in class org.bitcoinj.utils.BtcFormat
+
+
A constant useful for specifying a denomination of millibitcoins, the int + value 3.
+
+
MIMETYPE_PAYMENT - Static variable in class org.bitcoinj.protocols.payments.PaymentProtocol
+
 
+
MIMETYPE_PAYMENTACK - Static variable in class org.bitcoinj.protocols.payments.PaymentProtocol
+
 
+
MIMETYPE_PAYMENTREQUEST - Static variable in class org.bitcoinj.protocols.payments.PaymentProtocol
+
 
+
MIN_NONDUST_OUTPUT - Static variable in class org.bitcoinj.core.Transaction
+
+ +
+
MIN_PROTOCOL_VERSION - Static variable in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
MIN_PROTOCOL_VERSION - Static variable in class org.bitcoinj.core.NotFoundMessage
+
 
+
minDecimals(int) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set minimum number of decimals to use for formatting.
+
+
MINIMALDATA - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
MINIMUM - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
minimumFractionDigits - Variable in class org.bitcoinj.utils.BtcFormat
+
 
+
minimumFractionDigits(int) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify the minimum number of decimal places in the fraction part of formatted values.
+
+
minus(Coin) - Method in class org.bitcoinj.core.Coin
+
+
Alias for subtract
+
+
miss - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
missing - Variable in exception org.bitcoinj.core.InsufficientMoneyException
+
+
Contains the number of satoshis that would have been required to complete the operation.
+
+
MissingPrivateKeyException() - Constructor for exception org.bitcoinj.core.ECKey.MissingPrivateKeyException
+
 
+
MissingSignatureException() - Constructor for exception org.bitcoinj.signers.TransactionSigner.MissingSignatureException
+
 
+
MissingSigResolutionSigner - Class in org.bitcoinj.signers
+
+
This transaction signer resolves missing signatures in accordance with the given Wallet.MissingSigsMode.
+
+
MissingSigResolutionSigner() - Constructor for class org.bitcoinj.signers.MissingSigResolutionSigner
+
 
+
MissingSigResolutionSigner(Wallet.MissingSigsMode) - Constructor for class org.bitcoinj.signers.MissingSigResolutionSigner
+
 
+
missingSigsMode - Variable in class org.bitcoinj.wallet.SendRequest
+
+
Specifies what to do with missing signatures left after completing this request.
+
+
MnemonicChecksumException() - Constructor for exception org.bitcoinj.crypto.MnemonicException.MnemonicChecksumException
+
 
+
MnemonicCode - Class in org.bitcoinj.crypto
+
+
A MnemonicCode object may be used to convert between binary seed values and + lists of words per the BIP 39 + specification
+
+
MnemonicCode() - Constructor for class org.bitcoinj.crypto.MnemonicCode
+
+
Initialise from the included word list.
+
+
MnemonicCode(InputStream, String) - Constructor for class org.bitcoinj.crypto.MnemonicCode
+
+
Creates an MnemonicCode object, initializing with words read from the supplied input stream.
+
+
MnemonicException - Exception in org.bitcoinj.crypto
+
+
Exceptions thrown by the MnemonicCode module.
+
+
MnemonicException() - Constructor for exception org.bitcoinj.crypto.MnemonicException
+
 
+
MnemonicException(String) - Constructor for exception org.bitcoinj.crypto.MnemonicException
+
 
+
MnemonicException.MnemonicChecksumException - Exception in org.bitcoinj.crypto
+
+
Thrown when a list of MnemonicCode words fails the checksum check.
+
+
MnemonicException.MnemonicLengthException - Exception in org.bitcoinj.crypto
+
+
Thrown when an argument to MnemonicCode is the wrong length.
+
+
MnemonicException.MnemonicWordException - Exception in org.bitcoinj.crypto
+
+
Thrown when a word is encountered which is not in the MnemonicCode's word list.
+
+
MnemonicLengthException(String) - Constructor for exception org.bitcoinj.crypto.MnemonicException.MnemonicLengthException
+
 
+
MnemonicWordException(String) - Constructor for exception org.bitcoinj.crypto.MnemonicException.MnemonicWordException
+
 
+
Monetary - Interface in org.bitcoinj.core
+
+
Classes implementing this interface represent a monetary value, such as a Bitcoin or fiat amount.
+
+
MonetaryFormat - Class in org.bitcoinj.utils
+
+
+ Utility for formatting and parsing coin values to and from human readable form.
+
+
MonetaryFormat() - Constructor for class org.bitcoinj.utils.MonetaryFormat
+
+
Construct a MonetaryFormat with the default configuration.
+
+
MonetaryFormat(boolean) - Constructor for class org.bitcoinj.utils.MonetaryFormat
+
+
Construct a MonetaryFormat with the default configuration.
+
+
moreWorkThan(StoredBlock) - Method in class org.bitcoinj.core.StoredBlock
+
+
Returns true if this objects chainWork is higher than the others.
+
+
MultipleOpReturnRequested() - Constructor for exception org.bitcoinj.wallet.Wallet.MultipleOpReturnRequested
+
 
+
MultiplexingDiscovery - Class in org.bitcoinj.net.discovery
+
+
MultiplexingDiscovery queries multiple PeerDiscovery objects, optionally shuffles their responses and then returns the results, + thus selecting randomly between them and reducing the influence of any particular seed.
+
+
MultiplexingDiscovery(NetworkParameters, List<PeerDiscovery>) - Constructor for class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
+
Will query the given seeds in parallel before producing a merged response.
+
+
multiply(long) - Method in class org.bitcoinj.core.Coin
+
 
+
multiply(long) - Method in class org.bitcoinj.utils.Fiat
+
 
+
multiply(BigInteger) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
murmurHash3(byte[], long, int, byte[]) - Static method in class org.bitcoinj.core.BloomFilter
+
+
Applies the MurmurHash3 (x86_32) algorithm to the given data.
+
+
MySQLFullPrunedBlockStore - Class in org.bitcoinj.store
+
+
A full pruned block store using the MySQL database engine.
+
+
MySQLFullPrunedBlockStore(NetworkParameters, int, String, String, String, String) - Constructor for class org.bitcoinj.store.MySQLFullPrunedBlockStore
+
+
Creates a new MySQLFullPrunedBlockStore.
+
+
myUnspents - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
+

N

+
+
N_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
NativeBlockChainListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeBlockChainListener() - Constructor for class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
NativeFutureCallback - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeFutureCallback() - Constructor for class org.bitcoinj.jni.NativeFutureCallback
+
 
+
NativeKeyChainEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeKeyChainEventListener() - Constructor for class org.bitcoinj.jni.NativeKeyChainEventListener
+
 
+
NativeScriptsChangeEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeScriptsChangeEventListener() - Constructor for class org.bitcoinj.jni.NativeScriptsChangeEventListener
+
 
+
NativeSecp256k1 - Class in org.bitcoin
+
+
This class holds native methods to handle ECDSA verification.
+
+
NativeSecp256k1() - Constructor for class org.bitcoin.NativeSecp256k1
+
 
+
NativeSecp256k1Util - Class in org.bitcoin
+
+
Assertion utilities for NativeSecp256k1
+
+
NativeSecp256k1Util() - Constructor for class org.bitcoin.NativeSecp256k1Util
+
 
+
NativeSecp256k1Util.AssertFailException - Exception in org.bitcoin
+
+
Assertion failure exception
+
+
NativeTransactionConfidenceEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeTransactionConfidenceEventListener() - Constructor for class org.bitcoinj.jni.NativeTransactionConfidenceEventListener
+
 
+
NativeTransactionConfidenceListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeTransactionConfidenceListener() - Constructor for class org.bitcoinj.jni.NativeTransactionConfidenceListener
+
 
+
NativeWalletChangeEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeWalletChangeEventListener() - Constructor for class org.bitcoinj.jni.NativeWalletChangeEventListener
+
 
+
NativeWalletCoinsReceivedEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeWalletCoinsReceivedEventListener() - Constructor for class org.bitcoinj.jni.NativeWalletCoinsReceivedEventListener
+
 
+
NativeWalletCoinsSentEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeWalletCoinsSentEventListener() - Constructor for class org.bitcoinj.jni.NativeWalletCoinsSentEventListener
+
 
+
NativeWalletReorganizeEventListener - Class in org.bitcoinj.jni
+
+
An event listener that relays events to a native C++ object.
+
+
NativeWalletReorganizeEventListener() - Constructor for class org.bitcoinj.jni.NativeWalletReorganizeEventListener
+
 
+
negate() - Method in class org.bitcoinj.core.Coin
+
 
+
negate() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
negate() - Method in class org.bitcoinj.utils.Fiat
+
 
+
NEGATIVE_SATOSHI - Static variable in class org.bitcoinj.core.Coin
+
+
Represents a monetary value of minus one satoshi.
+
+
negativeSign(char) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set character to prefix negative values.
+
+
NegativeValueOutput() - Constructor for exception org.bitcoinj.core.VerificationException.NegativeValueOutput
+
 
+
negify(String) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Guarantee a formatting pattern has a subpattern for negative values.
+
+
NET_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
netParams - Variable in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
 
+
NETWORK - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Source
+
+
We got this transaction from a network peer.
+
+
NETWORK_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
NETWORK_IDENTIFIER_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
NetworkParameters - Class in org.bitcoinj.core
+
+
NetworkParameters contains the data needed for working with an instantiation of a Bitcoin chain.
+
+
NetworkParameters() - Constructor for class org.bitcoinj.core.NetworkParameters
+
 
+
NetworkParameters.ProtocolVersion - Enum Class in org.bitcoinj.core
+
 
+
Networks - Class in org.bitcoinj.params
+
+
Utility class that holds all the registered NetworkParameters types used for address auto discovery.
+
+
Networks() - Constructor for class org.bitcoinj.params.Networks
+
 
+
NewBestBlockListener - Interface in org.bitcoinj.core.listeners
+
+
Listener interface for when a new block on the best chain is seen.
+
+
newBuilder() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
newBuilder() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
newBuilder() - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
newBuilder() - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
newBuilder() - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
newBuilder(PeerSeedProtos.PeerSeedData) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
newBuilder(PeerSeedProtos.PeerSeeds) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
newBuilder(PeerSeedProtos.SignedPeerSeeds) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
newBuilder(Protos.Output) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
newBuilder(Protos.Payment) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
newBuilder(Protos.PaymentACK) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
newBuilder(Protos.PaymentDetails) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
newBuilder(Protos.PaymentRequest) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
newBuilder(Protos.X509Certificates) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
newBuilder(Protos.DeterministicKey) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
newBuilder(Protos.EncryptedData) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
newBuilder(Protos.ExchangeRate) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
newBuilder(Protos.Extension) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
newBuilder(Protos.Key) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
newBuilder(Protos.PeerAddress) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
newBuilder(Protos.Script) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
newBuilder(Protos.ScriptWitness) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
newBuilder(Protos.ScryptParameters) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
newBuilder(Protos.Tag) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
newBuilder(Protos.Transaction) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
newBuilder(Protos.TransactionConfidence) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
newBuilder(Protos.TransactionInput) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
newBuilder(Protos.TransactionOutput) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
newBuilder(Protos.Wallet) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
newDigest() - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Returns a new SHA-256 MessageDigest instance.
+
+
newThread(Runnable) - Method in class org.bitcoinj.utils.ContextPropagatingThreadFactory
+
 
+
newThread(Runnable) - Method in class org.bitcoinj.utils.DaemonThreadFactory
+
 
+
next() - Method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
NioClient - Class in org.bitcoinj.net
+
+
Creates a simple connection to a server using a StreamConnection to process data.
+
+
NioClient(SocketAddress, StreamConnection, int) - Constructor for class org.bitcoinj.net.NioClient
+
+
Creates a new client to the given server address using the given StreamConnection to decode the data.
+
+
NioClientManager - Class in org.bitcoinj.net
+
+
A class which manages a set of client connections.
+
+
NioClientManager() - Constructor for class org.bitcoinj.net.NioClientManager
+
+
Creates a new client manager which uses Java NIO for socket management.
+
+
NioServer - Class in org.bitcoinj.net
+
+
Creates a simple server listener which listens for incoming client connections and uses a StreamConnection to + process data.
+
+
NioServer(StreamConnectionFactory, InetSocketAddress) - Constructor for class org.bitcoinj.net.NioServer
+
+
Creates a new server which is capable of listening for incoming connections and processing client provided data + using StreamConnections created by the given StreamConnectionFactory
+
+
NO_SEQUENCE - Static variable in class org.bitcoinj.core.TransactionInput
+
+
Magic sequence number that indicates there is no sequence number.
+
+
NO_SUCH_TX - Enum constant in enum class org.bitcoinj.core.TransactionInput.ConnectionResult
+
 
+
noCode() - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Don't display currency code when formatting.
+
+
NODE_BITCOIN_CASH - Static variable in class org.bitcoinj.core.VersionMessage
+
+
A service bit used by Bitcoin-ABC to announce Bitcoin Cash nodes.
+
+
NODE_BLOOM - Static variable in class org.bitcoinj.core.VersionMessage
+
+
A service bit that denotes whether the peer supports BIP37 bloom filters or not.
+
+
NODE_GETUTXOS - Static variable in class org.bitcoinj.core.VersionMessage
+
+
A service bit that denotes whether the peer supports the getutxos message or not.
+
+
NODE_NETWORK - Static variable in class org.bitcoinj.core.VersionMessage
+
+
A service bit that denotes whether the peer has a full copy of the block chain or not.
+
+
NODE_NETWORK_LIMITED - Static variable in class org.bitcoinj.core.VersionMessage
+
+
A service bit that denotes whether the peer has at least the last two days worth of blockchain (BIP159).
+
+
NODE_WITNESS - Static variable in class org.bitcoinj.core.VersionMessage
+
+
Indicates that a node can be asked for blocks and transactions including witness data.
+
+
NON_FINAL - Enum constant in enum class org.bitcoinj.wallet.RiskAnalysis.Result
+
 
+
NON_STANDARD - Enum constant in enum class org.bitcoinj.wallet.RiskAnalysis.Result
+
 
+
NoncanonicalSignature() - Constructor for exception org.bitcoinj.core.VerificationException.NoncanonicalSignature
+
 
+
NONE - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
NONE - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
NONEMPTY_STACK - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
nonFinal - Variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
NONSTANDARD - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message described an object was not standard and was thus not accepted.
+
+
NORMAL - Enum constant in enum class org.bitcoinj.crypto.HDKeyDerivation.PublicDeriveMode
+
 
+
normalize() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
NOT_IN_BEST_CHAIN - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Deprecated: equivalent to PENDING.
+
+
NOT_IN_BEST_CHAIN_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Deprecated: equivalent to PENDING.
+
+
notFoundCache - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
NotFoundMessage - Class in org.bitcoinj.core
+
+
Sent by a peer when a getdata request doesn't find the requested data in the mempool.
+
+
NotFoundMessage(NetworkParameters) - Constructor for class org.bitcoinj.core.NotFoundMessage
+
 
+
NotFoundMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.NotFoundMessage
+
 
+
NotFoundMessage(NetworkParameters, List<InventoryItem>) - Constructor for class org.bitcoinj.core.NotFoundMessage
+
 
+
notifyNewBestBlock(StoredBlock) - Method in interface org.bitcoinj.core.listeners.NewBestBlockListener
+
+ +
+
notifyNewBestBlock(StoredBlock) - Method in class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
notifyNewBestBlock(StoredBlock) - Method in class org.bitcoinj.wallet.Wallet
+
+
Called by the BlockChain when a new block on the best chain is seen, AFTER relevant wallet + transactions are extracted and sent to us UNLESS the new block caused a re-org, in which case this will + not be called (the Wallet.reorganize(StoredBlock, List, List) method will + call this one in that case).
+
+
notifyTransactionIsInBlock(Sha256Hash, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in interface org.bitcoinj.core.listeners.TransactionReceivedInBlockListener
+
+
Called by the BlockChain when we receive a new FilteredBlock that contains the given + transaction hash in its merkle tree.
+
+
notifyTransactionIsInBlock(Sha256Hash, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
notifyTransactionIsInBlock(Sha256Hash, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in class org.bitcoinj.wallet.Wallet
+
+
Called by the BlockChain when we receive a new filtered block that contains a transactions previously + received by a call to Wallet.receivePending(org.bitcoinj.core.Transaction, java.util.List<org.bitcoinj.core.Transaction>, boolean).
+
+
notSettingChainHead() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Called if we (possibly) previously called disconnectTransaction/connectTransactions, + but will not be calling preSetChainHead as a block failed verification.
+
+
notSettingChainHead() - Method in class org.bitcoinj.core.BlockChain
+
 
+
notSettingChainHead() - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
now() - Static method in class org.bitcoinj.core.Utils
+
+
Returns the current time, or a mocked out equivalent.
+
+
NULLDUMMY - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
num() - Method in class org.bitcoinj.crypto.ChildNumber
+
+
Returns the child number without the hardening bit set (i.e.
+
+
number(int, long) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number to the given index in the program.
+
+
number(long) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number to the end of the program.
+
+
numberFormat - Variable in class org.bitcoinj.utils.BtcFormat
+
 
+
numBloomFilterEntries() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
numBloomFilterEntries() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
numBloomFilterEntries() - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Returns the number of elements this chain wishes to insert into the Bloom filter.
+
+
numBloomFilterEntries() - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
numBroadcastPeers() - Method in class org.bitcoinj.core.TransactionConfidence
+
+ +
+
numBroadcastPeers(Sha256Hash) - Method in class org.bitcoinj.core.TxConfidenceTable
+
+
Returns the number of peers that have seen the given hash recently.
+
+
numCheckpoints() - Method in class org.bitcoinj.core.CheckpointManager
+
+
Returns the number of checkpoints that were loaded.
+
+
numConnectedPeers() - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns the number of currently connected peers.
+
+
numKeys() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
numKeys() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
numKeys() - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Returns the number of keys this key chain manages.
+
+
numKeys() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns the number of keys managed by this group, including the lookahead buffers.
+
+
numLeafKeysIssued() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Returns number of leaf keys used including both internal and external paths.
+
+
+

O

+
+
OBSOLETE - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)
+
+
of(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance containing the calculated (one-time) hash of the given bytes.
+
+
of(File) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance containing the calculated (one-time) hash of the given file's contents.
+
+
of(List<ECKey>, Script) - Static method in class org.bitcoinj.wallet.RedeemData
+
 
+
of(ECKey, Script) - Static method in class org.bitcoinj.wallet.RedeemData
+
+
Creates RedeemData for P2PKH, P2WPKH or P2PK input.
+
+
ofBtc(BigDecimal) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin from a decimal amount of BTC.
+
+
ofCode(int) - Static method in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
offset - Variable in class org.bitcoinj.core.Message
+
 
+
ofSat(long) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin from a long integer number of satoshis.
+
+
OK - Enum constant in enum class org.bitcoinj.wallet.RiskAnalysis.Result
+
 
+
onAfterAutoSave(File) - Method in interface org.bitcoinj.wallet.WalletFiles.Listener
+
+
Called on the auto-save thread after the newly created temporary file has been filled with data and renamed.
+
+
onBeforeAutoSave(File) - Method in interface org.bitcoinj.wallet.WalletFiles.Listener
+
+
Called on the auto-save thread when a new temporary file is created but before the wallet data is saved + to it.
+
+
onBlocksDownloaded(Peer, Block, FilteredBlock, int) - Method in class org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
Deprecated.
+
onBlocksDownloaded(Peer, Block, FilteredBlock, int) - Method in interface org.bitcoinj.core.listeners.BlocksDownloadedEventListener
+
+
Called on a Peer thread when a block is received.
+
+
onBlocksDownloaded(Peer, Block, FilteredBlock, int) - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
 
+
onBroadcastProgress(double) - Method in interface org.bitcoinj.core.TransactionBroadcast.ProgressCallback
+
+
onBroadcastProgress will be invoked on the provided executor when the progress of the transaction + broadcast has changed, because the transaction has been announced by another peer or because the transaction + was found inside a mined block (in this case progress will go to 1.0 immediately).
+
+
onChainDownloadStarted(Peer, int) - Method in class org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
Deprecated.
+
onChainDownloadStarted(Peer, int) - Method in interface org.bitcoinj.core.listeners.ChainDownloadStartedEventListener
+
+
Called when a download is started with the initial number of blocks to be downloaded.
+
+
onChainDownloadStarted(Peer, int) - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
 
+
onCoinsReceived(Wallet, Transaction, Coin, Coin) - Method in class org.bitcoinj.jni.NativeWalletCoinsReceivedEventListener
+
 
+
onCoinsReceived(Wallet, Transaction, Coin, Coin) - Method in interface org.bitcoinj.wallet.listeners.WalletCoinsReceivedEventListener
+
+
This is called when a transaction is seen that sends coins to this wallet, either because it + was broadcast across the network or because a block was received.
+
+
onCoinsSent(Wallet, Transaction, Coin, Coin) - Method in class org.bitcoinj.jni.NativeWalletCoinsSentEventListener
+
 
+
onCoinsSent(Wallet, Transaction, Coin, Coin) - Method in interface org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener
+
+
This is called when a transaction is seen that sends coins from this wallet, either + because it was broadcast across the network or because a block was received.
+
+
onConfidenceChanged(TransactionConfidence, TransactionConfidence.Listener.ChangeReason) - Method in interface org.bitcoinj.core.TransactionConfidence.Listener
+
 
+
onConfidenceChanged(TransactionConfidence, TransactionConfidence.Listener.ChangeReason) - Method in class org.bitcoinj.jni.NativeTransactionConfidenceListener
+
 
+
onCurrentKeyChanged() - Method in interface org.bitcoinj.wallet.listeners.CurrentKeyChangeEventListener
+
+
Called by KeyChainGroup whenever a current key and/or address changes.
+
+
ONE - Static variable in class org.bitcoinj.crypto.ChildNumber
+
 
+
ONE_HARDENED - Static variable in class org.bitcoinj.crypto.ChildNumber
+
 
+
onFailure(Throwable) - Method in class org.bitcoinj.jni.NativeFutureCallback
+
 
+
onKeysAdded(List<ECKey>) - Method in class org.bitcoinj.jni.NativeKeyChainEventListener
+
 
+
onKeysAdded(List<ECKey>) - Method in class org.bitcoinj.wallet.listeners.AbstractKeyChainEventListener
+
 
+
onKeysAdded(List<ECKey>) - Method in interface org.bitcoinj.wallet.listeners.KeyChainEventListener
+
+
Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation.
+
+
onPeerConnected(Peer, int) - Method in interface org.bitcoinj.core.listeners.PeerConnectedEventListener
+
+
Called when a peer is connected.
+
+
onPeerDisconnected(Peer, int) - Method in interface org.bitcoinj.core.listeners.PeerDisconnectedEventListener
+
+
Called when a peer is disconnected.
+
+
onPeersDiscovered(Set<PeerAddress>) - Method in interface org.bitcoinj.core.listeners.PeerDiscoveredEventListener
+
+
Called when peers are discovered, this happens at startup of PeerGroup or if we run out of + suitable Peers to connect to.
+
+
onPreMessageReceived(Peer, Message) - Method in class org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
Deprecated.
+
onPreMessageReceived(Peer, Message) - Method in interface org.bitcoinj.core.listeners.PreMessageReceivedEventListener
+
+
Called when a message is received by a peer, before the message is processed.
+
+
onReorganize(Wallet) - Method in class org.bitcoinj.jni.NativeWalletReorganizeEventListener
+
 
+
onReorganize(Wallet) - Method in interface org.bitcoinj.wallet.listeners.WalletReorganizeEventListener
+
+
This is called when a block is received that triggers a block chain re-organization.
+
+
onScriptsChanged(Wallet, List<Script>, boolean) - Method in class org.bitcoinj.jni.NativeScriptsChangeEventListener
+
 
+
onScriptsChanged(Wallet, List<Script>, boolean) - Method in interface org.bitcoinj.wallet.listeners.ScriptsChangeEventListener
+
+
Called whenever a new watched script is added to the wallet.
+
+
onSetupCompleted() - Method in class org.bitcoinj.kits.WalletAppKit
+
+
This method is invoked on a background thread after all objects are initialised, but before the peer group + or block chain download is started.
+
+
onSuccess(Object) - Method in class org.bitcoinj.jni.NativeFutureCallback
+
 
+
onTransaction(Peer, Transaction) - Method in interface org.bitcoinj.core.listeners.OnTransactionBroadcastListener
+
+
Called when a new transaction is broadcast over the network.
+
+
OnTransactionBroadcastListener - Interface in org.bitcoinj.core.listeners
+
+
Called when a new transaction is broadcast over the network.
+
+
onTransactionConfidenceChanged(Wallet, Transaction) - Method in interface org.bitcoinj.core.listeners.TransactionConfidenceEventListener
+
+
Called when a transaction changes its confidence level.
+
+
onTransactionConfidenceChanged(Wallet, Transaction) - Method in class org.bitcoinj.jni.NativeTransactionConfidenceEventListener
+
 
+
onWalletChanged(Wallet) - Method in class org.bitcoinj.jni.NativeWalletChangeEventListener
+
 
+
onWalletChanged(Wallet) - Method in interface org.bitcoinj.wallet.listeners.WalletChangeEventListener
+
+
Designed for GUI applications to refresh their transaction lists.
+
+
op(int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given opcode to the end of the program.
+
+
op(int, int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given opcode to the given index in the program
+
+
OP_0 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_0NOTEQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_1 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_10 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_11 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_12 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_13 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_14 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_15 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_16 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_1ADD - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_1NEGATE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_1SUB - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2DIV - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2DROP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2DUP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2MUL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2OVER - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2ROT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_2SWAP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_3 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_3DUP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_4 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_5 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_6 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_7 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_8 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_9 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ABS - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ADD - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_AND - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_BOOLAND - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_BOOLOR - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CAT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CHECKLOCKTIMEVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
+
Check lock time of the block.
+
+
OP_CHECKMULTISIG - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CHECKMULTISIGVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CHECKSEQUENCEVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CHECKSIG - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CHECKSIGVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_CODESEPARATOR - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_DEPTH - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_DIV - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_DROP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_DUP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ELSE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ENDIF - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_EQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_EQUALVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_FALSE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_FROMALTSTACK - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_GREATERTHAN - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_GREATERTHANOREQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_HASH160 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_HASH256 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_IF - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_IFDUP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_INVALIDOPCODE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_INVERT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_LEFT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_LESSTHAN - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_LESSTHANOREQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_LSHIFT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_MAX - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_MIN - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_MOD - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_MUL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NEGATE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NIP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP1 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP10 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP2 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
+
Deprecated.
+
+
OP_NOP3 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
+
Deprecated.
+
+
OP_NOP4 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP5 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP6 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP7 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP8 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOP9 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NOTIF - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NUMEQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NUMEQUALVERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_NUMNOTEQUAL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_OR - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_OVER - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_PICK - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_PUSHDATA1 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_PUSHDATA2 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_PUSHDATA4 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RESERVED - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RESERVED1 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RESERVED2 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RETURN - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RIGHT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RIPEMD160 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ROLL - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_ROT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_RSHIFT - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SHA1 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SHA256 - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SIZE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SUB - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SUBSTR - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_SWAP - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_TOALTSTACK - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_TRUE - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_TUCK - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_VER - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_VERIF - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_VERIFY - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_VERNOTIF - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_WITHIN - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
OP_XOR - Static variable in class org.bitcoinj.script.ScriptOpCodes
+
 
+
opcode - Variable in class org.bitcoinj.script.ScriptChunk
+
+
Operation to be executed.
+
+
openConnection(SocketAddress, StreamConnection) - Method in class org.bitcoinj.net.BlockingClientManager
+
 
+
openConnection(SocketAddress, StreamConnection) - Method in interface org.bitcoinj.net.ClientConnectionManager
+
+
Creates a new connection to the given address, with the given connection used to handle incoming data.
+
+
openConnection(SocketAddress, StreamConnection) - Method in class org.bitcoinj.net.NioClientManager
+
 
+
openOutCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
openStream(NetworkParameters) - Static method in class org.bitcoinj.core.CheckpointManager
+
+
Returns a checkpoints stream pointing to inside the bitcoinj JAR
+
+
opFalse() - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds false to the end of the program.
+
+
opFalse(int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds false to the given index in the program.
+
+
optimalEncodingMessageSize - Variable in class org.bitcoinj.core.Block
+
 
+
optionalDecimals(int...) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
+ Set additional groups of decimals to use after the minimum decimals, if they are useful for expressing precision.
+
+
OptionalFieldValidationException - Exception in org.bitcoinj.uri
+
+
Exception to provide the following to BitcoinURI:
+
+
OptionalFieldValidationException(String) - Constructor for exception org.bitcoinj.uri.OptionalFieldValidationException
+
 
+
OptionalFieldValidationException(String, Throwable) - Constructor for exception org.bitcoinj.uri.OptionalFieldValidationException
+
 
+
opTrue() - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds true to the end of the program.
+
+
opTrue(int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds true to the given index in the program.
+
+
org.bitcoin - package org.bitcoin
+
 
+
org.bitcoin.crawler - package org.bitcoin.crawler
+
 
+
org.bitcoin.protocols.payments - package org.bitcoin.protocols.payments
+
 
+
org.bitcoinj.core - package org.bitcoinj.core
+
+
The core package contains classes for network messages like Block and + Transaction, peer connectivity via PeerGroup, + and block chain management.
+
+
org.bitcoinj.core.listeners - package org.bitcoinj.core.listeners
+
 
+
org.bitcoinj.crypto - package 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.jni - package org.bitcoinj.jni
+
 
+
org.bitcoinj.kits - package org.bitcoinj.kits
+
+
High level wrapper APIs around the bitcoinj building blocks.
+
+
org.bitcoinj.net - package org.bitcoinj.net
+
+
Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for + using SOCKS proxies, Tor, SSL etc).
+
+
org.bitcoinj.net.discovery - package org.bitcoinj.net.discovery
+
+
Classes that know how to discover peers in the P2P network using DNS or HTTP.
+
+
org.bitcoinj.params - package org.bitcoinj.params
+
+
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main + network, the testnet, regtest mode, unit testing params and so on.
+
+
org.bitcoinj.protocols.payments - package org.bitcoinj.protocols.payments
+
+
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses + and authentication.
+
+
org.bitcoinj.script - package org.bitcoinj.script
+
+
Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs.
+
+
org.bitcoinj.signers - package 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.store - package org.bitcoinj.store
+
+
Block stores persist blockchain data downloaded from remote peers.
+
+
org.bitcoinj.uri - package org.bitcoinj.uri
+
+
Parsing and handling of bitcoin: textual URIs as found in qr codes and web links.
+
+
org.bitcoinj.utils - package org.bitcoinj.utils
+
+
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files, + a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
+
+
org.bitcoinj.wallet - package 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.
+
+
org.bitcoinj.wallet.listeners - package org.bitcoinj.wallet.listeners
+
 
+
ORIGINAL - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ Unencrypted - Original bitcoin secp256k1 curve
+
+
ORIGINAL_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
+ Unencrypted - Original bitcoin secp256k1 curve
+
+
OTHER - Enum constant in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
 
+
Output(Coin, byte[]) - Constructor for class org.bitcoinj.protocols.payments.PaymentProtocol.Output
+
 
+
OUTPUT_SCRIPT_TYPE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
OUTPUTS_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
outputScriptType - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
outputScriptType(Script.ScriptType) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
OVERRIDING_TRANSACTION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
+

P

+
+
P_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
P2PK - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
P2PKH - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
P2PKH - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
P2PKH = 1;
+
+
P2PKH_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
P2PKH = 1;
+
+
p2sh - Variable in class org.bitcoinj.core.LegacyAddress
+
+
True if P2SH, false if P2PKH.
+
+
P2SH - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
P2SH - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
p2shHeader - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
P2TR - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
P2WPKH - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
P2WPKH - Enum constant in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
P2WPKH = 2;
+
+
P2WPKH_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
P2WPKH = 2;
+
+
P2WSH - Enum constant in enum class org.bitcoinj.script.Script.ScriptType
+
 
+
packetMagic - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
params - Variable in class org.bitcoinj.core.AbstractBlockChain
+
+
network parameters for this chain
+
+
params - Variable in class org.bitcoinj.core.CheckpointManager
+
 
+
params - Variable in class org.bitcoinj.core.Message
+
 
+
params - Variable in class org.bitcoinj.core.PeerGroup
+
 
+
params - Variable in class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
params - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
params - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
params - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
params - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
params() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
Params() - Constructor for class org.bitcoinj.utils.ExponentialBackoff.Params
+
+
Construct params with default values.
+
+
Params(long, float, long) - Constructor for class org.bitcoinj.utils.ExponentialBackoff.Params
+
 
+
parent - Variable in class org.bitcoinj.core.ChildMessage
+
 
+
parse() - Method in class org.bitcoinj.core.AddressV1Message
+
 
+
parse() - Method in class org.bitcoinj.core.AddressV2Message
+
 
+
parse() - Method in class org.bitcoinj.core.Block
+
 
+
parse() - Method in class org.bitcoinj.core.BloomFilter
+
 
+
parse() - Method in class org.bitcoinj.core.EmptyMessage
+
 
+
parse() - Method in class org.bitcoinj.core.FeeFilterMessage
+
 
+
parse() - Method in class org.bitcoinj.core.FilteredBlock
+
 
+
parse() - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
parse() - Method in class org.bitcoinj.core.GetUTXOsMessage
+
 
+
parse() - Method in class org.bitcoinj.core.HeadersMessage
+
 
+
parse() - Method in class org.bitcoinj.core.ListMessage
+
 
+
parse() - Method in class org.bitcoinj.core.MemoryPoolMessage
+
 
+
parse() - Method in class org.bitcoinj.core.Message
+
 
+
parse() - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
parse() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
parse() - Method in class org.bitcoinj.core.Ping
+
 
+
parse() - Method in class org.bitcoinj.core.Pong
+
 
+
parse() - Method in class org.bitcoinj.core.RejectMessage
+
 
+
parse() - Method in class org.bitcoinj.core.Transaction
+
+
Deserialize according to BIP144 or + the classic format, depending on if the + transaction is segwit or not.
+
+
parse() - Method in class org.bitcoinj.core.TransactionInput
+
 
+
parse() - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
parse() - Method in class org.bitcoinj.core.TransactionOutput
+
 
+
parse() - Method in class org.bitcoinj.core.UTXOsMessage
+
 
+
parse() - Method in class org.bitcoinj.core.VersionMessage
+
 
+
parse(String) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Parse a String representation of a Bitcoin monetary value.
+
+
parse(String) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Parse a human readable coin value to a Coin instance.
+
+
parse(String, ParsePosition) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Parse a String representation of a Bitcoin monetary value.
+
+
parseCoin(String) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin by parsing a String amount expressed in "the way humans are used to".
+
+
parseCoinInexact(String) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin by parsing a String amount expressed in "the way humans are used to".
+
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseDelimitedFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFiat(String, String) - Static method in class org.bitcoinj.utils.Fiat
+
+
Parses an amount expressed in the way humans are used to.
+
+
parseFiat(String, String) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Parse a human readable fiat value to a Fiat instance.
+
+
parseFiatInexact(String, String) - Static method in class org.bitcoinj.utils.Fiat
+
+
Parses an amount expressed in the way humans are used to.
+
+
parseFrom(byte[]) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(byte[]) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(byte[], ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(ByteString) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(CodedInputStream) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(InputStream) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(ByteBuffer) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseObject(String, ParsePosition) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Parse a String representation of a Bitcoin monetary value.
+
+
parsePath(String) - Static method in class org.bitcoinj.crypto.HDPath
+
+
Create an HDPath from a path string.
+
+
parsePath(String) - Static method in class org.bitcoinj.crypto.HDUtils
+
+
Deprecated. +
Use HDPath.parsePath
+
+
+
parsePaymentAck(Protos.PaymentACK) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Parse payment ack into an object.
+
+
parsePaymentRequest(Protos.PaymentRequest) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Parse a payment request.
+
+
parser() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
parser() - Static method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
parser() - Static method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
parser() - Static method in class org.bitcoin.protocols.payments.Protos.X509Certificates
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.EncryptedData
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.ExchangeRate
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Extension
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Key
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Script
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.ScriptWitness
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Tag
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
parser() - Static method in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
parseToProto(InputStream) - Static method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Returns the loaded protocol buffer from the given byte stream.
+
+
parseTransactions(int) - Method in class org.bitcoinj.core.Block
+
+
Parse transactions from the block.
+
+
parseTransactionsFromPaymentMessage(NetworkParameters, Protos.Payment) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Parse transactions from payment message.
+
+
PartialMerkleTree - Class in org.bitcoinj.core
+
+
A data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner.
+
+
PartialMerkleTree(NetworkParameters, byte[], int) - Constructor for class org.bitcoinj.core.PartialMerkleTree
+
 
+
PartialMerkleTree(NetworkParameters, byte[], List<Sha256Hash>, int) - Constructor for class org.bitcoinj.core.PartialMerkleTree
+
+
Constructs a new PMT with the given bit set (little endian) and the raw list of hashes including internal hashes, + taking ownership of the list.
+
+
partialTx - Variable in class org.bitcoinj.signers.TransactionSigner.ProposedTransaction
+
 
+
passesCheckpoint(int, Sha256Hash) - Method in class org.bitcoinj.core.NetworkParameters
+
+
Returns true if the block height is either not a checkpoint, or is a checkpoint and the hash matches.
+
+
passphrase - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
passphrase(String) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
The passphrase to use with the generated mnemonic, or null if you would like to use the default empty string.
+
+
password - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
PATH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
pattern() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return a representation of the pattern used by this instance for formatting and + parsing.
+
+
pattern(String) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Use the given pattern when formatting and parsing.
+
+
payload - Variable in class org.bitcoinj.core.Message
+
 
+
PAYMENT_DETAILS_VERSION_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
PAYMENT_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentACK
+
 
+
PAYMENT_PROTOCOL_ID_MAINNET - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string used by the payment protocol to represent the main net.
+
+
PAYMENT_PROTOCOL_ID_REGTEST - Static variable in class org.bitcoinj.core.NetworkParameters
+
 
+
PAYMENT_PROTOCOL_ID_TESTNET - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string used by the payment protocol to represent the test net.
+
+
PAYMENT_PROTOCOL_ID_UNIT_TESTS - Static variable in class org.bitcoinj.core.NetworkParameters
+
+
The string used by the payment protocol to represent unit testing (note that this is non-standard).
+
+
PAYMENT_URL_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
PaymentProtocol - Class in org.bitcoinj.protocols.payments
+
+
Utility methods and constants for working with + BIP 70 aka the payment protocol.
+
+
PaymentProtocol() - Constructor for class org.bitcoinj.protocols.payments.PaymentProtocol
+
 
+
PaymentProtocol.Ack - Class in org.bitcoinj.protocols.payments
+
+
Message returned by the merchant in response to a Payment message.
+
+
PaymentProtocol.Output - Class in org.bitcoinj.protocols.payments
+
+
Value object to hold amount/script pairs.
+
+
PaymentProtocol.PkiVerificationData - Class in org.bitcoinj.protocols.payments
+
+
Information about the X.509 signature's issuer and subject.
+
+
PaymentProtocolException - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException(Exception) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException
+
 
+
PaymentProtocolException(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException
+
 
+
PaymentProtocolException.Expired - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidNetwork - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidOutputs - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidPaymentRequestURL - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidPaymentURL - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidPkiData - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidPkiType - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.InvalidVersion - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentProtocolException.PkiVerificationException - Exception in org.bitcoinj.protocols.payments
+
 
+
PaymentSession - Class in org.bitcoinj.protocols.payments
+
+
Provides a standard implementation of the Payment Protocol (BIP 0070)
+
+
PaymentSession(Protos.PaymentRequest) - Constructor for class org.bitcoinj.protocols.payments.PaymentSession
+
+
Creates a PaymentSession from the provided Protos.PaymentRequest.
+
+
PaymentSession(Protos.PaymentRequest, boolean) - Constructor for class org.bitcoinj.protocols.payments.PaymentSession
+
+
Creates a PaymentSession from the provided Protos.PaymentRequest.
+
+
PaymentSession(Protos.PaymentRequest, boolean, TrustStoreLoader) - Constructor for class org.bitcoinj.protocols.payments.PaymentSession
+
+
Creates a PaymentSession from the provided Protos.PaymentRequest.
+
+
PBKDF2SHA512 - Class in org.bitcoinj.crypto
+
+
This is a clean-room implementation of PBKDF2 using RFC 2898 as a reference.
+
+
PBKDF2SHA512() - Constructor for class org.bitcoinj.crypto.PBKDF2SHA512
+
 
+
Peer - Class in org.bitcoinj.core
+
+
A Peer handles the high level communication with a Bitcoin node, extending a PeerSocketHandler which + handles low-level message (de)serialization.
+
+
Peer(NetworkParameters, AbstractBlockChain, PeerAddress, String, String) - Constructor for class org.bitcoinj.core.Peer
+
+
Construct a peer that reads/writes from the given chain.
+
+
Peer(NetworkParameters, VersionMessage, AbstractBlockChain, PeerAddress) - Constructor for class org.bitcoinj.core.Peer
+
+ +
+
Peer(NetworkParameters, VersionMessage, PeerAddress, AbstractBlockChain) - Constructor for class org.bitcoinj.core.Peer
+
+
Construct a peer that reads/writes from the given block chain.
+
+
Peer(NetworkParameters, VersionMessage, PeerAddress, AbstractBlockChain, long, int) - Constructor for class org.bitcoinj.core.Peer
+
+
Construct a peer that reads/writes from the given block chain.
+
+
PEER_SEEDS_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
peerAddress - Variable in class org.bitcoinj.core.PeerSocketHandler
+
 
+
PeerAddress - Class in org.bitcoinj.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, Message, MessageSerializer) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Construct a peer address from a serialized payload.
+
+
PeerAddress(NetworkParameters, String, int) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Constructs a peer address from a stringified hostname+port.
+
+
PeerAddress(NetworkParameters, InetAddress) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Constructs a peer address from the given IP address.
+
+
PeerAddress(NetworkParameters, InetAddress, int) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Constructs a peer address from the given IP address and port.
+
+
PeerAddress(NetworkParameters, InetAddress, int, BigInteger) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Constructs a peer address from the given IP address, port and services.
+
+
PeerAddress(NetworkParameters, InetAddress, int, BigInteger, MessageSerializer) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Construct a peer address from a memorized or hardcoded address.
+
+
PeerAddress(NetworkParameters, InetSocketAddress) - Constructor for class org.bitcoinj.core.PeerAddress
+
+
Constructs a peer address from an InetSocketAddress.
+
+
peerAddresses - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
PeerConnectedEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events indicating a new peer connecting.
+
+
peerConnectedEventListeners - Variable in class org.bitcoinj.core.PeerGroup
+
+
Callbacks for events related to peers connecting
+
+
PeerDataEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+
PeerDisconnectedEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events indicating a peer disconnecting.
+
+
peerDisconnectedEventListeners - Variable in class org.bitcoinj.core.PeerGroup
+
+
Callbacks for events related to peers disconnecting
+
+
PeerDiscoveredEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events for peers being discovered.
+
+
peerDiscoveredEventListeners - Variable in class org.bitcoinj.core.PeerGroup
+
+
Callbacks for events related to peer connection/disconnection
+
+
PeerDiscovery - Interface in org.bitcoinj.net.discovery
+
+
A PeerDiscovery object is responsible for finding addresses of other nodes in the Bitcoin P2P network.
+
+
PeerDiscoveryException - Exception in org.bitcoinj.net.discovery
+
 
+
PeerDiscoveryException() - Constructor for exception org.bitcoinj.net.discovery.PeerDiscoveryException
+
 
+
PeerDiscoveryException(String) - Constructor for exception org.bitcoinj.net.discovery.PeerDiscoveryException
+
 
+
PeerDiscoveryException(String, Throwable) - Constructor for exception org.bitcoinj.net.discovery.PeerDiscoveryException
+
 
+
PeerDiscoveryException(Throwable) - Constructor for exception org.bitcoinj.net.discovery.PeerDiscoveryException
+
 
+
PeerException - Exception in org.bitcoinj.core
+
+
Thrown when a problem occurs in communicating with a peer, and we should + retry.
+
+
PeerException(Exception) - Constructor for exception org.bitcoinj.core.PeerException
+
 
+
PeerException(String) - Constructor for exception org.bitcoinj.core.PeerException
+
 
+
PeerException(String, Exception) - Constructor for exception org.bitcoinj.core.PeerException
+
 
+
PeerFilterProvider - Interface in org.bitcoinj.core
+
+
An interface which provides the information required to properly filter data downloaded from Peers.
+
+
peerGroup() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
PeerGroup - Class in org.bitcoinj.core
+
+
Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages + the interaction between them all.
+
+
PeerGroup(Context) - Constructor for class org.bitcoinj.core.PeerGroup
+
+
Creates a PeerGroup with the given context.
+
+
PeerGroup(Context, AbstractBlockChain) - Constructor for class org.bitcoinj.core.PeerGroup
+
+
Creates a PeerGroup for the given context and chain.
+
+
PeerGroup(NetworkParameters) - Constructor for class org.bitcoinj.core.PeerGroup
+
+ +
+
PeerGroup(NetworkParameters, AbstractBlockChain) - Constructor for class org.bitcoinj.core.PeerGroup
+
+ +
+
PeerGroup(NetworkParameters, AbstractBlockChain, ClientConnectionManager) - Constructor for class org.bitcoinj.core.PeerGroup
+
+
See PeerGroup(Context, AbstractBlockChain, ClientConnectionManager)
+
+
PeerGroup.FilterRecalculateMode - Enum Class in org.bitcoinj.core
+
 
+
PeerSeedProtos - Class in org.bitcoin.crawler
+
 
+
PeerSeedProtos.PeerSeedData - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+
PeerSeedProtos.PeerSeedData.Builder - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+
PeerSeedProtos.PeerSeedDataOrBuilder - Interface in org.bitcoin.crawler
+
 
+
PeerSeedProtos.PeerSeeds - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+
PeerSeedProtos.PeerSeeds.Builder - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+
PeerSeedProtos.PeerSeedsOrBuilder - Interface in org.bitcoin.crawler
+
 
+
PeerSeedProtos.SignedPeerSeeds - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+
PeerSeedProtos.SignedPeerSeeds.Builder - Class in org.bitcoin.crawler
+
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+
PeerSeedProtos.SignedPeerSeedsOrBuilder - Interface in org.bitcoin.crawler
+
 
+
PeerSocketHandler - Class in org.bitcoinj.core
+
+
Handles high-level message (de)serialization for peers, acting as the bridge between the + org.bitcoinj.net classes and Peer.
+
+
PeerSocketHandler(NetworkParameters, InetSocketAddress) - Constructor for class org.bitcoinj.core.PeerSocketHandler
+
 
+
PeerSocketHandler(NetworkParameters, PeerAddress) - Constructor for class org.bitcoinj.core.PeerSocketHandler
+
 
+
peersTransactionBroadastEventListeners - Variable in class org.bitcoinj.core.PeerGroup
+
 
+
PENDING - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
If PENDING, then the transaction is unconfirmed and should be included shortly, as long as it is being + announced and is considered valid by the network.
+
+
PENDING - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ Our transaction, not in any chain
+
+
PENDING - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
+
+
PENDING - Enum constant in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
 
+
PENDING_INACTIVE - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In non-best chain, our transaction
+
+
PENDING_INACTIVE_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In non-best chain, our transaction
+
+
PENDING_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ Our transaction, not in any chain
+
+
PENDING_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
+
+
ping() - Method in class org.bitcoinj.core.Peer
+
+
Sends the peer a ping message and returns a future that will be invoked when the pong is received back.
+
+
ping(long) - Method in class org.bitcoinj.core.Peer
+
 
+
Ping - Class in org.bitcoinj.core
+
+
Instances of this class are not safe for use by multiple threads.
+
+
Ping() - Constructor for class org.bitcoinj.core.Ping
+
+
Create a Ping without a nonce value.
+
+
Ping(long) - Constructor for class org.bitcoinj.core.Ping
+
+
Create a Ping with a nonce value.
+
+
Ping(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.Ping
+
 
+
PKI_DATA_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
PKI_TYPE_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
pkiVerificationData - Variable in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Stores the calculated PKI verification data, or null if none is available.
+
+
PkiVerificationException(Exception) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.PkiVerificationException
+
 
+
PkiVerificationException(Exception, List<X509Certificate>) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.PkiVerificationException
+
 
+
PkiVerificationException(String) - Constructor for exception org.bitcoinj.protocols.payments.PaymentProtocolException.PkiVerificationException
+
 
+
plus(Coin) - Method in class org.bitcoinj.core.Coin
+
+
Alias for add
+
+
Pong - Class in org.bitcoinj.core
+
+
Instances of this class are not safe for use by multiple threads.
+
+
Pong(long) - Constructor for class org.bitcoinj.core.Pong
+
+
Create a Pong with a nonce value.
+
+
Pong(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.Pong
+
 
+
PONG - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
POOL_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
poolContainsTxHash(WalletTransaction.Pool, Sha256Hash) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
port - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
PORT_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
PORT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
position - Variable in exception org.bitcoinj.core.AddressFormatException.InvalidCharacter
+
 
+
positiveSign(char) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set character to prefix positive values.
+
+
postfixCode() - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Postfix formatted output with currency code.
+
+
PostgresFullPrunedBlockStore - Class in org.bitcoinj.store
+
+
A full pruned block store using the Postgres database engine.
+
+
PostgresFullPrunedBlockStore(NetworkParameters, int, String, String, String, String) - Constructor for class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
+
Creates a new PostgresFullPrunedBlockStore.
+
+
PostgresFullPrunedBlockStore(NetworkParameters, int, String, String, String, String, String) - Constructor for class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
+
Create a new PostgresFullPrunedBlockStore, storing the tables in the schema specified.
+
+
preferredOutputScriptType - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
prefixCode() - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Prefix formatted output by currency code.
+
+
prefixCode(String, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
END OF PARSING STUFF
+
+
PrefixedChecksummedBytes - Class in org.bitcoinj.core
+
+
+ The following format is often used to represent some type of data (e.g.
+
+
PrefixedChecksummedBytes(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.PrefixedChecksummedBytes
+
 
+
prefixSymbol(String, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
 
+
prefixUnitsIndicator(DecimalFormat, int) - Static method in class org.bitcoinj.utils.BtcFormat
+
+
Set both the currency symbol and code of the underlying, mutable NumberFormat object + according to the given denominational units scale factor.
+
+
PreMessageReceivedEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
+
+
priv - Variable in class org.bitcoinj.core.ECKey
+
 
+
privKeyTweakAdd(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 PrivKey Tweak-Add - Tweak privkey by adding to it
+
+
privKeyTweakMul(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 PrivKey Tweak-Mul - Tweak privkey by multiplying to it
+
+
processBlock(Block) - Method in class org.bitcoinj.core.Peer
+
 
+
processGetData(GetDataMessage) - Method in class org.bitcoinj.core.Peer
+
 
+
processHeaders(HeadersMessage) - Method in class org.bitcoinj.core.Peer
+
 
+
processInv(InventoryMessage) - Method in class org.bitcoinj.core.Peer
+
 
+
processMessage(Message) - Method in class org.bitcoinj.core.Peer
+
 
+
processMessage(Message) - Method in class org.bitcoinj.core.PeerSocketHandler
+
+
Called every time a message is received from the network
+
+
processNotFoundMessage(NotFoundMessage) - Method in class org.bitcoinj.core.Peer
+
 
+
processPong(Pong) - Method in class org.bitcoinj.core.Peer
+
 
+
processTransaction(Transaction) - Method in class org.bitcoinj.core.Peer
+
 
+
processUTXOMessage(UTXOsMessage) - Method in class org.bitcoinj.core.Peer
+
 
+
program - Variable in class org.bitcoinj.script.Script
+
 
+
PROGRAM_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Script
+
 
+
progress(double, int, Date) - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
Called when download progress is made.
+
+
propagate(Context) - Static method in class org.bitcoinj.core.Context
+
+
Sets the given context as the current thread context.
+
+
ProposedTransaction(Transaction) - Constructor for class org.bitcoinj.signers.TransactionSigner.ProposedTransaction
+
 
+
ProtocolException - Exception in org.bitcoinj.core
+
 
+
ProtocolException(Exception) - Constructor for exception org.bitcoinj.core.ProtocolException
+
 
+
ProtocolException(String) - Constructor for exception org.bitcoinj.core.ProtocolException
+
 
+
ProtocolException(String, Exception) - Constructor for exception org.bitcoinj.core.ProtocolException
+
 
+
Protos - Class in org.bitcoin.protocols.payments
+
 
+
Protos - Class in org.bitcoinj.wallet
+
 
+
Protos.DeterministicKey - Class in org.bitcoinj.wallet
+
+
+ + Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+
+
Protos.DeterministicKey.Builder - Class in org.bitcoinj.wallet
+
+
+ + Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+
+
Protos.DeterministicKeyOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.EncryptedData - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.EncryptedData
+
+
Protos.EncryptedData.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.EncryptedData
+
+
Protos.EncryptedDataOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.ExchangeRate - Class in org.bitcoinj.wallet
+
+
+ An exchange rate between Bitcoin and some fiat currency.
+
+
Protos.ExchangeRate.Builder - Class in org.bitcoinj.wallet
+
+
+ An exchange rate between Bitcoin and some fiat currency.
+
+
Protos.ExchangeRateOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Extension - Class in org.bitcoinj.wallet
+
+
+ An extension to the wallet
+
+
Protos.Extension.Builder - Class in org.bitcoinj.wallet
+
+
+ An extension to the wallet
+
+
Protos.ExtensionOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Key - Class in org.bitcoinj.wallet
+
+
+ + A key used to control Bitcoin spending.
+
+
Protos.Key.Builder - Class in org.bitcoinj.wallet
+
+
+ + A key used to control Bitcoin spending.
+
+
Protos.Key.OutputScriptType - Enum Class in org.bitcoinj.wallet
+
+
Protobuf enum wallet.Key.OutputScriptType
+
+
Protos.Key.Type - Enum Class in org.bitcoinj.wallet
+
+
Protobuf enum wallet.Key.Type
+
+
Protos.KeyOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Output - Class in org.bitcoin.protocols.payments
+
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+
+
Protos.Output.Builder - Class in org.bitcoin.protocols.payments
+
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+
+
Protos.OutputOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
Protos.Payment - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.Payment
+
+
Protos.Payment.Builder - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.Payment
+
+
Protos.PaymentACK - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentACK
+
+
Protos.PaymentACK.Builder - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentACK
+
+
Protos.PaymentACKOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
Protos.PaymentDetails - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentDetails
+
+
Protos.PaymentDetails.Builder - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentDetails
+
+
Protos.PaymentDetailsOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
Protos.PaymentOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
Protos.PaymentRequest - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentRequest
+
+
Protos.PaymentRequest.Builder - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.PaymentRequest
+
+
Protos.PaymentRequestOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
Protos.PeerAddress - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.PeerAddress
+
+
Protos.PeerAddress.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.PeerAddress
+
+
Protos.PeerAddressOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Script - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.Script
+
+
Protos.Script.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.Script
+
+
Protos.ScriptOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.ScriptWitness - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.ScriptWitness
+
+
Protos.ScriptWitness.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.ScriptWitness
+
+
Protos.ScriptWitnessOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.ScryptParameters - Class in org.bitcoinj.wallet
+
+
+ The parameters used in the scrypt key derivation function.
+
+
Protos.ScryptParameters.Builder - Class in org.bitcoinj.wallet
+
+
+ The parameters used in the scrypt key derivation function.
+
+
Protos.ScryptParametersOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Tag - Class in org.bitcoinj.wallet
+
+
+ + A simple key->value mapping that has no interpreted content at all.
+
+
Protos.Tag.Builder - Class in org.bitcoinj.wallet
+
+
+ + A simple key->value mapping that has no interpreted content at all.
+
+
Protos.TagOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Transaction - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.Transaction
+
+
Protos.Transaction.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.Transaction
+
+
Protos.Transaction.Pool - Enum Class in org.bitcoinj.wallet
+
+
+ + This is a bitfield oriented enum, with the following bits: + + bit 0 - spent + bit 1 - appears in alt chain + bit 2 - appears in best chain + bit 3 - double-spent + bit 4 - pending (we would like the tx to go into the best chain) + + Not all combinations are interesting, just the ones actually used in the enum.
+
+
Protos.Transaction.Purpose - Enum Class in org.bitcoinj.wallet
+
+
+ For what purpose the transaction was created.
+
+
Protos.TransactionConfidence - Class in org.bitcoinj.wallet
+
+
+ + A description of the confidence we have that a transaction cannot be reversed in the future.
+
+
Protos.TransactionConfidence.Builder - Class in org.bitcoinj.wallet
+
+
+ + A description of the confidence we have that a transaction cannot be reversed in the future.
+
+
Protos.TransactionConfidence.Source - Enum Class in org.bitcoinj.wallet
+
+
+ Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.
+
+
Protos.TransactionConfidence.Type - Enum Class in org.bitcoinj.wallet
+
+
Protobuf enum wallet.TransactionConfidence.Type
+
+
Protos.TransactionConfidenceOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.TransactionInput - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.TransactionInput
+
+
Protos.TransactionInput.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.TransactionInput
+
+
Protos.TransactionInputOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.TransactionOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.TransactionOutput - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.TransactionOutput
+
+
Protos.TransactionOutput.Builder - Class in org.bitcoinj.wallet
+
+
Protobuf type wallet.TransactionOutput
+
+
Protos.TransactionOutputOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.Wallet - Class in org.bitcoinj.wallet
+
+
+ A bitcoin wallet
+
+
Protos.Wallet.Builder - Class in org.bitcoinj.wallet
+
+
+ A bitcoin wallet
+
+
Protos.Wallet.EncryptionType - Enum Class in org.bitcoinj.wallet
+
+
+ + The encryption type of the wallet.
+
+
Protos.WalletOrBuilder - Interface in org.bitcoinj.wallet
+
 
+
Protos.X509Certificates - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.X509Certificates
+
+
Protos.X509Certificates.Builder - Class in org.bitcoin.protocols.payments
+
+
Protobuf type payments.X509Certificates
+
+
Protos.X509CertificatesOrBuilder - Interface in org.bitcoin.protocols.payments
+
 
+
protoToAddrs(PeerSeedProtos.SignedPeerSeeds) - Method in class org.bitcoinj.net.discovery.HttpDiscovery
+
 
+
provideTransaction(Transaction) - Method in class org.bitcoinj.core.FilteredBlock
+
+
Provide this FilteredBlock with a transaction which is in its Merkle tree.
+
+
provideWalletExtensions() - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Override this to return wallet extensions if any are necessary.
+
+
PrunedException - Exception in org.bitcoinj.core
+
+
PrunedException is thrown in cases where a fully verifying node has deleted (pruned) old block data that turned + out to be necessary for handling a re-org.
+
+
PrunedException(Sha256Hash) - Constructor for exception org.bitcoinj.core.PrunedException
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeFutureCallback
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeKeyChainEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeScriptsChangeEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeTransactionConfidenceEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeTransactionConfidenceListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeWalletChangeEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeWalletCoinsReceivedEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeWalletCoinsSentEventListener
+
 
+
ptr - Variable in class org.bitcoinj.jni.NativeWalletReorganizeEventListener
+
 
+
pub - Variable in class org.bitcoinj.core.ECKey
+
 
+
pubkey - Variable in class org.bitcoinj.net.discovery.HttpDiscovery.Details
+
 
+
pubKey - Variable in class org.bitcoinj.signers.CustomTransactionSigner.SignatureAndKey
+
 
+
PUBKEY_COMPARATOR - Static variable in class org.bitcoinj.core.ECKey
+
+
Compares pub key bytes using UnsignedBytes.lexicographicalComparator()
+
+
PUBKEY_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
pubKeyTweakAdd(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 PubKey Tweak-Add - Tweak pubkey by adding to it
+
+
pubKeyTweakMul(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 PubKey Tweak-Mul - Tweak pubkey by multiplying to it
+
+
PUBLIC_KEY_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
publicKeyFromPrivate(BigInteger, boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Returns public key bytes from the given private key.
+
+
publicPointFromPrivate(BigInteger) - Static method in class org.bitcoinj.core.ECKey
+
+
Returns public key point from the given private key.
+
+
PublicPrivateMismatch(String) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException.PublicPrivateMismatch
+
 
+
PublicPrivateMismatch(String, Throwable) - Constructor for exception org.bitcoinj.crypto.KeyCrypterException.PublicPrivateMismatch
+
 
+
PURPOSE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
put(StoredBlock) - Method in interface org.bitcoinj.store.BlockStore
+
+
Saves the given block header+extra data.
+
+
put(StoredBlock) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
put(StoredBlock) - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
put(StoredBlock) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
put(StoredBlock) - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
put(StoredBlock) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
put(StoredBlock) - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
put(StoredBlock, StoredUndoableBlock) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
put(StoredBlock, StoredUndoableBlock) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Saves the given StoredUndoableBlock and StoredBlock.
+
+
put(StoredBlock, StoredUndoableBlock) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
put(StoredBlock, StoredUndoableBlock) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
put(StoredBlock, StoredUndoableBlock) - Method in class org.bitcoinj.store.PostgresFullPrunedBlockStore
+
 
+
putKey(DeterministicKey) - Method in class org.bitcoinj.crypto.DeterministicHierarchy
+
+
Inserts a key into the hierarchy.
+
+
putUpdateStoredBlock(StoredBlock, boolean) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
putUpdateStoredBlock(StoredBlock, boolean) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
+

Q

+
+
queueListeners(TransactionConfidence.Listener.ChangeReason) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Call this after adjusting the confidence, for cases where listeners should be notified.
+
+
queueOnCoinsReceived(Transaction, Coin, Coin) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
queueOnCoinsSent(Transaction, Coin, Coin) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
queueOnReorganize() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
queueOnScriptsChanged(List<Script>, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
+

R

+
+
r - Variable in class org.bitcoinj.core.ECKey.ECDSASignature
+
+
The two components of the signature.
+
+
R_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
RAISE_FEE - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Raise fee, e.g.
+
+
RAISE_FEE - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Raise fee, e.g.
+
+
RAISE_FEE_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Raise fee, e.g.
+
+
random - Static variable in class org.bitcoinj.core.TransactionBroadcast
+
+
Used for shuffling the peers before broadcast: unit tests can replace this to make themselves deterministic.
+
+
random - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
random(SecureRandom) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Generates a new key chain with 128 bits of entropy selected randomly from the given SecureRandom + object.
+
+
random(SecureRandom, int) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Generates a new key chain with entropy selected randomly from the given SecureRandom + object and of the requested size in bits.
+
+
randomAccessFile - Variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
randomize(byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 randomize - updates the context randomization
+
+
randomSalt() - Static method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
Returns SALT_LENGTH (8) bytes of random data
+
+
RawKeyBytes(byte[], byte[]) - Constructor for class org.bitcoinj.crypto.HDKeyDerivation.RawKeyBytes
+
 
+
readByte() - Method in class org.bitcoinj.core.Message
+
 
+
readByteArray() - Method in class org.bitcoinj.core.Message
+
 
+
readBytes(int) - Method in class org.bitcoinj.core.Message
+
 
+
readHash() - Method in class org.bitcoinj.core.Message
+
 
+
readInt64() - Method in class org.bitcoinj.core.Message
+
 
+
readInt64(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 8 bytes from the byte array (starting at the offset) as signed 64-bit integer in little endian format.
+
+
readStr() - Method in class org.bitcoinj.core.Message
+
 
+
readUint16(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
+
+
readUint16BE(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in big endian format.
+
+
readUint16FromStream(InputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 2 bytes from the stream as unsigned 16-bit integer in little endian format.
+
+
readUint32() - Method in class org.bitcoinj.core.Message
+
 
+
readUint32(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
+
+
readUint32BE(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
+
+
readUint32FromStream(InputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Parse 4 bytes from the stream as unsigned 32-bit integer in little endian format.
+
+
readUint64() - Method in class org.bitcoinj.core.Message
+
 
+
readVarInt() - Method in class org.bitcoinj.core.Message
+
 
+
readVarInt(int) - Method in class org.bitcoinj.core.Message
+
 
+
readWallet(InputStream, boolean, WalletExtension[]) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
+
+
readWallet(InputStream, WalletExtension...) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
+
+
readWallet(NetworkParameters, WalletExtension[], Protos.Wallet) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
+
+
readWallet(NetworkParameters, WalletExtension[], Protos.Wallet, boolean) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
+
+
recached - Variable in class org.bitcoinj.core.Message
+
 
+
recalculateFastCatchupAndFilter(PeerGroup.FilterRecalculateMode) - Method in class org.bitcoinj.core.PeerGroup
+
+
Recalculates the bloom filter given to peers as well as the timestamp after which full blocks are downloaded + (instead of only headers).
+
+
RECEIVE_FUNDS - Enum constant in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
 
+
receiveBytes(ByteBuffer) - Method in class org.bitcoinj.core.PeerSocketHandler
+
 
+
receiveBytes(ByteBuffer) - Method in interface org.bitcoinj.net.StreamConnection
+
+
Called when new bytes are available from the remote end.
+
+
receiveFromBlock(Transaction, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in interface org.bitcoinj.core.listeners.TransactionReceivedInBlockListener
+
+
Called by the BlockChain when we receive a new block that contains a relevant transaction.
+
+
receiveFromBlock(Transaction, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
receiveFromBlock(Transaction, StoredBlock, AbstractBlockChain.NewBlockType, int) - Method in class org.bitcoinj.wallet.Wallet
+
+
Called by the BlockChain when we receive a new block that sends coins to one of our addresses or + spends coins from one of our addresses (note that a single transaction can do both).
+
+
receivePending(Transaction, List<Transaction>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet + and want to record it.
+
+
receivePending(Transaction, List<Transaction>, boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet + and want to record it.
+
+
receivingAddr - Variable in class org.bitcoinj.core.VersionMessage
+
+
The network address of the node receiving this message.
+
+
recipientsPayFees - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If false (default value), tx fee is paid by the sender If true, tx fee is paid by the recipient/s.
+
+
RECORD_SIZE - Static variable in class org.bitcoinj.store.SPVBlockStore
+
 
+
recoverFromSignature(int, ECKey.ECDSASignature, Sha256Hash, boolean) - Static method in class org.bitcoinj.core.ECKey
+
+
Given the components of a signature and a selector value, recover and return the public key + that generated the signature according to the algorithm in SEC1v2 section 4.1.6.
+
+
RedeemData - Class in org.bitcoinj.wallet
+
+
This class aggregates data required to spend transaction output.
+
+
redeemP2WPKH(TransactionSignature, ECKey) - Static method in class org.bitcoinj.core.TransactionWitness
+
+
Creates the stack pushes necessary to redeem a P2WPKH output.
+
+
redeemP2WSH(Script, TransactionSignature...) - Static method in class org.bitcoinj.core.TransactionWitness
+
+
Creates the stack pushes necessary to redeem a P2WSH output.
+
+
redeemScript - Variable in class org.bitcoinj.wallet.RedeemData
+
 
+
REFERENCE_DEFAULT_MIN_TX_FEE - Static variable in class org.bitcoinj.core.Transaction
+
+
If feePerKb is lower than this, Bitcoin Core will treat it as if there were no fee.
+
+
REFUND - Enum constant in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
 
+
REFUND_TO_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
register(Collection<NetworkParameters>) - Static method in class org.bitcoinj.params.Networks
+
+
Register a collection of additional network types by adding them + to the Set.
+
+
register(NetworkParameters) - Static method in class org.bitcoinj.params.Networks
+
+
Register a single network type by adding it to the Set.
+
+
registerAllExtensions(ExtensionRegistryLite) - Static method in class org.bitcoin.crawler.PeerSeedProtos
+
 
+
registerAllExtensions(ExtensionRegistryLite) - Static method in class org.bitcoin.protocols.payments.Protos
+
 
+
registerAllExtensions(ExtensionRegistryLite) - Static method in class org.bitcoinj.wallet.Protos
+
 
+
RegTestParams - Class in org.bitcoinj.params
+
+
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
+
+
RegTestParams() - Constructor for class org.bitcoinj.params.RegTestParams
+
 
+
REGULAR - Enum constant in enum class org.bitcoinj.wallet.BasicKeyChain.State
+
 
+
RejectedTransactionException - Exception in org.bitcoinj.core
+
+
This exception is used by the TransactionBroadcast class to indicate that a broadcast + Transaction has been rejected by the network, for example because it violates a + protocol rule.
+
+
RejectedTransactionException(Transaction, RejectMessage) - Constructor for exception org.bitcoinj.core.RejectedTransactionException
+
 
+
RejectMessage - Class in org.bitcoinj.core
+
+
A message sent by nodes when a message we sent was rejected (ie a transaction had too little fee/was invalid/etc).
+
+
RejectMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.RejectMessage
+
 
+
RejectMessage(NetworkParameters, RejectMessage.RejectCode, Sha256Hash, String, String) - Constructor for class org.bitcoinj.core.RejectMessage
+
+
Constructs a reject message that fingers the object with the given hash as rejected for the given reason.
+
+
RejectMessage.RejectCode - Enum Class in org.bitcoinj.core
+
 
+
relayTxesBeforeFilter - Variable in class org.bitcoinj.core.VersionMessage
+
+
Whether or not to relay tx invs before a filter is received.
+
+
remove() - Method in class org.bitcoinj.utils.BlockFileLoader
+
 
+
removeAddress(int) - Method in class org.bitcoinj.core.AddressMessage
+
 
+
removeAllInstancesOf(byte[], byte[]) - Static method in class org.bitcoinj.script.Script
+
+
Returns the script bytes of inputScript with all instances of the specified script object removed
+
+
removeAllInstancesOfOp(byte[], int) - Static method in class org.bitcoinj.script.Script
+
+
Returns the script bytes of inputScript with all instances of the given op code removed
+
+
removeBlocksDownloadedEventListener(BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeBlocksDownloadedEventListener(BlocksDownloadedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
 
+
removeBroadcastBy(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
removeChainDownloadStartedEventListener(ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeChainDownloadStartedEventListener(ChainDownloadStartedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
 
+
removeChangeEventListener(WalletChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeCoinsReceivedEventListener(WalletCoinsReceivedEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeCoinsSentEventListener(WalletCoinsSentEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeConnectedEventListener(PeerConnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeConnectedEventListener(PeerConnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
The given event listener will no longer be called with events.
+
+
removeCurrentKeyChangeEventListener(CurrentKeyChangeEventListener) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Removes a listener for events that are run when a current key and/or address changes.
+
+
removeCurrentKeyChangeEventListener(CurrentKeyChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeDisconnectedEventListener(PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeDisconnectedEventListener(PeerDisconnectedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
The given event listener will no longer be called with events.
+
+
removeDiscoveredEventListener(PeerDiscoveredEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
The given event listener will no longer be called with events.
+
+
removeEldestEntry(Map.Entry<ByteBuffer, UTXO>) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore.LRUCache
+
 
+
removeEventListener(TransactionConfidence.Listener) - Method in class org.bitcoinj.core.TransactionConfidence
+
 
+
removeEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
removeEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
removeEventListener(KeyChainEventListener) - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Removes a listener for events that are run when keys are added.
+
+
removeEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Removes a listener for events that are run when keys are added.
+
+
removeExtension(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
removeFromList(T, List<? extends ListenerRegistration<T>>) - Static method in class org.bitcoinj.utils.ListenerRegistration
+
+
Returns true if the listener was removed, else false.
+
+
removeGetDataEventListener(GetDataEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeGetDataEventListener(GetDataEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
The given event listener will no longer be called with events.
+
+
removeImportedKey(ECKey) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Removes a key that was imported into the basic key chain.
+
+
removeItem(int) - Method in class org.bitcoinj.core.ListMessage
+
 
+
removeKey(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
removeKey(ECKey) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Removes the given key from the keychain.
+
+
removeKey(ECKey) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given key from the basicKeyChain.
+
+
removeKeyChainEventListener(KeyChainEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeNewBestBlockListener(NewBestBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Removes the given NewBestBlockListener from the chain.
+
+
removeOnTransactionBroadcastListener(OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removeOnTransactionBroadcastListener(OnTransactionBroadcastListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
The given event listener will no longer be called with events.
+
+
removeOutputs(int) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
removePeerFilterProvider(PeerFilterProvider) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
removePreMessageReceivedEventListener(PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.Peer
+
 
+
removePreMessageReceivedEventListener(PreMessageReceivedEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
 
+
removeRefundTo(int) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
removeReorganizeEventListener(WalletReorganizeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeReorganizeListener(ReorganizeListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Removes the given ReorganizeListener from the chain.
+
+
removeScriptsChangeEventListener(ScriptsChangeEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeSeed(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
removeTags(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
removeTransaction(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
removeTransactionConfidenceEventListener(TransactionConfidenceEventListener) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given event listener object.
+
+
removeTransactionInput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
removeTransactionOutput(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
removeTransactionReceivedListener(TransactionReceivedInBlockListener) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Removes the given TransactionReceivedInBlockListener from the chain.
+
+
removeUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
removeUnspentTransactionOutput(UTXO) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Removes a UTXO from the list of unspent TransactionOutputs + Note that the coinbase of the genesis block should NEVER be spendable and thus never in the list.
+
+
removeUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
removeUnspentTransactionOutput(UTXO) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
removeWallet(Wallet) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Remove a wallet from the chain.
+
+
removeWallet(Wallet) - Method in class org.bitcoinj.core.Peer
+
+
Unlinks the given wallet from peer.
+
+
removeWallet(Wallet) - Method in class org.bitcoinj.core.PeerGroup
+
+
Unlinks the given wallet so it no longer receives broadcast transactions or has its transactions announced.
+
+
removeWatchedAddress(Address) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given output scripts from the wallet that were being watched.
+
+
removeWatchedAddresses(List<Address>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given output scripts from the wallet that were being watched.
+
+
removeWatchedScript(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
removeWatchedScripts(List<Script>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Removes the given output scripts from the wallet that were being watched.
+
+
reorganize(StoredBlock, List<StoredBlock>, List<StoredBlock>) - Method in interface org.bitcoinj.core.listeners.ReorganizeListener
+
+
Called by the BlockChain when the best chain + (representing total work done) has changed.
+
+
reorganize(StoredBlock, List<StoredBlock>, List<StoredBlock>) - Method in class org.bitcoinj.jni.NativeBlockChainListener
+
 
+
reorganize(StoredBlock, List<StoredBlock>, List<StoredBlock>) - Method in class org.bitcoinj.wallet.Wallet
+
+
Don't call this directly.
+
+
ReorganizeListener - Interface in org.bitcoinj.core.listeners
+
+
Listener interface for when the best chain has changed.
+
+
REPEATING_DOUBLETS - Static variable in class org.bitcoinj.utils.BtcFixedFormat
+
+
A constant specifying the use of as many optional groups of two + decimal places in the fraction part of a formatted number as are useful for expressing + precision.
+
+
REPEATING_PLACES - Static variable in class org.bitcoinj.utils.BtcFixedFormat
+
+
A constant specifying the use of as many optional decimal places in the fraction part + of a formatted number as are useful for expressing precision.
+
+
REPEATING_TRIPLETS - Static variable in class org.bitcoinj.utils.BtcFixedFormat
+
+
A constant specifying the use of as many optional groups of three + decimal places in the fraction part of a formatted number as are useful for expressing + precision.
+
+
repeatOptionalDecimals(int, int) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
+ Set repeated additional groups of decimals to use after the minimum decimals, if they are useful for expressing + precision.
+
+
RequiredFieldValidationException - Exception in org.bitcoinj.uri
+
+
Exception to provide the following to BitcoinURI:
+
+
RequiredFieldValidationException(String) - Constructor for exception org.bitcoinj.uri.RequiredFieldValidationException
+
 
+
RequiredFieldValidationException(String, Throwable) - Constructor for exception org.bitcoinj.uri.RequiredFieldValidationException
+
 
+
reset() - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Resets the count field of this byte array output + stream to zero, so that all currently accumulated output in the + output stream is discarded.
+
+
reset() - Method in class org.bitcoinj.store.LevelDBBlockStore
+
+
Erases the contents of the database (but NOT the underlying files themselves) and then reinitialises with the genesis block.
+
+
reset() - Method in class org.bitcoinj.wallet.Wallet
+
+
Prepares the wallet for a blockchain replay.
+
+
resetFalsePositiveEstimate() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Resets estimates of false positives.
+
+
resetMocking() - Static method in class org.bitcoinj.core.Utils
+
+
Clears the mock clock and sleep
+
+
resetStore() - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
Resets the store by deleting the contents of the tables and reinitialising them.
+
+
resetStore() - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
resetTimeout() - Method in class org.bitcoinj.net.AbstractTimeoutHandler
+
+
Resets the current progress towards timeout to 0.
+
+
restoreFromKey - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
restoreFromSeed - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
restoreWalletFromKey(DeterministicKey) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If an account key is set here then any existing wallet that matches the file name will be renamed to a backup name, + the chain file will be deleted, and the wallet object will be instantiated with the given key instead of + a fresh seed being created.
+
+
restoreWalletFromSeed(DeterministicSeed) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If a seed is set here then any existing wallet that matches the file name will be renamed to a backup name, + the chain file will be deleted, and the wallet object will be instantiated with the given seed instead of + a fresh one being created.
+
+
Result() - Constructor for class org.bitcoinj.net.FilterMerger.Result
+
 
+
reverseBytes(byte[]) - Static method in class org.bitcoinj.core.Utils
+
+
Returns a copy of the given byte array in reverse order.
+
+
REWARD_HALVING_INTERVAL - Static variable in class org.bitcoinj.params.AbstractBitcoinNetParams
+
 
+
RiskAnalysis - Interface in org.bitcoinj.wallet
+
+
A RiskAnalysis represents an analysis of how likely it is that a transaction (and its dependencies) represents a + possible double spending attack.
+
+
RiskAnalysis.Analyzer - Interface in org.bitcoinj.wallet
+
 
+
RiskAnalysis.Result - Enum Class in org.bitcoinj.wallet
+
 
+
rollbackBlockStore(int) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Rollback the block store to a given height.
+
+
rollbackBlockStore(int) - Method in class org.bitcoinj.core.BlockChain
+
 
+
rollbackBlockStore(int) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
rollMockClock(int) - Static method in class org.bitcoinj.core.Utils
+
+
Advances (or rewinds) the mock clock by the given number of seconds.
+
+
rollMockClockMillis(long) - Static method in class org.bitcoinj.core.Utils
+
+
Advances (or rewinds) the mock clock by the given number of milliseconds.
+
+
rootAuthority - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
+
Object representing the CA that verified the merchant's ID
+
+
rootAuthorityName - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
+
String representing the display name of the CA that verified the merchant's ID
+
+
roundingMode(RoundingMode) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set rounding mode to use when it becomes necessary.
+
+
run() - Method in class org.bitcoinj.net.NioClientManager
+
 
+
run() - Method in class org.bitcoinj.net.NioServer
+
 
+
run() - Method in class org.bitcoinj.utils.Threading.UserThread
+
 
+
runReadLoop(InputStream, StreamConnection) - Static method in class org.bitcoinj.net.BlockingClient
+
+
A blocking call that never returns, except by throwing an exception.
+
+
+

S

+
+
s - Variable in class org.bitcoinj.core.ECKey.ECDSASignature
+
+
The two components of the signature.
+
+
SALT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.ScryptParameters
+
 
+
SALT_LENGTH - Static variable in class org.bitcoinj.crypto.KeyCrypterScrypt
+
+
The length of the salt used.
+
+
SAME_THREAD - Static variable in class org.bitcoinj.utils.Threading
+
+
A dummy executor that just invokes the runnable immediately.
+
+
SAT - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Standard format for the satoshi denomination.
+
+
SATOSHI - Static variable in class org.bitcoinj.core.Coin
+
+
A satoshi is the smallest unit that can be transferred.
+
+
satoshiToBtc(long) - Static method in class org.bitcoinj.core.Coin
+
+
Convert an amount in satoshis to an amount in BTC.
+
+
saveLater() - Method in class org.bitcoinj.wallet.Wallet
+
+
Requests an asynchronous save on a background thread
+
+
saveLater() - Method in class org.bitcoinj.wallet.WalletFiles
+
+
Queues up a save in the background.
+
+
saveNow() - Method in class org.bitcoinj.wallet.Wallet
+
+
If auto saving is enabled, do an immediate sync write to disk ignoring any delays.
+
+
saveNow() - Method in class org.bitcoinj.wallet.WalletFiles
+
+
Actually write the wallet file to disk, using an atomic rename when possible.
+
+
saveToFile(File) - Method in class org.bitcoinj.wallet.Wallet
+
+
Uses protobuf serialization to save the wallet to the given file.
+
+
saveToFile(File, File) - Method in class org.bitcoinj.wallet.Wallet
+
+
Saves the wallet first to the given temp file, then renames to the dest file.
+
+
saveToFileStream(OutputStream) - Method in class org.bitcoinj.wallet.Wallet
+
+
Uses protobuf serialization to save the wallet to the given file stream.
+
+
scale() - Method in class org.bitcoinj.utils.BtcAutoFormat
+
+
Returns the int value indicating coin denomination.
+
+
scale() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return the decimal-place shift for this object's fixed unit-denomination.
+
+
scale() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return the denomination of this object.
+
+
scale(int) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify a fixed-denomination of units to use when formatting and parsing values.
+
+
scale(BigInteger, int) - Method in class org.bitcoinj.utils.BtcAutoFormat
+
+
Calculate the appropriate denomination for the given Bitcoin monetary value.
+
+
scale(BigInteger, int) - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return the decimal-place shift for this object's unit-denomination.
+
+
scale(BigInteger, int) - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return the denomination for formatting the given value.
+
+
scaleX(ECFieldElement) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
scaleY(ECFieldElement) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
schemaName - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
schnorrSign(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
 
+
Script - Class in org.bitcoinj.script
+
+
Programs embedded inside transactions that control redemption of payments.
+
+
Script(byte[]) - Constructor for class org.bitcoinj.script.Script
+
+
Construct a Script that copies and wraps the programBytes array.
+
+
Script(byte[], long) - Constructor for class org.bitcoinj.script.Script
+
 
+
SCRIPT_BYTES_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
SCRIPT_BYTES_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
SCRIPT_ERR_BAD_OPCODE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_CHECKMULTISIGVERIFY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_CHECKSIGVERIFY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_CLEANSTACK - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_DISABLED_OPCODE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_EQUALVERIFY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_ERROR_COUNT - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_EVAL_FALSE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_INVALID_ALTSTACK_OPERATION - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_INVALID_STACK_OPERATION - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_MINIMALDATA - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_MINIMALIF - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_NEGATIVE_LOCKTIME - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_NUMEQUALVERIFY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_OK - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_OP_COUNT - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_OP_RETURN - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_PUBKEY_COUNT - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_PUBKEYTYPE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_PUSH_SIZE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SCRIPT_SIZE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_COUNT - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_DER - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_HASHTYPE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_HIGH_S - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_NULLDUMMY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_NULLFAIL - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_SIG_PUSHONLY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_STACK_SIZE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_UNBALANCED_CONDITIONAL - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_UNKNOWN_ERROR - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_UNSATISFIED_LOCKTIME - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_VERIFY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_MALLEATED - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_MALLEATED_P2SH - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_PUBKEYTYPE - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_ERR_WITNESS_UNEXPECTED - Enum constant in enum class org.bitcoinj.script.ScriptError
+
 
+
SCRIPT_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Output
+
 
+
Script.ScriptType - Enum Class in org.bitcoinj.script
+
+
Enumeration to encapsulate the type of this script.
+
+
Script.VerifyFlag - Enum Class in org.bitcoinj.script
+
+ +
+
ScriptBuilder - Class in org.bitcoinj.script
+
+
Tools for the construction of commonly used script types.
+
+
ScriptBuilder() - Constructor for class org.bitcoinj.script.ScriptBuilder
+
+
Creates a fresh ScriptBuilder with an empty program.
+
+
ScriptBuilder(Script) - Constructor for class org.bitcoinj.script.ScriptBuilder
+
+
Creates a fresh ScriptBuilder with the given program as the starting point.
+
+
ScriptChunk - Class in org.bitcoinj.script
+
+
A script element that is either a data push (signature, pubkey, etc) or a non-push (logic, numeric, etc) operation.
+
+
ScriptChunk(int, byte[]) - Constructor for class org.bitcoinj.script.ScriptChunk
+
 
+
scriptData - Variable in class org.bitcoinj.protocols.payments.PaymentProtocol.Output
+
 
+
ScriptError - Enum Class in org.bitcoinj.script
+
 
+
ScriptException - Exception in org.bitcoinj.script
+
 
+
ScriptException(ScriptError, String) - Constructor for exception org.bitcoinj.script.ScriptException
+
 
+
ScriptException(ScriptError, String, Exception) - Constructor for exception org.bitcoinj.script.ScriptException
+
 
+
ScriptOpCodes - Class in org.bitcoinj.script
+
+
Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol.
+
+
ScriptOpCodes() - Constructor for class org.bitcoinj.script.ScriptOpCodes
+
 
+
ScriptPattern - Class in org.bitcoinj.script
+
+
This is a Script pattern matcher with some typical script patterns
+
+
ScriptPattern() - Constructor for class org.bitcoinj.script.ScriptPattern
+
 
+
ScriptsChangeEventListener - Interface in org.bitcoinj.wallet.listeners
+
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+
secKeyVerify(byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 Seckey Verify - returns 1 if valid, 0 if invalid
+
+
Secp256k1Context - Class in org.bitcoin
+
+
This class holds the context reference used in native methods to handle ECDSA operations.
+
+
Secp256k1Context() - Constructor for class org.bitcoin.Secp256k1Context
+
 
+
SECRET_BYTES_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
seed - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
seed(DeterministicSeed) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Creates a deterministic key chain starting from the given seed.
+
+
SEED_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
SeedPeers - Class in org.bitcoinj.net.discovery
+
+
SeedPeers stores a pre-determined list of Bitcoin node addresses.
+
+
SeedPeers(int[], NetworkParameters) - Constructor for class org.bitcoinj.net.discovery.SeedPeers
+
+
Supports finding peers by IP addresses
+
+
SeedPeers(NetworkParameters) - Constructor for class org.bitcoinj.net.discovery.SeedPeers
+
+
Supports finding peers by IP addresses
+
+
seeds - Variable in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
 
+
seekPastMagicBytes(ByteBuffer) - Method in class org.bitcoinj.core.BitcoinSerializer
+
 
+
seekPastMagicBytes(ByteBuffer) - Method in class org.bitcoinj.core.MessageSerializer
+
 
+
seen(Sha256Hash, PeerAddress) - Method in class org.bitcoinj.core.TxConfidenceTable
+
+
Called by peers when they see a transaction advertised in an "inv" message.
+
+
SEEN_PEERS - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
Occurs when a pending transaction (not in the chain) was announced by another connected peers.
+
+
SegwitAddress - Class in org.bitcoinj.core
+
+
Implementation of native segwit addresses.
+
+
segwitAddressHrp - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
select(Coin, List<TransactionOutput>) - Method in interface org.bitcoinj.wallet.CoinSelector
+
+
Creates a CoinSelection that tries to meet the target amount of value.
+
+
select(Coin, List<TransactionOutput>) - Method in class org.bitcoinj.wallet.DefaultCoinSelector
+
 
+
select(Coin, List<TransactionOutput>) - Method in class org.bitcoinj.wallet.FilteringCoinSelector
+
 
+
select(Coin, List<TransactionOutput>) - Method in class org.bitcoinj.wallet.KeyTimeCoinSelector
+
 
+
selectDownloadPeer(List<Peer>) - Method in class org.bitcoinj.core.PeerGroup
+
+
Given a list of Peers, return a Peer to be used as the download peer.
+
+
self() - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
SELF - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Source
+
+
This transaction was created by our own wallet, so we know it's not a double spend.
+
+
SEND_IF_CHANGED - Enum constant in enum class org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
 
+
SendAddrV2Message - Class in org.bitcoinj.core
+
+
Represents the sendaddrv2 P2P protocol message, which indicates that a node can understand and prefers + to receive addrv2 messages instead of addr messages.
+
+
SendAddrV2Message(NetworkParameters) - Constructor for class org.bitcoinj.core.SendAddrV2Message
+
 
+
sendCoins(Peer, SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sends coins to the given address, via the given Peer.
+
+
sendCoins(TransactionBroadcaster, Address, Coin) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sends coins to the given address, via the given PeerGroup.
+
+
sendCoins(TransactionBroadcaster, SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sends coins according to the given request, via the given TransactionBroadcaster.
+
+
sendCoins(SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Satisfies the given SendRequest using the default transaction broadcaster configured either via + PeerGroup.addWallet(Wallet) or directly with Wallet.setTransactionBroadcaster(TransactionBroadcaster).
+
+
sendCoinsOffline(SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sends coins to the given address but does not broadcast the resulting pending transaction.
+
+
SendHeadersMessage - Class in org.bitcoinj.core
+
+
+ A new message, "sendheaders", which indicates that a node prefers to receive new block announcements via a "headers" + message rather than an "inv".
+
+
SendHeadersMessage() - Constructor for class org.bitcoinj.core.SendHeadersMessage
+
 
+
SendHeadersMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.SendHeadersMessage
+
 
+
sendMessage(Message) - Method in class org.bitcoinj.core.PeerSocketHandler
+
+
Sends the given message to the peer.
+
+
sendPayment(URL, Protos.Payment) - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
 
+
sendPayment(List<Transaction>, Address, String) - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Generates a Payment message and sends the payment to the merchant who sent the PaymentRequest.
+
+
SendRequest - Class in org.bitcoinj.wallet
+
+
A SendRequest gives the wallet information about precisely how to send money to a recipient or set of recipients.
+
+
SendResult(Transaction, TransactionBroadcast) - Constructor for class org.bitcoinj.wallet.Wallet.SendResult
+
 
+
SEQUENCE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
SEQUENCE_LOCKTIME_DISABLE_FLAG - Static variable in class org.bitcoinj.core.TransactionInput
+
+
BIP68: If this flag set, sequence is NOT interpreted as a relative lock-time.
+
+
SEQUENCE_LOCKTIME_MASK - Static variable in class org.bitcoinj.core.TransactionInput
+
+
BIP68: If sequence encodes a relative lock-time, this mask is applied to extract that lock-time from the sequence + field.
+
+
SEQUENCE_LOCKTIME_TYPE_FLAG - Static variable in class org.bitcoinj.core.TransactionInput
+
+
BIP68: If sequence encodes a relative lock-time and this flag is set, the relative lock-time has units of 512 + seconds, otherwise it specifies blocks with a granularity of 1.
+
+
serialize(String, byte[], OutputStream) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Writes message to to the output stream.
+
+
serialize(String, byte[], OutputStream) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Writes message to to the output stream.
+
+
serialize(Message, OutputStream) - Method in class org.bitcoinj.core.BitcoinSerializer
+
+
Writes message to to the output stream.
+
+
serialize(Message, OutputStream) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Writes message to to the output stream.
+
+
SERIALIZE_TRANSACTION_NO_WITNESS - Static variable in class org.bitcoinj.core.Transaction
+
+
When this bit is set in protocolVersion, do not include witness.
+
+
serializeCompact(ByteBuffer) - Method in class org.bitcoinj.core.StoredBlock
+
+
Serializes the stored block to a custom packed format.
+
+
SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
serializeKeyChainGroupToProtobuf() - Method in class org.bitcoinj.wallet.Wallet
+
+
Internal use only.
+
+
serializeMyselfToProtobuf() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
serializePrivate(NetworkParameters) - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deprecated.
+
+
serializePrivB58(NetworkParameters) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
serializePrivB58(NetworkParameters, Script.ScriptType) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
serializePubB58(NetworkParameters) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
serializePubB58(NetworkParameters, Script.ScriptType) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
serializePublic(NetworkParameters) - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
Deprecated.
+
+
serializer - Variable in class org.bitcoinj.core.Message
+
 
+
serializeToProtobuf() - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
serializeToProtobuf() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
serializeToProtobuf() - Method in interface org.bitcoinj.wallet.KeyChain
+
+
Returns a list of keys serialized to the bitcoinj protobuf format.
+
+
serializeToProtobuf() - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
Returns a list of key protobufs obtained by merging the chains.
+
+
serializeToProtobuf() - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
serializeToStream(OutputStream) - Method in class org.bitcoinj.core.TransactionOutputChanges
+
 
+
serializeToStream(OutputStream) - Method in class org.bitcoinj.core.UTXO
+
 
+
serializeWalletExtension() - Method in interface org.bitcoinj.wallet.WalletExtension
+
+
Returns bytes that will be saved in the wallet.
+
+
SERVICE_FLAGS_REQUIRED - Static variable in class org.bitcoinj.core.GetUTXOsMessage
+
+
Bitmask of service flags required for a node to support this command (0x3)
+
+
SERVICES_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
 
+
SERVICES_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.PeerAddress
+
 
+
setAcceptRiskyTransactions(boolean) - Method in class org.bitcoinj.wallet.Wallet
+
+
Whether or not the wallet will ignore pending transactions that fail the selected + RiskAnalysis.
+
+
setAccountPath(int, int) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The path to the root.
+
+
setAmount(long) - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ amount is integer-number-of-satoshis
+
+
setAppearedAtChainHeight(int) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
The chain height at which the transaction appeared, if it has been seen in the best chain.
+
+
setAppearedAtHeight(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the chain height at which the transaction was included.
+
+
setAutoSave(boolean) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If true, the wallet will save itself to disk automatically whenever it changes.
+
+
setAutoStop(boolean) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If true, will register a shutdown hook to stop the library.
+
+
setBitLE(byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Sets the given bit in data to one, using little endian (not the same as Java native big endian)
+
+
setBlockAppearance(StoredBlock, boolean, int) - Method in class org.bitcoinj.core.Transaction
+
+
Puts the given block in the internal set of blocks in which this transaction appears.
+
+
setBlockHash(int, ByteString) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ A list of blocks in which the transaction has been observed (on any chain).
+
+
setBlockingStartup(boolean) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If true (the default) then the startup of this service won't be considered complete until the network has been + brought up, peer connections established and the block chain synchronised.
+
+
setBlockRelativityOffsets(int, int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated int32 block_relativity_offsets = 11;
+
+
setBloomFilter(BloomFilter) - Method in class org.bitcoinj.core.Peer
+
+
Sets a Bloom filter on this connection.
+
+
setBloomFilter(BloomFilter, boolean) - Method in class org.bitcoinj.core.Peer
+
+
Sets a Bloom filter on this connection.
+
+
setBloomFilterFalsePositiveRate(double) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets the false positive rate of bloom filters given to peers.
+
+
setBloomFilterFPRate(double) - Method in class org.bitcoinj.net.FilterMerger
+
 
+
setBloomFilteringEnabled(boolean) - Method in class org.bitcoinj.core.PeerGroup
+
+
Can be used to disable Bloom filtering entirely, even in SPV mode.
+
+
setBroadcastBy(int, Protos.PeerAddress) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
setBroadcastBy(int, Protos.PeerAddress.Builder) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
repeated .wallet.PeerAddress broadcast_by = 6;
+
+
setCertificate(int, ByteString) - Method in class org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+ DER-encoded X.509 certificate chain
+
+
setChainCode(ByteString) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Random data that allows us to extend a key.
+
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.core.AbstractBlockChain
+
 
+
setChainHead(StoredBlock) - Method in interface org.bitcoinj.store.BlockStore
+
+
Sets the StoredBlock that represents the top of the chain of greatest total work.
+
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.LevelDBBlockStore
+
 
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.MemoryBlockStore
+
 
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
setChainHead(StoredBlock) - Method in class org.bitcoinj.store.SPVBlockStore
+
 
+
setCheckpoints(InputStream) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints.
+
+
setCoinValue(long) - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ This much of satoshis (1E-8 fractions)…
+
+
setConfidence(Protos.TransactionConfidence) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
setConfidence(Protos.TransactionConfidence.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Data describing where the transaction is in the chain.
+
+
setConfidenceType(TransactionConfidence.ConfidenceType) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Called by other objects in the system, like a Wallet, when new information about the confidence of a + transaction becomes available.
+
+
setConnectTimeoutMillis(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets the timeout between when a connection attempt to a peer begins and when the version message exchange + completes.
+
+
setConnectTimeoutMillis(int) - Method in class org.bitcoinj.net.BlockingClientManager
+
+
Sets the number of milliseconds to wait before giving up on a connect attempt
+
+
setCreationTimeSeconds(long) - Method in class org.bitcoinj.core.ECKey
+
+
Sets the creation time of this key.
+
+
setCreationTimeSeconds(long) - Method in class org.bitcoinj.crypto.DeterministicKey
+
+
The creation time of a deterministic key is equal to that of its parent, unless this key is the root of a tree.
+
+
setCreationTimeSeconds(long) - Method in class org.bitcoinj.script.Script
+
 
+
setCreationTimeSeconds(long) - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
setCreationTimestamp(long) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
setCreationTimestamp(long) - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
+ Timestamp stored as millis since epoch.
+
+
setData(int, ByteString) - Method in class org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
repeated bytes data = 1;
+
+
setData(ByteString) - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
required bytes data = 2;
+
+
setData(ByteString) - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required bytes data = 2;
+
+
setDepth(int) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If type == BUILDING then this is the depth of the transaction in the blockchain.
+
+
setDepthInBlocks(int) - Method in class org.bitcoinj.core.TransactionConfidence
+
 
+
setDescription(String) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
setDescription(String) - Method in class org.bitcoinj.wallet.Wallet
+
+
Set the description of the wallet.
+
+
setDescriptionBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ A UTF8 encoded text description of the wallet that is intended for end user provided text.
+
+
setDeterministicKey(Protos.DeterministicKey) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
setDeterministicKey(Protos.DeterministicKey.Builder) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
optional .wallet.DeterministicKey deterministic_key = 7;
+
+
setDeterministicSeed(ByteString) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The seed for a deterministic key hierarchy.
+
+
setDifficultyTarget(long) - Method in class org.bitcoinj.core.Block
+
+
Sets the difficulty target in compact form.
+
+
setDiscovery(PeerDiscovery) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Sets the peer discovery class to use.
+
+
setDownloadData(boolean) - Method in class org.bitcoinj.core.Peer
+
+
If set to false, the peer won't try and fetch blocks and transactions it hears about.
+
+
setDownloadListener(DownloadProgressTracker) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
If you want to learn about the sync process, you can provide a listener here.
+
+
setDownloadParameters(long, boolean) - Method in class org.bitcoinj.core.Peer
+
+
When downloading the block chain, the bodies will be skipped for blocks created before the given date.
+
+
setDownloadTxDependencies(boolean) - Method in class org.bitcoinj.core.Peer
+
+
Sets if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet.
+
+
setDownloadTxDependencies(int) - Method in class org.bitcoinj.core.Peer
+
+
Sets if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet.
+
+
setDownloadTxDependencies(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Configure download of pending transaction dependencies.
+
+
setDropPeersAfterBroadcast(boolean) - Method in class org.bitcoinj.core.TransactionBroadcast
+
 
+
setEncryptedData(Protos.EncryptedData) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
setEncryptedData(Protos.EncryptedData.Builder) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ If the secret data is encrypted, then secret_bytes is missing and this field is set.
+
+
setEncryptedDeterministicSeed(Protos.EncryptedData) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
setEncryptedDeterministicSeed(Protos.EncryptedData.Builder) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Encrypted version of the seed
+
+
setEncryptedPrivateKey(ByteString) - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The encrypted private key
+
+
setEncryptionParameters(Protos.ScryptParameters) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
setEncryptionParameters(Protos.ScryptParameters.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.ScryptParameters encryption_parameters = 6;
+
+
setEncryptionType(Protos.Wallet.EncryptionType) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
+
+
setExchangeRate(ExchangeRate) - Method in class org.bitcoinj.core.Transaction
+
+
Setter for Transaction.exchangeRate.
+
+
setExchangeRate(Protos.ExchangeRate) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
setExchangeRate(Protos.ExchangeRate.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Exchange rate that was valid when the transaction was sent.
+
+
setExpires(long) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when this request should be considered invalid
+
+
setExtension(int, Protos.Extension) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
setExtension(int, Protos.Extension.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Extension extension = 10;
+
+
setFastCatchupTimeSecs(long) - Method in class org.bitcoinj.core.PeerGroup
+
+
Tells the PeerGroup to download only block headers before a certain time and bodies after that.
+
+
setFeePerVkb(Coin) - Method in class org.bitcoinj.wallet.SendRequest
+
 
+
setFiatCurrencyCode(String) - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
setFiatCurrencyCodeBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ ISO 4217 currency code (if available) of the fiat currency.
+
+
setFiatValue(long) - Method in class org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+ …is worth this much of fiat (1E-4 fractions).
+
+
setHash(ByteString) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
required bytes hash = 2;
+
+
setId(String) - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
setIdBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ like org.whatever.foo.bar
+
+
setIndex(long) - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
setInitialisationVector(ByteString) - Method in class org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+ The initialisation vector for the AES encryption (16 bytes)
+
+
setIpAddress(ByteString) - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required bytes ip_address = 1;
+
+
setIpAddress(String) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
setIpAddressBytes(ByteString) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required string ip_address = 1;
+
+
setIsFollowing(boolean) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ + Flag indicating that this key is a root of a following chain.
+
+
setIssuedSubkeys(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
+
+
setKey(int, Protos.Key) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
setKey(int, Protos.Key.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Key key = 3;
+
+
setKeyChainFactory(KeyChainFactory) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
setKeyRotationTime(long) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ UNIX time in seconds since the epoch.
+
+
setKeyRotationTime(long) - Method in class org.bitcoinj.wallet.Wallet
+
+
+ When a key rotation time is set, any money controlled by keys created before the given timestamp T will be + respent to any key that was created after T.
+
+
setKeyRotationTime(Date) - Method in class org.bitcoinj.wallet.Wallet
+
+
+ When a key rotation time is set, any money controlled by keys created before the given timestamp T will be + respent to any key that was created after T.
+
+
setLabel(String) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
setLabelBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ User-provided label associated with the key.
+
+
setLastBlockSeenHash(Sha256Hash) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
setLastBlockSeenHeight(int) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
setLastBlockSeenTimeSecs(long) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
setLastBroadcastedAt(long) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ Millis since epoch the transaction was last announced to us.
+
+
setLastBroadcastedAt(Date) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Set the time the transaction was last announced to us.
+
+
setLastSeenBlockHash(ByteString) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The SHA256 hash of the head of the best chain seen by this wallet.
+
+
setLastSeenBlockHeight(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The height in the chain of the last seen block.
+
+
setLastSeenBlockTimeSecs(long) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
optional int64 last_seen_block_time_secs = 14;
+
+
setListener(WalletFiles.Listener) - Method in class org.bitcoinj.wallet.WalletFiles
+
+
The given listener will be called on the autosave thread before and after the wallet is saved to disk.
+
+
setLockTime(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ The nLockTime field is useful for contracts.
+
+
setLockTime(long) - Method in class org.bitcoinj.core.Transaction
+
+
Transactions can have an associated lock time, specified either as a block height or in seconds since the + UNIX epoch.
+
+
setLookaheadSize(int) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Sets a new lookahead size.
+
+
setLookaheadSize(int) - Method in class org.bitcoinj.wallet.MarriedKeyChain
+
 
+
setLookaheadSize(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
optional uint32 lookahead_size = 4;
+
+
setLookaheadThreshold(int) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
Sets the threshold for the key pre-generation.
+
+
setMandatory(boolean) - Method in class org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+ If we do not understand a mandatory extension, abort to prevent data loss.
+
+
setMatchAll() - Method in class org.bitcoinj.core.BloomFilter
+
+
Sets this filter to match all objects.
+
+
setMaxConnections(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Adjusts the desired number of connections that we will create to peers.
+
+
setMaxPeersToDiscoverCount(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets the maximum number of Peers to discover.
+
+
setMemo(String) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
setMemo(String) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
setMemo(String) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
setMemo(String) - Method in class org.bitcoinj.core.Transaction
+
+
Set the transaction Transaction.memo.
+
+
setMemo(String) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
setMemoBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Human-readable message for the merchant
+
+
setMemoBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ human-readable message for customer
+
+
setMemoBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Human-readable description of request for the customer
+
+
setMemoBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ Memo of the transaction.
+
+
setMerchantData(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ From PaymentDetails.merchant_data
+
+
setMerchantData(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Arbitrary data to include in the Payment message
+
+
setMinBroadcastConnections(int) - Method in class org.bitcoinj.core.PeerGroup
+
+ +
+
setMinConnections(int) - Method in class org.bitcoinj.core.TransactionBroadcast
+
 
+
setMinProtocolVersion(int) - Method in class org.bitcoinj.core.Peer
+
+
The minimum P2P protocol version that is accepted.
+
+
setMinRequiredProtocolVersion(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
If a peer is connected to that claims to speak a protocol version lower than the given version, it will + be disconnected and another one will be tried instead.
+
+
setMockClock() - Static method in class org.bitcoinj.core.Utils
+
+
Sets the mock clock to the current time.
+
+
setMockClock(long) - Static method in class org.bitcoinj.core.Utils
+
+
Sets the mock clock to the given time (in seconds).
+
+
setN(long) - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ CPU/ memory cost parameter
+
+
setNet(String) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
setNetBytes(ByteString) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
required string net = 3;
+
+
setNetwork(String) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
setNetworkBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ "main" or "test"
+
+
setNetworkIdentifier(String) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
setNetworkIdentifierBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ the network used by this wallet
+
+
setNonce(long) - Method in class org.bitcoinj.core.Block
+
+
Sets the nonce and clears any cached data.
+
+
setOutputs(int, Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
setOutputs(int, Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Where payment should be sent
+
+
setOutputScriptType(Protos.Key.OutputScriptType) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Type of addresses (aka output scripts) to generate for receiving.
+
+
setOverridingTransaction(ByteString) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ If set, hash of the transaction that double spent this one into oblivion.
+
+
setOverridingTransaction(Transaction) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Called when the transaction becomes newly dead, that is, we learn that one of its inputs has already been spent + in such a way that the double-spending transaction takes precedence over this one.
+
+
setP(int) - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Parallelisation parameter
+
+
setParent(Message) - Method in class org.bitcoinj.core.ChildMessage
+
 
+
setPath(int, int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ The path through the key tree.
+
+
setPayment(Protos.Payment) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
setPayment(Protos.Payment.Builder) - Method in class org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+ Payment message that triggered this ACK
+
+
setPaymentDetailsVersion(int) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
optional uint32 payment_details_version = 1 [default = 1];
+
+
setPaymentUrl(String) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
setPaymentUrlBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ URL to send Payment and get PaymentACK
+
+
setPeerDiscoveryTimeoutMillis(long) - Method in class org.bitcoinj.core.PeerGroup
+
+
This is how many milliseconds we wait for peer discoveries to return their results.
+
+
setPeerNodes(PeerAddress...) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Will only connect to the given addresses.
+
+
setPeerSeeds(ByteString) - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes peer_seeds = 1;
+
+
setPingIntervalMsec(long) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets the period between pings for an individual peer.
+
+
setPkiData(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ depends on pki_type
+
+
setPkiType(String) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
setPkiTypeBytes(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ none / x509+sha256 / x509+sha1
+
+
setPolicy(CycleDetectingLockFactory.Policy) - Static method in class org.bitcoinj.utils.Threading
+
 
+
setPool(Protos.Transaction.Pool) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
+
+
setPort(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 port = 2;
+
+
setPort(int) - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint32 port = 2;
+
+
setProgram(ByteString) - Method in class org.bitcoinj.wallet.Protos.Script.Builder
+
+
required bytes program = 1;
+
+
setProgressCallback(TransactionBroadcast.ProgressCallback) - Method in class org.bitcoinj.core.TransactionBroadcast
+
+
Sets the given callback for receiving progress values, which will run on the user thread.
+
+
setProgressCallback(TransactionBroadcast.ProgressCallback, Executor) - Method in class org.bitcoinj.core.TransactionBroadcast
+
+
Sets the given callback for receiving progress values, which will run on the given executor.
+
+
setPubkey(ByteString) - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes pubkey = 3;
+
+
setPublicKey(ByteString) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ The public EC key derived from the private key.
+
+
setPurpose(Transaction.Purpose) - Method in class org.bitcoinj.core.Transaction
+
+
Marks the transaction as being created for the given purpose.
+
+
setPurpose(Protos.Transaction.Purpose) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
+
+
setPush(int, byte[]) - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
setR(int) - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Block size parameter
+
+
setRefundTo(int, Protos.Output) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
setRefundTo(int, Protos.Output.Builder) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Where to send refunds, if a refund is necessary
+
+
setRequireAllExtensionsKnown(boolean) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
If this property is set to true, the wallet will fail to load if any found extensions are unknown..
+
+
setRequiredServices(long) - Method in class org.bitcoinj.core.PeerGroup
+
+
Convenience for connecting only to peers that can serve specific services.
+
+
setRequireMandatoryExtensions(boolean) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
If this property is set to false, then unknown mandatory extensions will be ignored instead of causing load + errors.
+
+
setRiskAnalyzer(RiskAnalysis.Analyzer) - Method in class org.bitcoinj.wallet.Wallet
+
+
Sets the RiskAnalysis implementation to use for deciding whether received pending transactions are risky + or not.
+
+
setRunScripts(boolean) - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
+
Whether or not to run scripts whilst accepting blocks (i.e.
+
+
setSalt(ByteString) - Method in class org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+ Salt to use in generation of the wallet password (8 bytes)
+
+
setScript(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+ usually one of the standard Script forms
+
+
setScriptBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Script that contains the signatures/pubkeys.
+
+
setScriptBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ script of transaction output
+
+
setScriptSig(Script) - Method in class org.bitcoinj.core.TransactionInput
+
+
Set the given program as the scriptSig that is supposed to satisfy the connected output script.
+
+
setSecretBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
+ Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
+
+
setSeed(int, PeerSeedProtos.PeerSeedData) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
setSeed(int, PeerSeedProtos.PeerSeedData.Builder) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
+
+
setSequence(int) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Sequence number.
+
+
setSequenceNumber(long) - Method in class org.bitcoinj.core.TransactionInput
+
+
Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the + transaction independently of each other.
+
+
setSerializedPaymentDetails(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ PaymentDetails
+
+
setSerializer(MessageSerializer) - Method in class org.bitcoinj.core.Message
+
+
Overrides the message serializer.
+
+
setServices(int) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
required uint32 services = 3;
+
+
setServices(long) - Method in class org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
required uint64 services = 3;
+
+
setSignature(ByteString) - Method in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
required bytes signature = 2;
+
+
setSignature(ByteString) - Method in class org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+ pki-dependent signature
+
+
setSigsRequiredToSpend(int) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
+
The number of signatures required to spend coins received by this keychain.
+
+
setSigsRequiredToSpend(int) - Method in class org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+ Number of signatures required to spend.
+
+
setSocketTimeout(int) - Method in class org.bitcoinj.net.AbstractTimeoutHandler
+
+
Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no + messages are received for this long
+
+
setSource(TransactionConfidence.Source) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
The source of a transaction tries to identify where it came from originally.
+
+
setSource(Protos.TransactionConfidence.Source) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
optional .wallet.TransactionConfidence.Source source = 7;
+
+
setSpentByTransactionHash(ByteString) - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the hash of the transaction doing the spend.
+
+
setSpentByTransactionIndex(int) - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+ If spent, the index of the transaction input of the transaction doing the spend.
+
+
setStallThreshold(int, int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Configures the stall speed: the speed at which a peer is considered to be serving us the block chain + unacceptably slowly.
+
+
setTag(String) - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
setTag(String, ByteString) - Method in class org.bitcoinj.utils.BaseTaggableObject
+
 
+
setTag(String, ByteString) - Method in interface org.bitcoinj.utils.TaggableObject
+
+
Associates the given immutable byte array with the string tag.
+
+
setTag(String, ByteString) - Method in class org.bitcoinj.wallet.Wallet
+
 
+
setTagBytes(ByteString) - Method in class org.bitcoinj.wallet.Protos.Tag.Builder
+
+
required string tag = 1;
+
+
setTags(int, Protos.Tag) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
setTags(int, Protos.Tag.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Tag tags = 16;
+
+
setTime(long) - Method in class org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+ Timestamp; when payment request created
+
+
setTime(long) - Method in class org.bitcoinj.core.Block
+
 
+
setTimeoutEnabled(boolean) - Method in class org.bitcoinj.net.AbstractTimeoutHandler
+
+
Enables or disables the timeout entirely.
+
+
setTimestamp(long) - Method in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
+ seconds since UNIX epoch
+
+
setTransaction(int, Protos.Transaction) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
setTransaction(int, Protos.Transaction.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Transaction transaction = 4;
+
+
setTransactionBroadcaster(TransactionBroadcaster) - Method in class org.bitcoinj.wallet.Wallet
+
+
Specifies that the given TransactionBroadcaster, typically a PeerGroup, should be used for + sending transactions to the Bitcoin network by default.
+
+
setTransactionInput(int, Protos.TransactionInput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
setTransactionInput(int, Protos.TransactionInput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionInput transaction_input = 6;
+
+
setTransactionOutPointHash(ByteString) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Hash of the transaction this input is using.
+
+
setTransactionOutPointIndex(int) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Index of transaction output used by this input.
+
+
setTransactionOutput(int, Protos.TransactionOutput) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
setTransactionOutput(int, Protos.TransactionOutput.Builder) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
repeated .wallet.TransactionOutput transaction_output = 7;
+
+
setTransactions(int, ByteString) - Method in class org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+ Signed transactions that satisfy PaymentDetails.outputs
+
+
setType(Protos.Key.Type) - Method in class org.bitcoinj.wallet.Protos.Key.Builder
+
+
required .wallet.Key.Type type = 1;
+
+
setType(Protos.TransactionConfidence.Type) - Method in class org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+ This is optional in case we add confidence types to prevent parse errors - backwards compatible.
+
+
setupAutoSave(Wallet) - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
setUpdatedAt(long) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ millis since epoch the transaction was last updated
+
+
setUpdateTime(Date) - Method in class org.bitcoinj.core.Transaction
+
 
+
setUseLocalhostPeerWhenPossible(boolean) - Method in class org.bitcoinj.core.PeerGroup
+
+
When true (the default), PeerGroup will attempt to connect to a Bitcoin node running on localhost before + attempting to use the P2P network.
+
+
setUserAgent(String, String) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets information that identifies this software to remote nodes.
+
+
setUserAgent(String, String) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Sets the string that will appear in the subver field of the version message.
+
+
setUserAgent(String, String, String) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets information that identifies this software to remote nodes.
+
+
setUTXOProvider(UTXOProvider) - Method in class org.bitcoinj.wallet.Wallet
+
+
Set the UTXOProvider.
+
+
setValue(long) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ Value of connected output, if known
+
+
setValue(long) - Method in class org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
required int64 value = 1;
+
+
setValue(Coin) - Method in class org.bitcoinj.core.TransactionOutput
+
+
Sets the value of this output.
+
+
setVerifiedChainHead(StoredBlock) - Method in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
setVerifiedChainHead(StoredBlock) - Method in interface org.bitcoinj.store.FullPrunedBlockStore
+
+
Sets the StoredBlock that represents the top of the chain of greatest total work that has been + fully verified.
+
+
setVerifiedChainHead(StoredBlock) - Method in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
setVerifiedChainHead(StoredBlock) - Method in class org.bitcoinj.store.MemoryFullPrunedBlockStore
+
 
+
setVersion(int) - Method in class org.bitcoinj.core.Transaction
+
 
+
setVersion(int) - Method in class org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+ See Wallet.java for detailed description of pool semantics
+
+
setVersion(int) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+ The version number of the wallet - used to detect wallets that were produced in the future + (i.e.
+
+
setVersion(int) - Method in class org.bitcoinj.wallet.Wallet
+
+
Set the version number of the wallet.
+
+
setVersionMessage(VersionMessage) - Method in class org.bitcoinj.core.PeerGroup
+
+
Sets the VersionMessage that will be announced on newly created connections.
+
+
setWalletFactory(WalletProtobufSerializer.WalletFactory) - Method in class org.bitcoinj.kits.WalletAppKit
+
+
Sets a wallet factory which will be used when the kit creates a new wallet.
+
+
setWalletWriteBufferSize(int) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Change buffer size for writing wallet to output stream.
+
+
setWatchedScript(int, Protos.Script) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
setWatchedScript(int, Protos.Script.Builder) - Method in class org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
repeated .wallet.Script watched_script = 15;
+
+
setWitness(TransactionWitness) - Method in class org.bitcoinj.core.TransactionInput
+
+
Set the transaction witness of an input.
+
+
setWitness(Protos.ScriptWitness) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
setWitness(Protos.ScriptWitness.Builder) - Method in class org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+ script witness
+
+
setWriteTarget(MessageWriteTarget) - Method in class org.bitcoinj.core.PeerSocketHandler
+
+
Sets the MessageWriteTarget used to write messages to the peer.
+
+
setWriteTarget(MessageWriteTarget) - Method in interface org.bitcoinj.net.StreamConnection
+
+
Called when this connection is attached to an upstream write target (ie a low-level connection handler).
+
+
Sha256Hash - Class in org.bitcoinj.core
+
+
A Sha256Hash wraps a byte[] so that Sha256Hash.equals(java.lang.Object) and Sha256Hash.hashCode() work correctly, allowing it to be used as a key in a + map.
+
+
sha256hash160(byte[]) - Static method in class org.bitcoinj.core.Utils
+
+
Calculates RIPEMD160(SHA256(input)).
+
+
shift(int) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Set number of digits to shift the decimal separator to the right, coming from the standard BTC notation that was + common pre-2014.
+
+
shiftLeft(int) - Method in class org.bitcoinj.core.Coin
+
 
+
shiftRight(int) - Method in class org.bitcoinj.core.Coin
+
 
+
SHORTEST_POSSIBLE_PUSHDATA - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
shouldSelect(Transaction) - Method in class org.bitcoinj.wallet.AllowUnconfirmedCoinSelector
+
 
+
shouldSelect(Transaction) - Method in class org.bitcoinj.wallet.DefaultCoinSelector
+
+
Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
+
+
shouldVerifyTransactions() - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
Whether or not we are maintaining a set of unspent outputs and are verifying all transactions.
+
+
shouldVerifyTransactions() - Method in class org.bitcoinj.core.BlockChain
+
 
+
shouldVerifyTransactions() - Method in class org.bitcoinj.core.FullPrunedBlockChain
+
 
+
shuffleOutputs - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If true (the default), the outputs will be shuffled during completion to randomize the location of the change + output, if any.
+
+
shuffleOutputs() - Method in class org.bitcoinj.core.Transaction
+
+
Randomly re-orders the transaction outputs: good for privacy
+
+
shutdown() - Method in class org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
+
 
+
shutdown() - Method in class org.bitcoinj.net.discovery.HttpDiscovery
+
 
+
shutdown() - Method in class org.bitcoinj.net.discovery.MultiplexingDiscovery
+
 
+
shutdown() - Method in interface org.bitcoinj.net.discovery.PeerDiscovery
+
+
Stops any discovery in progress when we want to shut down quickly.
+
+
shutdown() - Method in class org.bitcoinj.net.discovery.SeedPeers
+
 
+
shutDown() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
shutDown() - Method in class org.bitcoinj.net.BlockingClientManager
+
 
+
shutdownAndWait() - Method in class org.bitcoinj.wallet.WalletFiles
+
+
Shut down auto-saving.
+
+
shutdownAutosaveAndWait() - Method in class org.bitcoinj.wallet.Wallet
+
+
+ Disables auto-saving, after it had been enabled with + Wallet.autosaveToFile(File, long, TimeUnit, WalletFiles.Listener) + before.
+
+
SIDE_CHAIN - Enum constant in enum class org.bitcoinj.core.AbstractBlockChain.NewBlockType
+
+
New block is on a side chain
+
+
sig - Variable in class org.bitcoinj.signers.CustomTransactionSigner.SignatureAndKey
+
 
+
SIG_SIZE - Static variable in class org.bitcoinj.script.Script
+
 
+
SIGHASH_ANYONECANPAY_VALUE - Static variable in class org.bitcoinj.core.Transaction
+
+
Deprecated. +
Instead use SigHash.ANYONECANPAY.value or SigHash.ANYONECANPAY.byteValue() as appropriate.
+
+
+
sighashFlags - Variable in class org.bitcoinj.crypto.TransactionSignature
+
+
A byte that controls which parts of a transaction are signed.
+
+
sigHashMode() - Method in class org.bitcoinj.crypto.TransactionSignature
+
 
+
sign(byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
libsecp256k1 Create an ECDSA signature.
+
+
sign(Sha256Hash) - Method in class org.bitcoinj.core.ECKey
+
+
Signs the given hash and returns the R and S components as BigIntegers.
+
+
sign(Sha256Hash, KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Signs the given hash and returns the R and S components as BigIntegers.
+
+
sign(Sha256Hash, KeyParameter) - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
SIGNATURE_CANONICAL_ENCODING - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
SIGNATURE_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
 
+
SIGNATURE_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentRequest
+
 
+
SignatureAndKey(ECKey.ECDSASignature, ECKey) - Constructor for class org.bitcoinj.signers.CustomTransactionSigner.SignatureAndKey
+
 
+
SignatureDecodeException - Exception in org.bitcoinj.core
+
 
+
SignatureDecodeException() - Constructor for exception org.bitcoinj.core.SignatureDecodeException
+
 
+
SignatureDecodeException(String) - Constructor for exception org.bitcoinj.core.SignatureDecodeException
+
 
+
SignatureDecodeException(String, Throwable) - Constructor for exception org.bitcoinj.core.SignatureDecodeException
+
 
+
SignatureDecodeException(Throwable) - Constructor for exception org.bitcoinj.core.SignatureDecodeException
+
 
+
signedMessageToKey(String, String) - Static method in class org.bitcoinj.core.ECKey
+
+
Given an arbitrary piece of text and a Bitcoin-format message signature encoded in base64, returns an ECKey + containing the public key that was used to sign it.
+
+
signInputs - Variable in class org.bitcoinj.wallet.SendRequest
+
+
If true (the default), the inputs will be signed.
+
+
signInputs(TransactionSigner.ProposedTransaction, KeyBag) - Method in class org.bitcoinj.signers.CustomTransactionSigner
+
 
+
signInputs(TransactionSigner.ProposedTransaction, KeyBag) - Method in class org.bitcoinj.signers.LocalTransactionSigner
+
 
+
signInputs(TransactionSigner.ProposedTransaction, KeyBag) - Method in class org.bitcoinj.signers.MissingSigResolutionSigner
+
 
+
signInputs(TransactionSigner.ProposedTransaction, KeyBag) - Method in interface org.bitcoinj.signers.TransactionSigner
+
+
Signs given transaction's inputs.
+
+
signMessage(String) - Method in class org.bitcoinj.core.ECKey
+
+
Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
+
+
signMessage(String, KeyParameter) - Method in class org.bitcoinj.core.ECKey
+
+
Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
+
+
signPaymentRequest(Protos.PaymentRequest.Builder, X509Certificate[], PrivateKey) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Sign the provided payment request.
+
+
signTransaction(SendRequest) - Method in class org.bitcoinj.wallet.Wallet
+
+
Given a send request containing transaction, attempts to sign it's inputs.
+
+
signum() - Method in class org.bitcoinj.core.Coin
+
 
+
signum() - Method in interface org.bitcoinj.core.Monetary
+
 
+
signum() - Method in class org.bitcoinj.utils.Fiat
+
 
+
SIGPUSHONLY - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
sigsRequiredToSpend - Variable in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
SIGSREQUIREDTOSPEND_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.DeterministicKey
+
 
+
SINGLE - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
size - Variable in class org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
 
+
size() - Method in class org.bitcoinj.core.BlockLocator
+
+
Returns the number of hashes in this block locator.
+
+
size() - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Returns the current size of the buffer.
+
+
size() - Method in class org.bitcoinj.crypto.HDPath
+
 
+
size() - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
size() - Method in class org.bitcoinj.utils.VersionTally
+
+
Get the size of the version window.
+
+
sizeOf(long) - Static method in class org.bitcoinj.core.VarInt
+
+
Returns the minimum encoded size of the given unsigned long value.
+
+
SMALLEST_UNIT_EXPONENT - Static variable in class org.bitcoinj.core.Coin
+
+
Number of decimals for one Bitcoin.
+
+
SMALLEST_UNIT_EXPONENT - Static variable in class org.bitcoinj.utils.Fiat
+
+
The absolute value of exponent of the value of a "smallest unit" in scientific notation.
+
+
smallestUnitExponent() - Method in class org.bitcoinj.core.Coin
+
 
+
smallestUnitExponent() - Method in interface org.bitcoinj.core.Monetary
+
+
Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation.
+
+
smallestUnitExponent() - Method in class org.bitcoinj.utils.Fiat
+
 
+
smallNum(int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number as a OP_N opcode to the end of the program.
+
+
smallNum(int, int) - Method in class org.bitcoinj.script.ScriptBuilder
+
+
Adds the given number as a OP_N opcode to the given index in the program.
+
+
solve() - Method in class org.bitcoinj.core.Block
+
+
Finds a value of nonce that makes the blocks hash lower than the difficulty target.
+
+
SORT_TX_BY_HEIGHT - Static variable in class org.bitcoinj.core.Transaction
+
+
A comparator that can be used to sort transactions by their chain height.
+
+
SORT_TX_BY_UPDATE_TIME - Static variable in class org.bitcoinj.core.Transaction
+
+
A comparator that can be used to sort transactions by their updateTime field.
+
+
SOURCE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
SOURCE_NETWORK - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We received it from a network broadcast.
+
+
SOURCE_NETWORK_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We received it from a network broadcast.
+
+
SOURCE_SELF - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We made it ourselves, so we know it should be valid.
+
+
SOURCE_SELF_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We made it ourselves, so we know it should be valid.
+
+
SOURCE_UNKNOWN - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We don't know where it came from, or this is a wallet from the future.
+
+
SOURCE_UNKNOWN_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+ We don't know where it came from, or this is a wallet from the future.
+
+
SPACE_JOINER - Static variable in class org.bitcoinj.core.Utils
+
+
Joiner for concatenating words with a space inbetween.
+
+
spend(DeterministicKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Creates a key chain that can spend from the given account key.
+
+
spendableCoinbaseDepth - Variable in class org.bitcoinj.core.NetworkParameters
+
+
The depth of blocks required for a coinbase transaction to be spendable.
+
+
spendingKey - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
spent - Variable in class org.bitcoinj.wallet.FilteringCoinSelector
+
 
+
SPENT - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In best chain, all outputs spent
+
+
SPENT - Enum constant in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
 
+
SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
SPENT_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In best chain, all outputs spent
+
+
SPVBlockStore - Class in org.bitcoinj.store
+
+
An SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer.
+
+
SPVBlockStore(NetworkParameters, File) - Constructor for class org.bitcoinj.store.SPVBlockStore
+
+
Creates and initializes an SPV block store that can hold SPVBlockStore.DEFAULT_CAPACITY block headers.
+
+
SPVBlockStore(NetworkParameters, File, int, boolean) - Constructor for class org.bitcoinj.store.SPVBlockStore
+
+
Creates and initializes an SPV block store that can hold a given amount of blocks.
+
+
STANDARD_MAX_DIFFICULTY_TARGET - Static variable in class org.bitcoinj.core.Block
+
+
Standard maximum value for difficultyTarget (nBits) (Bitcoin MainNet and TestNet)
+
+
start() - Method in class org.bitcoinj.core.PeerGroup
+
+
Does a blocking startup.
+
+
startAsync() - Method in class org.bitcoinj.core.PeerGroup
+
+
Starts the PeerGroup and begins network activity.
+
+
startBlockChainDownload() - Method in class org.bitcoinj.core.Peer
+
+
Starts an asynchronous download of the block chain.
+
+
startBlockChainDownload(PeerDataEventListener) - Method in class org.bitcoinj.core.PeerGroup
+
+
Start downloading the blockchain.
+
+
startDownload(int) - Method in class org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
Called when download is initiated.
+
+
startFilteredBlock(FilteredBlock) - Method in class org.bitcoinj.core.Peer
+
 
+
startUp() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
startUp() - Method in class org.bitcoinj.net.BlockingClientManager
+
 
+
stop() - Method in class org.bitcoinj.core.PeerGroup
+
+
Does a blocking stop
+
+
stopAsync() - Method in class org.bitcoinj.core.PeerGroup
+
 
+
stopHash - Variable in class org.bitcoinj.core.GetBlocksMessage
+
 
+
store() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
StoredBlock - Class in org.bitcoinj.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 org.bitcoinj.core.StoredBlock
+
+
Create a StoredBlock from a (header-only) Block, chain work value, and block height
+
+
StoredBlockAndWasUndoableFlag(StoredBlock, boolean) - Constructor for class org.bitcoinj.store.MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag
+
 
+
StoredUndoableBlock - Class in org.bitcoinj.core
+
+
Contains minimal data necessary to disconnect/connect the transactions + in the stored block at will.
+
+
StoredUndoableBlock(Sha256Hash, List<Transaction>) - Constructor for class org.bitcoinj.core.StoredUndoableBlock
+
 
+
StoredUndoableBlock(Sha256Hash, TransactionOutputChanges) - Constructor for class org.bitcoinj.core.StoredUndoableBlock
+
 
+
StreamConnection - Interface in org.bitcoinj.net
+
+
A generic handler which is used in NioServer, NioClient and BlockingClient to handle incoming + data streams.
+
+
StreamConnectionFactory - Interface in org.bitcoinj.net
+
+
A factory which generates new StreamConnections when a new connection is opened.
+
+
STRICTENC - Enum constant in enum class org.bitcoinj.script.Script.VerifyFlag
+
 
+
structure - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
style(BtcAutoFormat.Style) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify the new BtcFormat is to be automatically-denominating.
+
+
subsidyDecreaseBlockCount - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
subtract(Coin) - Method in class org.bitcoinj.core.Coin
+
 
+
subtract(Fiat) - Method in class org.bitcoinj.utils.Fiat
+
 
+
subtract(ECPoint) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
subVer - Variable in class org.bitcoinj.core.VersionMessage
+
+
User-Agent as defined in BIP 14.
+
+
SUCCESS - Enum constant in enum class org.bitcoinj.core.TransactionInput.ConnectionResult
+
 
+
symbol() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Return the currency symbol that identifies the units in which values formatted by this + instance are denominated.
+
+
symbol(String) - Method in class org.bitcoinj.utils.BtcFormat.Builder
+
+
Specify a currency symbol to be used in the denomination-unit indicators + of formatted values.
+
+
SYMBOL - Enum constant in enum class org.bitcoinj.utils.BtcAutoFormat.Style
+
+
Constant for the formatting style that uses a currency symbol, e.g., "฿".
+
+
SYMBOL_BTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency symbol for base 1 Bitcoin.
+
+
SYMBOL_MBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency symbol for base 1/1000 Bitcoin.
+
+
SYMBOL_SAT - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency symbol for base 1 satoshi.
+
+
SYMBOL_UBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Currency symbol for base 1/1000000 Bitcoin.
+
+
symbols() - Method in class org.bitcoinj.utils.BtcFormat
+
+
Return a copy of the localized symbols used by this instance for formatting and parsing.
+
+
+

T

+
+
TAG_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Tag
+
 
+
TaggableObject - Interface in org.bitcoinj.utils
+
+
An object that can carry around and possibly serialize a map of strings to immutable byte arrays.
+
+
tags - Variable in class org.bitcoinj.utils.BaseTaggableObject
+
 
+
TAGS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
target - Variable in class org.bitcoinj.wallet.DecryptingKeyBag
+
 
+
TARGET_SPACING - Static variable in class org.bitcoinj.core.NetworkParameters
+
 
+
TARGET_TIMESPAN - Static variable in class org.bitcoinj.core.NetworkParameters
+
 
+
targetTimespan - Variable in class org.bitcoinj.core.NetworkParameters
+
 
+
TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE - Static variable in class org.bitcoinj.params.TestNet3Params
+
 
+
TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE - Static variable in class org.bitcoinj.params.UnitTestParams
+
 
+
TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED - Static variable in class org.bitcoinj.params.TestNet3Params
+
 
+
TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED - Static variable in class org.bitcoinj.params.UnitTestParams
+
 
+
TESTNET_MAJORITY_WINDOW - Static variable in class org.bitcoinj.params.TestNet3Params
+
 
+
TestNet3Params - Class in org.bitcoinj.params
+
+
Parameters for the testnet, a separate public instance of Bitcoin that has relaxed rules suitable for development + and testing of applications and new Bitcoin versions.
+
+
TestNet3Params() - Constructor for class org.bitcoinj.params.TestNet3Params
+
 
+
THREAD_POOL - Static variable in class org.bitcoinj.utils.Threading
+
+
A caching thread pool that creates daemon threads, which won't keep the JVM alive waiting for more work.
+
+
Threading - Class in org.bitcoinj.utils
+
+
Various threading related utilities.
+
+
Threading() - Constructor for class org.bitcoinj.utils.Threading
+
 
+
Threading.UserThread - Class in org.bitcoinj.utils
+
 
+
threeTimes() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
threshold(int) - Method in class org.bitcoinj.wallet.MarriedKeyChain.Builder
+
+
Threshold, or (followingKeys.size() + 1) / 2 + 1) (majority) if unspecified.
+
+
THROW - Enum constant in enum class org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
If signature is missing, TransactionSigner.MissingSignatureException + will be thrown for P2SH and ECKey.MissingPrivateKeyException for other tx types.
+
+
throwOnLockCycles() - Static method in class org.bitcoinj.utils.Threading
+
 
+
time - Variable in class org.bitcoinj.core.VersionMessage
+
+
What the other side believes the current time to be, in seconds.
+
+
TIME_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.PaymentDetails
+
 
+
timeoutOccurred() - Method in class org.bitcoinj.core.Peer
+
 
+
timeoutOccurred() - Method in class org.bitcoinj.core.PeerSocketHandler
+
 
+
timeoutOccurred() - Method in class org.bitcoinj.net.AbstractTimeoutHandler
+
 
+
times(int) - Method in class org.bitcoinj.core.Coin
+
+
Alias for multiply
+
+
times(long) - Method in class org.bitcoinj.core.Coin
+
+
Alias for multiply
+
+
timesPow2(int) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
TIMESTAMP_FIELD_NUMBER - Static variable in class org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
 
+
to(Address, Coin) - Static method in class org.bitcoinj.wallet.SendRequest
+
+
Creates a new SendRequest to the given address for the given value.
+
+
to(NetworkParameters, ECKey, Coin) - Static method in class org.bitcoinj.wallet.SendRequest
+
+
Creates a new SendRequest to the given pubkey for the given value.
+
+
toASN1() - Method in class org.bitcoinj.core.ECKey
+
+
Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by Bitcoin Core + in its wallet storage format.
+
+
toBase58() - Method in class org.bitcoinj.core.DumpedPrivateKey
+
+
Returns the base58-encoded textual form, including version and checksum bytes.
+
+
toBase58() - Method in class org.bitcoinj.core.LegacyAddress
+
+
Returns the base58-encoded textual form, including version and checksum bytes.
+
+
toBase58() - Method in class org.bitcoinj.crypto.BIP38PrivateKey
+
+
Returns the base58-encoded textual form, including version and checksum bytes.
+
+
toBech32() - Method in class org.bitcoinj.core.SegwitAddress
+
+
Returns the textual form of the address.
+
+
toBigInteger() - Method in class org.bitcoinj.core.Sha256Hash
+
+
Returns the bytes interpreted as a positive integer.
+
+
toBtc() - Method in class org.bitcoinj.core.Coin
+
+
Convert to number of bitcoin (in BTC)
+
+
toByteArray() - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Creates a newly allocated byte array.
+
+
toByteArray() - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
toCanonicalised() - Method in class org.bitcoinj.core.ECKey.ECDSASignature
+
+
Will automatically adjust the S component to be less than or equal to half the curve order, if necessary.
+
+
toCanonicalised() - Method in class org.bitcoinj.crypto.TransactionSignature
+
 
+
toDecrypted(CharSequence) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
toDecrypted(CharSequence) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toDecrypted(CharSequence) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
+
Decrypts the key chain with the given password.
+
+
toDecrypted(KeyParameter) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
toDecrypted(KeyParameter) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toDecrypted(KeyParameter) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
+
Decrypt the key chain with the given AES key and whatever KeyCrypter is already set.
+
+
toEncrypted(CharSequence) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Convenience wrapper around BasicKeyChain.toEncrypted(KeyCrypter, org.bouncycastle.crypto.params.KeyParameter) which uses the default Scrypt key derivation algorithm and + parameters, derives a key from the given password and returns the created key.
+
+
toEncrypted(CharSequence) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toEncrypted(CharSequence) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
+
Takes the given password, which should be strong, derives a key from it and then invokes + EncryptableKeyChain.toEncrypted(KeyCrypter, KeyParameter) with + KeyCrypterScrypt as the crypter.
+
+
toEncrypted(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
+
Encrypt the wallet using the KeyCrypter and the AES key.
+
+
toEncrypted(KeyCrypter, KeyParameter) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toEncrypted(KeyCrypter, KeyParameter) - Method in interface org.bitcoinj.wallet.EncryptableKeyChain
+
+
Returns a new keychain holding identical/cloned keys to this chain, but encrypted under the given key.
+
+
toEntropy(List<String>) - Method in class org.bitcoinj.crypto.MnemonicCode
+
+
Convert mnemonic word list to original entropy value.
+
+
toFriendlyString() - Method in class org.bitcoinj.core.Coin
+
+
Returns the value as a 0.12 type string.
+
+
toFriendlyString() - Method in class org.bitcoinj.utils.Fiat
+
+
Returns the value as a 0.12 type string.
+
+
toHexString() - Method in class org.bitcoinj.core.Transaction
+
+
Serializes the transaction into the Bitcoin network format and encodes it as hex string.
+
+
toHexString() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
+
Returns the seed as hex or null if encrypted.
+
+
toMnemonic(byte[]) - Method in class org.bitcoinj.crypto.MnemonicCode
+
+
Convert entropy data to mnemonic word list.
+
+
toPlainString() - Method in class org.bitcoinj.core.Coin
+
+
+ Returns the value as a plain string denominated in BTC.
+
+
toPlainString() - Method in class org.bitcoinj.utils.Fiat
+
+
+ Returns the value as a plain string.
+
+
toSat() - Method in class org.bitcoinj.core.Coin
+
+
Convert to number of satoshis
+
+
toSeed(List<String>, String) - Static method in class org.bitcoinj.crypto.MnemonicCode
+
+
Convert mnemonic word list to seed.
+
+
toSocketAddress() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
toString() - Method in class org.bitcoinj.core.AddressV1Message
+
 
+
toString() - Method in class org.bitcoinj.core.AddressV2Message
+
 
+
toString() - Method in class org.bitcoinj.core.Block
+
+
Returns a multi-line string containing a description of the contents of + the block.
+
+
toString() - Method in class org.bitcoinj.core.BlockLocator
+
 
+
toString() - Method in class org.bitcoinj.core.BloomFilter
+
 
+
toString() - Method in class org.bitcoinj.core.Coin
+
 
+
toString() - Method in class org.bitcoinj.core.DumpedPrivateKey
+
 
+
toString() - Method in class org.bitcoinj.core.ECKey
+
 
+
toString() - Method in class org.bitcoinj.core.FeeFilterMessage
+
 
+
toString() - Method in class org.bitcoinj.core.FilteredBlock
+
 
+
toString() - Method in class org.bitcoinj.core.GetBlocksMessage
+
 
+
toString() - Method in class org.bitcoinj.core.GetHeadersMessage
+
 
+
toString() - Method in class org.bitcoinj.core.InventoryItem
+
 
+
toString() - Method in class org.bitcoinj.core.LegacyAddress
+
 
+
toString() - Method in class org.bitcoinj.core.ListMessage
+
 
+
toString() - Method in class org.bitcoinj.core.PartialMerkleTree
+
 
+
toString() - Method in class org.bitcoinj.core.Peer
+
 
+
toString() - Method in class org.bitcoinj.core.PeerAddress
+
 
+
toString() - Method in class org.bitcoinj.core.RejectMessage
+
+
A String representation of the relevant details of this reject message.
+
+
toString() - Method in class org.bitcoinj.core.SegwitAddress
+
 
+
toString() - Method in class org.bitcoinj.core.Sha256Hash
+
 
+
toString() - Method in class org.bitcoinj.core.StoredBlock
+
 
+
toString() - Method in class org.bitcoinj.core.StoredUndoableBlock
+
 
+
toString() - Method in class org.bitcoinj.core.Transaction
+
 
+
toString() - Method in class org.bitcoinj.core.TransactionConfidence
+
 
+
toString() - Method in class org.bitcoinj.core.TransactionInput
+
+
Returns a human readable debug string.
+
+
toString() - Method in class org.bitcoinj.core.TransactionOutPoint
+
 
+
toString() - Method in class org.bitcoinj.core.TransactionOutput
+
+
Returns a human readable debug string.
+
+
toString() - Method in class org.bitcoinj.core.TransactionWitness
+
 
+
toString() - Method in class org.bitcoinj.core.UnknownMessage
+
 
+
toString() - Method in class org.bitcoinj.core.UTXO
+
 
+
toString() - Method in class org.bitcoinj.core.UTXOsMessage
+
 
+
toString() - Method in class org.bitcoinj.core.VersionMessage
+
 
+
toString() - Method in class org.bitcoinj.crypto.BIP38PrivateKey
+
 
+
toString() - Method in class org.bitcoinj.crypto.ChildNumber
+
 
+
toString() - Method in class org.bitcoinj.crypto.DeterministicKey
+
 
+
toString() - Method in class org.bitcoinj.crypto.EncryptedData
+
 
+
toString() - Method in class org.bitcoinj.crypto.HDPath
+
 
+
toString() - Method in class org.bitcoinj.crypto.KeyCrypterScrypt
+
 
+
toString() - Method in class org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
+
 
+
toString() - Method in class org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
 
+
toString() - Method in class org.bitcoinj.script.Script
+
+
Returns the program opcodes as a string, for example "[1234] DUP HASH160", or "<empty>".
+
+
toString() - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
toString() - Method in class org.bitcoinj.uri.BitcoinURI
+
 
+
toString() - Method in class org.bitcoinj.utils.BtcAutoFormat
+
+
Return a brief description of this formatter.
+
+
toString() - Method in class org.bitcoinj.utils.BtcFixedFormat
+
+
Returns a brief description of this formatter.
+
+
toString() - Method in class org.bitcoinj.utils.ExponentialBackoff
+
 
+
toString() - Method in class org.bitcoinj.utils.Fiat
+
 
+
toString() - Method in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
toString() - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toString() - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
toString() - Method in class org.bitcoinj.wallet.RedeemData
+
 
+
toString() - Method in class org.bitcoinj.wallet.SendRequest
+
 
+
toString() - Method in class org.bitcoinj.wallet.Wallet
+
 
+
toString(boolean) - Method in class org.bitcoinj.wallet.DeterministicSeed
+
 
+
toString(boolean, boolean, boolean, AbstractBlockChain) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
toString(boolean, boolean, KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
 
+
toString(boolean, boolean, KeyParameter, boolean, boolean, AbstractBlockChain) - Method in class org.bitcoinj.wallet.Wallet
+
+
Formats the wallet as a human readable piece of text.
+
+
toString(boolean, boolean, KeyParameter, NetworkParameters) - Method in class org.bitcoinj.wallet.DeterministicKeyChain
+
 
+
toString(boolean, KeyParameter, boolean, boolean, AbstractBlockChain) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
toString(boolean, KeyParameter, NetworkParameters) - Method in class org.bitcoinj.wallet.BasicKeyChain
+
 
+
toString(List<byte[]>) - Static method in class org.bitcoinj.core.Utils
+
 
+
toString(AbstractBlockChain, CharSequence) - Method in class org.bitcoinj.core.Transaction
+
+
A human readable version of the transaction useful for debugging.
+
+
toStringServices(long) - Method in class org.bitcoinj.core.Peer
+
+
Deprecated.
+
+
toStringServices(long) - Static method in class org.bitcoinj.core.VersionMessage
+
 
+
toStringWithPrivate(KeyParameter, NetworkParameters) - Method in class org.bitcoinj.core.ECKey
+
+
Produce a string rendering of the ECKey INCLUDING the private key.
+
+
trackFailure() - Method in class org.bitcoinj.utils.ExponentialBackoff
+
+
Track a failure - multiply the back off interval by the multiplier
+
+
trackFilteredTransactions(int) - Method in class org.bitcoinj.core.AbstractBlockChain
+
+
We completed handling of a filtered block.
+
+
trackSuccess() - Method in class org.bitcoinj.utils.ExponentialBackoff
+
+
Track a success - reset back off interval to the initial value
+
+
Transaction - Class in org.bitcoinj.core
+
+
A transaction represents the movement of coins from some addresses to some other addresses.
+
+
Transaction(NetworkParameters) - Constructor for class org.bitcoinj.core.Transaction
+
 
+
Transaction(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.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 org.bitcoinj.core.Transaction
+
+
Creates a transaction by reading payload starting from offset bytes in.
+
+
Transaction(NetworkParameters, byte[], int, Message, MessageSerializer, int, byte[]) - Constructor for class org.bitcoinj.core.Transaction
+
+
Creates a transaction by reading payload starting from offset bytes in.
+
+
Transaction(NetworkParameters, byte[], Message, MessageSerializer, int) - Constructor for class org.bitcoinj.core.Transaction
+
+
Creates a transaction by reading payload.
+
+
TRANSACTION - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
TRANSACTION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
TRANSACTION_INPUT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
TRANSACTION_OUTPUT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
Transaction.Purpose - Enum Class in org.bitcoinj.core
+
+
This enum describes the underlying reason the transaction was created.
+
+
Transaction.SigHash - Enum Class in org.bitcoinj.core
+
+
These constants are a part of a scriptSig signature on the inputs.
+
+
TransactionBag - Interface in org.bitcoinj.core
+
+
This interface is used to abstract the Wallet and the Transaction
+
+
TransactionBroadcast - Class in org.bitcoinj.core
+
+
Represents a single transaction broadcast that we are performing.
+
+
TransactionBroadcast.ProgressCallback - Interface in org.bitcoinj.core
+
+
An interface for receiving progress information on the propagation of the tx, from 0.0 to 1.0
+
+
TransactionBroadcaster - Interface in org.bitcoinj.core
+
+
A general interface which declares the ability to broadcast transactions.
+
+
transactionBytesValid - Variable in class org.bitcoinj.core.Block
+
 
+
TransactionConfidence - Class in org.bitcoinj.core
+
+
A TransactionConfidence object tracks data you can use to make a confidence decision about a transaction.
+
+
TransactionConfidence(Sha256Hash) - Constructor for class org.bitcoinj.core.TransactionConfidence
+
 
+
TransactionConfidence.ConfidenceType - Enum Class in org.bitcoinj.core
+
+
Describes the state of the transaction in general terms.
+
+
TransactionConfidence.Factory - Class in org.bitcoinj.core
+
 
+
TransactionConfidence.Listener - Interface in org.bitcoinj.core
+
+
A confidence listener is informed when the level of TransactionConfidence is updated by something, like + for example a Wallet.
+
+
TransactionConfidence.Listener.ChangeReason - Enum Class in org.bitcoinj.core
+
+
An enum that describes why a transaction confidence listener is being invoked (i.e.
+
+
TransactionConfidence.Source - Enum Class in org.bitcoinj.core
+
+
Information about where the transaction was first seen (network, sent direct from peer, created by ourselves).
+
+
TransactionConfidenceEventListener - Interface in org.bitcoinj.core.listeners
+
+
Implementors are called when confidence of a transaction changes.
+
+
TransactionInput - Class in org.bitcoinj.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[]) - Constructor for class org.bitcoinj.core.TransactionInput
+
+
Creates an input that connects to nothing - used only in creation of coinbase transactions.
+
+
TransactionInput(NetworkParameters, Transaction, byte[], int) - Constructor for class org.bitcoinj.core.TransactionInput
+
+
Deserializes an input message.
+
+
TransactionInput(NetworkParameters, Transaction, byte[], int, MessageSerializer) - Constructor for class org.bitcoinj.core.TransactionInput
+
+
Deserializes an input message.
+
+
TransactionInput(NetworkParameters, Transaction, byte[], TransactionOutPoint) - Constructor for class org.bitcoinj.core.TransactionInput
+
 
+
TransactionInput(NetworkParameters, Transaction, byte[], TransactionOutPoint, Coin) - Constructor for class org.bitcoinj.core.TransactionInput
+
 
+
TransactionInput.ConnectionResult - Enum Class in org.bitcoinj.core
+
 
+
TransactionInput.ConnectMode - Enum Class in org.bitcoinj.core
+
 
+
TransactionOutPoint - Class in org.bitcoinj.core
+
+
This message is a reference or pointer to an output of a different transaction.
+
+
TransactionOutPoint(NetworkParameters, byte[], int) - Constructor for class org.bitcoinj.core.TransactionOutPoint
+
+
/** + Deserializes the message.
+
+
TransactionOutPoint(NetworkParameters, byte[], int, Message, MessageSerializer) - Constructor for class org.bitcoinj.core.TransactionOutPoint
+
+
Deserializes the message.
+
+
TransactionOutPoint(NetworkParameters, long, Sha256Hash) - Constructor for class org.bitcoinj.core.TransactionOutPoint
+
 
+
TransactionOutPoint(NetworkParameters, long, Transaction) - Constructor for class org.bitcoinj.core.TransactionOutPoint
+
 
+
TransactionOutPoint(NetworkParameters, TransactionOutput) - Constructor for class org.bitcoinj.core.TransactionOutPoint
+
 
+
TransactionOutput - Class in org.bitcoinj.core
+
+
A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value.
+
+
TransactionOutput(NetworkParameters, Transaction, byte[], int) - Constructor for class org.bitcoinj.core.TransactionOutput
+
+
Deserializes a transaction output message.
+
+
TransactionOutput(NetworkParameters, Transaction, byte[], int, MessageSerializer) - Constructor for class org.bitcoinj.core.TransactionOutput
+
+
Deserializes a transaction output message.
+
+
TransactionOutput(NetworkParameters, Transaction, Coin, byte[]) - Constructor for class org.bitcoinj.core.TransactionOutput
+
 
+
TransactionOutput(NetworkParameters, Transaction, Coin, Address) - Constructor for class org.bitcoinj.core.TransactionOutput
+
+
Creates an output that sends 'value' to the given address (public key hash).
+
+
TransactionOutput(NetworkParameters, Transaction, Coin, ECKey) - Constructor for class org.bitcoinj.core.TransactionOutput
+
+
Creates an output that sends 'value' to the given public key using a simple CHECKSIG script (no addresses).
+
+
TransactionOutputChanges - Class in org.bitcoinj.core
+
+
TransactionOutputChanges represents a delta to the set of unspent outputs.
+
+
TransactionOutputChanges(InputStream) - Constructor for class org.bitcoinj.core.TransactionOutputChanges
+
 
+
TransactionOutputChanges(List<UTXO>, List<UTXO>) - Constructor for class org.bitcoinj.core.TransactionOutputChanges
+
 
+
TransactionReceivedInBlockListener - Interface in org.bitcoinj.core.listeners
+
+
Listener interface for when we receive a new block that contains a relevant + transaction.
+
+
transactions - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
TRANSACTIONS_FIELD_NUMBER - Static variable in class org.bitcoin.protocols.payments.Protos.Payment
+
 
+
TransactionSignature - Class in org.bitcoinj.crypto
+
+
A TransactionSignature wraps an ECKey.ECDSASignature and adds methods for handling + the additional SIGHASH mode byte that is used.
+
+
TransactionSignature(BigInteger, BigInteger) - Constructor for class org.bitcoinj.crypto.TransactionSignature
+
+
Constructs a signature with the given components and SIGHASH_ALL.
+
+
TransactionSignature(BigInteger, BigInteger, int) - Constructor for class org.bitcoinj.crypto.TransactionSignature
+
+
Constructs a signature with the given components and raw sighash flag bytes (needed for rule compatibility).
+
+
TransactionSignature(ECKey.ECDSASignature, Transaction.SigHash, boolean) - Constructor for class org.bitcoinj.crypto.TransactionSignature
+
+
Constructs a transaction signature based on the ECDSA signature.
+
+
TransactionSigner - Interface in org.bitcoinj.signers
+
+
Implementations of this interface are intended to sign inputs of the given transaction.
+
+
TransactionSigner.MissingSignatureException - Exception in org.bitcoinj.signers
+
 
+
TransactionSigner.ProposedTransaction - Class in org.bitcoinj.signers
+
+
This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively + shared by transaction signers.
+
+
TransactionWitness - Class in org.bitcoinj.core
+
 
+
TransactionWitness(int) - Constructor for class org.bitcoinj.core.TransactionWitness
+
 
+
triggerShutdown() - Method in class org.bitcoinj.net.NioClientManager
+
 
+
triggerShutdown() - Method in class org.bitcoinj.net.NioServer
+
+
Invoked by the Execution service when it's time to stop.
+
+
TrustStoreLoader - Interface in org.bitcoinj.crypto
+
+
An implementation of TrustStoreLoader handles fetching a KeyStore from the operating system, a file, etc.
+
+
TrustStoreLoader.DefaultTrustStoreLoader - Class in org.bitcoinj.crypto
+
 
+
TrustStoreLoader.FileTrustStoreLoader - Class in org.bitcoinj.crypto
+
 
+
twice() - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
twiceOf(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance containing the hash of the calculated hash of the given bytes.
+
+
twiceOf(byte[], byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance containing the hash of the calculated hash of the given bytes.
+
+
twicePlus(ECPoint) - Method in class org.bitcoinj.crypto.LazyECPoint
+
 
+
tx - Variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
tx - Variable in class org.bitcoinj.wallet.SendRequest
+
+
A transaction, probably incomplete, that describes the outline of what you want to do.
+
+
tx - Variable in class org.bitcoinj.wallet.Wallet.SendResult
+
+
The Bitcoin transaction message that moves the money.
+
+
TxConfidenceTable - Class in org.bitcoinj.core
+
+
Tracks transactions that are being announced across the network.
+
+
TxConfidenceTable() - Constructor for class org.bitcoinj.core.TxConfidenceTable
+
+
Creates a table that will track at most TxConfidenceTable.MAX_SIZE entries.
+
+
TxConfidenceTable(int) - Constructor for class org.bitcoinj.core.TxConfidenceTable
+
+
Creates a table that will track at most the given number of transactions (allowing you to bound memory + usage).
+
+
txMap - Variable in class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
txOutsCreated - Variable in class org.bitcoinj.core.TransactionOutputChanges
+
 
+
txOutsSpent - Variable in class org.bitcoinj.core.TransactionOutputChanges
+
 
+
type - Variable in class org.bitcoinj.core.InventoryItem
+
 
+
TYPE - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
Occurs when the type returned by TransactionConfidence.getConfidenceType() + has changed.
+
+
TYPE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Key
+
 
+
TYPE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionConfidence
+
 
+
+

U

+
+
UBTC - Static variable in class org.bitcoinj.utils.MonetaryFormat
+
+
Standard format for the µBTC denomination.
+
+
uint16ToByteArrayLE(int, byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Write 2 bytes to the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
+
+
uint16ToByteStreamBE(int, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 2 bytes to the output stream as unsigned 16-bit integer in big endian format.
+
+
uint16ToByteStreamLE(int, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 2 bytes to the output stream as unsigned 16-bit integer in little endian format.
+
+
uint32ToByteArrayBE(long, byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
+
+
uint32ToByteArrayLE(long, byte[], int) - Static method in class org.bitcoinj.core.Utils
+
+
Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
+
+
uint32ToByteStreamBE(long, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 4 bytes to the output stream as unsigned 32-bit integer in big endian format.
+
+
uint32ToByteStreamLE(long, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 4 bytes to the output stream as unsigned 32-bit integer in little endian format.
+
+
uint64ToByteStreamLE(BigInteger, OutputStream) - Static method in class org.bitcoinj.core.Utils
+
+
Write 8 bytes to the output stream as unsigned 64-bit integer in little endian format.
+
+
unCache() - Method in class org.bitcoinj.core.Block
+
 
+
unCache() - Method in class org.bitcoinj.core.ChildMessage
+
 
+
unCache() - Method in class org.bitcoinj.core.Message
+
+
To be called before any change of internal values including any setters.
+
+
unCache() - Method in class org.bitcoinj.core.Transaction
+
 
+
uncaughtExceptionHandler - Static variable in class org.bitcoinj.utils.Threading
+
+
An exception handler that will be invoked for any exceptions that occur in the user thread, and + any unhandled exceptions that are caught whilst the framework is processing network traffic or doing other + background tasks.
+
+
UNENCRYPTED - Enum constant in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
+ All keys in the wallet are unencrypted
+
+
UNENCRYPTED_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
+ All keys in the wallet are unencrypted
+
+
UnexpectedCoinbaseInput() - Constructor for exception org.bitcoinj.core.VerificationException.UnexpectedCoinbaseInput
+
 
+
UnexpectedWitnessVersion() - Constructor for exception org.bitcoinj.core.AddressFormatException.UnexpectedWitnessVersion
+
 
+
UnexpectedWitnessVersion(String) - Constructor for exception org.bitcoinj.core.AddressFormatException.UnexpectedWitnessVersion
+
 
+
UNITNET_MAJORITY_WINDOW - Static variable in class org.bitcoinj.params.UnitTestParams
+
 
+
UnitTestParams - Class in org.bitcoinj.params
+
+
Network parameters used by the bitcoinj unit tests (and potentially your own).
+
+
UnitTestParams() - Constructor for class org.bitcoinj.params.UnitTestParams
+
 
+
UNKNOWN - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Used when the purpose of a transaction is genuinely unknown.
+
+
UNKNOWN - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
If a transaction hasn't been broadcast yet, or there's no record of it, its confidence is UNKNOWN.
+
+
UNKNOWN - Enum constant in enum class org.bitcoinj.core.TransactionConfidence.Source
+
+
We don't know where the transaction came from.
+
+
UNKNOWN - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Old wallets or the purpose genuinely is a mystery (e.g.
+
+
UNKNOWN - Enum constant in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ See TransactionConfidence.java for a more thorough explanation of these types.
+
+
UNKNOWN_LENGTH - Static variable in class org.bitcoinj.core.Message
+
 
+
UNKNOWN_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Old wallets or the purpose genuinely is a mystery (e.g.
+
+
UNKNOWN_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+ See TransactionConfidence.java for a more thorough explanation of these types.
+
+
UnknownMessage - Class in org.bitcoinj.core
+
+
Instances of this class are not safe for use by multiple threads.
+
+
UnknownMessage(NetworkParameters, String, byte[]) - Constructor for class org.bitcoinj.core.UnknownMessage
+
 
+
unmodifiableList - Variable in class org.bitcoinj.crypto.HDPath
+
 
+
UnreadableWalletException - Exception in org.bitcoinj.wallet
+
+
Thrown by the WalletProtobufSerializer when the serialized protocol buffer is either corrupted, + internally inconsistent or appears to be from the future.
+
+
UnreadableWalletException(String) - Constructor for exception org.bitcoinj.wallet.UnreadableWalletException
+
 
+
UnreadableWalletException(String, Throwable) - Constructor for exception org.bitcoinj.wallet.UnreadableWalletException
+
 
+
UnreadableWalletException.BadPassword - Exception in org.bitcoinj.wallet
+
 
+
UnreadableWalletException.FutureVersion - Exception in org.bitcoinj.wallet
+
 
+
UnreadableWalletException.WrongNetwork - Exception in org.bitcoinj.wallet
+
 
+
unregister(NetworkParameters) - Static method in class org.bitcoinj.params.Networks
+
+
Unregister a network type.
+
+
unsafeBitcoinSerialize() - Method in class org.bitcoinj.core.Message
+
+
Serialize this message to a byte array that conforms to the bitcoin wire protocol.
+
+
UnsafeByteArrayOutputStream - Class in org.bitcoinj.core
+
+
An unsynchronized implementation of ByteArrayOutputStream that will return the backing byte array if its length == size().
+
+
UnsafeByteArrayOutputStream() - Constructor for class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
 
+
UnsafeByteArrayOutputStream(int) - Constructor for class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
 
+
UNSET - Enum constant in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
UNSPENT - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In best chain, not all outputs spent
+
+
UNSPENT - Enum constant in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
 
+
UNSPENT_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+ In best chain, not all outputs spent
+
+
UPDATE_ALL - Enum constant in enum class org.bitcoinj.core.BloomFilter.BloomUpdate
+
 
+
UPDATE_NONE - Enum constant in enum class org.bitcoinj.core.BloomFilter.BloomUpdate
+
 
+
UPDATE_P2PUBKEY_ONLY - Enum constant in enum class org.bitcoinj.core.BloomFilter.BloomUpdate
+
+
Only adds outpoints to the filter if the output is a P2PK/pay-to-multisig script
+
+
UPDATED_AT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
updateScriptWithSignature(Script, byte[], int, int, int) - Static method in class org.bitcoinj.script.ScriptBuilder
+
+
Returns a copy of the given scriptSig with the signature inserted in the given position.
+
+
upgradeToDeterministic(Script.ScriptType, KeyChainGroupStructure, long, KeyParameter) - Method in class org.bitcoinj.wallet.KeyChainGroup
+
+
This method will upgrade the wallet along the following path: Basic --> P2PKH --> P2WPKH
+
+
upgradeToDeterministic(Script.ScriptType, KeyChainGroupStructure, KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Upgrades the wallet to be deterministic (BIP32).
+
+
upgradeToDeterministic(Script.ScriptType, KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+
Upgrades the wallet to be deterministic (BIP32).
+
+
upgradeToDeterministic(KeyParameter) - Method in class org.bitcoinj.wallet.Wallet
+
+ +
+
uri - Variable in class org.bitcoinj.net.discovery.HttpDiscovery.Details
+
 
+
USE_DUMMY_SIG - Enum constant in enum class org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
Missing signatures will be replaced by dummy sigs.
+
+
USE_OP_ZERO - Enum constant in enum class org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
Input script will have OP_0 instead of missing signatures
+
+
useAutoSave - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
USER_PAYMENT - Enum constant in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Transaction created to satisfy a user payment request.
+
+
USER_PAYMENT - Enum constant in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Created in response to a user request for payment.
+
+
USER_PAYMENT_VALUE - Static variable in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+ Created in response to a user request for payment.
+
+
USER_THREAD - Static variable in class org.bitcoinj.utils.Threading
+
+
An executor with one thread that is intended for running event listeners on.
+
+
userAgent - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
username - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
UserThread() - Constructor for class org.bitcoinj.utils.Threading.UserThread
+
 
+
Utils - Class in org.bitcoinj.core
+
+
A collection of various utility methods that are helpful for working with the Bitcoin protocol.
+
+
Utils() - Constructor for class org.bitcoinj.core.Utils
+
 
+
UTXO - Class in org.bitcoinj.core
+
+
A UTXO message contains the information necessary to check a spending transaction.
+
+
UTXO(Sha256Hash, long, Coin, int, boolean, Script) - Constructor for class org.bitcoinj.core.UTXO
+
+
Creates a stored transaction output.
+
+
UTXO(Sha256Hash, long, Coin, int, boolean, Script, String) - Constructor for class org.bitcoinj.core.UTXO
+
+
Creates a stored transaction output.
+
+
utxoCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
UTXOProvider - Interface in org.bitcoinj.core
+
+
A UTXOProvider encapsulates functionality for returning unspent transaction outputs, + for use by the wallet or other code that crafts spends.
+
+
UTXOProviderException - Exception in org.bitcoinj.core
+
 
+
UTXOProviderException() - Constructor for exception org.bitcoinj.core.UTXOProviderException
+
 
+
UTXOProviderException(String) - Constructor for exception org.bitcoinj.core.UTXOProviderException
+
 
+
UTXOProviderException(String, Throwable) - Constructor for exception org.bitcoinj.core.UTXOProviderException
+
 
+
UTXOProviderException(Throwable) - Constructor for exception org.bitcoinj.core.UTXOProviderException
+
 
+
UTXOsMessage - Class in org.bitcoinj.core
+
+
Message representing a list of unspent transaction outputs ("utxos"), returned in response to sending a + GetUTXOsMessage ("getutxos").
+
+
UTXOsMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.UTXOsMessage
+
 
+
UTXOsMessage(NetworkParameters, List<TransactionOutput>, long[], Sha256Hash, long) - Constructor for class org.bitcoinj.core.UTXOsMessage
+
+
Provide an array of output objects, with nulls indicating that the output was missing.
+
+
utxoUncommittedCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
utxoUncommittedDeletedCache - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
+

V

+
+
value - Variable in class org.bitcoinj.core.Coin
+
+
The number of satoshis of this monetary value.
+
+
value - Variable in enum class org.bitcoinj.core.Transaction.SigHash
+
 
+
value - Variable in class org.bitcoinj.core.VarInt
+
+
Deprecated. + +
+
+
value - Variable in class org.bitcoinj.utils.Fiat
+
+
The number of smallest units of this monetary value.
+
+
VALUE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
VALUE_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionOutput
+
 
+
valueGathered - Variable in class org.bitcoinj.wallet.CoinSelection
+
 
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
Deprecated.
+
+
valueOf(int) - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
Deprecated.
+
+
valueOf(int, int) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin from an amount expressed in "the way humans are used to".
+
+
valueOf(long) - Static method in class org.bitcoinj.core.Coin
+
+
Create a Coin from a long integer number of satoshis.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.AbstractBlockChain.NewBlockType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.Bech32.Encoding
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.Block.VerifyFlag
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.BloomFilter.BloomUpdate
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.InventoryItem.Type
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.Transaction.SigHash
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.TransactionConfidence.Source
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.TransactionInput.ConnectionResult
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.core.TransactionInput.ConnectMode
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.crypto.HDKeyDerivation.PublicDeriveMode
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.script.Script.ScriptType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.script.Script.VerifyFlag
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.script.ScriptError
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.utils.BtcAutoFormat.Style
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.BasicKeyChain.State
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.RiskAnalysis.Result
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String) - Static method in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
+
Returns the enum constant of this class with the specified name.
+
+
valueOf(String, long) - Static method in class org.bitcoinj.utils.Fiat
+
 
+
values() - Static method in enum class org.bitcoinj.core.AbstractBlockChain.NewBlockType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.Bech32.Encoding
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.Block.VerifyFlag
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.BloomFilter.BloomUpdate
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.InventoryItem.Type
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.RejectMessage.RejectCode
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.Transaction.Purpose
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.Transaction.SigHash
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.TransactionConfidence.Source
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.TransactionInput.ConnectionResult
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.core.TransactionInput.ConnectMode
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.crypto.HDKeyDerivation.PublicDeriveMode
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.script.Script.ScriptType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.script.Script.VerifyFlag
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.script.ScriptError
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.utils.BtcAutoFormat.Style
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.BasicKeyChain.State
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.KeyChain.KeyPurpose
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.Key.Type
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.RiskAnalysis.Result
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Wallet.BalanceType
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
values() - Static method in enum class org.bitcoinj.wallet.WalletTransaction.Pool
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
VarInt - Class in org.bitcoinj.core
+
+
A variable-length encoded unsigned integer using Satoshi's encoding (a.k.a.
+
+
VarInt(byte[], int) - Constructor for class org.bitcoinj.core.VarInt
+
+
Constructs a new VarInt with the value parsed from the specified offset of the given buffer.
+
+
VarInt(long) - Constructor for class org.bitcoinj.core.VarInt
+
+
Constructs a new VarInt with the given unsigned long value.
+
+
vChain - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
VerificationException - Exception in org.bitcoinj.core
+
 
+
VerificationException(Exception) - Constructor for exception org.bitcoinj.core.VerificationException
+
 
+
VerificationException(String) - Constructor for exception org.bitcoinj.core.VerificationException
+
 
+
VerificationException(String, Throwable) - Constructor for exception org.bitcoinj.core.VerificationException
+
 
+
VerificationException.BlockVersionOutOfDate - Exception in org.bitcoinj.core
+
 
+
VerificationException.CoinbaseHeightMismatch - Exception in org.bitcoinj.core
+
 
+
VerificationException.CoinbaseScriptSizeOutOfRange - Exception in org.bitcoinj.core
+
 
+
VerificationException.DuplicatedOutPoint - Exception in org.bitcoinj.core
+
 
+
VerificationException.EmptyInputsOrOutputs - Exception in org.bitcoinj.core
+
 
+
VerificationException.ExcessiveValue - Exception in org.bitcoinj.core
+
 
+
VerificationException.LargerThanMaxBlockSize - Exception in org.bitcoinj.core
+
 
+
VerificationException.NegativeValueOutput - Exception in org.bitcoinj.core
+
 
+
VerificationException.NoncanonicalSignature - Exception in org.bitcoinj.core
+
 
+
VerificationException.UnexpectedCoinbaseInput - Exception in org.bitcoinj.core
+
 
+
verifiedChainHeadBlock - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
verifiedChainHeadBlock - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
verifiedChainHeadHash - Variable in class org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
 
+
verifiedChainHeadHash - Variable in class org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
 
+
verify() - Method in class org.bitcoinj.core.Transaction
+
+
Checks the transaction contents for sanity, in ways that can be done in a standalone manner.
+
+
verify() - Method in class org.bitcoinj.core.TransactionInput
+
+
For a connected transaction, runs the script against the connected pubkey and verifies they are correct.
+
+
verify(byte[], byte[]) - Method in class org.bitcoinj.core.ECKey
+
+
Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
+
+
verify(byte[], byte[], byte[]) - Static method in class org.bitcoin.NativeSecp256k1
+
+
Verifies the given secp256k1 signature in native code.
+
+
verify(byte[], byte[], byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
+
+
verify(byte[], ECKey.ECDSASignature, byte[]) - Static method in class org.bitcoinj.core.ECKey
+
+
Verifies the given ECDSA signature against the message bytes using the public key bytes.
+
+
verify(int, EnumSet<Block.VerifyFlag>) - Method in class org.bitcoinj.core.Block
+
+
Verifies both the header and that the transactions hash to the merkle root.
+
+
verify(Sha256Hash, ECKey.ECDSASignature) - Method in class org.bitcoinj.core.ECKey
+
+
Verifies the given R/S pair (signature) against a hash using the public key.
+
+
verify(TransactionOutput) - Method in class org.bitcoinj.core.TransactionInput
+
+
Verifies that this input can spend the given output.
+
+
verifyHeader() - Method in class org.bitcoinj.core.Block
+
+
Checks the block data to ensure it follows the rules laid out in the network parameters.
+
+
verifyMessage(String, String) - Method in class org.bitcoinj.core.ECKey
+
+
Convenience wrapper around ECKey.signedMessageToKey(String, String).
+
+
verifyOrThrow(byte[], byte[]) - Method in class org.bitcoinj.core.ECKey
+
+
Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key, and throws an exception + if the signature doesn't match
+
+
verifyOrThrow(Sha256Hash, ECKey.ECDSASignature) - Method in class org.bitcoinj.core.ECKey
+
+
Verifies the given R/S pair (signature) against a hash using the public key, and throws an exception + if the signature doesn't match
+
+
verifyPaymentRequestPki(Protos.PaymentRequest, KeyStore) - Static method in class org.bitcoinj.protocols.payments.PaymentProtocol
+
+
Uses the provided PKI method to find the corresponding public key and verify the provided signature.
+
+
verifyPki() - Method in class org.bitcoinj.protocols.payments.PaymentSession
+
+
Returns the value of pkiVerificationData or null if it wasn't verified at construction time.
+
+
verifyTransactions(int, EnumSet<Block.VerifyFlag>) - Method in class org.bitcoinj.core.Block
+
+
Checks the block contents
+
+
version - Variable in class org.bitcoinj.core.GetBlocksMessage
+
 
+
version - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
VERSION - Enum constant in enum class org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
 
+
VERSION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Transaction
+
 
+
VERSION_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
VersionAck - Class in org.bitcoinj.core
+
+
The verack message, sent by a client accepting the version message they + received from their peer.
+
+
VersionAck() - Constructor for class org.bitcoinj.core.VersionAck
+
 
+
VersionAck(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.VersionAck
+
 
+
VersionMessage - Class in org.bitcoinj.core
+
+
A VersionMessage holds information exchanged during connection setup with another peer.
+
+
VersionMessage(NetworkParameters, byte[]) - Constructor for class org.bitcoinj.core.VersionMessage
+
 
+
VersionMessage(NetworkParameters, int) - Constructor for class org.bitcoinj.core.VersionMessage
+
 
+
VersionTally - Class in org.bitcoinj.utils
+
+
Caching counter for the block versions within a moving window.
+
+
VersionTally(NetworkParameters) - Constructor for class org.bitcoinj.utils.VersionTally
+
 
+
vFileManager - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
vPeerGroup - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
vStore - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
vTransactionBroadcaster - Variable in class org.bitcoinj.wallet.Wallet
+
 
+
vWallet - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
vWalletFile - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
+

W

+
+
waitForPeers(int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns a future that is triggered when the number of connected peers is equal to the given number of + peers.
+
+
waitForPeersOfVersion(int, long) - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns a future that is triggered when there are at least the requested number of connected peers that support + the given protocol version or higher.
+
+
waitForPeersWithServiceMask(int, int) - Method in class org.bitcoinj.core.PeerGroup
+
+
Returns a future that is triggered when there are at least the requested number of connected peers that support + the given protocol version or higher.
+
+
waitForUserCode() - Static method in class org.bitcoinj.utils.Threading
+
+
Put a dummy task into the queue and wait for it to be run.
+
+
wallet - Variable in class org.bitcoinj.wallet.DefaultRiskAnalysis
+
 
+
wallet() - Method in class org.bitcoinj.kits.WalletAppKit
+
 
+
Wallet - Class in org.bitcoinj.wallet
+
+
A Wallet stores keys and a record of transactions that send and receive value from those keys.
+
+
Wallet(Context) - Constructor for class org.bitcoinj.wallet.Wallet
+
+ +
+
Wallet(NetworkParameters, KeyChainGroup) - Constructor for class org.bitcoinj.wallet.Wallet
+
 
+
Wallet.BadWalletEncryptionKeyException - Exception in org.bitcoinj.wallet
+
+
Thrown if the private keys and seed of this wallet cannot be decrypted due to the supplied encryption + key or password being wrong.
+
+
Wallet.BalanceType - Enum Class in org.bitcoinj.wallet
+
+
It's possible to calculate a wallets balance from multiple points of view.
+
+
Wallet.CompletionException - Exception in org.bitcoinj.wallet
+
+
Class of exceptions thrown in Wallet.completeTx(SendRequest).
+
+
Wallet.CouldNotAdjustDownwards - Exception in org.bitcoinj.wallet
+
+
Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after + being reduced for the fee was smaller than the min payment.
+
+
Wallet.DustySendRequested - Exception in org.bitcoinj.wallet
+
+
Thrown if the resultant transaction would violate the dust rules (an output that's too small to be worthwhile).
+
+
Wallet.ExceededMaxTransactionSize - Exception in org.bitcoinj.wallet
+
+
Thrown if the resultant transaction is too big for Bitcoin to process.
+
+
Wallet.MissingSigsMode - Enum Class in org.bitcoinj.wallet
+
+
Enumerates possible resolutions for missing signatures.
+
+
Wallet.MultipleOpReturnRequested - Exception in org.bitcoinj.wallet
+
+
Thrown if there is more than one OP_RETURN output for the resultant transaction.
+
+
Wallet.SendResult - Class in org.bitcoinj.wallet
+
+
A SendResult is returned to you as part of sending coins to a recipient.
+
+
WalletAppKit - Class in org.bitcoinj.kits
+
+
Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj app.
+
+
WalletAppKit(Context, Script.ScriptType, KeyChainGroupStructure, File, String) - Constructor for class org.bitcoinj.kits.WalletAppKit
+
+
Creates a new WalletAppKit, with the given Context.
+
+
WalletAppKit(NetworkParameters, File, String) - Constructor for class org.bitcoinj.kits.WalletAppKit
+
+
Creates a new WalletAppKit, with a newly created Context.
+
+
WalletAppKit(NetworkParameters, Script.ScriptType, KeyChainGroupStructure, File, String) - Constructor for class org.bitcoinj.kits.WalletAppKit
+
+
Creates a new WalletAppKit, with a newly created Context.
+
+
WalletChangeEventListener - Interface in org.bitcoinj.wallet.listeners
+
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+
WalletCoinsReceivedEventListener - Interface in org.bitcoinj.wallet.listeners
+
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+
WalletCoinsSentEventListener - Interface in org.bitcoinj.wallet.listeners
+
+
Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
+
+
WalletExtension - Interface in org.bitcoinj.wallet
+
+
An object implementing this interface can be added to a Wallet and provide arbitrary byte arrays that will + be serialized alongside the wallet.
+
+
walletFactory - Variable in class org.bitcoinj.kits.WalletAppKit
+
 
+
WalletFiles - Class in org.bitcoinj.wallet
+
+
A class that handles atomic and optionally delayed writing of the wallet file to disk.
+
+
WalletFiles(Wallet, File, long, TimeUnit) - Constructor for class org.bitcoinj.wallet.WalletFiles
+
+
Initialize atomic and optionally delayed writing of the wallet file to disk.
+
+
WalletFiles.Listener - Interface in org.bitcoinj.wallet
+
+
Implementors can do pre/post treatment of the wallet file.
+
+
WalletProtobufSerializer - Class in org.bitcoinj.wallet
+
+
Serialize and de-serialize a wallet to a byte stream containing a + protocol buffer.
+
+
WalletProtobufSerializer() - Constructor for class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
WalletProtobufSerializer(WalletProtobufSerializer.WalletFactory) - Constructor for class org.bitcoinj.wallet.WalletProtobufSerializer
+
 
+
WalletProtobufSerializer.WalletFactory - Interface in org.bitcoinj.wallet
+
 
+
WalletReorganizeEventListener - Interface in org.bitcoinj.wallet.listeners
+
+
Implementors are called when the wallet is reorganized.
+
+
walletToProto(Wallet) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Converts the given wallet to the object representation of the protocol buffers.
+
+
walletToText(Wallet) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Returns the given wallet formatted as text.
+
+
WalletTransaction - Class in org.bitcoinj.wallet
+
+
Stores data about a transaction that is only relevant to the Wallet class.
+
+
WalletTransaction(WalletTransaction.Pool, Transaction) - Constructor for class org.bitcoinj.wallet.WalletTransaction
+
 
+
WalletTransaction.Pool - Enum Class in org.bitcoinj.wallet
+
 
+
WARNING_THRESHOLD - Static variable in class org.bitcoinj.utils.Threading.UserThread
+
 
+
warnOnLockCycles() - Static method in class org.bitcoinj.utils.Threading
+
 
+
wasBroadcastBy(PeerAddress) - Method in class org.bitcoinj.core.TransactionConfidence
+
+
Returns true if the given address has been seen via markBroadcastBy()
+
+
wasUndoable - Variable in class org.bitcoinj.store.MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag
+
 
+
watch(DeterministicKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Creates a key chain that watches the given account key.
+
+
watchAndFollow(DeterministicKey) - Method in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
+
Creates a deterministic key chain with the given watch key and that follows some other keychain.
+
+
WATCHED_SCRIPT_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.Wallet
+
 
+
WATCHING - Enum constant in enum class org.bitcoinj.wallet.BasicKeyChain.State
+
 
+
watchingKey - Variable in class org.bitcoinj.wallet.DeterministicKeyChain.Builder
+
 
+
WHITESPACE_SPLITTER - Static variable in class org.bitcoinj.core.Utils
+
+
Splitter for splitting words on whitespaces.
+
+
with(Transaction...) - Static method in class org.bitcoinj.core.InventoryMessage
+
+
Creates a new inv message for the given transactions.
+
+
WITH_INVERSION - Enum constant in enum class org.bitcoinj.crypto.HDKeyDerivation.PublicDeriveMode
+
 
+
withLocale(Locale) - Method in class org.bitcoinj.utils.MonetaryFormat
+
+
Configure this instance with values from a Locale.
+
+
withProtocolVersion(int) - Method in class org.bitcoinj.core.BitcoinSerializer
+
 
+
withProtocolVersion(int) - Method in class org.bitcoinj.core.MessageSerializer
+
+
Create a new serializer with a specific protocol version.
+
+
WITNESS_BLOCK - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
WITNESS_FIELD_NUMBER - Static variable in class org.bitcoinj.wallet.Protos.TransactionInput
+
 
+
WITNESS_FILTERED_BLOCK - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
WITNESS_PROGRAM_LENGTH_PKH - Static variable in class org.bitcoinj.core.SegwitAddress
+
 
+
WITNESS_PROGRAM_LENGTH_SH - Static variable in class org.bitcoinj.core.SegwitAddress
+
 
+
WITNESS_PROGRAM_LENGTH_TR - Static variable in class org.bitcoinj.core.SegwitAddress
+
 
+
WITNESS_PROGRAM_MAX_LENGTH - Static variable in class org.bitcoinj.core.SegwitAddress
+
 
+
WITNESS_PROGRAM_MIN_LENGTH - Static variable in class org.bitcoinj.core.SegwitAddress
+
 
+
WITNESS_TRANSACTION - Enum constant in enum class org.bitcoinj.core.InventoryItem.Type
+
 
+
WITNESS_VERSION - Enum constant in enum class org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
 
+
wrap(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance that wraps the given hash value.
+
+
wrap(String) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance that wraps the given hash value (represented as a hex string).
+
+
wrapReversed(byte[]) - Static method in class org.bitcoinj.core.Sha256Hash
+
+
Creates a new instance that wraps the given hash value, but with byte order reversed.
+
+
write(byte[], int, int) - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Writes len bytes from the specified byte array + starting at offset off to this byte array output stream.
+
+
write(int) - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Writes the specified byte to this byte array output stream.
+
+
write(OutputStream) - Method in class org.bitcoinj.script.ScriptChunk
+
 
+
writeBytes(byte[]) - Method in class org.bitcoinj.net.BlockingClient
+
 
+
writeBytes(byte[]) - Method in interface org.bitcoinj.net.MessageWriteTarget
+
+
Writes the given bytes to the remote server.
+
+
writeBytes(byte[]) - Method in class org.bitcoinj.net.NioClient
+
 
+
writeBytes(OutputStream, byte[]) - Static method in class org.bitcoinj.script.Script
+
+
Writes out the given byte buffer to the output stream with the correct opcode prefix + To write an integer call writeBytes(out, Utils.reverseBytes(Utils.encodeMPI(val, false)));
+
+
writeTarget - Variable in class org.bitcoinj.core.PeerSocketHandler
+
 
+
writeTo(OutputStream) - Method in class org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
Writes the complete contents of this byte array output stream to + the specified output stream argument, as if by calling the output + stream's write method using out.write(buf, 0, count).
+
+
writeWallet(Wallet, OutputStream) - Method in class org.bitcoinj.wallet.WalletProtobufSerializer
+
+
Formats the given wallet (transactions and keys) to the given output stream in protocol buffer format.
+
+
WrongNetwork() - Constructor for exception org.bitcoinj.wallet.UnreadableWalletException.WrongNetwork
+
 
+
WrongNetwork(int) - Constructor for exception org.bitcoinj.core.AddressFormatException.WrongNetwork
+
 
+
WrongNetwork(String) - Constructor for exception org.bitcoinj.core.AddressFormatException.WrongNetwork
+
 
+
+

X

+
+
X509Utils - Class in org.bitcoinj.crypto
+
+
X509Utils provides tools for working with X.509 certificates and keystores, as used in the BIP 70 payment protocol.
+
+
X509Utils() - Constructor for class org.bitcoinj.crypto.X509Utils
+
 
+
+

Z

+
+
ZERO - Static variable in class org.bitcoinj.core.Coin
+
+
Zero Bitcoins.
+
+
ZERO - Static variable in class org.bitcoinj.crypto.ChildNumber
+
 
+
ZERO_HARDENED - Static variable in class org.bitcoinj.crypto.ChildNumber
+
 
+
ZERO_HASH - Static variable in class org.bitcoinj.core.Sha256Hash
+
 
+
+A B C D E F G H I K L M N O P Q R S T U V W X Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
+
+
+ + diff --git a/javadoc/0.16.3/index.html b/javadoc/0.16.3/index.html new file mode 100644 index 000000000..7b7994a5c --- /dev/null +++ b/javadoc/0.16.3/index.html @@ -0,0 +1,140 @@ + + + + +Overview (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

bitcoinj-core 0.16.3 API

+
+
+
Packages
+
+
Package
+
Description
+ +
 
+ +
 
+ +
 
+ +
+
The core package contains classes for network messages like Block and + Transaction, peer connectivity via PeerGroup, + and block chain management.
+
+ +
 
+ +
+
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.
+
+ +
 
+ +
+
High level wrapper APIs around the bitcoinj building blocks.
+
+ +
+
Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for + using SOCKS proxies, Tor, SSL etc).
+
+ +
+
Classes that know how to discover peers in the P2P network using DNS or HTTP.
+
+ +
+
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main + network, the testnet, regtest mode, unit testing params and so on.
+
+ +
+
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses + and authentication.
+
+ +
+
Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs.
+
+ +
+
Transaction signers know how to calculate signatures over transactions in different contexts, for example, using + local private keys or fetching them from remote servers.
+
+ +
+
Block stores persist blockchain data downloaded from remote peers.
+
+ +
+
Parsing and handling of bitcoin: textual URIs as found in qr codes and web links.
+
+ +
+
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files, + a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
+
+ +
+
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.
+
+ +
 
+
+
+
+
+
+ + diff --git a/javadoc/0.16.3/jquery-ui.overrides.css b/javadoc/0.16.3/jquery-ui.overrides.css new file mode 100644 index 000000000..facf852c2 --- /dev/null +++ b/javadoc/0.16.3/jquery-ui.overrides.css @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +a.ui-button:active, +.ui-button:active, +.ui-button.ui-state-active:hover { + /* Overrides the color of selection used in jQuery UI */ + background: #F8981D; + border: 1px solid #F8981D; +} diff --git a/javadoc/0.16.3/legal/ASSEMBLY_EXCEPTION b/javadoc/0.16.3/legal/ASSEMBLY_EXCEPTION new file mode 100644 index 000000000..065b8d902 --- /dev/null +++ b/javadoc/0.16.3/legal/ASSEMBLY_EXCEPTION @@ -0,0 +1,27 @@ + +OPENJDK ASSEMBLY EXCEPTION + +The OpenJDK source code made available by Oracle America, Inc. (Oracle) at +openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU +General Public License version 2 +only ("GPL2"), with the following clarification and special exception. + + Linking this OpenJDK Code statically or dynamically with other code + is making a combined work based on this library. Thus, the terms + and conditions of GPL2 cover the whole combination. + + As a special exception, Oracle gives you permission to link this + OpenJDK Code with certain code licensed by Oracle as indicated at + http://openjdk.java.net/legal/exception-modules-2007-05-08.html + ("Designated Exception Modules") to produce an executable, + regardless of the license terms of the Designated Exception Modules, + and to copy and distribute the resulting executable under GPL2, + provided that the Designated Exception Modules continue to be + governed by the licenses under which they were offered by Oracle. + +As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code +to build an executable that includes those portions of necessary code that +Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 +with the Classpath exception). If you modify or add to the OpenJDK code, +that new GPL2 code may still be combined with Designated Exception Modules +if the new code is made subject to this exception by its copyright holder. diff --git a/javadoc/0.16.3/legal/jquery.md b/javadoc/0.16.3/legal/jquery.md new file mode 100644 index 000000000..d468b3183 --- /dev/null +++ b/javadoc/0.16.3/legal/jquery.md @@ -0,0 +1,72 @@ +## jQuery v3.6.1 + +### jQuery License +``` +jQuery v 3.6.1 +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +****************************************** + +The jQuery JavaScript Library v3.6.1 also includes Sizzle.js + +Sizzle.js includes the following license: + +Copyright JS Foundation and other contributors, https://js.foundation/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/sizzle + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +********************* + +``` diff --git a/javadoc/0.16.3/legal/jqueryUI.md b/javadoc/0.16.3/legal/jqueryUI.md new file mode 100644 index 000000000..8bda9d7a8 --- /dev/null +++ b/javadoc/0.16.3/legal/jqueryUI.md @@ -0,0 +1,49 @@ +## jQuery UI v1.13.2 + +### jQuery UI License +``` +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +``` diff --git a/javadoc/0.16.3/member-search-index.js b/javadoc/0.16.3/member-search-index.js new file mode 100644 index 000000000..fb6585cd1 --- /dev/null +++ b/javadoc/0.16.3/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"org.bitcoinj.core","c":"TransactionInput.ConnectMode","l":"ABORT_ON_CONFLICT"},{"p":"org.bitcoinj.store","c":"DatabaseFullPrunedBlockStore","l":"abortDatabaseBatchWrite()"},{"p":"org.bitcoinj.store","c":"FullPrunedBlockStore","l":"abortDatabaseBatchWrite()"},{"p":"org.bitcoinj.store","c":"LevelDBFullPrunedBlockStore","l":"abortDatabaseBatchWrite()"},{"p":"org.bitcoinj.store","c":"MemoryFullPrunedBlockStore","l":"abortDatabaseBatchWrite()"},{"p":"org.bitcoinj.params","c":"AbstractBitcoinNetParams","l":"AbstractBitcoinNetParams()","u":"%3Cinit%3E()"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"AbstractBlockChain(Context, List, BlockStore)","u":"%3Cinit%3E(org.bitcoinj.core.Context,java.util.List,org.bitcoinj.store.BlockStore)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"AbstractBlockChain(NetworkParameters, List, BlockStore)","u":"%3Cinit%3E(org.bitcoinj.core.NetworkParameters,java.util.List,org.bitcoinj.store.BlockStore)"},{"p":"org.bitcoinj.wallet.listeners","c":"AbstractKeyChainEventListener","l":"AbstractKeyChainEventListener()","u":"%3Cinit%3E()"},{"p":"org.bitcoinj.core.listeners","c":"AbstractPeerDataEventListener","l":"AbstractPeerDataEventListener()","u":"%3Cinit%3E()"},{"p":"org.bitcoinj.net","c":"AbstractTimeoutHandler","l":"AbstractTimeoutHandler()","u":"%3Cinit%3E()"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain","l":"ACCOUNT_ONE_PATH"},{"p":"org.bitcoinj.wallet","c":"Protos.Key","l":"ACCOUNT_PATH_FIELD_NUMBER"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain","l":"ACCOUNT_ZERO_PATH"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain.Builder","l":"accountPath"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain.Builder","l":"accountPath(List)","u":"accountPath(java.util.List)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroupStructure","l":"accountPathFor(Script.ScriptType)","u":"accountPathFor(org.bitcoinj.script.Script.ScriptType)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"add(Block)","u":"add(org.bitcoinj.core.Block)"},{"p":"org.bitcoinj.core","c":"Coin","l":"add(Coin)","u":"add(org.bitcoinj.core.Coin)"},{"p":"org.bitcoinj.crypto","c":"LazyECPoint","l":"add(ECPoint)","u":"add(org.bouncycastle.math.ec.ECPoint)"},{"p":"org.bitcoinj.utils","c":"Fiat","l":"add(Fiat)","u":"add(org.bitcoinj.utils.Fiat)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"add(FilteredBlock)","u":"add(org.bitcoinj.core.FilteredBlock)"},{"p":"org.bitcoinj.core","c":"BlockChain","l":"add(FilteredBlock)","u":"add(org.bitcoinj.core.FilteredBlock)"},{"p":"org.bitcoinj.utils","c":"VersionTally","l":"add(long)"},{"p":"org.bitcoinj.core","c":"BlockLocator","l":"add(Sha256Hash)","u":"add(org.bitcoinj.core.Sha256Hash)"},{"p":"org.bitcoinj.wallet","c":"Protos.Key.Builder","l":"addAccountPath(int)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addAddress(InetAddress)","u":"addAddress(java.net.InetAddress)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addAddress(InetAddress, int)","u":"addAddress(java.net.InetAddress,int)"},{"p":"org.bitcoinj.core","c":"AddressMessage","l":"addAddress(PeerAddress)","u":"addAddress(org.bitcoinj.core.PeerAddress)"},{"p":"org.bitcoinj.core","c":"AddressV1Message","l":"addAddress(PeerAddress)","u":"addAddress(org.bitcoinj.core.PeerAddress)"},{"p":"org.bitcoinj.core","c":"AddressV2Message","l":"addAddress(PeerAddress)","u":"addAddress(org.bitcoinj.core.PeerAddress)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addAddress(PeerAddress)","u":"addAddress(org.bitcoinj.core.PeerAddress)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addAddress(PeerAddress, int)","u":"addAddress(org.bitcoinj.core.PeerAddress,int)"},{"p":"org.bitcoinj.wallet","c":"Protos.Key.Builder","l":"addAllAccountPath(Iterable)","u":"addAllAccountPath(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addAllBlockHash(Iterable)","u":"addAllBlockHash(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addAllBlockRelativityOffsets(Iterable)","u":"addAllBlockRelativityOffsets(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.TransactionConfidence.Builder","l":"addAllBroadcastBy(Iterable)","u":"addAllBroadcastBy(java.lang.Iterable)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.X509Certificates.Builder","l":"addAllCertificate(Iterable)","u":"addAllCertificate(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.ScriptWitness.Builder","l":"addAllData(Iterable)","u":"addAllData(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addAllExtension(Iterable)","u":"addAllExtension(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addAllKey(Iterable)","u":"addAllKey(java.lang.Iterable)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.PaymentDetails.Builder","l":"addAllOutputs(Iterable)","u":"addAllOutputs(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.DeterministicKey.Builder","l":"addAllPath(Iterable)","u":"addAllPath(java.lang.Iterable)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addAllRefundTo(Iterable)","u":"addAllRefundTo(java.lang.Iterable)"},{"p":"org.bitcoin.crawler","c":"PeerSeedProtos.PeerSeeds.Builder","l":"addAllSeed(Iterable)","u":"addAllSeed(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addAllTags(Iterable)","u":"addAllTags(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addAllTransaction(Iterable)","u":"addAllTransaction(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addAllTransactionInput(Iterable)","u":"addAllTransactionInput(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addAllTransactionOutput(Iterable)","u":"addAllTransactionOutput(java.lang.Iterable)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addAllTransactions(Iterable)","u":"addAllTransactions(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addAllWatchedScript(Iterable)","u":"addAllWatchedScript(java.lang.Iterable)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup","l":"addAndActivateHDChain(DeterministicKeyChain)","u":"addAndActivateHDChain(org.bitcoinj.wallet.DeterministicKeyChain)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addAndActivateHDChain(DeterministicKeyChain)","u":"addAndActivateHDChain(org.bitcoinj.wallet.DeterministicKeyChain)"},{"p":"org.bitcoinj.core","c":"InventoryMessage","l":"addBlock(Block)","u":"addBlock(org.bitcoinj.core.Block)"},{"p":"org.bitcoinj.core","c":"GetDataMessage","l":"addBlock(Sha256Hash, boolean)","u":"addBlock(org.bitcoinj.core.Sha256Hash,boolean)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addBlockAppearance(Sha256Hash, int)","u":"addBlockAppearance(org.bitcoinj.core.Sha256Hash,int)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addBlockHash(ByteString)","u":"addBlockHash(com.google.protobuf.ByteString)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addBlockRelativityOffsets(int)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addBlocksDownloadedEventListener(BlocksDownloadedEventListener)","u":"addBlocksDownloadedEventListener(org.bitcoinj.core.listeners.BlocksDownloadedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addBlocksDownloadedEventListener(BlocksDownloadedEventListener)","u":"addBlocksDownloadedEventListener(org.bitcoinj.core.listeners.BlocksDownloadedEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addBlocksDownloadedEventListener(Executor, BlocksDownloadedEventListener)","u":"addBlocksDownloadedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.BlocksDownloadedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addBlocksDownloadedEventListener(Executor, BlocksDownloadedEventListener)","u":"addBlocksDownloadedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.BlocksDownloadedEventListener)"},{"p":"org.bitcoinj.wallet","c":"Protos.TransactionConfidence.Builder","l":"addBroadcastBy(int, Protos.PeerAddress)","u":"addBroadcastBy(int,org.bitcoinj.wallet.Protos.PeerAddress)"},{"p":"org.bitcoinj.wallet","c":"Protos.TransactionConfidence.Builder","l":"addBroadcastBy(int, Protos.PeerAddress.Builder)","u":"addBroadcastBy(int,org.bitcoinj.wallet.Protos.PeerAddress.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.TransactionConfidence.Builder","l":"addBroadcastBy(Protos.PeerAddress)","u":"addBroadcastBy(org.bitcoinj.wallet.Protos.PeerAddress)"},{"p":"org.bitcoinj.wallet","c":"Protos.TransactionConfidence.Builder","l":"addBroadcastBy(Protos.PeerAddress.Builder)","u":"addBroadcastBy(org.bitcoinj.wallet.Protos.PeerAddress.Builder)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.X509Certificates.Builder","l":"addCertificate(ByteString)","u":"addCertificate(com.google.protobuf.ByteString)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup.Builder","l":"addChain(DeterministicKeyChain)","u":"addChain(org.bitcoinj.wallet.DeterministicKeyChain)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addChainDownloadStartedEventListener(ChainDownloadStartedEventListener)","u":"addChainDownloadStartedEventListener(org.bitcoinj.core.listeners.ChainDownloadStartedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addChainDownloadStartedEventListener(ChainDownloadStartedEventListener)","u":"addChainDownloadStartedEventListener(org.bitcoinj.core.listeners.ChainDownloadStartedEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addChainDownloadStartedEventListener(Executor, ChainDownloadStartedEventListener)","u":"addChainDownloadStartedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.ChainDownloadStartedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addChainDownloadStartedEventListener(Executor, ChainDownloadStartedEventListener)","u":"addChainDownloadStartedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.ChainDownloadStartedEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addChangeEventListener(Executor, WalletChangeEventListener)","u":"addChangeEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.WalletChangeEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addChangeEventListener(WalletChangeEventListener)","u":"addChangeEventListener(org.bitcoinj.wallet.listeners.WalletChangeEventListener)"},{"p":"org.bitcoinj.script","c":"ScriptBuilder","l":"addChunk(int, ScriptChunk)","u":"addChunk(int,org.bitcoinj.script.ScriptChunk)"},{"p":"org.bitcoinj.script","c":"ScriptBuilder","l":"addChunk(ScriptChunk)","u":"addChunk(org.bitcoinj.script.ScriptChunk)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCoinsReceivedEventListener(Executor, WalletCoinsReceivedEventListener)","u":"addCoinsReceivedEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.WalletCoinsReceivedEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCoinsReceivedEventListener(WalletCoinsReceivedEventListener)","u":"addCoinsReceivedEventListener(org.bitcoinj.wallet.listeners.WalletCoinsReceivedEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCoinsSentEventListener(Executor, WalletCoinsSentEventListener)","u":"addCoinsSentEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCoinsSentEventListener(WalletCoinsSentEventListener)","u":"addCoinsSentEventListener(org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addConnectedEventListener(Executor, PeerConnectedEventListener)","u":"addConnectedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PeerConnectedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addConnectedEventListener(Executor, PeerConnectedEventListener)","u":"addConnectedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PeerConnectedEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addConnectedEventListener(PeerConnectedEventListener)","u":"addConnectedEventListener(org.bitcoinj.core.listeners.PeerConnectedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addConnectedEventListener(PeerConnectedEventListener)","u":"addConnectedEventListener(org.bitcoinj.core.listeners.PeerConnectedEventListener)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup","l":"addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener)","u":"addCurrentKeyChangeEventListener(org.bitcoinj.wallet.listeners.CurrentKeyChangeEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener)","u":"addCurrentKeyChangeEventListener(org.bitcoinj.wallet.listeners.CurrentKeyChangeEventListener)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup","l":"addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener, Executor)","u":"addCurrentKeyChangeEventListener(org.bitcoinj.wallet.listeners.CurrentKeyChangeEventListener,java.util.concurrent.Executor)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addCurrentKeyChangeEventListener(Executor, CurrentKeyChangeEventListener)","u":"addCurrentKeyChangeEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.CurrentKeyChangeEventListener)"},{"p":"org.bitcoinj.wallet","c":"Protos.ScriptWitness.Builder","l":"addData(ByteString)","u":"addData(com.google.protobuf.ByteString)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addDisconnectedEventListener(Executor, PeerDisconnectedEventListener)","u":"addDisconnectedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PeerDisconnectedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addDisconnectedEventListener(Executor, PeerDisconnectedEventListener)","u":"addDisconnectedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PeerDisconnectedEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addDisconnectedEventListener(PeerDisconnectedEventListener)","u":"addDisconnectedEventListener(org.bitcoinj.core.listeners.PeerDisconnectedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addDisconnectedEventListener(PeerDisconnectedEventListener)","u":"addDisconnectedEventListener(org.bitcoinj.core.listeners.PeerDisconnectedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addDiscoveredEventListener(Executor, PeerDiscoveredEventListener)","u":"addDiscoveredEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PeerDiscoveredEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addDiscoveredEventListener(PeerDiscoveredEventListener)","u":"addDiscoveredEventListener(org.bitcoinj.core.listeners.PeerDiscoveredEventListener)"},{"p":"org.bitcoinj.core","c":"TransactionConfidence","l":"addEventListener(Executor, TransactionConfidence.Listener)","u":"addEventListener(java.util.concurrent.Executor,org.bitcoinj.core.TransactionConfidence.Listener)"},{"p":"org.bitcoinj.wallet","c":"BasicKeyChain","l":"addEventListener(KeyChainEventListener)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain","l":"addEventListener(KeyChainEventListener)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.wallet","c":"KeyChain","l":"addEventListener(KeyChainEventListener)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup","l":"addEventListener(KeyChainEventListener)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.wallet","c":"BasicKeyChain","l":"addEventListener(KeyChainEventListener, Executor)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener,java.util.concurrent.Executor)"},{"p":"org.bitcoinj.wallet","c":"DeterministicKeyChain","l":"addEventListener(KeyChainEventListener, Executor)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener,java.util.concurrent.Executor)"},{"p":"org.bitcoinj.wallet","c":"KeyChain","l":"addEventListener(KeyChainEventListener, Executor)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener,java.util.concurrent.Executor)"},{"p":"org.bitcoinj.wallet","c":"KeyChainGroup","l":"addEventListener(KeyChainEventListener, Executor)","u":"addEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener,java.util.concurrent.Executor)"},{"p":"org.bitcoinj.core","c":"TransactionConfidence","l":"addEventListener(TransactionConfidence.Listener)","u":"addEventListener(org.bitcoinj.core.TransactionConfidence.Listener)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addExtension(int, Protos.Extension)","u":"addExtension(int,org.bitcoinj.wallet.Protos.Extension)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addExtension(int, Protos.Extension.Builder)","u":"addExtension(int,org.bitcoinj.wallet.Protos.Extension.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addExtension(Protos.Extension)","u":"addExtension(org.bitcoinj.wallet.Protos.Extension)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addExtension(Protos.Extension.Builder)","u":"addExtension(org.bitcoinj.wallet.Protos.Extension.Builder)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addExtension(WalletExtension)","u":"addExtension(org.bitcoinj.wallet.WalletExtension)"},{"p":"org.bitcoinj.core","c":"GetDataMessage","l":"addFilteredBlock(Sha256Hash)","u":"addFilteredBlock(org.bitcoinj.core.Sha256Hash)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addGetDataEventListener(Executor, GetDataEventListener)","u":"addGetDataEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.GetDataEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addGetDataEventListener(Executor, GetDataEventListener)","u":"addGetDataEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.GetDataEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addGetDataEventListener(GetDataEventListener)","u":"addGetDataEventListener(org.bitcoinj.core.listeners.GetDataEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addGetDataEventListener(GetDataEventListener)","u":"addGetDataEventListener(org.bitcoinj.core.listeners.GetDataEventListener)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addInput(Sha256Hash, long, Script)","u":"addInput(org.bitcoinj.core.Sha256Hash,long,org.bitcoinj.script.Script)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addInput(TransactionInput)","u":"addInput(org.bitcoinj.core.TransactionInput)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addInput(TransactionOutput)","u":"addInput(org.bitcoinj.core.TransactionOutput)"},{"p":"org.bitcoinj.core","c":"ListMessage","l":"addItem(InventoryItem)","u":"addItem(org.bitcoinj.core.InventoryItem)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addKey(int, Protos.Key)","u":"addKey(int,org.bitcoinj.wallet.Protos.Key)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addKey(int, Protos.Key.Builder)","u":"addKey(int,org.bitcoinj.wallet.Protos.Key.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addKey(Protos.Key)","u":"addKey(org.bitcoinj.wallet.Protos.Key)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addKey(Protos.Key.Builder)","u":"addKey(org.bitcoinj.wallet.Protos.Key.Builder)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addKeyChainEventListener(Executor, KeyChainEventListener)","u":"addKeyChainEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addKeyChainEventListener(KeyChainEventListener)","u":"addKeyChainEventListener(org.bitcoinj.wallet.listeners.KeyChainEventListener)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addNewBestBlockListener(Executor, NewBestBlockListener)","u":"addNewBestBlockListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.NewBestBlockListener)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addNewBestBlockListener(NewBestBlockListener)","u":"addNewBestBlockListener(org.bitcoinj.core.listeners.NewBestBlockListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addOnTransactionBroadcastListener(Executor, OnTransactionBroadcastListener)","u":"addOnTransactionBroadcastListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.OnTransactionBroadcastListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addOnTransactionBroadcastListener(Executor, OnTransactionBroadcastListener)","u":"addOnTransactionBroadcastListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.OnTransactionBroadcastListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addOnTransactionBroadcastListener(OnTransactionBroadcastListener)","u":"addOnTransactionBroadcastListener(org.bitcoinj.core.listeners.OnTransactionBroadcastListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addOnTransactionBroadcastListener(OnTransactionBroadcastListener)","u":"addOnTransactionBroadcastListener(org.bitcoinj.core.listeners.OnTransactionBroadcastListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addOrGetExistingExtension(WalletExtension)","u":"addOrGetExistingExtension(org.bitcoinj.wallet.WalletExtension)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addOrUpdateExtension(WalletExtension)","u":"addOrUpdateExtension(org.bitcoinj.wallet.WalletExtension)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addOutput(Coin, Address)","u":"addOutput(org.bitcoinj.core.Coin,org.bitcoinj.core.Address)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addOutput(Coin, ECKey)","u":"addOutput(org.bitcoinj.core.Coin,org.bitcoinj.core.ECKey)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addOutput(Coin, Script)","u":"addOutput(org.bitcoinj.core.Coin,org.bitcoinj.script.Script)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addOutput(TransactionOutput)","u":"addOutput(org.bitcoinj.core.TransactionOutput)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.PaymentDetails.Builder","l":"addOutputs(int, Protos.Output)","u":"addOutputs(int,org.bitcoin.protocols.payments.Protos.Output)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.PaymentDetails.Builder","l":"addOutputs(int, Protos.Output.Builder)","u":"addOutputs(int,org.bitcoin.protocols.payments.Protos.Output.Builder)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.PaymentDetails.Builder","l":"addOutputs(Protos.Output)","u":"addOutputs(org.bitcoin.protocols.payments.Protos.Output)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.PaymentDetails.Builder","l":"addOutputs(Protos.Output.Builder)","u":"addOutputs(org.bitcoin.protocols.payments.Protos.Output.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.DeterministicKey.Builder","l":"addPath(int)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addPeerDiscovery(PeerDiscovery)","u":"addPeerDiscovery(org.bitcoinj.net.discovery.PeerDiscovery)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addPeerFilterProvider(PeerFilterProvider)","u":"addPeerFilterProvider(org.bitcoinj.core.PeerFilterProvider)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addPreMessageReceivedEventListener(Executor, PreMessageReceivedEventListener)","u":"addPreMessageReceivedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PreMessageReceivedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addPreMessageReceivedEventListener(Executor, PreMessageReceivedEventListener)","u":"addPreMessageReceivedEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.PreMessageReceivedEventListener)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addPreMessageReceivedEventListener(PreMessageReceivedEventListener)","u":"addPreMessageReceivedEventListener(org.bitcoinj.core.listeners.PreMessageReceivedEventListener)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addPreMessageReceivedEventListener(PreMessageReceivedEventListener)","u":"addPreMessageReceivedEventListener(org.bitcoinj.core.listeners.PreMessageReceivedEventListener)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addRefundTo(int, Protos.Output)","u":"addRefundTo(int,org.bitcoin.protocols.payments.Protos.Output)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addRefundTo(int, Protos.Output.Builder)","u":"addRefundTo(int,org.bitcoin.protocols.payments.Protos.Output.Builder)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addRefundTo(Protos.Output)","u":"addRefundTo(org.bitcoin.protocols.payments.Protos.Output)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addRefundTo(Protos.Output.Builder)","u":"addRefundTo(org.bitcoin.protocols.payments.Protos.Output.Builder)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addReorganizeEventListener(Executor, WalletReorganizeEventListener)","u":"addReorganizeEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.WalletReorganizeEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addReorganizeEventListener(WalletReorganizeEventListener)","u":"addReorganizeEventListener(org.bitcoinj.wallet.listeners.WalletReorganizeEventListener)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addReorganizeListener(Executor, ReorganizeListener)","u":"addReorganizeListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.ReorganizeListener)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addReorganizeListener(ReorganizeListener)","u":"addReorganizeListener(org.bitcoinj.core.listeners.ReorganizeListener)"},{"p":"org.bitcoinj.core","c":"Address","l":"Address(NetworkParameters, byte[])","u":"%3Cinit%3E(org.bitcoinj.core.NetworkParameters,byte[])"},{"p":"org.bitcoinj.core","c":"AddressMessage","l":"addresses"},{"p":"org.bitcoinj.core","c":"AddressFormatException","l":"AddressFormatException()","u":"%3Cinit%3E()"},{"p":"org.bitcoinj.core","c":"AddressFormatException","l":"AddressFormatException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"org.bitcoinj.crypto","c":"BIP38PrivateKey","l":"addressHash"},{"p":"org.bitcoinj.core","c":"NetworkParameters","l":"addressHeader"},{"p":"org.bitcoinj.core","c":"NetworkParameters","l":"addrSeeds"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addScriptsChangeEventListener(Executor, ScriptsChangeEventListener)","u":"addScriptsChangeEventListener(java.util.concurrent.Executor,org.bitcoinj.wallet.listeners.ScriptsChangeEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addScriptsChangeEventListener(ScriptsChangeEventListener)","u":"addScriptsChangeEventListener(org.bitcoinj.wallet.listeners.ScriptsChangeEventListener)"},{"p":"org.bitcoin.crawler","c":"PeerSeedProtos.PeerSeeds.Builder","l":"addSeed(int, PeerSeedProtos.PeerSeedData)","u":"addSeed(int,org.bitcoin.crawler.PeerSeedProtos.PeerSeedData)"},{"p":"org.bitcoin.crawler","c":"PeerSeedProtos.PeerSeeds.Builder","l":"addSeed(int, PeerSeedProtos.PeerSeedData.Builder)","u":"addSeed(int,org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder)"},{"p":"org.bitcoin.crawler","c":"PeerSeedProtos.PeerSeeds.Builder","l":"addSeed(PeerSeedProtos.PeerSeedData)","u":"addSeed(org.bitcoin.crawler.PeerSeedProtos.PeerSeedData)"},{"p":"org.bitcoin.crawler","c":"PeerSeedProtos.PeerSeeds.Builder","l":"addSeed(PeerSeedProtos.PeerSeedData.Builder)","u":"addSeed(org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutPoint, Script, Coin, ECKey)","u":"addSignedInput(org.bitcoinj.core.TransactionOutPoint,org.bitcoinj.script.Script,org.bitcoinj.core.Coin,org.bitcoinj.core.ECKey)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutPoint, Script, Coin, ECKey, Transaction.SigHash, boolean)","u":"addSignedInput(org.bitcoinj.core.TransactionOutPoint,org.bitcoinj.script.Script,org.bitcoinj.core.Coin,org.bitcoinj.core.ECKey,org.bitcoinj.core.Transaction.SigHash,boolean)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutPoint, Script, ECKey)","u":"addSignedInput(org.bitcoinj.core.TransactionOutPoint,org.bitcoinj.script.Script,org.bitcoinj.core.ECKey)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutPoint, Script, ECKey, Transaction.SigHash, boolean)","u":"addSignedInput(org.bitcoinj.core.TransactionOutPoint,org.bitcoinj.script.Script,org.bitcoinj.core.ECKey,org.bitcoinj.core.Transaction.SigHash,boolean)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutput, ECKey)","u":"addSignedInput(org.bitcoinj.core.TransactionOutput,org.bitcoinj.core.ECKey)"},{"p":"org.bitcoinj.core","c":"Transaction","l":"addSignedInput(TransactionOutput, ECKey, Transaction.SigHash, boolean)","u":"addSignedInput(org.bitcoinj.core.TransactionOutput,org.bitcoinj.core.ECKey,org.bitcoinj.core.Transaction.SigHash,boolean)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTags(int, Protos.Tag)","u":"addTags(int,org.bitcoinj.wallet.Protos.Tag)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTags(int, Protos.Tag.Builder)","u":"addTags(int,org.bitcoinj.wallet.Protos.Tag.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTags(Protos.Tag)","u":"addTags(org.bitcoinj.wallet.Protos.Tag)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTags(Protos.Tag.Builder)","u":"addTags(org.bitcoinj.wallet.Protos.Tag.Builder)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addToBlockStore(StoredBlock, Block)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block)"},{"p":"org.bitcoinj.core","c":"BlockChain","l":"addToBlockStore(StoredBlock, Block)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block)"},{"p":"org.bitcoinj.core","c":"FullPrunedBlockChain","l":"addToBlockStore(StoredBlock, Block)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addToBlockStore(StoredBlock, Block, TransactionOutputChanges)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block,org.bitcoinj.core.TransactionOutputChanges)"},{"p":"org.bitcoinj.core","c":"BlockChain","l":"addToBlockStore(StoredBlock, Block, TransactionOutputChanges)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block,org.bitcoinj.core.TransactionOutputChanges)"},{"p":"org.bitcoinj.core","c":"FullPrunedBlockChain","l":"addToBlockStore(StoredBlock, Block, TransactionOutputChanges)","u":"addToBlockStore(org.bitcoinj.core.StoredBlock,org.bitcoinj.core.Block,org.bitcoinj.core.TransactionOutputChanges)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTransaction(int, Protos.Transaction)","u":"addTransaction(int,org.bitcoinj.wallet.Protos.Transaction)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTransaction(int, Protos.Transaction.Builder)","u":"addTransaction(int,org.bitcoinj.wallet.Protos.Transaction.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTransaction(Protos.Transaction)","u":"addTransaction(org.bitcoinj.wallet.Protos.Transaction)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addTransaction(Protos.Transaction.Builder)","u":"addTransaction(org.bitcoinj.wallet.Protos.Transaction.Builder)"},{"p":"org.bitcoinj.core","c":"GetDataMessage","l":"addTransaction(Sha256Hash, boolean)","u":"addTransaction(org.bitcoinj.core.Sha256Hash,boolean)"},{"p":"org.bitcoinj.core","c":"Block","l":"addTransaction(Transaction)","u":"addTransaction(org.bitcoinj.core.Transaction)"},{"p":"org.bitcoinj.core","c":"InventoryMessage","l":"addTransaction(Transaction)","u":"addTransaction(org.bitcoinj.core.Transaction)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addTransactionConfidenceEventListener(Executor, TransactionConfidenceEventListener)","u":"addTransactionConfidenceEventListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.TransactionConfidenceEventListener)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addTransactionConfidenceEventListener(TransactionConfidenceEventListener)","u":"addTransactionConfidenceEventListener(org.bitcoinj.core.listeners.TransactionConfidenceEventListener)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionInput(int, Protos.TransactionInput)","u":"addTransactionInput(int,org.bitcoinj.wallet.Protos.TransactionInput)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionInput(int, Protos.TransactionInput.Builder)","u":"addTransactionInput(int,org.bitcoinj.wallet.Protos.TransactionInput.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionInput(Protos.TransactionInput)","u":"addTransactionInput(org.bitcoinj.wallet.Protos.TransactionInput)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionInput(Protos.TransactionInput.Builder)","u":"addTransactionInput(org.bitcoinj.wallet.Protos.TransactionInput.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionOutput(int, Protos.TransactionOutput)","u":"addTransactionOutput(int,org.bitcoinj.wallet.Protos.TransactionOutput)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionOutput(int, Protos.TransactionOutput.Builder)","u":"addTransactionOutput(int,org.bitcoinj.wallet.Protos.TransactionOutput.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionOutput(Protos.TransactionOutput)","u":"addTransactionOutput(org.bitcoinj.wallet.Protos.TransactionOutput)"},{"p":"org.bitcoinj.wallet","c":"Protos.Transaction.Builder","l":"addTransactionOutput(Protos.TransactionOutput.Builder)","u":"addTransactionOutput(org.bitcoinj.wallet.Protos.TransactionOutput.Builder)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addTransactionReceivedListener(Executor, TransactionReceivedInBlockListener)","u":"addTransactionReceivedListener(java.util.concurrent.Executor,org.bitcoinj.core.listeners.TransactionReceivedInBlockListener)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addTransactionReceivedListener(TransactionReceivedInBlockListener)","u":"addTransactionReceivedListener(org.bitcoinj.core.listeners.TransactionReceivedInBlockListener)"},{"p":"org.bitcoin.protocols.payments","c":"Protos.Payment.Builder","l":"addTransactions(ByteString)","u":"addTransactions(com.google.protobuf.ByteString)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addTransactionSigner(TransactionSigner)","u":"addTransactionSigner(org.bitcoinj.signers.TransactionSigner)"},{"p":"org.bitcoinj.store","c":"DatabaseFullPrunedBlockStore","l":"addUnspentTransactionOutput(UTXO)","u":"addUnspentTransactionOutput(org.bitcoinj.core.UTXO)"},{"p":"org.bitcoinj.store","c":"FullPrunedBlockStore","l":"addUnspentTransactionOutput(UTXO)","u":"addUnspentTransactionOutput(org.bitcoinj.core.UTXO)"},{"p":"org.bitcoinj.store","c":"LevelDBFullPrunedBlockStore","l":"addUnspentTransactionOutput(UTXO)","u":"addUnspentTransactionOutput(org.bitcoinj.core.UTXO)"},{"p":"org.bitcoinj.store","c":"MemoryFullPrunedBlockStore","l":"addUnspentTransactionOutput(UTXO)","u":"addUnspentTransactionOutput(org.bitcoinj.core.UTXO)"},{"p":"org.bitcoinj.core","c":"AbstractBlockChain","l":"addWallet(Wallet)","u":"addWallet(org.bitcoinj.wallet.Wallet)"},{"p":"org.bitcoinj.core","c":"Peer","l":"addWallet(Wallet)","u":"addWallet(org.bitcoinj.wallet.Wallet)"},{"p":"org.bitcoinj.core","c":"PeerGroup","l":"addWallet(Wallet)","u":"addWallet(org.bitcoinj.wallet.Wallet)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addWalletTransaction(WalletTransaction)","u":"addWalletTransaction(org.bitcoinj.wallet.WalletTransaction)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addWatchedAddress(Address)","u":"addWatchedAddress(org.bitcoinj.core.Address)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addWatchedAddress(Address, long)","u":"addWatchedAddress(org.bitcoinj.core.Address,long)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addWatchedAddresses(List
, long)","u":"addWatchedAddresses(java.util.List,long)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addWatchedScript(int, Protos.Script)","u":"addWatchedScript(int,org.bitcoinj.wallet.Protos.Script)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addWatchedScript(int, Protos.Script.Builder)","u":"addWatchedScript(int,org.bitcoinj.wallet.Protos.Script.Builder)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addWatchedScript(Protos.Script)","u":"addWatchedScript(org.bitcoinj.wallet.Protos.Script)"},{"p":"org.bitcoinj.wallet","c":"Protos.Wallet.Builder","l":"addWatchedScript(Protos.Script.Builder)","u":"addWatchedScript(org.bitcoinj.wallet.Protos.Script.Builder)"},{"p":"org.bitcoinj.wallet","c":"Wallet","l":"addWatchedScripts(List + + + + + + +
+ +
+
+ +
+
Package org.bitcoin
+

Class NativeSecp256k1

+
+
java.lang.Object +
org.bitcoin.NativeSecp256k1
+
+
+
+
public class NativeSecp256k1 +extends Object
+

This class holds native methods to handle ECDSA verification.

+ +

You can find an example library that can be used for this at https://github.com/bitcoin/secp256k1

+ +

To build secp256k1 for use with bitcoinj, run + `./configure --enable-jni --enable-experimental --enable-module-schnorr --enable-module-ecdh` + and `make` then copy `.libs/libsecp256k1.so` to your system library path + or point the JVM to the folder containing it with -Djava.library.path +

+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static void
    + +
    +
    libsecp256k1 Cleanup - This destroys the secp256k1 context object This should be called at the end of the program + for proper cleanup of the context.
    +
    +
    static long
    + +
    +
    Clone context
    +
    +
    static byte[]
    +
    computePubkey(byte[] seckey)
    +
    +
    libsecp256k1 Compute Pubkey - computes public key from secret key
    +
    +
    static byte[]
    +
    createECDHSecret(byte[] seckey, + byte[] pubkey)
    +
    +
    libsecp256k1 create ECDH secret - constant time ECDH calculation
    +
    +
    static byte[]
    +
    privKeyTweakAdd(byte[] privkey, + byte[] tweak)
    +
    +
    libsecp256k1 PrivKey Tweak-Add - Tweak privkey by adding to it
    +
    +
    static byte[]
    +
    privKeyTweakMul(byte[] privkey, + byte[] tweak)
    +
    +
    libsecp256k1 PrivKey Tweak-Mul - Tweak privkey by multiplying to it
    +
    +
    static byte[]
    +
    pubKeyTweakAdd(byte[] pubkey, + byte[] tweak)
    +
    +
    libsecp256k1 PubKey Tweak-Add - Tweak pubkey by adding to it
    +
    +
    static byte[]
    +
    pubKeyTweakMul(byte[] pubkey, + byte[] tweak)
    +
    +
    libsecp256k1 PubKey Tweak-Mul - Tweak pubkey by multiplying to it
    +
    +
    static boolean
    +
    randomize(byte[] seed)
    +
    +
    libsecp256k1 randomize - updates the context randomization
    +
    +
    static byte[]
    +
    schnorrSign(byte[] data, + byte[] sec)
    +
     
    +
    static boolean
    +
    secKeyVerify(byte[] seckey)
    +
    +
    libsecp256k1 Seckey Verify - returns 1 if valid, 0 if invalid
    +
    +
    static byte[]
    +
    sign(byte[] data, + byte[] sec)
    +
    +
    libsecp256k1 Create an ECDSA signature.
    +
    +
    static boolean
    +
    verify(byte[] data, + byte[] signature, + byte[] pub)
    +
    +
    Verifies the given secp256k1 signature in native code.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeSecp256k1

      +
      public NativeSecp256k1()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      verify

      +
      public static boolean verify(byte[] data, + byte[] signature, + byte[] pub) + throws NativeSecp256k1Util.AssertFailException
      +
      Verifies the given secp256k1 signature in native code. Calling when enabled == false is undefined (probably + library not loaded)
      +
      +
      Parameters:
      +
      data - The data which was signed, must be exactly 32 bytes
      +
      signature - The signature
      +
      pub - The public key which did the signing
      +
      Returns:
      +
      true if correct signature
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - never thrown?
      +
      +
      +
    • +
    • +
      +

      sign

      +
      public static byte[] sign(byte[] data, + byte[] sec) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 Create an ECDSA signature.
      +
      +
      Parameters:
      +
      data - Message hash, 32 bytes
      +
      sec - Secret key, 32 bytes
      +
      Returns:
      +
      sig byte array of signature
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - on bad signature length
      +
      +
      +
    • +
    • +
      +

      secKeyVerify

      +
      public static boolean secKeyVerify(byte[] seckey)
      +
      libsecp256k1 Seckey Verify - returns 1 if valid, 0 if invalid
      +
      +
      Parameters:
      +
      seckey - ECDSA Secret key, 32 bytes
      +
      Returns:
      +
      true if valid, false if invalid
      +
      +
      +
    • +
    • +
      +

      computePubkey

      +
      public static byte[] computePubkey(byte[] seckey) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 Compute Pubkey - computes public key from secret key
      +
      +
      Parameters:
      +
      seckey - ECDSA Secret key, 32 bytes
      +
      Returns:
      +
      pubkey ECDSA Public key, 33 or 65 bytes
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - if bad pubkey length
      +
      +
      +
    • +
    • +
      +

      cleanup

      +
      public static void cleanup()
      +
      libsecp256k1 Cleanup - This destroys the secp256k1 context object This should be called at the end of the program + for proper cleanup of the context.
      +
      +
    • +
    • +
      +

      cloneContext

      +
      public static long cloneContext()
      +
      Clone context
      +
      +
      Returns:
      +
      context reference
      +
      +
      +
    • +
    • +
      +

      privKeyTweakMul

      +
      public static byte[] privKeyTweakMul(byte[] privkey, + byte[] tweak) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 PrivKey Tweak-Mul - Tweak privkey by multiplying to it
      +
      +
      Parameters:
      +
      tweak - some bytes to tweak with
      +
      privkey - 32-byte seckey
      +
      Returns:
      +
      The tweaked private key
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    • +
      +

      privKeyTweakAdd

      +
      public static byte[] privKeyTweakAdd(byte[] privkey, + byte[] tweak) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 PrivKey Tweak-Add - Tweak privkey by adding to it
      +
      +
      Parameters:
      +
      tweak - some bytes to tweak with
      +
      privkey - 32-byte seckey
      +
      Returns:
      +
      The tweaked private key
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    • +
      +

      pubKeyTweakAdd

      +
      public static byte[] pubKeyTweakAdd(byte[] pubkey, + byte[] tweak) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 PubKey Tweak-Add - Tweak pubkey by adding to it
      +
      +
      Parameters:
      +
      tweak - some bytes to tweak with
      +
      pubkey - 32-byte seckey
      +
      Returns:
      +
      The tweaked private key
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    • +
      +

      pubKeyTweakMul

      +
      public static byte[] pubKeyTweakMul(byte[] pubkey, + byte[] tweak) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 PubKey Tweak-Mul - Tweak pubkey by multiplying to it
      +
      +
      Parameters:
      +
      tweak - some bytes to tweak with
      +
      pubkey - 32-byte seckey
      +
      Returns:
      +
      The tweaked private key
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    • +
      +

      createECDHSecret

      +
      public static byte[] createECDHSecret(byte[] seckey, + byte[] pubkey) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 create ECDH secret - constant time ECDH calculation
      +
      +
      Parameters:
      +
      seckey - byte array of secret key used in exponentiation
      +
      pubkey - byte array of public key used in exponentiation
      +
      Returns:
      +
      the secret
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    • +
      +

      randomize

      +
      public static boolean randomize(byte[] seed) + throws NativeSecp256k1Util.AssertFailException
      +
      libsecp256k1 randomize - updates the context randomization
      +
      +
      Parameters:
      +
      seed - 32-byte random seed
      +
      Returns:
      +
      true if successful, false otherwise
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - never thrown?
      +
      +
      +
    • +
    • +
      +

      schnorrSign

      +
      public static byte[] schnorrSign(byte[] data, + byte[] sec) + throws NativeSecp256k1Util.AssertFailException
      +
      +
      Parameters:
      +
      data - data to sign
      +
      sec - secret key
      +
      Returns:
      +
      Signature or byte[0]
      +
      Throws:
      +
      NativeSecp256k1Util.AssertFailException - assertion failure
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.AssertFailException.html b/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.AssertFailException.html new file mode 100644 index 000000000..28ac070d3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.AssertFailException.html @@ -0,0 +1,156 @@ + + + + +NativeSecp256k1Util.AssertFailException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package org.bitcoin
+

Class NativeSecp256k1Util.AssertFailException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoin.NativeSecp256k1Util.AssertFailException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
NativeSecp256k1Util
+
+
+
public static class NativeSecp256k1Util.AssertFailException +extends Exception
+
Assertion failure exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AssertFailException

      +
      public AssertFailException(String message)
      +
      +
      Parameters:
      +
      message - The failure message
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.html b/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.html new file mode 100644 index 000000000..f2a78d405 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/NativeSecp256k1Util.html @@ -0,0 +1,243 @@ + + + + +NativeSecp256k1Util (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package org.bitcoin
+

Class NativeSecp256k1Util

+
+
java.lang.Object +
org.bitcoin.NativeSecp256k1Util
+
+
+
+
public class NativeSecp256k1Util +extends Object
+
Assertion utilities for NativeSecp256k1
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/Secp256k1Context.html b/javadoc/0.16.3/org/bitcoin/Secp256k1Context.html new file mode 100644 index 000000000..22e27f8ad --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/Secp256k1Context.html @@ -0,0 +1,177 @@ + + + + +Secp256k1Context (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+
Package org.bitcoin
+

Class Secp256k1Context

+
+
java.lang.Object +
org.bitcoin.Secp256k1Context
+
+
+
+
public class Secp256k1Context +extends Object
+
This class holds the context reference used in native methods to handle ECDSA operations.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Secp256k1Context

      +
      public Secp256k1Context()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEnabled

      +
      public static boolean isEnabled()
      +
      +
      Returns:
      +
      true if enabled
      +
      +
      +
    • +
    • +
      +

      getContext

      +
      public static long getContext()
      +
      +
      Returns:
      +
      context reference
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.Builder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.Builder.html new file mode 100644 index 000000000..41a1de7a1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.Builder.html @@ -0,0 +1,401 @@ + + + + +PeerSeedProtos.PeerSeedData.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.PeerSeedData.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder> +
org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, PeerSeedProtos.PeerSeedDataOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos.PeerSeedData
+
+
+
public static final class PeerSeedProtos.PeerSeedData.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder> +implements PeerSeedProtos.PeerSeedDataOrBuilder
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.html new file mode 100644 index 000000000..8e8d12180 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedData.html @@ -0,0 +1,605 @@ + + + + +PeerSeedProtos.PeerSeedData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.PeerSeedData

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder> +
org.bitcoin.crawler.PeerSeedProtos.PeerSeedData
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, PeerSeedProtos.PeerSeedDataOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static final class PeerSeedProtos.PeerSeedData +extends com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder> +implements PeerSeedProtos.PeerSeedDataOrBuilder
+
Protobuf type org.bitcoin.crawler.PeerSeedData
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type org.bitcoin.crawler.PeerSeedData
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    + + +
    +
    required string ip_address = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string ip_address = 1;
    +
    +
    int
    + +
    +
    required uint32 port = 2;
    +
    +
    int
    + +
    +
    required uint32 services = 3;
    +
    +
    boolean
    + +
    +
    required string ip_address = 1;
    +
    +
    boolean
    + +
    +
    required uint32 port = 2;
    +
    +
    boolean
    + +
    +
    required uint32 services = 3;
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<PeerSeedProtos.PeerSeedData>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedDataOrBuilder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedDataOrBuilder.html new file mode 100644 index 000000000..1dfcebbc9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedDataOrBuilder.html @@ -0,0 +1,244 @@ + + + + +PeerSeedProtos.PeerSeedDataOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerSeedProtos.PeerSeedDataOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
PeerSeedProtos.PeerSeedData, PeerSeedProtos.PeerSeedData.Builder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static interface PeerSeedProtos.PeerSeedDataOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    required string ip_address = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string ip_address = 1;
    +
    +
    int
    + +
    +
    required uint32 port = 2;
    +
    +
    int
    + +
    +
    required uint32 services = 3;
    +
    +
    boolean
    + +
    +
    required string ip_address = 1;
    +
    +
    boolean
    + +
    +
    required uint32 port = 2;
    +
    +
    boolean
    + +
    +
    required uint32 services = 3;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasIpAddress

      +
      boolean hasIpAddress()
      +
      required string ip_address = 1;
      +
      +
      Returns:
      +
      Whether the ipAddress field is set.
      +
      +
      +
    • +
    • +
      +

      getIpAddress

      +
      String getIpAddress()
      +
      required string ip_address = 1;
      +
      +
      Returns:
      +
      The ipAddress.
      +
      +
      +
    • +
    • +
      +

      getIpAddressBytes

      +
      com.google.protobuf.ByteString getIpAddressBytes()
      +
      required string ip_address = 1;
      +
      +
      Returns:
      +
      The bytes for ipAddress.
      +
      +
      +
    • +
    • +
      +

      hasPort

      +
      boolean hasPort()
      +
      required uint32 port = 2;
      +
      +
      Returns:
      +
      Whether the port field is set.
      +
      +
      +
    • +
    • +
      +

      getPort

      +
      int getPort()
      +
      required uint32 port = 2;
      +
      +
      Returns:
      +
      The port.
      +
      +
      +
    • +
    • +
      +

      hasServices

      +
      boolean hasServices()
      +
      required uint32 services = 3;
      +
      +
      Returns:
      +
      Whether the services field is set.
      +
      +
      +
    • +
    • +
      +

      getServices

      +
      int getServices()
      +
      required uint32 services = 3;
      +
      +
      Returns:
      +
      The services.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.Builder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.Builder.html new file mode 100644 index 000000000..b3115de57 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.Builder.html @@ -0,0 +1,515 @@ + + + + +PeerSeedProtos.PeerSeeds.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.PeerSeeds.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder> +
org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, PeerSeedProtos.PeerSeedsOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos.PeerSeeds
+
+
+
public static final class PeerSeedProtos.PeerSeeds.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder> +implements PeerSeedProtos.PeerSeedsOrBuilder
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.html new file mode 100644 index 000000000..5f7806b32 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeeds.html @@ -0,0 +1,651 @@ + + + + +PeerSeedProtos.PeerSeeds (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.PeerSeeds

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder> +
org.bitcoin.crawler.PeerSeedProtos.PeerSeeds
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, PeerSeedProtos.PeerSeedsOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static final class PeerSeedProtos.PeerSeeds +extends com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder> +implements PeerSeedProtos.PeerSeedsOrBuilder
+
Protobuf type org.bitcoin.crawler.PeerSeeds
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type org.bitcoin.crawler.PeerSeeds
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    + + +
    +
    required string net = 3;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string net = 3;
    +
    + +
    getSeed(int index)
    +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    +
    int
    + +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    + + +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    + +
    getSeedOrBuilder(int index)
    +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    + + +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    +
    long
    + +
    +
    + seconds since UNIX epoch
    +
    +
    boolean
    + +
    +
    required string net = 3;
    +
    +
    boolean
    + +
    +
    + seconds since UNIX epoch
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<PeerSeedProtos.PeerSeeds>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedsOrBuilder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedsOrBuilder.html new file mode 100644 index 000000000..09f3f6714 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.PeerSeedsOrBuilder.html @@ -0,0 +1,258 @@ + + + + +PeerSeedProtos.PeerSeedsOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerSeedProtos.PeerSeedsOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
PeerSeedProtos.PeerSeeds, PeerSeedProtos.PeerSeeds.Builder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static interface PeerSeedProtos.PeerSeedsOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    required string net = 3;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string net = 3;
    +
    + +
    getSeed(int index)
    +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    +
    int
    + +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    + + +
    +
    repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
    +
    +
    long
    + +
    +
    + seconds since UNIX epoch
    +
    +
    boolean
    + +
    +
    required string net = 3;
    +
    +
    boolean
    + +
    +
    + seconds since UNIX epoch
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getSeedList

      + +
      repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
      +
      +
    • +
    • +
      +

      getSeed

      +
      PeerSeedProtos.PeerSeedData getSeed(int index)
      +
      repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
      +
      +
    • +
    • +
      +

      getSeedCount

      +
      int getSeedCount()
      +
      repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
      +
      +
    • +
    • +
      +

      hasTimestamp

      +
      boolean hasTimestamp()
      +
      + seconds since UNIX epoch
      + 
      + + required uint64 timestamp = 2;
      +
      +
      Returns:
      +
      Whether the timestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getTimestamp

      +
      long getTimestamp()
      +
      + seconds since UNIX epoch
      + 
      + + required uint64 timestamp = 2;
      +
      +
      Returns:
      +
      The timestamp.
      +
      +
      +
    • +
    • +
      +

      hasNet

      +
      boolean hasNet()
      +
      required string net = 3;
      +
      +
      Returns:
      +
      Whether the net field is set.
      +
      +
      +
    • +
    • +
      +

      getNet

      +
      String getNet()
      +
      required string net = 3;
      +
      +
      Returns:
      +
      The net.
      +
      +
      +
    • +
    • +
      +

      getNetBytes

      +
      com.google.protobuf.ByteString getNetBytes()
      +
      required string net = 3;
      +
      +
      Returns:
      +
      The bytes for net.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.Builder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.Builder.html new file mode 100644 index 000000000..c41cd6601 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.Builder.html @@ -0,0 +1,365 @@ + + + + +PeerSeedProtos.SignedPeerSeeds.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.SignedPeerSeeds.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.SignedPeerSeeds,PeerSeedProtos.SignedPeerSeeds.Builder> +
org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos.SignedPeerSeeds
+
+
+
public static final class PeerSeedProtos.SignedPeerSeeds.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.SignedPeerSeeds,PeerSeedProtos.SignedPeerSeeds.Builder> +implements PeerSeedProtos.SignedPeerSeedsOrBuilder
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.html new file mode 100644 index 000000000..0d841bea6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeeds.html @@ -0,0 +1,587 @@ + + + + +PeerSeedProtos.SignedPeerSeeds (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos.SignedPeerSeeds

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.SignedPeerSeeds,PeerSeedProtos.SignedPeerSeeds.Builder> +
org.bitcoin.crawler.PeerSeedProtos.SignedPeerSeeds
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, PeerSeedProtos.SignedPeerSeedsOrBuilder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static final class PeerSeedProtos.SignedPeerSeeds +extends com.google.protobuf.GeneratedMessageLite<PeerSeedProtos.SignedPeerSeeds,PeerSeedProtos.SignedPeerSeeds.Builder> +implements PeerSeedProtos.SignedPeerSeedsOrBuilder
+
Protobuf type org.bitcoin.crawler.SignedPeerSeeds
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type org.bitcoin.crawler.SignedPeerSeeds
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes peer_seeds = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes pubkey = 3;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes signature = 2;
    +
    +
    boolean
    + +
    +
    required bytes peer_seeds = 1;
    +
    +
    boolean
    + +
    +
    required bytes pubkey = 3;
    +
    +
    boolean
    + +
    +
    required bytes signature = 2;
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<PeerSeedProtos.SignedPeerSeeds>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeedsOrBuilder.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeedsOrBuilder.html new file mode 100644 index 000000000..2fbb5e482 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.SignedPeerSeedsOrBuilder.html @@ -0,0 +1,228 @@ + + + + +PeerSeedProtos.SignedPeerSeedsOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerSeedProtos.SignedPeerSeedsOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
PeerSeedProtos.SignedPeerSeeds, PeerSeedProtos.SignedPeerSeeds.Builder
+
+
+
Enclosing class:
+
PeerSeedProtos
+
+
+
public static interface PeerSeedProtos.SignedPeerSeedsOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes peer_seeds = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes pubkey = 3;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes signature = 2;
    +
    +
    boolean
    + +
    +
    required bytes peer_seeds = 1;
    +
    +
    boolean
    + +
    +
    required bytes pubkey = 3;
    +
    +
    boolean
    + +
    +
    required bytes signature = 2;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPeerSeeds

      +
      boolean hasPeerSeeds()
      +
      required bytes peer_seeds = 1;
      +
      +
      Returns:
      +
      Whether the peerSeeds field is set.
      +
      +
      +
    • +
    • +
      +

      getPeerSeeds

      +
      com.google.protobuf.ByteString getPeerSeeds()
      +
      required bytes peer_seeds = 1;
      +
      +
      Returns:
      +
      The peerSeeds.
      +
      +
      +
    • +
    • +
      +

      hasSignature

      +
      boolean hasSignature()
      +
      required bytes signature = 2;
      +
      +
      Returns:
      +
      Whether the signature field is set.
      +
      +
      +
    • +
    • +
      +

      getSignature

      +
      com.google.protobuf.ByteString getSignature()
      +
      required bytes signature = 2;
      +
      +
      Returns:
      +
      The signature.
      +
      +
      +
    • +
    • +
      +

      hasPubkey

      +
      boolean hasPubkey()
      +
      required bytes pubkey = 3;
      +
      +
      Returns:
      +
      Whether the pubkey field is set.
      +
      +
      +
    • +
    • +
      +

      getPubkey

      +
      com.google.protobuf.ByteString getPubkey()
      +
      required bytes pubkey = 3;
      +
      +
      Returns:
      +
      The pubkey.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.html b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.html new file mode 100644 index 000000000..02bdc6ddf --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/PeerSeedProtos.html @@ -0,0 +1,168 @@ + + + + +PeerSeedProtos (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSeedProtos

+
+
java.lang.Object +
org.bitcoin.crawler.PeerSeedProtos
+
+
+
+
public final class PeerSeedProtos +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      registerAllExtensions

      +
      public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/package-summary.html b/javadoc/0.16.3/org/bitcoin/crawler/package-summary.html new file mode 100644 index 000000000..b42f173ea --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/package-summary.html @@ -0,0 +1,130 @@ + + + + +org.bitcoin.crawler (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoin.crawler

+
+
+
package org.bitcoin.crawler
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/crawler/package-tree.html b/javadoc/0.16.3/org/bitcoin/crawler/package-tree.html new file mode 100644 index 000000000..6a36ea785 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/crawler/package-tree.html @@ -0,0 +1,106 @@ + + + + +org.bitcoin.crawler Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoin.crawler

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/package-summary.html b/javadoc/0.16.3/org/bitcoin/package-summary.html new file mode 100644 index 000000000..a0d031045 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/package-summary.html @@ -0,0 +1,114 @@ + + + + +org.bitcoin (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoin

+
+
+
package org.bitcoin
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/package-tree.html b/javadoc/0.16.3/org/bitcoin/package-tree.html new file mode 100644 index 000000000..efc59b71b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/package-tree.html @@ -0,0 +1,83 @@ + + + + +org.bitcoin Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoin

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.Builder.html new file mode 100644 index 000000000..9614b3444 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.Builder.html @@ -0,0 +1,339 @@ + + + + +Protos.Output.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Output.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Output,Protos.Output.Builder> +
org.bitcoin.protocols.payments.Protos.Output.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.OutputOrBuilder
+
+
+
Enclosing class:
+
Protos.Output
+
+
+
public static final class Protos.Output.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Output,Protos.Output.Builder> +implements Protos.OutputOrBuilder
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+ 
+ + Protobuf type payments.Output
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + amount is integer-number-of-satoshis
    +
    + + +
    +
    + usually one of the standard Script forms
    +
    +
    long
    + +
    +
    + amount is integer-number-of-satoshis
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + usually one of the standard Script forms
    +
    +
    boolean
    + +
    +
    + amount is integer-number-of-satoshis
    +
    +
    boolean
    + +
    +
    + usually one of the standard Script forms
    +
    + +
    setAmount(long value)
    +
    +
    + amount is integer-number-of-satoshis
    +
    + +
    setScript(com.google.protobuf.ByteString value)
    +
    +
    + usually one of the standard Script forms
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasAmount

      +
      public boolean hasAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Specified by:
      +
      hasAmount in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      Whether the amount field is set.
      +
      +
      +
    • +
    • +
      +

      getAmount

      +
      public long getAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Specified by:
      +
      getAmount in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      The amount.
      +
      +
      +
    • +
    • +
      +

      setAmount

      +
      public Protos.Output.Builder setAmount(long value)
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Parameters:
      +
      value - The amount to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearAmount

      +
      public Protos.Output.Builder clearAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasScript

      +
      public boolean hasScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Specified by:
      +
      hasScript in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      Whether the script field is set.
      +
      +
      +
    • +
    • +
      +

      getScript

      +
      public com.google.protobuf.ByteString getScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Specified by:
      +
      getScript in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      The script.
      +
      +
      +
    • +
    • +
      +

      setScript

      +
      public Protos.Output.Builder setScript(com.google.protobuf.ByteString value)
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Parameters:
      +
      value - The script to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearScript

      +
      public Protos.Output.Builder clearScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.html new file mode 100644 index 000000000..48536a4bd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Output.html @@ -0,0 +1,559 @@ + + + + +Protos.Output (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Output

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Output,Protos.Output.Builder> +
org.bitcoin.protocols.payments.Protos.Output
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.OutputOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Output +extends com.google.protobuf.GeneratedMessageLite<Protos.Output,Protos.Output.Builder> +implements Protos.OutputOrBuilder
+
+ Generalized form of "send payment to this/these bitcoin addresses"
+ 
+ + Protobuf type payments.Output
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + Generalized form of "send payment to this/these bitcoin addresses"
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    long
    + +
    +
    + amount is integer-number-of-satoshis
    +
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    + usually one of the standard Script forms
    +
    +
    boolean
    + +
    +
    + amount is integer-number-of-satoshis
    +
    +
    boolean
    + +
    +
    + usually one of the standard Script forms
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Output>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      AMOUNT_FIELD_NUMBER

      +
      public static final int AMOUNT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SCRIPT_FIELD_NUMBER

      +
      public static final int SCRIPT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasAmount

      +
      public boolean hasAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Specified by:
      +
      hasAmount in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      Whether the amount field is set.
      +
      +
      +
    • +
    • +
      +

      getAmount

      +
      public long getAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Specified by:
      +
      getAmount in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      The amount.
      +
      +
      +
    • +
    • +
      +

      hasScript

      +
      public boolean hasScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Specified by:
      +
      hasScript in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      Whether the script field is set.
      +
      +
      +
    • +
    • +
      +

      getScript

      +
      public com.google.protobuf.ByteString getScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Specified by:
      +
      getScript in interface Protos.OutputOrBuilder
      +
      Returns:
      +
      The script.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Output parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Output parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Output parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Output.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Output.Builder newBuilder(Protos.Output prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Output,Protos.Output.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Output getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Output> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.OutputOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.OutputOrBuilder.html new file mode 100644 index 000000000..33715238e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.OutputOrBuilder.html @@ -0,0 +1,216 @@ + + + + +Protos.OutputOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.OutputOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Output, Protos.Output.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.OutputOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    + amount is integer-number-of-satoshis
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + usually one of the standard Script forms
    +
    +
    boolean
    + +
    +
    + amount is integer-number-of-satoshis
    +
    +
    boolean
    + +
    +
    + usually one of the standard Script forms
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasAmount

      +
      boolean hasAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Returns:
      +
      Whether the amount field is set.
      +
      +
      +
    • +
    • +
      +

      getAmount

      +
      long getAmount()
      +
      + amount is integer-number-of-satoshis
      + 
      + + optional uint64 amount = 1 [default = 0];
      +
      +
      Returns:
      +
      The amount.
      +
      +
      +
    • +
    • +
      +

      hasScript

      +
      boolean hasScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Returns:
      +
      Whether the script field is set.
      +
      +
      +
    • +
    • +
      +

      getScript

      +
      com.google.protobuf.ByteString getScript()
      +
      + usually one of the standard Script forms
      + 
      + + required bytes script = 2;
      +
      +
      Returns:
      +
      The script.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.Builder.html new file mode 100644 index 000000000..43262b0fc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.Builder.html @@ -0,0 +1,768 @@ + + + + +Protos.Payment.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Payment.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Payment,Protos.Payment.Builder> +
org.bitcoin.protocols.payments.Protos.Payment.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PaymentOrBuilder
+
+
+
Enclosing class:
+
Protos.Payment
+
+
+
public static final class Protos.Payment.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Payment,Protos.Payment.Builder> +implements Protos.PaymentOrBuilder
+
Protobuf type payments.Payment
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasMerchantData

      +
      public boolean hasMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Specified by:
      +
      hasMerchantData in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      public com.google.protobuf.ByteString getMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Specified by:
      +
      getMerchantData in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    • +
      +

      setMerchantData

      +
      public Protos.Payment.Builder setMerchantData(com.google.protobuf.ByteString value)
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Parameters:
      +
      value - The merchantData to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMerchantData

      +
      public Protos.Payment.Builder clearMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getTransactionsList

      +
      public List<com.google.protobuf.ByteString> getTransactionsList()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactionsList in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      A list containing the transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactionsCount

      +
      public int getTransactionsCount()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactionsCount in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The count of transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactions

      +
      public com.google.protobuf.ByteString getTransactions(int index)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactions in interface Protos.PaymentOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The transactions at the given index.
      +
      +
      +
    • +
    • +
      +

      setTransactions

      +
      public Protos.Payment.Builder setTransactions(int index, + com.google.protobuf.ByteString value)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Parameters:
      +
      value - The transactions to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addTransactions

      +
      public Protos.Payment.Builder addTransactions(com.google.protobuf.ByteString value)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Parameters:
      +
      value - The transactions to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllTransactions

      +
      public Protos.Payment.Builder addAllTransactions(Iterable<? extends com.google.protobuf.ByteString> values)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Parameters:
      +
      values - The transactions to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearTransactions

      +
      public Protos.Payment.Builder clearTransactions()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getRefundToList

      +
      public List<Protos.Output> getRefundToList()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundToList in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      getRefundToCount

      +
      public int getRefundToCount()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundToCount in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      getRefundTo

      +
      public Protos.Output getRefundTo(int index)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundTo in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      setRefundTo

      +
      public Protos.Payment.Builder setRefundTo(int index, + Protos.Output value)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      setRefundTo

      +
      public Protos.Payment.Builder setRefundTo(int index, + Protos.Output.Builder builderForValue)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      addRefundTo

      +
      public Protos.Payment.Builder addRefundTo(Protos.Output value)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      addRefundTo

      +
      public Protos.Payment.Builder addRefundTo(int index, + Protos.Output value)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      addRefundTo

      +
      public Protos.Payment.Builder addRefundTo(Protos.Output.Builder builderForValue)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      addRefundTo

      +
      public Protos.Payment.Builder addRefundTo(int index, + Protos.Output.Builder builderForValue)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      addAllRefundTo

      +
      public Protos.Payment.Builder addAllRefundTo(Iterable<? extends Protos.Output> values)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      clearRefundTo

      +
      public Protos.Payment.Builder clearRefundTo()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      removeRefundTo

      +
      public Protos.Payment.Builder removeRefundTo(int index)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      setMemo

      +
      public Protos.Payment.Builder setMemo(String value)
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Parameters:
      +
      value - The memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMemo

      +
      public Protos.Payment.Builder clearMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setMemoBytes

      +
      public Protos.Payment.Builder setMemoBytes(com.google.protobuf.ByteString value)
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Parameters:
      +
      value - The bytes for memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.html new file mode 100644 index 000000000..617c4f289 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.Payment.html @@ -0,0 +1,779 @@ + + + + +Protos.Payment (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Payment

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder> +
org.bitcoin.protocols.payments.Protos.Payment
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PaymentOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Payment +extends com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder> +implements Protos.PaymentOrBuilder
+
Protobuf type payments.Payment
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type payments.Payment
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    + + +
    +
    + Human-readable message for the merchant
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Human-readable message for the merchant
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + From PaymentDetails.merchant_data
    +
    + +
    getRefundTo(int index)
    +
    +
    + Where to send refunds, if a refund is necessary
    +
    +
    int
    + +
    +
    + Where to send refunds, if a refund is necessary
    +
    + + +
    +
    + Where to send refunds, if a refund is necessary
    +
    + + +
    +
    + Where to send refunds, if a refund is necessary
    +
    + + +
    +
    + Where to send refunds, if a refund is necessary
    +
    +
    com.google.protobuf.ByteString
    +
    getTransactions(int index)
    +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    int
    + +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    boolean
    + +
    +
    + Human-readable message for the merchant
    +
    +
    boolean
    + +
    +
    + From PaymentDetails.merchant_data
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Payment>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MERCHANT_DATA_FIELD_NUMBER

      +
      public static final int MERCHANT_DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TRANSACTIONS_FIELD_NUMBER

      +
      public static final int TRANSACTIONS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      REFUND_TO_FIELD_NUMBER

      +
      public static final int REFUND_TO_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MEMO_FIELD_NUMBER

      +
      public static final int MEMO_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasMerchantData

      +
      public boolean hasMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Specified by:
      +
      hasMerchantData in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      public com.google.protobuf.ByteString getMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Specified by:
      +
      getMerchantData in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    • +
      +

      getTransactionsList

      +
      public List<com.google.protobuf.ByteString> getTransactionsList()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactionsList in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      A list containing the transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactionsCount

      +
      public int getTransactionsCount()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactionsCount in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The count of transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactions

      +
      public com.google.protobuf.ByteString getTransactions(int index)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Specified by:
      +
      getTransactions in interface Protos.PaymentOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The transactions at the given index.
      +
      +
      +
    • +
    • +
      +

      getRefundToList

      +
      public List<Protos.Output> getRefundToList()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundToList in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      getRefundToOrBuilderList

      +
      public List<? extends Protos.OutputOrBuilder> getRefundToOrBuilderList()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      getRefundToCount

      +
      public int getRefundToCount()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundToCount in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      getRefundTo

      +
      public Protos.Output getRefundTo(int index)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
      Specified by:
      +
      getRefundTo in interface Protos.PaymentOrBuilder
      +
      +
      +
    • +
    • +
      +

      getRefundToOrBuilder

      +
      public Protos.OutputOrBuilder getRefundToOrBuilder(int index)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Payment parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Payment parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Payment.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Payment.Builder newBuilder(Protos.Payment prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Payment getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Payment> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.Builder.html new file mode 100644 index 000000000..9a2e16afc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.Builder.html @@ -0,0 +1,405 @@ + + + + +Protos.PaymentACK.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentACK.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentACK,Protos.PaymentACK.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentACK.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PaymentACKOrBuilder
+
+
+
Enclosing class:
+
Protos.PaymentACK
+
+
+
public static final class Protos.PaymentACK.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentACK,Protos.PaymentACK.Builder> +implements Protos.PaymentACKOrBuilder
+
Protobuf type payments.PaymentACK
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPayment

      +
      public boolean hasPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Specified by:
      +
      hasPayment in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      Whether the payment field is set.
      +
      +
      +
    • +
    • +
      +

      getPayment

      +
      public Protos.Payment getPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Specified by:
      +
      getPayment in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The payment.
      +
      +
      +
    • +
    • +
      +

      setPayment

      +
      public Protos.PaymentACK.Builder setPayment(Protos.Payment value)
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
    • +
    • +
      +

      setPayment

      +
      public Protos.PaymentACK.Builder setPayment(Protos.Payment.Builder builderForValue)
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
    • +
    • +
      +

      mergePayment

      +
      public Protos.PaymentACK.Builder mergePayment(Protos.Payment value)
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
    • +
    • +
      +

      clearPayment

      +
      public Protos.PaymentACK.Builder clearPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      setMemo

      +
      public Protos.PaymentACK.Builder setMemo(String value)
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Parameters:
      +
      value - The memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMemo

      +
      public Protos.PaymentACK.Builder clearMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setMemoBytes

      +
      public Protos.PaymentACK.Builder setMemoBytes(com.google.protobuf.ByteString value)
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Parameters:
      +
      value - The bytes for memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.html new file mode 100644 index 000000000..df88a30ff --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACK.html @@ -0,0 +1,577 @@ + + + + +Protos.PaymentACK (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentACK

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.PaymentACK,Protos.PaymentACK.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentACK
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PaymentACKOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.PaymentACK +extends com.google.protobuf.GeneratedMessageLite<Protos.PaymentACK,Protos.PaymentACK.Builder> +implements Protos.PaymentACKOrBuilder
+
Protobuf type payments.PaymentACK
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type payments.PaymentACK
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    + + +
    +
    + human-readable message for customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + human-readable message for customer
    +
    + + +
    +
    + Payment message that triggered this ACK
    +
    +
    boolean
    + +
    +
    + human-readable message for customer
    +
    +
    boolean
    + +
    +
    + Payment message that triggered this ACK
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.PaymentACK>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      PAYMENT_FIELD_NUMBER

      +
      public static final int PAYMENT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MEMO_FIELD_NUMBER

      +
      public static final int MEMO_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPayment

      +
      public boolean hasPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Specified by:
      +
      hasPayment in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      Whether the payment field is set.
      +
      +
      +
    • +
    • +
      +

      getPayment

      +
      public Protos.Payment getPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Specified by:
      +
      getPayment in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The payment.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentACKOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentACK parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentACK parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentACK parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentACK.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentACK.Builder newBuilder(Protos.PaymentACK prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.PaymentACK,Protos.PaymentACK.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.PaymentACK getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.PaymentACK> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACKOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACKOrBuilder.html new file mode 100644 index 000000000..d23020456 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentACKOrBuilder.html @@ -0,0 +1,237 @@ + + + + +Protos.PaymentACKOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.PaymentACKOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.PaymentACK, Protos.PaymentACK.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.PaymentACKOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + human-readable message for customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + human-readable message for customer
    +
    + + +
    +
    + Payment message that triggered this ACK
    +
    +
    boolean
    + +
    +
    + human-readable message for customer
    +
    +
    boolean
    + +
    +
    + Payment message that triggered this ACK
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPayment

      +
      boolean hasPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Returns:
      +
      Whether the payment field is set.
      +
      +
      +
    • +
    • +
      +

      getPayment

      +
      Protos.Payment getPayment()
      +
      + Payment message that triggered this ACK
      + 
      + + required .payments.Payment payment = 1;
      +
      +
      Returns:
      +
      The payment.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      boolean hasMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      String getMemo()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      com.google.protobuf.ByteString getMemoBytes()
      +
      + human-readable message for customer
      + 
      + + optional string memo = 2;
      +
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.Builder.html new file mode 100644 index 000000000..0fce45951 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.Builder.html @@ -0,0 +1,1057 @@ + + + + +Protos.PaymentDetails.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentDetails.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentDetails,Protos.PaymentDetails.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentDetails.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PaymentDetailsOrBuilder
+
+
+
Enclosing class:
+
Protos.PaymentDetails
+
+
+
public static final class Protos.PaymentDetails.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentDetails,Protos.PaymentDetails.Builder> +implements Protos.PaymentDetailsOrBuilder
+
Protobuf type payments.PaymentDetails
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetwork

      +
      public boolean hasNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      hasNetwork in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the network field is set.
      +
      +
      +
    • +
    • +
      +

      getNetwork

      +
      public String getNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      getNetwork in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The network.
      +
      +
      +
    • +
    • +
      +

      getNetworkBytes

      +
      public com.google.protobuf.ByteString getNetworkBytes()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      getNetworkBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for network.
      +
      +
      +
    • +
    • +
      +

      setNetwork

      +
      public Protos.PaymentDetails.Builder setNetwork(String value)
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Parameters:
      +
      value - The network to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearNetwork

      +
      public Protos.PaymentDetails.Builder clearNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setNetworkBytes

      +
      public Protos.PaymentDetails.Builder setNetworkBytes(com.google.protobuf.ByteString value)
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Parameters:
      +
      value - The bytes for network to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getOutputsList

      +
      public List<Protos.Output> getOutputsList()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputsList in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      getOutputsCount

      +
      public int getOutputsCount()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputsCount in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      getOutputs

      +
      public Protos.Output getOutputs(int index)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputs in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      setOutputs

      +
      public Protos.PaymentDetails.Builder setOutputs(int index, + Protos.Output value)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      setOutputs

      +
      public Protos.PaymentDetails.Builder setOutputs(int index, + Protos.Output.Builder builderForValue)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      addOutputs

      +
      public Protos.PaymentDetails.Builder addOutputs(Protos.Output value)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      addOutputs

      +
      public Protos.PaymentDetails.Builder addOutputs(int index, + Protos.Output value)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      addOutputs

      +
      public Protos.PaymentDetails.Builder addOutputs(Protos.Output.Builder builderForValue)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      addOutputs

      +
      public Protos.PaymentDetails.Builder addOutputs(int index, + Protos.Output.Builder builderForValue)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      addAllOutputs

      +
      public Protos.PaymentDetails.Builder addAllOutputs(Iterable<? extends Protos.Output> values)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      clearOutputs

      +
      public Protos.PaymentDetails.Builder clearOutputs()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      removeOutputs

      +
      public Protos.PaymentDetails.Builder removeOutputs(int index)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      hasTime

      +
      public boolean hasTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Specified by:
      +
      hasTime in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the time field is set.
      +
      +
      +
    • +
    • +
      +

      getTime

      +
      public long getTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Specified by:
      +
      getTime in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The time.
      +
      +
      +
    • +
    • +
      +

      setTime

      +
      public Protos.PaymentDetails.Builder setTime(long value)
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Parameters:
      +
      value - The time to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearTime

      +
      public Protos.PaymentDetails.Builder clearTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasExpires

      +
      public boolean hasExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Specified by:
      +
      hasExpires in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the expires field is set.
      +
      +
      +
    • +
    • +
      +

      getExpires

      +
      public long getExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Specified by:
      +
      getExpires in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The expires.
      +
      +
      +
    • +
    • +
      +

      setExpires

      +
      public Protos.PaymentDetails.Builder setExpires(long value)
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Parameters:
      +
      value - The expires to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearExpires

      +
      public Protos.PaymentDetails.Builder clearExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      setMemo

      +
      public Protos.PaymentDetails.Builder setMemo(String value)
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Parameters:
      +
      value - The memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMemo

      +
      public Protos.PaymentDetails.Builder clearMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setMemoBytes

      +
      public Protos.PaymentDetails.Builder setMemoBytes(com.google.protobuf.ByteString value)
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Parameters:
      +
      value - The bytes for memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasPaymentUrl

      +
      public boolean hasPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      hasPaymentUrl in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the paymentUrl field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrl

      +
      public String getPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      getPaymentUrl in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The paymentUrl.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrlBytes

      +
      public com.google.protobuf.ByteString getPaymentUrlBytes()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      getPaymentUrlBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for paymentUrl.
      +
      +
      +
    • +
    • +
      +

      setPaymentUrl

      +
      public Protos.PaymentDetails.Builder setPaymentUrl(String value)
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Parameters:
      +
      value - The paymentUrl to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPaymentUrl

      +
      public Protos.PaymentDetails.Builder clearPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setPaymentUrlBytes

      +
      public Protos.PaymentDetails.Builder setPaymentUrlBytes(com.google.protobuf.ByteString value)
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Parameters:
      +
      value - The bytes for paymentUrl to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasMerchantData

      +
      public boolean hasMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Specified by:
      +
      hasMerchantData in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      public com.google.protobuf.ByteString getMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Specified by:
      +
      getMerchantData in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    • +
      +

      setMerchantData

      +
      public Protos.PaymentDetails.Builder setMerchantData(com.google.protobuf.ByteString value)
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Parameters:
      +
      value - The merchantData to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMerchantData

      +
      public Protos.PaymentDetails.Builder clearMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.html new file mode 100644 index 000000000..dfb842d5b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetails.html @@ -0,0 +1,989 @@ + + + + +Protos.PaymentDetails (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentDetails

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentDetails
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PaymentDetailsOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.PaymentDetails +extends com.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder> +implements Protos.PaymentDetailsOrBuilder
+
Protobuf type payments.PaymentDetails
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type payments.PaymentDetails
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    long
    + +
    +
    + Timestamp; when this request should be considered invalid
    +
    + + +
    +
    + Human-readable description of request for the customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Human-readable description of request for the customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Arbitrary data to include in the Payment message
    +
    + + +
    +
    + "main" or "test"
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + "main" or "test"
    +
    + +
    getOutputs(int index)
    +
    +
    + Where payment should be sent
    +
    +
    int
    + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    long
    + +
    +
    + Timestamp; when payment request created
    +
    +
    boolean
    + +
    +
    + Timestamp; when this request should be considered invalid
    +
    +
    boolean
    + +
    +
    + Human-readable description of request for the customer
    +
    +
    boolean
    + +
    +
    + Arbitrary data to include in the Payment message
    +
    +
    boolean
    + +
    +
    + "main" or "test"
    +
    +
    boolean
    + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    boolean
    + +
    +
    + Timestamp; when payment request created
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.PaymentDetails>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      NETWORK_FIELD_NUMBER

      +
      public static final int NETWORK_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      OUTPUTS_FIELD_NUMBER

      +
      public static final int OUTPUTS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TIME_FIELD_NUMBER

      +
      public static final int TIME_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      EXPIRES_FIELD_NUMBER

      +
      public static final int EXPIRES_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MEMO_FIELD_NUMBER

      +
      public static final int MEMO_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PAYMENT_URL_FIELD_NUMBER

      +
      public static final int PAYMENT_URL_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MERCHANT_DATA_FIELD_NUMBER

      +
      public static final int MERCHANT_DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetwork

      +
      public boolean hasNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      hasNetwork in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the network field is set.
      +
      +
      +
    • +
    • +
      +

      getNetwork

      +
      public String getNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      getNetwork in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The network.
      +
      +
      +
    • +
    • +
      +

      getNetworkBytes

      +
      public com.google.protobuf.ByteString getNetworkBytes()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Specified by:
      +
      getNetworkBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for network.
      +
      +
      +
    • +
    • +
      +

      getOutputsList

      +
      public List<Protos.Output> getOutputsList()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputsList in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      getOutputsOrBuilderList

      +
      public List<? extends Protos.OutputOrBuilder> getOutputsOrBuilderList()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      getOutputsCount

      +
      public int getOutputsCount()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputsCount in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      getOutputs

      +
      public Protos.Output getOutputs(int index)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
      Specified by:
      +
      getOutputs in interface Protos.PaymentDetailsOrBuilder
      +
      +
      +
    • +
    • +
      +

      getOutputsOrBuilder

      +
      public Protos.OutputOrBuilder getOutputsOrBuilder(int index)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      hasTime

      +
      public boolean hasTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Specified by:
      +
      hasTime in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the time field is set.
      +
      +
      +
    • +
    • +
      +

      getTime

      +
      public long getTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Specified by:
      +
      getTime in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The time.
      +
      +
      +
    • +
    • +
      +

      hasExpires

      +
      public boolean hasExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Specified by:
      +
      hasExpires in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the expires field is set.
      +
      +
      +
    • +
    • +
      +

      getExpires

      +
      public long getExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Specified by:
      +
      getExpires in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The expires.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      hasPaymentUrl

      +
      public boolean hasPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      hasPaymentUrl in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the paymentUrl field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrl

      +
      public String getPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      getPaymentUrl in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The paymentUrl.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrlBytes

      +
      public com.google.protobuf.ByteString getPaymentUrlBytes()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Specified by:
      +
      getPaymentUrlBytes in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The bytes for paymentUrl.
      +
      +
      +
    • +
    • +
      +

      hasMerchantData

      +
      public boolean hasMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Specified by:
      +
      hasMerchantData in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      public com.google.protobuf.ByteString getMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Specified by:
      +
      getMerchantData in interface Protos.PaymentDetailsOrBuilder
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentDetails parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentDetails parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentDetails.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentDetails.Builder newBuilder(Protos.PaymentDetails prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.PaymentDetails getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.PaymentDetails> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetailsOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetailsOrBuilder.html new file mode 100644 index 000000000..421f452d8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentDetailsOrBuilder.html @@ -0,0 +1,498 @@ + + + + +Protos.PaymentDetailsOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.PaymentDetailsOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.PaymentDetails, Protos.PaymentDetails.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.PaymentDetailsOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    + Timestamp; when this request should be considered invalid
    +
    + + +
    +
    + Human-readable description of request for the customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Human-readable description of request for the customer
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Arbitrary data to include in the Payment message
    +
    + + +
    +
    + "main" or "test"
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + "main" or "test"
    +
    + +
    getOutputs(int index)
    +
    +
    + Where payment should be sent
    +
    +
    int
    + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + Where payment should be sent
    +
    + + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    long
    + +
    +
    + Timestamp; when payment request created
    +
    +
    boolean
    + +
    +
    + Timestamp; when this request should be considered invalid
    +
    +
    boolean
    + +
    +
    + Human-readable description of request for the customer
    +
    +
    boolean
    + +
    +
    + Arbitrary data to include in the Payment message
    +
    +
    boolean
    + +
    +
    + "main" or "test"
    +
    +
    boolean
    + +
    +
    + URL to send Payment and get PaymentACK
    +
    +
    boolean
    + +
    +
    + Timestamp; when payment request created
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetwork

      +
      boolean hasNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Returns:
      +
      Whether the network field is set.
      +
      +
      +
    • +
    • +
      +

      getNetwork

      +
      String getNetwork()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Returns:
      +
      The network.
      +
      +
      +
    • +
    • +
      +

      getNetworkBytes

      +
      com.google.protobuf.ByteString getNetworkBytes()
      +
      + "main" or "test"
      + 
      + + optional string network = 1 [default = "main"];
      +
      +
      Returns:
      +
      The bytes for network.
      +
      +
      +
    • +
    • +
      +

      getOutputsList

      +
      List<Protos.Output> getOutputsList()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      getOutputs

      +
      Protos.Output getOutputs(int index)
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      getOutputsCount

      +
      int getOutputsCount()
      +
      + Where payment should be sent
      + 
      + + repeated .payments.Output outputs = 2;
      +
      +
    • +
    • +
      +

      hasTime

      +
      boolean hasTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Returns:
      +
      Whether the time field is set.
      +
      +
      +
    • +
    • +
      +

      getTime

      +
      long getTime()
      +
      + Timestamp; when payment request created
      + 
      + + required uint64 time = 3;
      +
      +
      Returns:
      +
      The time.
      +
      +
      +
    • +
    • +
      +

      hasExpires

      +
      boolean hasExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Returns:
      +
      Whether the expires field is set.
      +
      +
      +
    • +
    • +
      +

      getExpires

      +
      long getExpires()
      +
      + Timestamp; when this request should be considered invalid
      + 
      + + optional uint64 expires = 4;
      +
      +
      Returns:
      +
      The expires.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      boolean hasMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      String getMemo()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable description of request for the customer
      + 
      + + optional string memo = 5;
      +
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      hasPaymentUrl

      +
      boolean hasPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Returns:
      +
      Whether the paymentUrl field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrl

      +
      String getPaymentUrl()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Returns:
      +
      The paymentUrl.
      +
      +
      +
    • +
    • +
      +

      getPaymentUrlBytes

      +
      com.google.protobuf.ByteString getPaymentUrlBytes()
      +
      + URL to send Payment and get PaymentACK
      + 
      + + optional string payment_url = 6;
      +
      +
      Returns:
      +
      The bytes for paymentUrl.
      +
      +
      +
    • +
    • +
      +

      hasMerchantData

      +
      boolean hasMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      com.google.protobuf.ByteString getMerchantData()
      +
      + Arbitrary data to include in the Payment message
      + 
      + + optional bytes merchant_data = 7;
      +
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentOrBuilder.html new file mode 100644 index 000000000..9f40f09b8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentOrBuilder.html @@ -0,0 +1,353 @@ + + + + +Protos.PaymentOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.PaymentOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Payment, Protos.Payment.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.PaymentOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + Human-readable message for the merchant
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Human-readable message for the merchant
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + From PaymentDetails.merchant_data
    +
    + +
    getRefundTo(int index)
    +
    +
    + Where to send refunds, if a refund is necessary
    +
    +
    int
    + +
    +
    + Where to send refunds, if a refund is necessary
    +
    + + +
    +
    + Where to send refunds, if a refund is necessary
    +
    +
    com.google.protobuf.ByteString
    +
    getTransactions(int index)
    +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    int
    + +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + Signed transactions that satisfy PaymentDetails.outputs
    +
    +
    boolean
    + +
    +
    + Human-readable message for the merchant
    +
    +
    boolean
    + +
    +
    + From PaymentDetails.merchant_data
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasMerchantData

      +
      boolean hasMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Returns:
      +
      Whether the merchantData field is set.
      +
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      com.google.protobuf.ByteString getMerchantData()
      +
      + From PaymentDetails.merchant_data
      + 
      + + optional bytes merchant_data = 1;
      +
      +
      Returns:
      +
      The merchantData.
      +
      +
      +
    • +
    • +
      +

      getTransactionsList

      +
      List<com.google.protobuf.ByteString> getTransactionsList()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Returns:
      +
      A list containing the transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactionsCount

      +
      int getTransactionsCount()
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Returns:
      +
      The count of transactions.
      +
      +
      +
    • +
    • +
      +

      getTransactions

      +
      com.google.protobuf.ByteString getTransactions(int index)
      +
      + Signed transactions that satisfy PaymentDetails.outputs
      + 
      + + repeated bytes transactions = 2;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The transactions at the given index.
      +
      +
      +
    • +
    • +
      +

      getRefundToList

      +
      List<Protos.Output> getRefundToList()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      getRefundTo

      +
      Protos.Output getRefundTo(int index)
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      getRefundToCount

      +
      int getRefundToCount()
      +
      + Where to send refunds, if a refund is necessary
      + 
      + + repeated .payments.Output refund_to = 3;
      +
      +
    • +
    • +
      +

      hasMemo

      +
      boolean hasMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      String getMemo()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      com.google.protobuf.ByteString getMemoBytes()
      +
      + Human-readable message for the merchant
      + 
      + + optional string memo = 4;
      +
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.Builder.html new file mode 100644 index 000000000..7388a296d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.Builder.html @@ -0,0 +1,631 @@ + + + + +Protos.PaymentRequest.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentRequest.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentRequest,Protos.PaymentRequest.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PaymentRequestOrBuilder
+
+
+
Enclosing class:
+
Protos.PaymentRequest
+
+
+
public static final class Protos.PaymentRequest.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentRequest,Protos.PaymentRequest.Builder> +implements Protos.PaymentRequestOrBuilder
+
Protobuf type payments.PaymentRequest
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPaymentDetailsVersion

      +
      public boolean hasPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Specified by:
      +
      hasPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the paymentDetailsVersion field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentDetailsVersion

      +
      public int getPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Specified by:
      +
      getPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The paymentDetailsVersion.
      +
      +
      +
    • +
    • +
      +

      setPaymentDetailsVersion

      +
      public Protos.PaymentRequest.Builder setPaymentDetailsVersion(int value)
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Parameters:
      +
      value - The paymentDetailsVersion to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPaymentDetailsVersion

      +
      public Protos.PaymentRequest.Builder clearPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasPkiType

      +
      public boolean hasPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      hasPkiType in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the pkiType field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiType

      +
      public String getPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      getPkiType in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The pkiType.
      +
      +
      +
    • +
    • +
      +

      getPkiTypeBytes

      +
      public com.google.protobuf.ByteString getPkiTypeBytes()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      getPkiTypeBytes in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The bytes for pkiType.
      +
      +
      +
    • +
    • +
      +

      setPkiType

      +
      public Protos.PaymentRequest.Builder setPkiType(String value)
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Parameters:
      +
      value - The pkiType to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPkiType

      +
      public Protos.PaymentRequest.Builder clearPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setPkiTypeBytes

      +
      public Protos.PaymentRequest.Builder setPkiTypeBytes(com.google.protobuf.ByteString value)
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Parameters:
      +
      value - The bytes for pkiType to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasPkiData

      +
      public boolean hasPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Specified by:
      +
      hasPkiData in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the pkiData field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiData

      +
      public com.google.protobuf.ByteString getPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Specified by:
      +
      getPkiData in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The pkiData.
      +
      +
      +
    • +
    • +
      +

      setPkiData

      +
      public Protos.PaymentRequest.Builder setPkiData(com.google.protobuf.ByteString value)
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Parameters:
      +
      value - The pkiData to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPkiData

      +
      public Protos.PaymentRequest.Builder clearPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSerializedPaymentDetails

      +
      public boolean hasSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Specified by:
      +
      hasSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the serializedPaymentDetails field is set.
      +
      +
      +
    • +
    • +
      +

      getSerializedPaymentDetails

      +
      public com.google.protobuf.ByteString getSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Specified by:
      +
      getSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The serializedPaymentDetails.
      +
      +
      +
    • +
    • +
      +

      setSerializedPaymentDetails

      +
      public Protos.PaymentRequest.Builder setSerializedPaymentDetails(com.google.protobuf.ByteString value)
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Parameters:
      +
      value - The serializedPaymentDetails to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSerializedPaymentDetails

      +
      public Protos.PaymentRequest.Builder clearSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSignature

      +
      public boolean hasSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Specified by:
      +
      hasSignature in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the signature field is set.
      +
      +
      +
    • +
    • +
      +

      getSignature

      +
      public com.google.protobuf.ByteString getSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Specified by:
      +
      getSignature in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The signature.
      +
      +
      +
    • +
    • +
      +

      setSignature

      +
      public Protos.PaymentRequest.Builder setSignature(com.google.protobuf.ByteString value)
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Parameters:
      +
      value - The signature to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSignature

      +
      public Protos.PaymentRequest.Builder clearSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.html new file mode 100644 index 000000000..cd0c8ff7a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequest.html @@ -0,0 +1,756 @@ + + + + +Protos.PaymentRequest (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PaymentRequest

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder> +
org.bitcoin.protocols.payments.Protos.PaymentRequest
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PaymentRequestOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.PaymentRequest +extends com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder> +implements Protos.PaymentRequestOrBuilder
+
Protobuf type payments.PaymentRequest
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type payments.PaymentRequest
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    int
    + +
    +
    optional uint32 payment_details_version = 1 [default = 1];
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + depends on pki_type
    +
    + + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + PaymentDetails
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + pki-dependent signature
    +
    +
    boolean
    + +
    +
    optional uint32 payment_details_version = 1 [default = 1];
    +
    +
    boolean
    + +
    +
    + depends on pki_type
    +
    +
    boolean
    + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    boolean
    + +
    +
    + PaymentDetails
    +
    +
    boolean
    + +
    +
    + pki-dependent signature
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.PaymentRequest>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      PAYMENT_DETAILS_VERSION_FIELD_NUMBER

      +
      public static final int PAYMENT_DETAILS_VERSION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PKI_TYPE_FIELD_NUMBER

      +
      public static final int PKI_TYPE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PKI_DATA_FIELD_NUMBER

      +
      public static final int PKI_DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER

      +
      public static final int SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SIGNATURE_FIELD_NUMBER

      +
      public static final int SIGNATURE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPaymentDetailsVersion

      +
      public boolean hasPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Specified by:
      +
      hasPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the paymentDetailsVersion field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentDetailsVersion

      +
      public int getPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Specified by:
      +
      getPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The paymentDetailsVersion.
      +
      +
      +
    • +
    • +
      +

      hasPkiType

      +
      public boolean hasPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      hasPkiType in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the pkiType field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiType

      +
      public String getPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      getPkiType in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The pkiType.
      +
      +
      +
    • +
    • +
      +

      getPkiTypeBytes

      +
      public com.google.protobuf.ByteString getPkiTypeBytes()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Specified by:
      +
      getPkiTypeBytes in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The bytes for pkiType.
      +
      +
      +
    • +
    • +
      +

      hasPkiData

      +
      public boolean hasPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Specified by:
      +
      hasPkiData in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the pkiData field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiData

      +
      public com.google.protobuf.ByteString getPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Specified by:
      +
      getPkiData in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The pkiData.
      +
      +
      +
    • +
    • +
      +

      hasSerializedPaymentDetails

      +
      public boolean hasSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Specified by:
      +
      hasSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the serializedPaymentDetails field is set.
      +
      +
      +
    • +
    • +
      +

      getSerializedPaymentDetails

      +
      public com.google.protobuf.ByteString getSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Specified by:
      +
      getSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The serializedPaymentDetails.
      +
      +
      +
    • +
    • +
      +

      hasSignature

      +
      public boolean hasSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Specified by:
      +
      hasSignature in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      Whether the signature field is set.
      +
      +
      +
    • +
    • +
      +

      getSignature

      +
      public com.google.protobuf.ByteString getSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Specified by:
      +
      getSignature in interface Protos.PaymentRequestOrBuilder
      +
      Returns:
      +
      The signature.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentRequest parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PaymentRequest parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentRequest.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PaymentRequest.Builder newBuilder(Protos.PaymentRequest prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.PaymentRequest getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.PaymentRequest> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequestOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequestOrBuilder.html new file mode 100644 index 000000000..d67ffdf83 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.PaymentRequestOrBuilder.html @@ -0,0 +1,353 @@ + + + + +Protos.PaymentRequestOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.PaymentRequestOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.PaymentRequest, Protos.PaymentRequest.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.PaymentRequestOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
    +
    optional uint32 payment_details_version = 1 [default = 1];
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + depends on pki_type
    +
    + + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + PaymentDetails
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + pki-dependent signature
    +
    +
    boolean
    + +
    +
    optional uint32 payment_details_version = 1 [default = 1];
    +
    +
    boolean
    + +
    +
    + depends on pki_type
    +
    +
    boolean
    + +
    +
    + none / x509+sha256 / x509+sha1
    +
    +
    boolean
    + +
    +
    + PaymentDetails
    +
    +
    boolean
    + +
    +
    + pki-dependent signature
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasPaymentDetailsVersion

      +
      boolean hasPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Returns:
      +
      Whether the paymentDetailsVersion field is set.
      +
      +
      +
    • +
    • +
      +

      getPaymentDetailsVersion

      +
      int getPaymentDetailsVersion()
      +
      optional uint32 payment_details_version = 1 [default = 1];
      +
      +
      Returns:
      +
      The paymentDetailsVersion.
      +
      +
      +
    • +
    • +
      +

      hasPkiType

      +
      boolean hasPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Returns:
      +
      Whether the pkiType field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiType

      +
      String getPkiType()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Returns:
      +
      The pkiType.
      +
      +
      +
    • +
    • +
      +

      getPkiTypeBytes

      +
      com.google.protobuf.ByteString getPkiTypeBytes()
      +
      + none / x509+sha256 / x509+sha1
      + 
      + + optional string pki_type = 2 [default = "none"];
      +
      +
      Returns:
      +
      The bytes for pkiType.
      +
      +
      +
    • +
    • +
      +

      hasPkiData

      +
      boolean hasPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Returns:
      +
      Whether the pkiData field is set.
      +
      +
      +
    • +
    • +
      +

      getPkiData

      +
      com.google.protobuf.ByteString getPkiData()
      +
      + depends on pki_type
      + 
      + + optional bytes pki_data = 3;
      +
      +
      Returns:
      +
      The pkiData.
      +
      +
      +
    • +
    • +
      +

      hasSerializedPaymentDetails

      +
      boolean hasSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Returns:
      +
      Whether the serializedPaymentDetails field is set.
      +
      +
      +
    • +
    • +
      +

      getSerializedPaymentDetails

      +
      com.google.protobuf.ByteString getSerializedPaymentDetails()
      +
      + PaymentDetails
      + 
      + + required bytes serialized_payment_details = 4;
      +
      +
      Returns:
      +
      The serializedPaymentDetails.
      +
      +
      +
    • +
    • +
      +

      hasSignature

      +
      boolean hasSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Returns:
      +
      Whether the signature field is set.
      +
      +
      +
    • +
    • +
      +

      getSignature

      +
      com.google.protobuf.ByteString getSignature()
      +
      + pki-dependent signature
      + 
      + + optional bytes signature = 5;
      +
      +
      Returns:
      +
      The signature.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.Builder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.Builder.html new file mode 100644 index 000000000..beb290e2a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.Builder.html @@ -0,0 +1,318 @@ + + + + +Protos.X509Certificates.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.X509Certificates.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.X509Certificates,Protos.X509Certificates.Builder> +
org.bitcoin.protocols.payments.Protos.X509Certificates.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.X509CertificatesOrBuilder
+
+
+
Enclosing class:
+
Protos.X509Certificates
+
+
+
public static final class Protos.X509Certificates.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.X509Certificates,Protos.X509Certificates.Builder> +implements Protos.X509CertificatesOrBuilder
+
Protobuf type payments.X509Certificates
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    addAllCertificate(Iterable<? extends com.google.protobuf.ByteString> values)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    + +
    addCertificate(com.google.protobuf.ByteString value)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    + + +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    com.google.protobuf.ByteString
    +
    getCertificate(int index)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    int
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    + +
    setCertificate(int index, + com.google.protobuf.ByteString value)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getCertificateList

      +
      public List<com.google.protobuf.ByteString> getCertificateList()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificateList in interface Protos.X509CertificatesOrBuilder
      +
      Returns:
      +
      A list containing the certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificateCount

      +
      public int getCertificateCount()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificateCount in interface Protos.X509CertificatesOrBuilder
      +
      Returns:
      +
      The count of certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificate

      +
      public com.google.protobuf.ByteString getCertificate(int index)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificate in interface Protos.X509CertificatesOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The certificate at the given index.
      +
      +
      +
    • +
    • +
      +

      setCertificate

      +
      public Protos.X509Certificates.Builder setCertificate(int index, + com.google.protobuf.ByteString value)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Parameters:
      +
      value - The certificate to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addCertificate

      +
      public Protos.X509Certificates.Builder addCertificate(com.google.protobuf.ByteString value)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Parameters:
      +
      value - The certificate to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllCertificate

      +
      public Protos.X509Certificates.Builder addAllCertificate(Iterable<? extends com.google.protobuf.ByteString> values)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Parameters:
      +
      values - The certificate to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearCertificate

      +
      public Protos.X509Certificates.Builder clearCertificate()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.html new file mode 100644 index 000000000..fe565d316 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509Certificates.html @@ -0,0 +1,516 @@ + + + + +Protos.X509Certificates (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.X509Certificates

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.X509Certificates,Protos.X509Certificates.Builder> +
org.bitcoin.protocols.payments.Protos.X509Certificates
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.X509CertificatesOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.X509Certificates +extends com.google.protobuf.GeneratedMessageLite<Protos.X509Certificates,Protos.X509Certificates.Builder> +implements Protos.X509CertificatesOrBuilder
+
Protobuf type payments.X509Certificates
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type payments.X509Certificates
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    +
    getCertificate(int index)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    int
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    + + +
     
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.X509Certificates>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      CERTIFICATE_FIELD_NUMBER

      +
      public static final int CERTIFICATE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getCertificateList

      +
      public List<com.google.protobuf.ByteString> getCertificateList()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificateList in interface Protos.X509CertificatesOrBuilder
      +
      Returns:
      +
      A list containing the certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificateCount

      +
      public int getCertificateCount()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificateCount in interface Protos.X509CertificatesOrBuilder
      +
      Returns:
      +
      The count of certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificate

      +
      public com.google.protobuf.ByteString getCertificate(int index)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Specified by:
      +
      getCertificate in interface Protos.X509CertificatesOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The certificate at the given index.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.X509Certificates parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.X509Certificates parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.X509Certificates parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.X509Certificates.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.X509Certificates.Builder newBuilder(Protos.X509Certificates prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.X509Certificates,Protos.X509Certificates.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.X509Certificates getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.X509Certificates> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509CertificatesOrBuilder.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509CertificatesOrBuilder.html new file mode 100644 index 000000000..1486ec71c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.X509CertificatesOrBuilder.html @@ -0,0 +1,197 @@ + + + + +Protos.X509CertificatesOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.X509CertificatesOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.X509Certificates, Protos.X509Certificates.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.X509CertificatesOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    +
    getCertificate(int index)
    +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    int
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + DER-encoded X.509 certificate chain
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getCertificateList

      +
      List<com.google.protobuf.ByteString> getCertificateList()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Returns:
      +
      A list containing the certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificateCount

      +
      int getCertificateCount()
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Returns:
      +
      The count of certificate.
      +
      +
      +
    • +
    • +
      +

      getCertificate

      +
      com.google.protobuf.ByteString getCertificate(int index)
      +
      + DER-encoded X.509 certificate chain
      + 
      + + repeated bytes certificate = 1;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The certificate at the given index.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.html new file mode 100644 index 000000000..f7f9a5ff6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/Protos.html @@ -0,0 +1,193 @@ + + + + +Protos (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos

+
+
java.lang.Object +
org.bitcoin.protocols.payments.Protos
+
+
+
+
public final class Protos +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      registerAllExtensions

      +
      public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/package-summary.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/package-summary.html new file mode 100644 index 000000000..20928ac97 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/package-summary.html @@ -0,0 +1,151 @@ + + + + +org.bitcoin.protocols.payments (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoin.protocols.payments

+
+
+
package org.bitcoin.protocols.payments
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoin/protocols/payments/package-tree.html b/javadoc/0.16.3/org/bitcoin/protocols/payments/package-tree.html new file mode 100644 index 000000000..597625d35 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoin/protocols/payments/package-tree.html @@ -0,0 +1,115 @@ + + + + +org.bitcoin.protocols.payments Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoin.protocols.payments

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.NewBlockType.html b/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.NewBlockType.html new file mode 100644 index 000000000..d229655ad --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.NewBlockType.html @@ -0,0 +1,229 @@ + + + + +AbstractBlockChain.NewBlockType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class AbstractBlockChain.NewBlockType

+
+
java.lang.Object +
java.lang.Enum<AbstractBlockChain.NewBlockType> +
org.bitcoinj.core.AbstractBlockChain.NewBlockType
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<AbstractBlockChain.NewBlockType>, Constable
+
+
+
Enclosing class:
+
AbstractBlockChain
+
+
+
public static enum AbstractBlockChain.NewBlockType +extends Enum<AbstractBlockChain.NewBlockType>
+
Indicates whether new Block was on the best chain or not
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static AbstractBlockChain.NewBlockType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static AbstractBlockChain.NewBlockType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.html b/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.html new file mode 100644 index 000000000..346c5808e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AbstractBlockChain.html @@ -0,0 +1,1061 @@ + + + + +AbstractBlockChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AbstractBlockChain

+
+
java.lang.Object +
org.bitcoinj.core.AbstractBlockChain
+
+
+
+
Direct Known Subclasses:
+
BlockChain, FullPrunedBlockChain
+
+
+
public abstract class AbstractBlockChain +extends Object
+

An AbstractBlockChain 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.

+ +

It can be connected to a Wallet, and also TransactionReceivedInBlockListeners that can receive transactions and + notifications of re-organizations.

+ +

An AbstractBlockChain implementation must be connected to a BlockStore implementation. The chain object + by itself doesn't store any data, that's delegated to the store. Which store you use is a decision best made by + reading the getting started guide, but briefly, fully validating block chains need fully validating stores. In + the lightweight SPV mode, a SPVBlockStore is the right choice.

+ +

This class implements an abstract class which makes it simple to create a BlockChain that does/doesn't do full + verification. It verifies headers and is implements most of what is required to implement SPV mode, but + also provides callback hooks which can be used to do full verification.

+ +

There are two subclasses of AbstractBlockChain that are useful: BlockChain, which is the simplest + class and implements simplified payment verification. This is a lightweight and efficient mode that does + not verify the contents of blocks, just their headers. A FullPrunedBlockChain paired with a + H2FullPrunedBlockStore implements full verification, which is equivalent to + Bitcoin Core. To learn more about the alternative security models, please consult the articles on the + website.

+ + Theory + +

The 'chain' is actually a tree although in normal operation it operates mostly as a list of Blocks. + When multiple new head blocks are found simultaneously, there are multiple stories of the economy competing to become + the one true consensus. This can happen naturally when two miners solve a block within a few seconds of each other, + or it can happen when the chain is under attack.

+ +

A reference to the head block of the best known chain is stored. If you can reach the genesis block by repeatedly + walking through the prevBlock pointers, then we say this is a full chain. If you cannot reach the genesis block + we say it is an orphan chain. Orphan chains can occur when blocks are solved and received during the initial block + chain download, or if we connect to a peer that doesn't send us blocks in order.

+ +

A reorganize occurs when the blocks that make up the best known chain change. Note that simply adding a + new block to the top of the best chain isn't a reorganize, but that a reorganize is always triggered by adding + a new block that connects to some other (non best head) block. By "best" we mean the chain representing the largest + amount of work done.

+ +

Every so often the block chain passes a difficulty transition point. At that time, all the blocks in the last + 2016 blocks are examined and a new difficulty target is calculated from them.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      lock

      +
      protected final ReentrantLock lock
      +
      synchronization lock
      +
      +
    • +
    • +
      +

      chainHead

      +
      protected StoredBlock chainHead
      +
      Tracks the top of the best known chain.

      + + Following this one down to the genesis block produces the story of the economy from the creation of Bitcoin + until the present day. The chain head can change if a new set of blocks is received that results in a chain of + greater work than the one obtained by following this one down. In that case a reorganize is triggered, + potentially invalidating transactions in our wallet.

      +
      +
    • +
    • +
      +

      params

      +
      protected final NetworkParameters params
      +
      network parameters for this chain
      +
      +
    • +
    • +
      +

      FP_ESTIMATOR_ALPHA

      +
      public static final double FP_ESTIMATOR_ALPHA
      +
      False positive estimation uses a double exponential moving average.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      FP_ESTIMATOR_BETA

      +
      public static final double FP_ESTIMATOR_BETA
      +
      False positive estimation uses a double exponential moving average.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AbstractBlockChain

      +
      public AbstractBlockChain(NetworkParameters params, + List<? extends Wallet> wallets, + BlockStore blockStore) + throws BlockStoreException
      +
      Constructs a BlockChain connected to the given list of listeners (wallets) and a store.
      +
      +
      Parameters:
      +
      params - network parameters for this chain
      +
      wallets - list of listeners (wallets)
      +
      blockStore - where to store blocks
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    • +
      +

      AbstractBlockChain

      +
      public AbstractBlockChain(Context context, + List<? extends Wallet> wallets, + BlockStore blockStore) + throws BlockStoreException
      +
      Constructs a BlockChain connected to the given list of listeners (wallets) and a store.
      +
      +
      Parameters:
      +
      context - context for this network
      +
      wallets - list of listeners (wallets)
      +
      blockStore - where to store blocks
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addWallet

      +
      public final void addWallet(Wallet wallet)
      +
      Add a wallet to the BlockChain. Note that the wallet will be unaffected by any blocks received while it + was not part of this BlockChain. This method is useful if the wallet has just been created, and its keys + have never been in use, or if the wallet has been loaded along with the BlockChain. Note that adding multiple + wallets is not well tested!
      +
      +
      Parameters:
      +
      wallet - wallet to add
      +
      +
      +
    • +
    • +
      +

      removeWallet

      +
      public void removeWallet(Wallet wallet)
      +
      Remove a wallet from the chain.
      +
      +
      Parameters:
      +
      wallet - wallet to remove
      +
      +
      +
    • +
    • +
      +

      addNewBestBlockListener

      +
      public void addNewBestBlockListener(NewBestBlockListener listener)
      +
      Adds a NewBestBlockListener listener to the chain.
      +
      +
      Parameters:
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      addNewBestBlockListener

      +
      public final void addNewBestBlockListener(Executor executor, + NewBestBlockListener listener)
      +
      Adds a NewBestBlockListener listener to the chain.
      +
      +
      Parameters:
      +
      executor - executor to listen on
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      addReorganizeListener

      +
      public void addReorganizeListener(ReorganizeListener listener)
      +
      Adds a generic ReorganizeListener listener to the chain.
      +
      +
      Parameters:
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      addReorganizeListener

      +
      public final void addReorganizeListener(Executor executor, + ReorganizeListener listener)
      +
      Adds a generic ReorganizeListener listener to the chain.
      +
      +
      Parameters:
      +
      executor - executor to listen on
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      addTransactionReceivedListener

      +
      public void addTransactionReceivedListener(TransactionReceivedInBlockListener listener)
      +
      Adds a generic TransactionReceivedInBlockListener listener to the chain.
      +
      +
      Parameters:
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      addTransactionReceivedListener

      +
      public final void addTransactionReceivedListener(Executor executor, + TransactionReceivedInBlockListener listener)
      +
      Adds a generic TransactionReceivedInBlockListener listener to the chain.
      +
      +
      Parameters:
      +
      executor - executor to listen on
      +
      listener - listener to add
      +
      +
      +
    • +
    • +
      +

      removeNewBestBlockListener

      +
      public void removeNewBestBlockListener(NewBestBlockListener listener)
      +
      Removes the given NewBestBlockListener from the chain.
      +
      +
      Parameters:
      +
      listener - listener to remove
      +
      +
      +
    • +
    • +
      +

      removeReorganizeListener

      +
      public void removeReorganizeListener(ReorganizeListener listener)
      +
      Removes the given ReorganizeListener from the chain.
      +
      +
      Parameters:
      +
      listener - listener to remove
      +
      +
      +
    • +
    • +
      +

      removeTransactionReceivedListener

      +
      public void removeTransactionReceivedListener(TransactionReceivedInBlockListener listener)
      +
      Removes the given TransactionReceivedInBlockListener from the chain.
      +
      +
      Parameters:
      +
      listener - listener to remove
      +
      +
      +
    • +
    • +
      +

      getBlockStore

      +
      public BlockStore getBlockStore()
      +
      Returns the BlockStore the chain was constructed with. You can use this to iterate over the chain.
      +
      +
      Returns:
      +
      the BlockStore the chain was constructed with
      +
      +
      +
    • +
    • +
      +

      addToBlockStore

      +
      protected abstract StoredBlock addToBlockStore(StoredBlock storedPrev, + Block block) + throws BlockStoreException, +VerificationException
      +
      Adds/updates the given Block with the block store. + This version is used when the transactions have not been verified.
      +
      +
      Parameters:
      +
      storedPrev - The StoredBlock which immediately precedes block.
      +
      block - The Block to add/update.
      +
      Returns:
      +
      the newly created StoredBlock
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      VerificationException - if the block is invalid
      +
      +
      +
    • +
    • +
      +

      addToBlockStore

      +
      protected abstract StoredBlock addToBlockStore(StoredBlock storedPrev, + Block header, + @Nullable + TransactionOutputChanges txOutputChanges) + throws BlockStoreException, +VerificationException
      +
      Adds/updates the given StoredBlock with the block store. + This version is used when the transactions have already been verified to properly spend txOutputChanges.
      +
      +
      Parameters:
      +
      storedPrev - The StoredBlock which immediately precedes block.
      +
      header - The StoredBlock to add/update.
      +
      txOutputChanges - The total sum of all changes made by this block to the set of open transaction outputs + (from a call to connectTransactions), if in fully verifying mode (null otherwise).
      +
      Returns:
      +
      the newly created StoredBlock
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      VerificationException - if the block is invalid
      +
      +
      +
    • +
    • +
      +

      rollbackBlockStore

      +
      protected abstract void rollbackBlockStore(int height) + throws BlockStoreException
      +
      Rollback the block store to a given height. This is currently only supported by BlockChain instances.
      +
      +
      Parameters:
      +
      height - height to roll back to
      +
      Throws:
      +
      BlockStoreException - if the operation fails or is unsupported.
      +
      +
      +
    • +
    • +
      +

      doSetChainHead

      +
      protected abstract void doSetChainHead(StoredBlock chainHead) + throws BlockStoreException
      +
      Called before setting chain head in memory. + Should write the new head to block store and then commit any database transactions + that were started by disconnectTransactions/connectTransactions.
      +
      +
      Parameters:
      +
      chainHead - chain head to set
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    • +
      +

      notSettingChainHead

      +
      protected abstract void notSettingChainHead() + throws BlockStoreException
      +
      Called if we (possibly) previously called disconnectTransaction/connectTransactions, + but will not be calling preSetChainHead as a block failed verification. + Can be used to abort database transactions that were started by + disconnectTransactions/connectTransactions.
      +
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    • +
      +

      getStoredBlockInCurrentScope

      +
      protected abstract StoredBlock getStoredBlockInCurrentScope(Sha256Hash hash) + throws BlockStoreException
      +
      For a standard BlockChain, this should return blockStore.get(hash), + for a FullPrunedBlockChain blockStore.getOnceUndoableStoredBlock(hash)
      +
      +
      Parameters:
      +
      hash - hash of block to fetch
      +
      Returns:
      +
      block with matching hash
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    • +
      +

      add

      +
      public boolean add(Block block) + throws VerificationException, +PrunedException
      +
      Processes a received block and tries to add it to the chain. If there's something wrong with the block an + exception is thrown. If the block is OK but cannot be connected to the chain at this time, returns false. + If the block can be connected to the chain, returns true. + Accessing block's transactions in another thread while this method runs may result in undefined behavior.
      +
      +
      Parameters:
      +
      block - block to add
      +
      Returns:
      +
      true if block can be connected, false if block is valid but can't be connected
      +
      Throws:
      +
      VerificationException - block is invalid or contains invalid transactions
      +
      PrunedException - a reorg that is too-long for our stored block data has occurred
      +
      +
      +
    • +
    • +
      +

      add

      +
      public boolean add(FilteredBlock block) + throws VerificationException, +PrunedException
      +
      Processes a received block and tries to add it to the chain. If there's something wrong with the block an + exception is thrown. If the block is OK but cannot be connected to the chain at this time, returns false. + If the block can be connected to the chain, returns true.
      +
      +
      Parameters:
      +
      block - received block
      +
      Returns:
      +
      true if block can be connected, false if block is valid but can't be connected
      +
      Throws:
      +
      VerificationException - if invalid block
      +
      PrunedException - a reorg that is too-long for our stored block data has occurred
      +
      +
      +
    • +
    • +
      +

      shouldVerifyTransactions

      +
      protected abstract boolean shouldVerifyTransactions()
      +
      Whether or not we are maintaining a set of unspent outputs and are verifying all transactions. + Also indicates that all calls to add() should provide a block containing transactions
      +
      +
      Returns:
      +
      true if we are verifying all transactions
      +
      +
      +
    • +
    • +
      +

      connectTransactions

      +
      protected abstract TransactionOutputChanges connectTransactions(int height, + Block block) + throws VerificationException, +BlockStoreException
      +
      Connect each transaction in block.transactions, verifying them as we go and removing spent outputs + If an error is encountered in a transaction, no changes should be made to the underlying BlockStore. + and a VerificationException should be thrown. + Only called if(shouldVerifyTransactions())
      +
      +
      Parameters:
      +
      height - block height to attach at
      +
      block - block to connect
      +
      Returns:
      +
      The full set of all changes made to the set of open transaction outputs.
      +
      Throws:
      +
      VerificationException - if an attempt was made to spend an already-spent output, or if a transaction incorrectly solved an output script.
      +
      BlockStoreException - if the block store had an underlying error.
      +
      +
      +
    • +
    • +
      +

      connectTransactions

      +
      protected abstract TransactionOutputChanges connectTransactions(StoredBlock newBlock) + throws VerificationException, +BlockStoreException, +PrunedException
      +
      Load newBlock from BlockStore and connect its transactions, returning changes to the set of unspent transactions. + If an error is encountered in a transaction, no changes should be made to the underlying BlockStore. + Only called if(shouldVerifyTransactions())
      +
      +
      Parameters:
      +
      newBlock - block to load
      +
      Returns:
      +
      The full set of all changes made to the set of open transaction outputs.
      +
      Throws:
      +
      PrunedException - if newBlock does not exist as a StoredUndoableBlock in the block store.
      +
      VerificationException - if an attempt was made to spend an already-spent output, or if a transaction incorrectly solved an output script.
      +
      BlockStoreException - if the block store had an underlying error or newBlock does not exist in the block store at all.
      +
      +
      +
    • +
    • +
      +

      drainOrphanBlocks

      +
      public Set<Sha256Hash> drainOrphanBlocks()
      +
      Returns the hashes of the currently stored orphan blocks and then deletes them from this objects storage. + Used by Peer when a filter exhaustion event has occurred and thus any orphan blocks that have been downloaded + might be inaccurate/incomplete.
      +
      +
      Returns:
      +
      hashes of deleted blocks
      +
      +
      +
    • +
    • +
      +

      disconnectTransactions

      +
      protected abstract void disconnectTransactions(StoredBlock block) + throws PrunedException, +BlockStoreException
      +
      Disconnect each transaction in the block (after reading it from the block store) + Only called if(shouldVerifyTransactions())
      +
      +
      Parameters:
      +
      block - block to disconnect
      +
      Throws:
      +
      PrunedException - if block does not exist as a StoredUndoableBlock in the block store.
      +
      BlockStoreException - if the block store had an underlying error or block does not exist in the block store at all.
      +
      +
      +
    • +
    • +
      +

      getBestChainHeight

      +
      public final int getBestChainHeight()
      +
      +
      Returns:
      +
      the height of the best known chain, convenience for getChainHead().getHeight().
      +
      +
      +
    • +
    • +
      +

      setChainHead

      +
      protected void setChainHead(StoredBlock chainHead) + throws BlockStoreException
      +
      +
      Parameters:
      +
      chainHead - chain head to set
      +
      Throws:
      +
      BlockStoreException - if a failure occurs while storing a block
      +
      +
      +
    • +
    • +
      +

      getChainHead

      +
      public StoredBlock getChainHead()
      +
      Returns the block at the head of the current best chain. This is the block which represents the greatest + amount of cumulative work done.
      +
      +
      Returns:
      +
      block at the head of the current best chain
      +
      +
      +
    • +
    • +
      +

      getOrphanRoot

      +
      @Nullable +public Block getOrphanRoot(Sha256Hash from)
      +
      An orphan block is one that does not connect to the chain anywhere (ie we can't find its parent, therefore + it's an orphan). Typically, this occurs when we are downloading the chain and didn't reach the head yet, and/or + if a block is solved whilst we are downloading. It's possible that we see a small amount of orphan blocks which + chain together, this method tries walking backwards through the known orphan blocks to find the bottom-most.
      +
      +
      Parameters:
      +
      from - hash of block to walk backwards from
      +
      Returns:
      +
      from or one of froms parents, or null if "from" does not identify an orphan block
      +
      +
      +
    • +
    • +
      +

      isOrphan

      +
      public boolean isOrphan(Sha256Hash block)
      +
      Returns true if the given block is currently in the orphan blocks list.
      +
      +
      Parameters:
      +
      block - block to check
      +
      Returns:
      +
      true if block is an orphan
      +
      +
      +
    • +
    • +
      +

      estimateBlockTime

      +
      public Date estimateBlockTime(int height)
      +
      Returns an estimate of when the given block will be reached, assuming a perfect 10 minute average for each + block. This is useful for turning transaction lock times into human readable times. Note that a height in + the past will still be estimated, even though the time of solving is actually known (we won't scan backwards + through the chain to obtain the right answer).
      +
      +
      Parameters:
      +
      height - block time to estimate
      +
      Returns:
      +
      estimated date block will be mined
      +
      +
      +
    • +
    • +
      +

      getHeightFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<StoredBlock> getHeightFuture(int height)
      +
      Returns a future that completes when the block chain has reached the given height. Yields the + StoredBlock of the block that reaches that height first. The future completes on a peer thread.
      +
      +
      Parameters:
      +
      height - desired height
      +
      Returns:
      +
      future that will complete when height is reached
      +
      +
      +
    • +
    • +
      +

      getFalsePositiveRate

      +
      public double getFalsePositiveRate()
      +
      The false positive rate is the average over all blockchain transactions of: + + - 1.0 if the transaction was false-positive (was irrelevant to all listeners) + - 0.0 if the transaction was relevant or filtered out
      +
      +
      Returns:
      +
      the false positive rate
      +
      +
      +
    • +
    • +
      +

      trackFilteredTransactions

      +
      protected void trackFilteredTransactions(int count)
      +
      We completed handling of a filtered block. Update false-positive estimate based + on the total number of transactions in the original block. + + count includes filtered transactions, transactions that were passed in and were relevant + and transactions that were false positives (i.e. includes all transactions in the block).
      +
      +
      Parameters:
      +
      count - total number of transactions in original block
      +
      +
      +
    • +
    • +
      +

      resetFalsePositiveEstimate

      +
      public void resetFalsePositiveEstimate()
      +
      Resets estimates of false positives. Used when the filter is sent to the peer.
      +
      +
    • +
    • +
      +

      getVersionTally

      +
      protected VersionTally getVersionTally()
      +
      +
      Returns:
      +
      version tally (not thread safe!)
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Address.html b/javadoc/0.16.3/org/bitcoinj/core/Address.html new file mode 100644 index 000000000..c4d594602 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Address.html @@ -0,0 +1,331 @@ + + + + +Address (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Address

+
+ +
+
+
All Implemented Interfaces:
+
Serializable, Cloneable, Comparable<Address>
+
+
+
Direct Known Subclasses:
+
LegacyAddress, SegwitAddress
+
+
+
public abstract class Address +extends PrefixedChecksummedBytes +implements Comparable<Address>
+
Base class for addresses, e.g. native segwit addresses (SegwitAddress) or legacy addresses (LegacyAddress). +

+ Use fromString(NetworkParameters, String) to conveniently construct any kind of address from its textual + form.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Address

      +
      protected Address(NetworkParameters params, + byte[] bytes)
      +
      Construct an address from its binary form.
      +
      +
      Parameters:
      +
      params - the network this address is valid for
      +
      bytes - the binary address data
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      fromString

      +
      public static Address fromString(@Nullable + NetworkParameters params, + String str) + throws AddressFormatException
      +
      Construct an address from its textual form.
      +
      +
      Parameters:
      +
      params - the expected network this address is valid for, or null if the network should be derived from the + textual form
      +
      str - the textual form of the address, such as "17kzeh4N8g49GFvdDzSf8PjaPfyoD1MndL" or + "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4"
      +
      Returns:
      +
      constructed address
      +
      Throws:
      +
      AddressFormatException - if the given string doesn't parse or the checksum is invalid
      +
      AddressFormatException.WrongNetwork - if the given string is valid but not for the expected network (eg testnet vs mainnet)
      +
      +
      +
    • +
    • +
      +

      fromKey

      +
      public static Address fromKey(NetworkParameters params, + ECKey key, + Script.ScriptType outputScriptType)
      +
      Construct an Address that represents the public part of the given ECKey.
      +
      +
      Parameters:
      +
      params - network this address is valid for
      +
      key - only the public part is used
      +
      outputScriptType - script type the address should use
      +
      Returns:
      +
      constructed address
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public abstract byte[] getHash()
      +
      Get either the public key hash or script hash that is encoded in the address.
      +
      +
      Returns:
      +
      hash that is encoded in the address
      +
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      public abstract Script.ScriptType getOutputScriptType()
      +
      Get the type of output script that will be used for sending to the address.
      +
      +
      Returns:
      +
      type of output script
      +
      +
      +
    • +
    • +
      +

      compareTo

      +
      public abstract int compareTo(Address o)
      +
      Comparison field order for addresses is: +
        +
      1. NetworkParameters.getId()
      2. +
      3. Legacy vs. Segwit
      4. +
      5. (Legacy only) Version byte
      6. +
      7. remaining bytes
      8. +
      +

      + Implementations may use compareAddressPartial for tests 1 and 2.

      +
      +
      Specified by:
      +
      compareTo in interface Comparable<Address>
      +
      Parameters:
      +
      o - other Address object
      +
      Returns:
      +
      comparison result
      +
      +
      +
    • +
    • +
      +

      compareAddressPartial

      +
      protected int compareAddressPartial(Address o)
      +
      Comparator for the first two comparison fields in Address comparisons, see compareTo(Address). + Used by LegacyAddress.compareTo(Address) and SegwitAddress.compareTo(Address).
      +
      +
      Parameters:
      +
      o - other Address object
      +
      Returns:
      +
      comparison result
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidCharacter.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidCharacter.html new file mode 100644 index 000000000..b14bee6fb --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidCharacter.html @@ -0,0 +1,209 @@ + + + + +AddressFormatException.InvalidCharacter (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.InvalidCharacter

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.InvalidCharacter +extends AddressFormatException
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and a character isn't valid. You shouldn't allow the user to proceed in this + case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      character

      +
      public final char character
      +
      +
    • +
    • +
      +

      position

      +
      public final int position
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidCharacter

      +
      public InvalidCharacter(char character, + int position)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidChecksum.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidChecksum.html new file mode 100644 index 000000000..d0ad7fc0d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidChecksum.html @@ -0,0 +1,177 @@ + + + + +AddressFormatException.InvalidChecksum (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.InvalidChecksum

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.InvalidChecksum +extends AddressFormatException
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the checksum isn't valid. You shouldn't allow the user to proceed in this + case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidChecksum

      +
      public InvalidChecksum()
      +
      +
    • +
    • +
      +

      InvalidChecksum

      +
      public InvalidChecksum(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidDataLength.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidDataLength.html new file mode 100644 index 000000000..fd8873789 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidDataLength.html @@ -0,0 +1,177 @@ + + + + +AddressFormatException.InvalidDataLength (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.InvalidDataLength

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.InvalidDataLength +extends AddressFormatException
+
This exception is thrown by Base58, Bech32 and the PrefixedChecksummedBytes hierarchy of + classes when you try to decode data and the data isn't of the right size. You shouldn't allow the user to proceed + in this case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidDataLength

      +
      public InvalidDataLength()
      +
      +
    • +
    • +
      +

      InvalidDataLength

      +
      public InvalidDataLength(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidPrefix.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidPrefix.html new file mode 100644 index 000000000..90f581c1a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.InvalidPrefix.html @@ -0,0 +1,181 @@ + + + + +AddressFormatException.InvalidPrefix (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.InvalidPrefix

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
AddressFormatException.WrongNetwork
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.InvalidPrefix +extends AddressFormatException
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address or private key with an invalid prefix (version header or human-readable part). You shouldn't allow the + user to proceed in this case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidPrefix

      +
      public InvalidPrefix()
      +
      +
    • +
    • +
      +

      InvalidPrefix

      +
      public InvalidPrefix(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.UnexpectedWitnessVersion.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.UnexpectedWitnessVersion.html new file mode 100644 index 000000000..5b1bc0c99 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.UnexpectedWitnessVersion.html @@ -0,0 +1,176 @@ + + + + +AddressFormatException.UnexpectedWitnessVersion (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.UnexpectedWitnessVersion

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.UnexpectedWitnessVersion +extends AddressFormatException
+
This exception is thrown by SegwitAddress when you try to decode data and the witness version doesn't + match the Bech32 encoding as per BIP350. You shouldn't allow the user to proceed in this case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UnexpectedWitnessVersion

      +
      public UnexpectedWitnessVersion()
      +
      +
    • +
    • +
      +

      UnexpectedWitnessVersion

      +
      public UnexpectedWitnessVersion(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.WrongNetwork.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.WrongNetwork.html new file mode 100644 index 000000000..7adedfff0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.WrongNetwork.html @@ -0,0 +1,180 @@ + + + + +AddressFormatException.WrongNetwork (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException.WrongNetwork

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
AddressFormatException
+
+
+
public static class AddressFormatException.WrongNetwork +extends AddressFormatException.InvalidPrefix
+
This exception is thrown by the PrefixedChecksummedBytes hierarchy of classes when you try and decode an + address with a prefix (version header or human-readable part) that used by another network (usually: mainnet vs + testnet). You shouldn't allow the user to proceed in this case as they are trying to send money across different + chains, an operation that is guaranteed to destroy the money.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      WrongNetwork

      +
      public WrongNetwork(int versionHeader)
      +
      +
    • +
    • +
      +

      WrongNetwork

      +
      public WrongNetwork(String hrp)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.html b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.html new file mode 100644 index 000000000..8b2ce6292 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressFormatException.html @@ -0,0 +1,212 @@ + + + + +AddressFormatException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressFormatException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
AddressFormatException.InvalidCharacter, AddressFormatException.InvalidChecksum, AddressFormatException.InvalidDataLength, AddressFormatException.InvalidPrefix, AddressFormatException.UnexpectedWitnessVersion
+
+
+
public class AddressFormatException +extends IllegalArgumentException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AddressFormatException

      +
      public AddressFormatException()
      +
      +
    • +
    • +
      +

      AddressFormatException

      +
      public AddressFormatException(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressMessage.html b/javadoc/0.16.3/org/bitcoinj/core/AddressMessage.html new file mode 100644 index 000000000..70187dad6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressMessage.html @@ -0,0 +1,233 @@ + + + + +AddressMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.AddressMessage
+
+
+
+
+
Direct Known Subclasses:
+
AddressV1Message, AddressV2Message
+
+
+
public abstract class AddressMessage +extends Message
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      addAddress

      +
      public abstract void addAddress(PeerAddress address)
      +
      +
    • +
    • +
      +

      removeAddress

      +
      public void removeAddress(int index)
      +
      +
    • +
    • +
      +

      getAddresses

      +
      public List<PeerAddress> getAddresses()
      +
      +
      Returns:
      +
      An unmodifiableList view of the backing List of addresses. Addresses contained within the list may be + safely modified.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressV1Message.html b/javadoc/0.16.3/org/bitcoinj/core/AddressV1Message.html new file mode 100644 index 000000000..dd6540d1d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressV1Message.html @@ -0,0 +1,192 @@ + + + + +AddressV1Message (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressV1Message

+
+ +
+
+
public class AddressV1Message +extends AddressMessage
+

Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers. This is + one of the ways peers can find each other without using the DNS or IRC discovery mechanisms. However storing and + using addr messages is not presently implemented.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/AddressV2Message.html b/javadoc/0.16.3/org/bitcoinj/core/AddressV2Message.html new file mode 100644 index 000000000..021295f89 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/AddressV2Message.html @@ -0,0 +1,194 @@ + + + + +AddressV2Message (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AddressV2Message

+
+ +
+
+
public class AddressV2Message +extends AddressMessage
+

Represents an "addrv2" message on the P2P network, which contains broadcast IP addresses of other peers. This is + one of the ways peers can find each other without using the DNS or IRC discovery mechanisms. However storing and + using addrv2 messages is not presently implemented.

+ +

See BIP155 for details.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Base58.html b/javadoc/0.16.3/org/bitcoinj/core/Base58.html new file mode 100644 index 000000000..4325c14f9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Base58.html @@ -0,0 +1,297 @@ + + + + +Base58 (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Base58

+
+
java.lang.Object +
org.bitcoinj.core.Base58
+
+
+
+
public class Base58 +extends Object
+
Base58 is a way to encode Bitcoin addresses (or arbitrary data) as alphanumeric strings. +

+ Note that this is not the same base58 as used by Flickr, which you may find referenced around the Internet. +

+ You may want to consider working with PrefixedChecksummedBytes instead, which + adds support for testing the prefix and suffix bytes commonly found in addresses. +

+ Satoshi explains: why base-58 instead of standard base-64 encoding? +

    +
  • Don't want 0OIl characters that look the same in some fonts and + could be used to create visually identical looking account numbers.
  • +
  • A string with non-alphanumeric characters is not as easily accepted as an account number.
  • +
  • E-mail usually won't line-break if there's no punctuation to break at.
  • +
  • Doubleclicking selects the whole number as one word if it's all alphanumeric.
  • +
+

+ However, note that the encoding/decoding runs in O(n²) time, so it is not useful for large data. +

+ The basic idea of the encoding is to treat the data bytes as a large number represented using + base-256 digits, convert the number to be represented using base-58 digits, preserve the exact + number of leading zeros (which are otherwise lost during the mathematical operations on the + numbers), and finally represent the resulting base-58 digits as alphanumeric ASCII characters.

+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final char[]
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static byte[]
    +
    decode(String input)
    +
    +
    Decodes the given base58 string into the original data bytes.
    +
    +
    static byte[]
    + +
    +
    Decodes the given base58 string into the original data bytes, using the checksum in the + last 4 bytes of the decoded data to verify that the rest are correct.
    +
    +
    static BigInteger
    + +
     
    +
    static String
    +
    encode(byte[] input)
    +
    +
    Encodes the given bytes as a base58 string (no checksum is appended).
    +
    +
    static String
    +
    encodeChecked(int version, + byte[] payload)
    +
    +
    Encodes the given version and bytes as a base58 string.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ALPHABET

      +
      public static final char[] ALPHABET
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Base58

      +
      public Base58()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      encode

      +
      public static String encode(byte[] input)
      +
      Encodes the given bytes as a base58 string (no checksum is appended).
      +
      +
      Parameters:
      +
      input - the bytes to encode
      +
      Returns:
      +
      the base58-encoded string
      +
      +
      +
    • +
    • +
      +

      encodeChecked

      +
      public static String encodeChecked(int version, + byte[] payload)
      +
      Encodes the given version and bytes as a base58 string. A checksum is appended.
      +
      +
      Parameters:
      +
      version - the version to encode
      +
      payload - the bytes to encode, e.g. pubkey hash
      +
      Returns:
      +
      the base58-encoded string
      +
      +
      +
    • +
    • +
      +

      decode

      +
      public static byte[] decode(String input) + throws AddressFormatException
      +
      Decodes the given base58 string into the original data bytes.
      +
      +
      Parameters:
      +
      input - the base58-encoded string to decode
      +
      Returns:
      +
      the decoded data bytes
      +
      Throws:
      +
      AddressFormatException - if the given string is not a valid base58 string
      +
      +
      +
    • +
    • +
      +

      decodeToBigInteger

      +
      public static BigInteger decodeToBigInteger(String input) + throws AddressFormatException
      +
      +
      Throws:
      +
      AddressFormatException
      +
      +
      +
    • +
    • +
      +

      decodeChecked

      +
      public static byte[] decodeChecked(String input) + throws AddressFormatException
      +
      Decodes the given base58 string into the original data bytes, using the checksum in the + last 4 bytes of the decoded data to verify that the rest are correct. The checksum is + removed from the returned data.
      +
      +
      Parameters:
      +
      input - the base58-encoded string to decode (which should include the checksum)
      +
      Throws:
      +
      AddressFormatException - if the input is not base 58 or the checksum does not validate.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Bech32.Bech32Data.html b/javadoc/0.16.3/org/bitcoinj/core/Bech32.Bech32Data.html new file mode 100644 index 000000000..2c7e75cb4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Bech32.Bech32Data.html @@ -0,0 +1,152 @@ + + + + +Bech32.Bech32Data (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Bech32.Bech32Data

+
+
java.lang.Object +
org.bitcoinj.core.Bech32.Bech32Data
+
+
+
+
Enclosing class:
+
Bech32
+
+
+
public static class Bech32.Bech32Data +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      encoding

      +
      public final Bech32.Encoding encoding
      +
      +
    • +
    • +
      +

      hrp

      +
      public final String hrp
      +
      +
    • +
    • +
      +

      data

      +
      public final byte[] data
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Bech32.Encoding.html b/javadoc/0.16.3/org/bitcoinj/core/Bech32.Encoding.html new file mode 100644 index 000000000..7a45f39dd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Bech32.Encoding.html @@ -0,0 +1,222 @@ + + + + +Bech32.Encoding (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Bech32.Encoding

+
+
java.lang.Object +
java.lang.Enum<Bech32.Encoding> +
org.bitcoinj.core.Bech32.Encoding
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Bech32.Encoding>, Constable
+
+
+
Enclosing class:
+
Bech32
+
+
+
public static enum Bech32.Encoding +extends Enum<Bech32.Encoding>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Bech32.Encoding[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Bech32.Encoding valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Bech32.html b/javadoc/0.16.3/org/bitcoinj/core/Bech32.html new file mode 100644 index 000000000..150f1590f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Bech32.html @@ -0,0 +1,236 @@ + + + + +Bech32 (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Bech32

+
+
java.lang.Object +
org.bitcoinj.core.Bech32
+
+
+
+
public class Bech32 +extends Object
+

Implementation of the Bech32 encoding.

+ +

See BIP350 and + BIP173 for details.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.BitcoinPacketHeader.html b/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.BitcoinPacketHeader.html new file mode 100644 index 000000000..528f92552 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.BitcoinPacketHeader.html @@ -0,0 +1,215 @@ + + + + +BitcoinSerializer.BitcoinPacketHeader (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BitcoinSerializer.BitcoinPacketHeader

+
+
java.lang.Object +
org.bitcoinj.core.BitcoinSerializer.BitcoinPacketHeader
+
+
+
+
Enclosing class:
+
BitcoinSerializer
+
+
+
public static class BitcoinSerializer.BitcoinPacketHeader +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      HEADER_LENGTH

      +
      public static final int HEADER_LENGTH
      +
      The largest number of bytes that a header can represent
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • + +
    • +
    • +
      +

      command

      +
      public final String command
      +
      +
    • +
    • +
      +

      size

      +
      public final int size
      +
      +
    • +
    • +
      +

      checksum

      +
      public final byte[] checksum
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.html b/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.html new file mode 100644 index 000000000..af0831a41 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BitcoinSerializer.html @@ -0,0 +1,583 @@ + + + + +BitcoinSerializer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BitcoinSerializer

+
+
java.lang.Object +
org.bitcoinj.core.MessageSerializer +
org.bitcoinj.core.BitcoinSerializer
+
+
+
+
+
public class BitcoinSerializer +extends MessageSerializer
+

Methods to serialize and de-serialize messages to the Bitcoin network format as defined in + the protocol specification.

+ +

To be able to serialize and deserialize new Message subclasses the following criteria needs to be met.

+ +
    +
  • The proper Class instance needs to be mapped to its message name in the names variable below
  • +
  • There needs to be a constructor matching: NetworkParameters params, byte[] payload
  • +
  • Message.bitcoinSerializeToStream() needs to be properly subclassed
  • +
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Block.VerifyFlag.html b/javadoc/0.16.3/org/bitcoinj/core/Block.VerifyFlag.html new file mode 100644 index 000000000..95b27be1c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Block.VerifyFlag.html @@ -0,0 +1,219 @@ + + + + +Block.VerifyFlag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Block.VerifyFlag

+
+
java.lang.Object +
java.lang.Enum<Block.VerifyFlag> +
org.bitcoinj.core.Block.VerifyFlag
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Block.VerifyFlag>, Constable
+
+
+
Enclosing class:
+
Block
+
+
+
public static enum Block.VerifyFlag +extends Enum<Block.VerifyFlag>
+
Flags used to control which elements of block validation are done on + received blocks.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      HEIGHT_IN_COINBASE

      +
      public static final Block.VerifyFlag HEIGHT_IN_COINBASE
      +
      Check that block height is in coinbase transaction (BIP 34).
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Block.VerifyFlag[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Block.VerifyFlag valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Block.html b/javadoc/0.16.3/org/bitcoinj/core/Block.html new file mode 100644 index 000000000..03c9eff07 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Block.html @@ -0,0 +1,1231 @@ + + + + +Block (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Block

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.Block
+
+
+
+
+
public class Block +extends Message
+

A block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system. + It records a set of Transactions together with some data that links it into a place in the global block + chain, and proves that a difficult calculation was done over its contents. See + the Bitcoin technical paper for + more detail on blocks.

+ +

To get a block, you can either build one from the raw bytes you can get from another implementation, or request one + specifically using Peer.getBlock(Sha256Hash), or grab one from a downloaded BlockChain.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      HEADER_SIZE

      +
      public static final int HEADER_SIZE
      +
      How many bytes are required to represent a block header WITHOUT the trailing 00 length byte.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_BLOCK_SIZE

      +
      public static final int MAX_BLOCK_SIZE
      +
      A constant shared by the entire network: how large in bytes a block is allowed to be. One day we may have to + upgrade everyone to change this, so Bitcoin can continue to grow. For now it exists as an anti-DoS measure to + avoid somebody creating a titanically huge but valid block and forcing everyone to download/store it forever.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_BLOCK_SIGOPS

      +
      public static final int MAX_BLOCK_SIGOPS
      +
      A "sigop" is a signature verification operation. Because they're expensive we also impose a separate limit on + the number in a block to prevent somebody mining a huge block that has way more sigops than normal, so is very + expensive/slow to verify.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      STANDARD_MAX_DIFFICULTY_TARGET

      +
      public static final long STANDARD_MAX_DIFFICULTY_TARGET
      +
      Standard maximum value for difficultyTarget (nBits) (Bitcoin MainNet and TestNet)
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      EASIEST_DIFFICULTY_TARGET

      +
      public static final long EASIEST_DIFFICULTY_TARGET
      +
      A value for difficultyTarget (nBits) that allows (slightly less than) half of all possible hash solutions. Used in unit testing.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_HEIGHT_UNKNOWN

      +
      public static final int BLOCK_HEIGHT_UNKNOWN
      +
      Value to use if the block height is unknown
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_HEIGHT_GENESIS

      +
      public static final int BLOCK_HEIGHT_GENESIS
      +
      Height of the first block
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_VERSION_GENESIS

      +
      public static final long BLOCK_VERSION_GENESIS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_VERSION_BIP34

      +
      public static final long BLOCK_VERSION_BIP34
      +
      Block version introduced in BIP 34: Height in coinbase
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_VERSION_BIP66

      +
      public static final long BLOCK_VERSION_BIP66
      +
      Block version introduced in BIP 66: Strict DER signatures
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_VERSION_BIP65

      +
      public static final long BLOCK_VERSION_BIP65
      +
      Block version introduced in BIP 65: OP_CHECKLOCKTIMEVERIFY
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      headerBytesValid

      +
      protected boolean headerBytesValid
      +
      +
    • +
    • +
      +

      transactionBytesValid

      +
      protected boolean transactionBytesValid
      +
      +
    • +
    • +
      +

      optimalEncodingMessageSize

      +
      protected int optimalEncodingMessageSize
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Block

      +
      public Block(NetworkParameters params, + byte[] payloadBytes, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      Construct a block object from the Bitcoin wire format.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payloadBytes - the payload to extract the block from.
      +
      serializer - the serializer to use for this message.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Block

      +
      public Block(NetworkParameters params, + byte[] payloadBytes, + int offset, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      Construct a block object from the Bitcoin wire format.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payloadBytes - the payload to extract the block from.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Block

      +
      public Block(NetworkParameters params, + byte[] payloadBytes, + int offset, + @Nullable + Message parent, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      Construct a block object from the Bitcoin wire format. Used in the case of a block + contained within another message (i.e. for AuxPoW header).
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payloadBytes - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      parent - The message element which contains this block, maybe null for no parent.
      +
      serializer - the serializer to use for this block.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Block

      +
      public Block(NetworkParameters params, + long version, + Sha256Hash prevBlockHash, + Sha256Hash merkleRoot, + long time, + long difficultyTarget, + long nonce, + List<Transaction> transactions)
      +
      Construct a block initialized with all the given fields.
      +
      +
      Parameters:
      +
      params - Which network the block is for.
      +
      version - This should usually be set to 1 or 2, depending on if the height is in the coinbase input.
      +
      prevBlockHash - Reference to previous block in the chain or Sha256Hash.ZERO_HASH if genesis.
      +
      merkleRoot - The root of the merkle tree formed by the transactions.
      +
      time - UNIX time when the block was mined.
      +
      difficultyTarget - Number which this block hashes lower than.
      +
      nonce - Arbitrary number to make the block hash lower than the target.
      +
      transactions - List of transactions including the coinbase.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getBlockInflation

      +
      @Deprecated +public Coin getBlockInflation(int height)
      + +
      +
    • +
    • +
      +

      parseTransactions

      +
      protected void parseTransactions(int transactionsOffset) + throws ProtocolException
      +
      Parse transactions from the block.
      +
      +
      Parameters:
      +
      transactionsOffset - Offset of the transactions within the block. + Useful for non-Bitcoin chains where the block header may not be a fixed + size.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      createGenesis

      +
      public static Block createGenesis(NetworkParameters n)
      +
      +
    • +
    • +
      +

      getOptimalEncodingMessageSize

      +
      public int getOptimalEncodingMessageSize()
      +
      +
    • +
    • +
      +

      bitcoinSerialize

      +
      public byte[] bitcoinSerialize()
      +
      Special handling to check if we have a valid byte array for both header + and transactions
      +
      +
      Overrides:
      +
      bitcoinSerialize in class Message
      +
      Returns:
      +
      a freshly allocated serialized byte array
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      unCache

      +
      protected void unCache()
      +
      Description copied from class: Message
      +

      To be called before any change of internal values including any setters. This ensures any cached byte array is + removed.

      +

      Child messages of this object(e.g. Transactions belonging to a Block) will not have their internal byte caches + invalidated unless they are also modified internally.

      +
      +
      Overrides:
      +
      unCache in class Message
      +
      +
      +
    • +
    • +
      +

      getHashAsString

      +
      public String getHashAsString()
      +
      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. If you call this on block 1 in the mainnet chain + you will get "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048".
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      Returns the hash of the block (which for a valid, solved block should be + below the target). Big endian.
      +
      +
      Overrides:
      +
      getHash in class Message
      +
      +
      +
    • +
    • +
      +

      getWork

      +
      public BigInteger getWork() + throws VerificationException
      +
      Returns the work represented by this block.

      + + Work is defined as the number of tries needed to solve a block in the + average case. Consider a difficulty target that covers 5% of all possible + hash values. Then the work of the block will be 20. As the target gets + lower, the amount of work goes up.

      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      cloneAsHeader

      +
      public Block cloneAsHeader()
      +
      Returns a copy of the block, but without any transactions.
      +
      +
      Returns:
      +
      new, header-only Block
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Returns a multi-line string containing a description of the contents of + the block. Use for debugging purposes only.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      solve

      +
      public void solve()
      +

      Finds a value of nonce that makes the blocks hash lower than the difficulty target. This is called mining, but + solve() is far too slow to do real mining with. It exists only for unit testing purposes. + +

      This can loop forever if a solution cannot be found solely by incrementing nonce. It doesn't change + extraNonce.

      +
      +
    • +
    • +
      +

      getDifficultyTargetAsInteger

      +
      public BigInteger getDifficultyTargetAsInteger() + throws VerificationException
      +
      Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash. Inside a block the + target is represented using a compact form. If this form decodes to a value that is out of bounds, an exception + is thrown.
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      checkProofOfWork

      +
      protected boolean checkProofOfWork(boolean throwException) + throws VerificationException
      +
      Returns true if the hash of the block is OK (lower than difficulty target).
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      verifyHeader

      +
      public void verifyHeader() + throws VerificationException
      +
      Checks the block data to ensure it follows the rules laid out in the network parameters. Specifically, + throws an exception if the proof of work is invalid, or if the timestamp is too far from what it should be. + This is not everything that is required for a block to be valid, only what is checkable independent + of the chain and without a transaction index.
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      verifyTransactions

      +
      public void verifyTransactions(int height, + EnumSet<Block.VerifyFlag> flags) + throws VerificationException
      +
      Checks the block contents
      +
      +
      Parameters:
      +
      height - block height, if known, or -1 otherwise. If valid, used + to validate the coinbase input script of v2 and above blocks.
      +
      flags - flags to indicate which tests should be applied (i.e. + whether to test for height in the coinbase transaction).
      +
      Throws:
      +
      VerificationException - if there was an error verifying the block.
      +
      +
      +
    • +
    • +
      +

      verify

      +
      public void verify(int height, + EnumSet<Block.VerifyFlag> flags) + throws VerificationException
      +
      Verifies both the header and that the transactions hash to the merkle root.
      +
      +
      Parameters:
      +
      height - block height, if known, or -1 otherwise.
      +
      flags - flags to indicate which tests should be applied (i.e. + whether to test for height in the coinbase transaction).
      +
      Throws:
      +
      VerificationException - if there was an error verifying the block.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      getMerkleRoot

      +
      public Sha256Hash getMerkleRoot()
      +
      Returns the merkle root in big endian form, calculating it from transactions if necessary.
      +
      +
    • +
    • +
      +

      getWitnessRoot

      +
      public Sha256Hash getWitnessRoot()
      +
      Returns the witness root in big endian form, calculating it from transactions if necessary.
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public void addTransaction(Transaction t)
      +
      Adds a transaction to this block. The nonce and merkle root are invalid after this.
      +
      +
    • +
    • +
      +

      getVersion

      +
      public long getVersion()
      +
      Returns the version of the block data structure as defined by the Bitcoin protocol.
      +
      +
    • +
    • +
      +

      getPrevBlockHash

      +
      public Sha256Hash getPrevBlockHash()
      +
      Returns the hash of the previous block in the chain, as defined by the block header.
      +
      +
    • +
    • +
      +

      getTimeSeconds

      +
      public long getTimeSeconds()
      +
      Returns the time at which the block was solved and broadcast, according to the clock of the solving node. This + is measured in seconds since the UNIX epoch (midnight Jan 1st 1970).
      +
      +
    • +
    • +
      +

      getTime

      +
      public Date getTime()
      +
      Returns the time at which the block was solved and broadcast, according to the clock of the solving node.
      +
      +
    • +
    • +
      +

      setTime

      +
      public void setTime(long time)
      +
      +
    • +
    • +
      +

      getDifficultyTarget

      +
      public long getDifficultyTarget()
      +
      Returns the difficulty of the proof of work that this block should meet encoded in compact form. The BlockChain verifies that this is not too easy by looking at the length of the chain when the block is added. + To find the actual value the hash should be compared against, use + getDifficultyTargetAsInteger(). Note that this is not the same as + the difficulty value reported by the Bitcoin "getdifficulty" RPC that you may see on various block explorers. + That number is the result of applying a formula to the underlying difficulty to normalize the minimum to 1. + Calculating the difficulty that way is currently unsupported.
      +
      +
    • +
    • +
      +

      setDifficultyTarget

      +
      public void setDifficultyTarget(long compactForm)
      +
      Sets the difficulty target in compact form.
      +
      +
    • +
    • +
      +

      getNonce

      +
      public long getNonce()
      +
      Returns the nonce, an arbitrary value that exists only to make the hash of the block header fall below the + difficulty target.
      +
      +
    • +
    • +
      +

      setNonce

      +
      public void setNonce(long nonce)
      +
      Sets the nonce and clears any cached data.
      +
      +
    • +
    • +
      +

      getTransactions

      +
      @Nullable +public List<Transaction> getTransactions()
      +
      Returns an immutable list of transactions held in this block, or null if this object represents just a header.
      +
      +
    • +
    • +
      +

      createNextBlock

      +
      public Block createNextBlock(Address to, + long version, + long time, + int blockHeight)
      +
      Returns a solved block that builds on top of this one. This exists for unit tests.
      +
      +
    • +
    • +
      +

      createNextBlock

      +
      public Block createNextBlock(@Nullable + Address to, + TransactionOutPoint prevOut)
      +
      +
    • +
    • +
      +

      createNextBlock

      +
      public Block createNextBlock(@Nullable + Address to, + Coin value)
      +
      +
    • +
    • +
      +

      createNextBlock

      +
      public Block createNextBlock(@Nullable + Address to)
      +
      +
    • +
    • +
      +

      createNextBlockWithCoinbase

      +
      public Block createNextBlockWithCoinbase(long version, + byte[] pubKey, + Coin coinbaseValue, + int height)
      +
      +
    • +
    • +
      +

      hasTransactions

      +
      public boolean hasTransactions()
      +
      Return whether this block contains any transactions.
      +
      +
      Returns:
      +
      true if the block contains transactions, false otherwise (is + purely a header).
      +
      +
      +
    • +
    • +
      +

      isBIP34

      +
      public boolean isBIP34()
      +
      Returns whether this block conforms to + BIP34: Height in Coinbase.
      +
      +
    • +
    • +
      +

      isBIP66

      +
      public boolean isBIP66()
      +
      Returns whether this block conforms to + BIP66: Strict DER signatures.
      +
      +
    • +
    • +
      +

      isBIP65

      +
      public boolean isBIP65()
      +
      Returns whether this block conforms to + BIP65: OP_CHECKLOCKTIMEVERIFY.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BlockChain.html b/javadoc/0.16.3/org/bitcoinj/core/BlockChain.html new file mode 100644 index 000000000..808a3f4ce --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BlockChain.html @@ -0,0 +1,597 @@ + + + + +BlockChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockChain

+
+
java.lang.Object +
org.bitcoinj.core.AbstractBlockChain +
org.bitcoinj.core.BlockChain
+
+
+
+
+
public class BlockChain +extends AbstractBlockChain
+
A BlockChain implements the simplified payment verification mode of the Bitcoin protocol. It is the right + choice to use for programs that have limited resources as it won't verify transactions signatures or attempt to store + all of the block chain. Really, this class should be called SPVBlockChain but for backwards compatibility it is not.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BlockLocator.html b/javadoc/0.16.3/org/bitcoinj/core/BlockLocator.html new file mode 100644 index 000000000..0f1e39ce1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BlockLocator.html @@ -0,0 +1,249 @@ + + + + +BlockLocator (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockLocator

+
+
java.lang.Object +
org.bitcoinj.core.BlockLocator
+
+
+
+
public final class BlockLocator +extends Object
+
Represents Block Locator in GetBlocks and GetHeaders messages
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BlockLocator

      +
      public BlockLocator()
      +
      +
    • +
    • +
      +

      BlockLocator

      +
      public BlockLocator(com.google.common.collect.ImmutableList<Sha256Hash> hashes)
      +
      Creates a Block locator with defined list of hashes.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      add

      +
      public BlockLocator add(Sha256Hash hash)
      +
      Add a Sha256Hash to a newly created block locator.
      +
      +
    • +
    • +
      +

      size

      +
      public int size()
      +
      Returns the number of hashes in this block locator.
      +
      +
    • +
    • +
      +

      getHashes

      +
      public List<Sha256Hash> getHashes()
      +
      Returns List of Block locator hashes.
      +
      +
    • +
    • +
      +

      get

      +
      public Sha256Hash get(int i)
      +
      Get hash by index from this block locator.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.BloomUpdate.html b/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.BloomUpdate.html new file mode 100644 index 000000000..bdce4a371 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.BloomUpdate.html @@ -0,0 +1,235 @@ + + + + +BloomFilter.BloomUpdate (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class BloomFilter.BloomUpdate

+
+
java.lang.Object +
java.lang.Enum<BloomFilter.BloomUpdate> +
org.bitcoinj.core.BloomFilter.BloomUpdate
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<BloomFilter.BloomUpdate>, Constable
+
+
+
Enclosing class:
+
BloomFilter
+
+
+
public static enum BloomFilter.BloomUpdate +extends Enum<BloomFilter.BloomUpdate>
+
The BLOOM_UPDATE_* constants control when the bloom filter is auto-updated by the peer using + it as a filter, either never, for all outputs or only for P2PK outputs (default)
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static BloomFilter.BloomUpdate[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static BloomFilter.BloomUpdate valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.html b/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.html new file mode 100644 index 000000000..4f89c3817 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/BloomFilter.html @@ -0,0 +1,495 @@ + + + + +BloomFilter (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BloomFilter

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.BloomFilter
+
+
+
+
+
public class BloomFilter +extends Message
+

A Bloom filter is a probabilistic data structure which can be sent to another client so that it can avoid + sending us transactions that aren't relevant to our set of keys. This allows for significantly more efficient + use of available network bandwidth and CPU time.

+ +

Because a Bloom filter is probabilistic, it has a configurable false positive rate. So the filter will sometimes + match transactions that weren't inserted into it, but it will never fail to match transactions that were. This is + a useful privacy feature - if you have spare bandwidth the false positive rate can be increased so the remote peer + gets a noisy picture of what transactions are relevant to your wallet.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BloomFilter

      +
      public BloomFilter(NetworkParameters params, + byte[] payloadBytes) + throws ProtocolException
      +
      Construct a BloomFilter by deserializing payloadBytes
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      BloomFilter

      +
      public BloomFilter(int elements, + double falsePositiveRate, + long randomNonce)
      +
      Constructs a filter with the given parameters which is updated on P2PK outputs only.
      +
      +
    • +
    • +
      +

      BloomFilter

      +
      public BloomFilter(int elements, + double falsePositiveRate, + long randomNonce, + BloomFilter.BloomUpdate updateFlag)
      +

      Constructs a new Bloom Filter which will provide approximately the given false positive rate when the given + number of elements have been inserted. If the filter would otherwise be larger than the maximum allowed size, + it will be automatically downsized to the maximum size.

      + +

      To check the theoretical false positive rate of a given filter, use + getFalsePositiveRate(int).

      + +

      The anonymity of which coins are yours to any peer which you send a BloomFilter to is controlled by the + false positive rate. For reference, as of block 187,000, the total number of addresses used in the chain was + roughly 4.5 million. Thus, if you use a false positive rate of 0.001 (0.1%), there will be, on average, 4,500 + distinct public keys/addresses which will be thought to be yours by nodes which have your bloom filter, but + which are not actually yours. Keep in mind that a remote node can do a pretty good job estimating the order of + magnitude of the false positive rate of a given filter you provide it when considering the anonymity of a given + filter.

      + +

      In order for filtered block download to function efficiently, the number of matched transactions in any given + block should be less than (with some headroom) the maximum size of the MemoryPool used by the Peer + doing the downloading (default is TxConfidenceTable.MAX_SIZE). See the comment in processBlock(FilteredBlock) + for more information on this restriction.

      + +

      randomNonce is a tweak for the hash function used to prevent some theoretical DoS attacks. + It should be a random value, however secureness of the random value is of no great consequence.

      + +

      updateFlag is used to control filter behaviour on the server (remote node) side when it encounters a hit. + See BloomFilter.BloomUpdate for a brief description of each mode. The purpose + of this flag is to reduce network round-tripping and avoid over-dirtying the filter for the most common + wallet configurations.

      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getFalsePositiveRate

      +
      public double getFalsePositiveRate(int elements)
      +
      Returns the theoretical false positive rate of this filter if were to contain the given number of elements.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      murmurHash3

      +
      public static int murmurHash3(byte[] data, + long nTweak, + int hashNum, + byte[] object)
      +
      Applies the MurmurHash3 (x86_32) algorithm to the given data. + See this C++ code for the original.
      +
      +
    • +
    • +
      +

      contains

      +
      public boolean contains(byte[] object)
      +
      Returns true if the given object matches the filter either because it was inserted, or because we have a + false-positive.
      +
      +
    • +
    • +
      +

      insert

      +
      public void insert(byte[] object)
      +
      Insert the given arbitrary data into the filter
      +
      +
    • +
    • +
      +

      insert

      +
      public void insert(ECKey key)
      +
      Inserts the given key and equivalent hashed form (for the address).
      +
      +
    • +
    • +
      +

      insert

      +
      public void insert(TransactionOutPoint outpoint)
      +
      Inserts the given transaction outpoint.
      +
      +
    • +
    • +
      +

      setMatchAll

      +
      public void setMatchAll()
      +
      Sets this filter to match all objects. A Bloom filter which matches everything may seem pointless, however, + it is useful in order to reduce steady state bandwidth usage when you want full blocks. Instead of receiving + all transaction data twice, you will receive the vast majority of all transactions just once, at broadcast time. + Solved blocks will then be send just as Merkle trees of tx hashes, meaning a constant 32 bytes of data for each + transaction instead of 100-300 bytes as per usual.
      +
      +
    • +
    • +
      +

      merge

      +
      public void merge(BloomFilter filter)
      +
      Copies filter into this. Filter must have the same size, hash function count and nTweak or an + IllegalArgumentException will be thrown.
      +
      +
    • +
    • +
      +

      matchesAll

      +
      public boolean matchesAll()
      +
      Returns true if this filter will match anything. See setMatchAll() + for when this can be a useful thing to do.
      +
      +
    • +
    • +
      +

      getUpdateFlag

      +
      public BloomFilter.BloomUpdate getUpdateFlag()
      +
      The update flag controls how application of the filter to a block modifies the filter. See the enum javadocs + for information on what occurs and when.
      +
      +
    • +
    • +
      +

      applyAndUpdate

      +
      public FilteredBlock applyAndUpdate(Block block)
      +
      Creates a new FilteredBlock from the given Block, using this filter to select transactions. Matches can cause the + filter to be updated with the matched element, this ensures that when a filter is applied to a block, spends of + matched transactions are also matched. However it means this filter can be mutated by the operation. The returned + filtered block already has the matched transactions associated with it.
      +
      +
    • +
    • +
      +

      applyAndUpdate

      +
      public boolean applyAndUpdate(Transaction tx)
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/CheckpointManager.html b/javadoc/0.16.3/org/bitcoinj/core/CheckpointManager.html new file mode 100644 index 000000000..cca21d0a1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/CheckpointManager.html @@ -0,0 +1,334 @@ + + + + +CheckpointManager (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CheckpointManager

+
+
java.lang.Object +
org.bitcoinj.core.CheckpointManager
+
+
+
+
public class CheckpointManager +extends Object
+

Vends hard-coded StoredBlocks for blocks throughout the chain. Checkpoints serve two purposes:

+
    +
  1. They act as a safety mechanism against huge re-orgs that could rewrite large chunks of history, thus + constraining the block chain to be a consensus mechanism only for recent parts of the timeline.
  2. +
  3. They allow synchronization to the head of the chain for new wallets/users much faster than syncing all + headers from the genesis block.
  4. +
+ +

Checkpoints are used by the SPV BlockChain to initialize fresh + SPVBlockStores. They are not used by fully validating mode, which instead has a + different concept of checkpoints that are used to hard-code the validity of blocks that violate BIP30 (duplicate + coinbase transactions). Those "checkpoints" can be found in NetworkParameters.

+ +

The file format consists of the string "CHECKPOINTS 1", followed by a uint32 containing the number of signatures + to read. The value may not be larger than 256 (so it could have been a byte but isn't for historical reasons). + If the number of signatures is larger than zero, each 65 byte ECDSA secp256k1 signature then follows. The signatures + sign the hash of all bytes that follow the last signature.

+ +

After the signatures come an int32 containing the number of checkpoints in the file. Then each checkpoint follows + one after the other. A checkpoint is 12 bytes for the total work done field, 4 bytes for the height, 80 bytes + for the block header and then 1 zero byte at the end (i.e. number of transactions in the block: always zero).

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      checkpoints

      +
      protected final TreeMap<Long,StoredBlock> checkpoints
      +
      +
    • +
    • +
      +

      params

      +
      protected final NetworkParameters params
      +
      +
    • +
    • +
      +

      dataHash

      +
      protected final Sha256Hash dataHash
      +
      +
    • +
    • +
      +

      BASE64

      +
      public static final com.google.common.io.BaseEncoding BASE64
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      openStream

      +
      public static InputStream openStream(NetworkParameters params)
      +
      Returns a checkpoints stream pointing to inside the bitcoinj JAR
      +
      +
    • +
    • +
      +

      getCheckpointBefore

      +
      public StoredBlock getCheckpointBefore(long timeSecs)
      +
      Returns a StoredBlock representing the last checkpoint before the given time, for example, normally + you would want to know the checkpoint before the earliest wallet birthday.
      +
      +
    • +
    • +
      +

      numCheckpoints

      +
      public int numCheckpoints()
      +
      Returns the number of checkpoints that were loaded.
      +
      +
    • +
    • +
      +

      getDataHash

      +
      public Sha256Hash getDataHash()
      +
      Returns a hash of the concatenated checkpoint data.
      +
      +
    • +
    • +
      +

      checkpoint

      +
      public static void checkpoint(NetworkParameters params, + InputStream checkpoints, + BlockStore store, + long timeSecs) + throws IOException, +BlockStoreException
      +

      Convenience method that creates a CheckpointManager, loads the given data, gets the checkpoint for the given + time, then inserts it into the store and sets that to be the chain head. Useful when you have just created + a new store from scratch and want to use configure it all in one go.

      + +

      Note that timeSecs is adjusted backwards by a week to account for possible clock drift in the block headers.

      +
      +
      Throws:
      +
      IOException
      +
      BlockStoreException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ChildMessage.html b/javadoc/0.16.3/org/bitcoinj/core/ChildMessage.html new file mode 100644 index 000000000..13e2f98da --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ChildMessage.html @@ -0,0 +1,312 @@ + + + + +ChildMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ChildMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.ChildMessage
+
+
+
+
+
Direct Known Subclasses:
+
PeerAddress, Transaction, TransactionInput, TransactionOutPoint, TransactionOutput
+
+
+
public abstract class ChildMessage +extends Message
+

Represents a Message type that can be contained within another Message. ChildMessages that have a cached + backing byte array need to invalidate their parent's caches as well as their own if they are modified.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      parent

      +
      @Nullable +protected Message parent
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setParent

      +
      public final void setParent(@Nullable + Message parent)
      +
      +
    • +
    • +
      +

      unCache

      +
      protected void unCache()
      +
      Description copied from class: Message
      +

      To be called before any change of internal values including any setters. This ensures any cached byte array is + removed.

      +

      Child messages of this object(e.g. Transactions belonging to a Block) will not have their internal byte caches + invalidated unless they are also modified internally.

      +
      +
      Overrides:
      +
      unCache in class Message
      +
      +
      +
    • +
    • +
      +

      adjustLength

      +
      protected void adjustLength(int adjustment)
      +
      +
    • +
    • +
      +

      adjustLength

      +
      protected void adjustLength(int newArraySize, + int adjustment)
      +
      +
      Overrides:
      +
      adjustLength in class Message
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Coin.html b/javadoc/0.16.3/org/bitcoinj/core/Coin.html new file mode 100644 index 000000000..26f849def --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Coin.html @@ -0,0 +1,834 @@ + + + + +Coin (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Coin

+
+
java.lang.Object +
org.bitcoinj.core.Coin
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Coin>, Monetary
+
+
+
public final class Coin +extends Object +implements Monetary, Comparable<Coin>, Serializable
+
Represents a monetary Bitcoin value. This class is immutable.
+
+
See Also:
+
+ +
+
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final Coin
    + +
    +
    0.01 Bitcoins.
    +
    +
    static final Coin
    + +
    +
    One Bitcoin.
    +
    +
    static final Coin
    + +
     
    +
    static final Coin
    + +
    +
    0.000001 Bitcoins, also known as 1 µBTC or 1 uBTC.
    +
    +
    static final Coin
    + +
    +
    0.001 Bitcoins, also known as 1 mBTC.
    +
    +
    static final Coin
    + +
    +
    Represents a monetary value of minus one satoshi.
    +
    +
    static final Coin
    + +
    +
    A satoshi is the smallest unit that can be transferred.
    +
    +
    static final int
    + +
    +
    Number of decimals for one Bitcoin.
    +
    +
    final long
    + +
    +
    The number of satoshis of this monetary value.
    +
    +
    static final Coin
    + +
    +
    Zero Bitcoins.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    add(Coin value)
    +
     
    +
    static long
    + +
    +
    Convert a decimal amount of BTC into satoshis.
    +
    +
    int
    +
    compareTo(Coin other)
    +
     
    + +
    div(int divisor)
    +
    +
    Alias for divide
    +
    + +
    div(long divisor)
    +
    +
    Alias for divide
    +
    + +
    divide(long divisor)
    +
     
    +
    long
    +
    divide(Coin divisor)
    +
     
    + +
    divideAndRemainder(long divisor)
    +
     
    +
    boolean
    + +
     
    +
    long
    + +
    +
    Returns the number of satoshis of this monetary value.
    +
    +
    int
    + +
     
    +
    boolean
    + +
    +
    Returns true if the monetary value represented by this instance is greater than that + of the given other Coin, otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if the monetary value represented by this instance is less than that + of the given other Coin, otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents a monetary value less than zero, + otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents a monetary value greater than zero, + otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents zero monetary value, + otherwise false.
    +
    +
    long
    + +
    +
    Returns the number of satoshis of this monetary value.
    +
    + +
    minus(Coin value)
    +
    +
    Alias for subtract
    +
    + +
    multiply(long factor)
    +
     
    + + +
     
    +
    static Coin
    + +
    +
    Create a Coin from a decimal amount of BTC.
    +
    +
    static Coin
    +
    ofSat(long satoshis)
    +
    +
    Create a Coin from a long integer number of satoshis.
    +
    +
    static Coin
    + +
    +
    Create a Coin by parsing a String amount expressed in "the way humans are used to".
    +
    +
    static Coin
    + +
    +
    Create a Coin by parsing a String amount expressed in "the way humans are used to".
    +
    + +
    plus(Coin value)
    +
    +
    Alias for add
    +
    +
    static BigDecimal
    +
    satoshiToBtc(long satoshis)
    +
    +
    Convert an amount in satoshis to an amount in BTC.
    +
    + +
    shiftLeft(int n)
    +
     
    + +
    shiftRight(int n)
    +
     
    +
    int
    + +
     
    +
    int
    + +
    +
    Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation.
    +
    + +
    subtract(Coin value)
    +
     
    + +
    times(int factor)
    +
    +
    Alias for multiply
    +
    + +
    times(long factor)
    +
    +
    Alias for multiply
    +
    + + +
    +
    Convert to number of bitcoin (in BTC)
    +
    + + +
    +
    Returns the value as a 0.12 type string.
    +
    + + +
    +
    + Returns the value as a plain string denominated in BTC.
    +
    +
    long
    + +
    +
    Convert to number of satoshis
    +
    + + +
     
    +
    static Coin
    +
    valueOf(int coins, + int cents)
    +
    +
    Create a Coin from an amount expressed in "the way humans are used to".
    +
    +
    static Coin
    +
    valueOf(long satoshis)
    +
    +
    Create a Coin from a long integer number of satoshis.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SMALLEST_UNIT_EXPONENT

      +
      public static final int SMALLEST_UNIT_EXPONENT
      +
      Number of decimals for one Bitcoin. This constant is useful for quick adapting to other coins because a lot of + constants derive from it.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ZERO

      +
      public static final Coin ZERO
      +
      Zero Bitcoins.
      +
      +
    • +
    • +
      +

      COIN

      +
      public static final Coin COIN
      +
      One Bitcoin.
      +
      +
    • +
    • +
      +

      CENT

      +
      public static final Coin CENT
      +
      0.01 Bitcoins. This unit is not really used much.
      +
      +
    • +
    • +
      +

      MILLICOIN

      +
      public static final Coin MILLICOIN
      +
      0.001 Bitcoins, also known as 1 mBTC.
      +
      +
    • +
    • +
      +

      MICROCOIN

      +
      public static final Coin MICROCOIN
      +
      0.000001 Bitcoins, also known as 1 µBTC or 1 uBTC.
      +
      +
    • +
    • +
      +

      SATOSHI

      +
      public static final Coin SATOSHI
      +
      A satoshi is the smallest unit that can be transferred. 100 million of them fit into a Bitcoin.
      +
      +
    • +
    • +
      +

      FIFTY_COINS

      +
      public static final Coin FIFTY_COINS
      +
      +
    • +
    • +
      +

      NEGATIVE_SATOSHI

      +
      public static final Coin NEGATIVE_SATOSHI
      +
      Represents a monetary value of minus one satoshi.
      +
      +
    • +
    • +
      +

      value

      +
      public final long value
      +
      The number of satoshis of this monetary value.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      valueOf

      +
      public static Coin valueOf(long satoshis)
      +
      Create a Coin from a long integer number of satoshis.
      +
      +
      Parameters:
      +
      satoshis - number of satoshis
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      +
      +
    • +
    • +
      +

      smallestUnitExponent

      +
      public int smallestUnitExponent()
      +
      Description copied from interface: Monetary
      +
      Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation. For Bitcoin, a + satoshi is worth 1E-8 so this would be 8.
      +
      +
      Specified by:
      +
      smallestUnitExponent in interface Monetary
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      Returns the number of satoshis of this monetary value.
      +
      +
      Specified by:
      +
      getValue in interface Monetary
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Coin valueOf(int coins, + int cents)
      +
      Create a Coin from an amount expressed in "the way humans are used to".
      +
      +
      Parameters:
      +
      coins - Number of bitcoins
      +
      cents - Number of bitcents (0.01 bitcoin)
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      +
      +
    • +
    • +
      +

      btcToSatoshi

      +
      public static long btcToSatoshi(BigDecimal coins)
      +
      Convert a decimal amount of BTC into satoshis.
      +
      +
      Parameters:
      +
      coins - number of coins
      +
      Returns:
      +
      number of satoshis
      +
      +
      +
    • +
    • +
      +

      satoshiToBtc

      +
      public static BigDecimal satoshiToBtc(long satoshis)
      +
      Convert an amount in satoshis to an amount in BTC.
      +
      +
      Parameters:
      +
      satoshis - number of satoshis
      +
      Returns:
      +
      number of bitcoins (in BTC)
      +
      +
      +
    • +
    • +
      +

      ofBtc

      +
      public static Coin ofBtc(BigDecimal coins)
      +
      Create a Coin from a decimal amount of BTC.
      +
      +
      Parameters:
      +
      coins - number of coins (in BTC)
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      +
      +
    • +
    • +
      +

      ofSat

      +
      public static Coin ofSat(long satoshis)
      +
      Create a Coin from a long integer number of satoshis.
      +
      +
      Parameters:
      +
      satoshis - number of satoshis
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      +
      +
    • +
    • +
      +

      parseCoin

      +
      public static Coin parseCoin(String str)
      +
      Create a Coin by parsing a String amount expressed in "the way humans are used to".
      +
      +
      Parameters:
      +
      str - string in a format understood by BigDecimal(String), for example "0", "1", "0.10", + * "1.23E3", "1234.5E-5".
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      Throws:
      +
      IllegalArgumentException - if you try to specify fractional satoshis, or a value out of range.
      +
      +
      +
    • +
    • +
      +

      parseCoinInexact

      +
      public static Coin parseCoinInexact(String str)
      +
      Create a Coin by parsing a String amount expressed in "the way humans are used to". + The amount is cut to satoshi precision.
      +
      +
      Parameters:
      +
      str - string in a format understood by BigDecimal(String), for example "0", "1", "0.10", + * "1.23E3", "1234.5E-5".
      +
      Returns:
      +
      Coin object containing value in satoshis
      +
      Throws:
      +
      IllegalArgumentException - if you try to specify a value out of range.
      +
      +
      +
    • +
    • +
      +

      add

      +
      public Coin add(Coin value)
      +
      +
    • +
    • +
      +

      plus

      +
      public Coin plus(Coin value)
      +
      Alias for add
      +
      +
    • +
    • +
      +

      subtract

      +
      public Coin subtract(Coin value)
      +
      +
    • +
    • +
      +

      minus

      +
      public Coin minus(Coin value)
      +
      Alias for subtract
      +
      +
    • +
    • +
      +

      multiply

      +
      public Coin multiply(long factor)
      +
      +
    • +
    • +
      +

      times

      +
      public Coin times(long factor)
      +
      Alias for multiply
      +
      +
    • +
    • +
      +

      times

      +
      public Coin times(int factor)
      +
      Alias for multiply
      +
      +
    • +
    • +
      +

      divide

      +
      public Coin divide(long divisor)
      +
      +
    • +
    • +
      +

      div

      +
      public Coin div(long divisor)
      +
      Alias for divide
      +
      +
    • +
    • +
      +

      div

      +
      public Coin div(int divisor)
      +
      Alias for divide
      +
      +
    • +
    • +
      +

      divideAndRemainder

      +
      public Coin[] divideAndRemainder(long divisor)
      +
      +
    • +
    • +
      +

      divide

      +
      public long divide(Coin divisor)
      +
      +
    • +
    • +
      +

      isPositive

      +
      public boolean isPositive()
      +
      Returns true if and only if this instance represents a monetary value greater than zero, + otherwise false.
      +
      +
    • +
    • +
      +

      isNegative

      +
      public boolean isNegative()
      +
      Returns true if and only if this instance represents a monetary value less than zero, + otherwise false.
      +
      +
    • +
    • +
      +

      isZero

      +
      public boolean isZero()
      +
      Returns true if and only if this instance represents zero monetary value, + otherwise false.
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      public boolean isGreaterThan(Coin other)
      +
      Returns true if the monetary value represented by this instance is greater than that + of the given other Coin, otherwise false.
      +
      +
    • +
    • +
      +

      isLessThan

      +
      public boolean isLessThan(Coin other)
      +
      Returns true if the monetary value represented by this instance is less than that + of the given other Coin, otherwise false.
      +
      +
    • +
    • +
      +

      shiftLeft

      +
      public Coin shiftLeft(int n)
      +
      +
    • +
    • +
      +

      shiftRight

      +
      public Coin shiftRight(int n)
      +
      +
    • +
    • +
      +

      signum

      +
      public int signum()
      +
      +
      Specified by:
      +
      signum in interface Monetary
      +
      +
      +
    • +
    • +
      +

      negate

      +
      public Coin negate()
      +
      +
    • +
    • +
      +

      longValue

      +
      public long longValue()
      +
      Returns the number of satoshis of this monetary value. It's deprecated in favour of accessing value + directly.
      +
      +
    • +
    • +
      +

      toSat

      +
      public long toSat()
      +
      Convert to number of satoshis
      +
      +
      Returns:
      +
      decimal number of satoshis
      +
      +
      +
    • +
    • +
      +

      toBtc

      +
      public BigDecimal toBtc()
      +
      Convert to number of bitcoin (in BTC)
      +
      +
      Returns:
      +
      decimal number of bitcoin (in BTC)
      +
      +
      +
    • +
    • +
      +

      toFriendlyString

      +
      public String toFriendlyString()
      +
      Returns the value as a 0.12 type string. More digits after the decimal place will be used + if necessary, but two will always be present.
      +
      +
    • +
    • +
      +

      toPlainString

      +
      public String toPlainString()
      +

      + Returns the value as a plain string denominated in BTC. + The result is unformatted with no trailing zeroes. + For instance, a value of 150000 satoshis gives an output string of "0.0015" BTC +

      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(Coin other)
      +
      +
      Specified by:
      +
      compareTo in interface Comparable<Coin>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Context.html b/javadoc/0.16.3/org/bitcoinj/core/Context.html new file mode 100644 index 000000000..f5cd50b0d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Context.html @@ -0,0 +1,355 @@ + + + + +Context (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Context

+
+
java.lang.Object +
org.bitcoinj.core.Context
+
+
+
+
public class Context +extends Object
+

The Context object holds various objects and pieces of configuration that are scoped to a specific instantiation of + bitcoinj for a specific network. You can get an instance of this class through calling get().

+ +

Context is new in 0.13 and the library is currently in a transitional period: you should create a Context that + wraps your chosen network parameters before using the rest of the library. However if you don't, things will still + work as a Context will be created for you and stashed in thread local storage. The context is then propagated between + library created threads as needed. This automagical propagation and creation is a temporary mechanism: one day it + will be removed to avoid confusing edge cases that could occur if the developer does not fully understand it e.g. + in the case where multiple instances of the library are in use simultaneously.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_EVENT_HORIZON

      +
      public static final int DEFAULT_EVENT_HORIZON
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Context

      +
      public Context(NetworkParameters params)
      +
      Creates a new context object. For now, this will be done for you by the framework. Eventually you will be + expected to do this yourself in the same manner as fetching a NetworkParameters object (at the start of your app).
      +
      +
      Parameters:
      +
      params - The network parameters that will be associated with this context.
      +
      +
      +
    • +
    • +
      +

      Context

      +
      public Context(NetworkParameters params, + int eventHorizon, + Coin feePerKb, + boolean ensureMinRequiredFee)
      +
      Creates a new custom context object. This is mainly meant for unit tests for now.
      +
      +
      Parameters:
      +
      params - The network parameters that will be associated with this context.
      +
      eventHorizon - Number of blocks after which the library will delete data and be unable to always process reorgs. See getEventHorizon().
      +
      feePerKb - The default fee per 1000 virtual bytes of transaction data to pay when completing transactions. For details, see SendRequest.feePerKb.
      +
      ensureMinRequiredFee - Whether to ensure the minimum required fee by default when completing transactions. For details, see SendRequest.ensureMinRequiredFee.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public static Context get()
      +
      Returns the current context that is associated with the calling thread. BitcoinJ is an API that has thread + affinity: much like OpenGL it expects each thread that accesses it to have been configured with a global Context + object. This method returns that. Note that to help you develop, this method will also propagate whichever + context was created last onto the current thread, if it's missing. However it will print an error when doing so + because propagation of contexts is meant to be done manually: this is so two libraries or subsystems that + independently use bitcoinj (or possibly alt coin forks of it) can operate correctly.
      +
      +
      Throws:
      +
      IllegalStateException - if no context exists at all or if we are in strict mode and there is no context.
      +
      +
      +
    • +
    • +
      +

      enableStrictMode

      +
      public static void enableStrictMode()
      +
      Require that new threads use propagate(Context) or ContextPropagatingThreadFactory, + rather than using a heuristic for the desired context.
      +
      +
    • +
    • +
      +

      getOrCreate

      +
      public static Context getOrCreate(NetworkParameters params)
      +
      +
    • +
    • +
      +

      propagate

      +
      public static void propagate(Context context)
      +
      Sets the given context as the current thread context. You should use this if you create your own threads that + want to create core BitcoinJ objects. Generally, if a class can accept a Context in its constructor and might + be used (even indirectly) by a thread, you will want to call this first. Your task may be simplified by using + a ContextPropagatingThreadFactory.
      +
      +
    • +
    • +
      +

      getConfidenceTable

      +
      public TxConfidenceTable getConfidenceTable()
      +
      Returns the TxConfidenceTable created by this context. The pool tracks advertised + and downloaded transactions so their confidence can be measured as a proportion of how many peers announced it. + With an un-tampered with internet connection, the more peers announce a transaction the more confidence you can + have that it's really valid.
      +
      +
    • +
    • +
      +

      getParams

      +
      public NetworkParameters getParams()
      +
      Returns the NetworkParameters specified when this context was (auto) created. The + network parameters defines various hard coded constants for a specific instance of a Bitcoin network, such as + main net, testnet, etc.
      +
      +
    • +
    • +
      +

      getEventHorizon

      +
      public int getEventHorizon()
      +
      The event horizon is the number of blocks after which various bits of the library consider a transaction to be + so confirmed that it's safe to delete data. Re-orgs larger than the event horizon will not be correctly + processed, so the default value is high (100).
      +
      +
    • +
    • +
      +

      getFeePerKb

      +
      public Coin getFeePerKb()
      +
      The default fee per 1000 virtual bytes of transaction data to pay when completing transactions. For details, see SendRequest.feePerKb.
      +
      +
    • +
    • +
      +

      isEnsureMinRequiredFee

      +
      public boolean isEnsureMinRequiredFee()
      +
      Whether to ensure the minimum required fee by default when completing transactions. For details, see SendRequest.ensureMinRequiredFee.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/DumpedPrivateKey.html b/javadoc/0.16.3/org/bitcoinj/core/DumpedPrivateKey.html new file mode 100644 index 000000000..678c3472e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/DumpedPrivateKey.html @@ -0,0 +1,230 @@ + + + + +DumpedPrivateKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DumpedPrivateKey

+
+
java.lang.Object +
org.bitcoinj.core.PrefixedChecksummedBytes +
org.bitcoinj.core.DumpedPrivateKey
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
public class DumpedPrivateKey +extends PrefixedChecksummedBytes
+
Parses and generates private keys in the form used by the Bitcoin "dumpprivkey" command. This is the private key + bytes with a header byte and 4 checksum bytes at the end. If there are 33 private key bytes instead of 32, then + the last byte is a discriminator value for the compressed pubkey.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      fromBase58

      +
      public static DumpedPrivateKey fromBase58(@Nullable + NetworkParameters params, + String base58) + throws AddressFormatException, +AddressFormatException.WrongNetwork
      +
      Construct a private key from its Base58 representation.
      +
      +
      Parameters:
      +
      params - The expected NetworkParameters or null if you don't want validation.
      +
      base58 - The textual form of the private key.
      +
      Throws:
      +
      AddressFormatException - if the given base58 doesn't parse or the checksum is invalid
      +
      AddressFormatException.WrongNetwork - if the given private key is valid but for a different chain (eg testnet vs mainnet)
      +
      +
      +
    • +
    • +
      +

      toBase58

      +
      public String toBase58()
      +
      Returns the base58-encoded textual form, including version and checksum bytes.
      +
      +
      Returns:
      +
      textual form
      +
      +
      +
    • +
    • +
      +

      getKey

      +
      public ECKey getKey()
      +
      Returns an ECKey created from this encoded private key.
      +
      +
    • +
    • +
      +

      isPubKeyCompressed

      +
      public boolean isPubKeyCompressed()
      +
      Returns true if the public key corresponding to this private key is compressed.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ECKey.ECDSASignature.html b/javadoc/0.16.3/org/bitcoinj/core/ECKey.ECDSASignature.html new file mode 100644 index 000000000..e1704856a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ECKey.ECDSASignature.html @@ -0,0 +1,306 @@ + + + + +ECKey.ECDSASignature (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ECKey.ECDSASignature

+
+
java.lang.Object +
org.bitcoinj.core.ECKey.ECDSASignature
+
+
+
+
Direct Known Subclasses:
+
TransactionSignature
+
+
+
Enclosing class:
+
ECKey
+
+
+
public static class ECKey.ECDSASignature +extends Object
+
Groups the two components that make up a signature, and provides a way to encode to DER form, which is + how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol. The raw + components can be useful for doing further EC maths on them.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      r

      +
      public final BigInteger r
      +
      The two components of the signature.
      +
      +
    • +
    • +
      +

      s

      +
      public final BigInteger s
      +
      The two components of the signature.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ECDSASignature

      +
      public ECDSASignature(BigInteger r, + BigInteger s)
      +
      Constructs a signature with the given components. Does NOT automatically canonicalise the signature.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isCanonical

      +
      public boolean isCanonical()
      +
      Returns true if the S component is "low", that means it is below ECKey.HALF_CURVE_ORDER. See BIP62.
      +
      +
    • +
    • +
      +

      toCanonicalised

      +
      public ECKey.ECDSASignature toCanonicalised()
      +
      Will automatically adjust the S component to be less than or equal to half the curve order, if necessary. + This is required because for every signature (r,s) the signature (r, -s (mod N)) is a valid signature of + the same message. However, we dislike the ability to modify the bits of a Bitcoin transaction after it's + been signed, as that violates various assumed invariants. Thus in future only one of those forms will be + considered legal and the other will be banned.
      +
      +
    • +
    • +
      +

      encodeToDER

      +
      public byte[] encodeToDER()
      +
      DER is an international standard for serializing data structures which is widely used in cryptography. + It's somewhat like protocol buffers but less convenient. This method returns a standard DER encoding + of the signature, as recognized by OpenSSL and other libraries.
      +
      +
    • +
    • +
      +

      decodeFromDER

      +
      public static ECKey.ECDSASignature decodeFromDER(byte[] bytes) + throws SignatureDecodeException
      +
      +
      Throws:
      +
      SignatureDecodeException - if the signature is unparseable in some way.
      +
      +
      +
    • +
    • +
      +

      derByteStream

      +
      protected ByteArrayOutputStream derByteStream() + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ECKey.KeyIsEncryptedException.html b/javadoc/0.16.3/org/bitcoinj/core/ECKey.KeyIsEncryptedException.html new file mode 100644 index 000000000..90561fe1e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ECKey.KeyIsEncryptedException.html @@ -0,0 +1,155 @@ + + + + +ECKey.KeyIsEncryptedException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ECKey.KeyIsEncryptedException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
ECKey
+
+
+
public static class ECKey.KeyIsEncryptedException +extends ECKey.MissingPrivateKeyException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      KeyIsEncryptedException

      +
      public KeyIsEncryptedException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ECKey.MissingPrivateKeyException.html b/javadoc/0.16.3/org/bitcoinj/core/ECKey.MissingPrivateKeyException.html new file mode 100644 index 000000000..0ef6d9fe7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ECKey.MissingPrivateKeyException.html @@ -0,0 +1,157 @@ + + + + +ECKey.MissingPrivateKeyException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ECKey.MissingPrivateKeyException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.ECKey.MissingPrivateKeyException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
ECKey.KeyIsEncryptedException
+
+
+
Enclosing class:
+
ECKey
+
+
+
public static class ECKey.MissingPrivateKeyException +extends RuntimeException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MissingPrivateKeyException

      +
      public MissingPrivateKeyException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ECKey.html b/javadoc/0.16.3/org/bitcoinj/core/ECKey.html new file mode 100644 index 000000000..e031b71b1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ECKey.html @@ -0,0 +1,1572 @@ + + + + +ECKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ECKey

+
+
java.lang.Object +
org.bitcoinj.core.ECKey
+
+
+
+
All Implemented Interfaces:
+
EncryptableItem
+
+
+
Direct Known Subclasses:
+
DeterministicKey
+
+
+
public class ECKey +extends Object +implements EncryptableItem
+

Represents an elliptic curve public and (optionally) private key, usable for digital signatures but not encryption. + Creating a new ECKey with the empty constructor will generate a new random keypair. Other static methods can be used + when you already have the public or private parts. If you create a key with only the public part, you can check + signatures but not create them.

+ +

ECKey also provides access to Bitcoin Core compatible text message signing, as accessible via the UI or JSON-RPC. + This is slightly different to signing raw bytes - if you want to sign your own data and it won't be exposed as + text to people, you don't want to use this. If in doubt, ask on the mailing list.

+ +

The ECDSA algorithm supports key recovery in which a signature plus a couple of discriminator bits can + be reversed to find the public key used to calculate it. This can be convenient when you have a message and a + signature and want to find out who signed it, rather than requiring the user to provide the expected identity.

+ +

This class supports a variety of serialization forms. The methods that accept/return byte arrays serialize + private keys as raw byte arrays and public keys using the SEC standard byte encoding for public keys. Signatures + are encoded using ASN.1/DER inside the Bitcoin protocol.

+ +

A key can be compressed or uncompressed. This refers to whether the public key is represented + when encoded into bytes as an (x, y) coordinate on the elliptic curve, or whether it's represented as just an X + co-ordinate and an extra byte that carries a sign bit. With the latter form the Y coordinate can be calculated + dynamically, however, because the binary serialization is different the address of a key changes if its + compression status is changed. If you deviate from the defaults it's important to understand this: money sent + to a compressed version of the key will have a different address to the same key in uncompressed form. Whether + a public key is compressed or not is recorded in the SEC binary serialisation format, and preserved in a flag in + this class so round-tripping preserves state. Unless you're working with old software or doing unusual things, you + can usually ignore the compressed/uncompressed distinction.

+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static class 
    + +
    +
    Groups the two components that make up a signature, and provides a way to encode to DER form, which is + how ECDSA signatures are represented when embedded in other data structures in the Bitcoin protocol.
    +
    +
    static class 
    + +
     
    +
    static class 
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final Comparator<ECKey>
    + +
    +
    Sorts oldest keys first, newest last.
    +
    +
    protected long
    + +
     
    +
    static final org.bouncycastle.crypto.params.ECDomainParameters
    + +
    +
    The parameters of the secp256k1 curve that Bitcoin uses.
    +
    +
    protected EncryptedData
    + +
     
    +
    static boolean
    + +
    +
    If this global variable is set to true, sign() creates a dummy signature and verify() always returns true.
    +
    +
    static final BigInteger
    + +
    +
    Equal to CURVE.getN().shiftRight(1), used for canonicalising the S value of a signature.
    +
    +
    protected KeyCrypter
    + +
     
    +
    protected final BigInteger
    + +
     
    +
    protected final LazyECPoint
    + +
     
    +
    static final Comparator<ECKey>
    + +
    +
    Compares pub key bytes using UnsignedBytes.lexicographicalComparator()
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Modifier
    +
    Constructor
    +
    Description
    +
     
    + +
    +
    Generates an entirely new keypair.
    +
    +
     
    +
    ECKey(byte[] privKeyBytes, + byte[] pubKey)
    +
    +
    Deprecated.
    +
    +
     
    +
    ECKey(BigInteger privKey, + byte[] pubKey, + boolean compressed)
    +
    +
    Deprecated.
    +
    +
    protected
    + +
     
    +
    protected
    +
    ECKey(BigInteger priv, + org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
    +
     
    +
     
    +
    ECKey(SecureRandom secureRandom)
    +
    +
    Generates an entirely new keypair with the given SecureRandom object.
    +
    +
     
    +
    ECKey(EncryptedData encryptedPrivateKey, + byte[] pubKey, + KeyCrypter keyCrypter)
    +
    +
    Deprecated.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Deprecated. + +
    +
    + + +
    +
    Returns a copy of this key, but with the public point represented in uncompressed form.
    +
    + + +
    +
    Deprecated. + +
    +
    + +
    decrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Create a decrypted private key with the keyCrypter and AES key supplied.
    +
    + +
    decrypt(org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Create a decrypted private key with AES key.
    +
    + +
    doSign(Sha256Hash input, + BigInteger privateKeyForSigning)
    +
     
    + +
    encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Create an encrypted private key with the keyCrypter and the AES key supplied.
    +
    +
    static boolean
    +
    encryptionIsReversible(ECKey originalKey, + ECKey encryptedKey, + KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Check that it is possible to decrypt the key with the keyCrypter and that the original key is returned.
    +
    +
    boolean
    + +
     
    +
    byte
    + +
    +
    Returns the recovery ID, a byte with value between 0 and 3, inclusive, that specifies which of 4 possible + curve points was used to sign a message.
    +
    +
    void
    +
    formatKeyWithAddress(boolean includePrivateKeys, + org.bouncycastle.crypto.params.KeyParameter aesKey, + StringBuilder builder, + NetworkParameters params, + Script.ScriptType outputScriptType, + String comment)
    +
     
    +
    static ECKey
    +
    fromASN1(byte[] asn1privkey)
    +
    +
    Construct an ECKey from an ASN.1 encoded private key.
    +
    +
    static ECKey
    +
    fromEncrypted(EncryptedData encryptedPrivateKey, + KeyCrypter crypter, + byte[] pubKey)
    +
    +
    Constructs a key that has an encrypted private component.
    +
    +
    static ECKey
    +
    fromPrivate(byte[] privKeyBytes)
    +
    +
    Creates an ECKey given the private key only.
    +
    +
    static ECKey
    +
    fromPrivate(byte[] privKeyBytes, + boolean compressed)
    +
    +
    Creates an ECKey given the private key only.
    +
    +
    static ECKey
    + +
    +
    Creates an ECKey given the private key only.
    +
    +
    static ECKey
    +
    fromPrivate(BigInteger privKey, + boolean compressed)
    +
    +
    Creates an ECKey given the private key only.
    +
    +
    static ECKey
    +
    fromPrivateAndPrecalculatedPublic(byte[] priv, + byte[] pub)
    +
    +
    Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key.
    +
    +
    static ECKey
    +
    fromPrivateAndPrecalculatedPublic(BigInteger priv, + org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
    +
    +
    Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key.
    +
    +
    static ECKey
    +
    fromPublicOnly(byte[] pub)
    +
    +
    Creates an ECKey that cannot be used for signing, only verifying signatures, from the given encoded point.
    +
    +
    static ECKey
    + +
     
    +
    static ECKey
    +
    fromPublicOnly(org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
    +
    +
    Creates an ECKey that cannot be used for signing, only verifying signatures, from the given point.
    +
    +
    long
    + +
    +
    Returns the creation time of this key or zero if the key was deserialized from a version that did not store + that data.
    +
    + + +
    + +
    + + +
    +
    Returns the the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey + is not encrypted.
    +
    + + +
    +
    Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
    +
    + + +
    +
    Returns the KeyCrypter that was used to encrypt to encrypt this ECKey.
    +
    + + +
     
    + + +
     
    + + +
    +
    Exports the private key in the form used by Bitcoin Core's "dumpprivkey" and "importprivkey" commands.
    +
    + + +
    +
    Gets the private key in the form of an integer field element.
    +
    +
    byte[]
    + +
    +
    Returns a 32 byte array containing the private key.
    +
    +
    byte[]
    + +
    +
    Gets the raw public key value.
    +
    +
    byte[]
    + +
    +
    Gets the hash160 form of the public key (as seen in addresses).
    +
    +
    org.bouncycastle.math.ec.ECPoint
    + +
    +
    Gets the public key in the form of an elliptic curve point object from Bouncy Castle.
    +
    + + +
     
    +
    byte[]
    + +
    +
    A wrapper for getPrivKeyBytes() that returns null if the private key bytes are missing or would have + to be derived (for the HD key case).
    +
    +
    int
    + +
     
    +
    boolean
    + +
    +
    Returns true if this key has unencrypted access to private key bytes.
    +
    +
    boolean
    + +
    +
    Returns whether this key is using the compressed form or not.
    +
    +
    boolean
    + +
    +
    Indicates whether the private key is encrypted (true) or not (false).
    +
    +
    static boolean
    +
    isPubKeyCanonical(byte[] pubkey)
    +
    +
    Returns true if the given pubkey is canonical, i.e.
    +
    +
    static boolean
    +
    isPubKeyCompressed(byte[] encoded)
    +
    +
    Returns true if the given pubkey is in its compressed form.
    +
    +
    boolean
    + +
    +
    Returns true if this key doesn't have unencrypted access to private key bytes.
    +
    +
    boolean
    + +
    +
    Returns true if this key is watch only, meaning it has a public key but no private key.
    +
    + +
    maybeDecrypt(org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Creates decrypted private key if needed.
    +
    +
    static byte[]
    +
    publicKeyFromPrivate(BigInteger privKey, + boolean compressed)
    +
    +
    Returns public key bytes from the given private key.
    +
    +
    static org.bouncycastle.math.ec.ECPoint
    + +
    +
    Returns public key point from the given private key.
    +
    +
    static ECKey
    +
    recoverFromSignature(int recId, + ECKey.ECDSASignature sig, + Sha256Hash message, + boolean compressed)
    +
    +
    Given the components of a signature and a selector value, recover and return the public key + that generated the signature according to the algorithm in SEC1v2 section 4.1.6.
    +
    +
    void
    +
    setCreationTimeSeconds(long newCreationTimeSeconds)
    +
    +
    Sets the creation time of this key.
    +
    + + +
    +
    Signs the given hash and returns the R and S components as BigIntegers.
    +
    + +
    sign(Sha256Hash input, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Signs the given hash and returns the R and S components as BigIntegers.
    +
    +
    static ECKey
    +
    signedMessageToKey(String message, + String signatureBase64)
    +
    +
    Given an arbitrary piece of text and a Bitcoin-format message signature encoded in base64, returns an ECKey + containing the public key that was used to sign it.
    +
    + + +
    +
    Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
    +
    + +
    signMessage(String message, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
    +
    +
    byte[]
    + +
    +
    Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by Bitcoin Core + in its wallet storage format.
    +
    + + +
     
    + +
    toStringWithPrivate(org.bouncycastle.crypto.params.KeyParameter aesKey, + NetworkParameters params)
    +
    +
    Produce a string rendering of the ECKey INCLUDING the private key.
    +
    +
    boolean
    +
    verify(byte[] hash, + byte[] signature)
    +
    +
    Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
    +
    +
    static boolean
    +
    verify(byte[] data, + byte[] signature, + byte[] pub)
    +
    +
    Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
    +
    +
    static boolean
    +
    verify(byte[] data, + ECKey.ECDSASignature signature, + byte[] pub)
    +
    +
    Verifies the given ECDSA signature against the message bytes using the public key bytes.
    +
    +
    boolean
    +
    verify(Sha256Hash sigHash, + ECKey.ECDSASignature signature)
    +
    +
    Verifies the given R/S pair (signature) against a hash using the public key.
    +
    +
    void
    +
    verifyMessage(String message, + String signatureBase64)
    +
    +
    Convenience wrapper around signedMessageToKey(String, String).
    +
    +
    void
    +
    verifyOrThrow(byte[] hash, + byte[] signature)
    +
    +
    Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key, and throws an exception + if the signature doesn't match
    +
    +
    void
    + +
    +
    Verifies the given R/S pair (signature) against a hash using the public key, and throws an exception + if the signature doesn't match
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      AGE_COMPARATOR

      +
      public static final Comparator<ECKey> AGE_COMPARATOR
      +
      Sorts oldest keys first, newest last.
      +
      +
    • +
    • +
      +

      PUBKEY_COMPARATOR

      +
      public static final Comparator<ECKey> PUBKEY_COMPARATOR
      +
      Compares pub key bytes using UnsignedBytes.lexicographicalComparator()
      +
      +
    • +
    • +
      +

      CURVE

      +
      public static final org.bouncycastle.crypto.params.ECDomainParameters CURVE
      +
      The parameters of the secp256k1 curve that Bitcoin uses.
      +
      +
    • +
    • +
      +

      HALF_CURVE_ORDER

      +
      public static final BigInteger HALF_CURVE_ORDER
      +
      Equal to CURVE.getN().shiftRight(1), used for canonicalising the S value of a signature. If you aren't + sure what this is about, you can ignore it.
      +
      +
    • +
    • +
      +

      priv

      +
      @Nullable +protected final BigInteger priv
      +
      +
    • +
    • +
      +

      pub

      +
      protected final LazyECPoint pub
      +
      +
    • +
    • +
      +

      creationTimeSeconds

      +
      protected long creationTimeSeconds
      +
      +
    • +
    • +
      +

      keyCrypter

      +
      protected KeyCrypter keyCrypter
      +
      +
    • +
    • +
      +

      encryptedPrivateKey

      +
      protected EncryptedData encryptedPrivateKey
      +
      +
    • +
    • +
      +

      FAKE_SIGNATURES

      +
      public static boolean FAKE_SIGNATURES
      +
      If this global variable is set to true, sign() creates a dummy signature and verify() always returns true. + This is intended to help accelerate unit tests that do a lot of signing/verifying, which in the debugger + can be painfully slow.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ECKey

      +
      public ECKey()
      +
      Generates an entirely new keypair. Point compression is used so the resulting public key will be 33 bytes + (32 for the co-ordinate and 1 byte to represent the y bit).
      +
      +
    • +
    • +
      +

      ECKey

      +
      public ECKey(SecureRandom secureRandom)
      +
      Generates an entirely new keypair with the given SecureRandom object. Point compression is used so the + resulting public key will be 33 bytes (32 for the co-ordinate and 1 byte to represent the y bit).
      +
      +
    • +
    • +
      +

      ECKey

      +
      protected ECKey(@Nullable + BigInteger priv, + org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
      +
      +
    • +
    • +
      +

      ECKey

      +
      protected ECKey(@Nullable + BigInteger priv, + LazyECPoint pub)
      +
      +
    • +
    • +
      +

      ECKey

      +
      @Deprecated +public ECKey(@Nullable + byte[] privKeyBytes, + @Nullable + byte[] pubKey)
      +
      Deprecated.
      +
      Creates an ECKey given only the private key bytes. This is the same as using the BigInteger constructor, but + is more convenient if you are importing a key from elsewhere. The public key will be automatically derived + from the private key.
      +
      +
    • +
    • +
      +

      ECKey

      +
      @Deprecated +public ECKey(EncryptedData encryptedPrivateKey, + byte[] pubKey, + KeyCrypter keyCrypter)
      +
      Deprecated.
      +
      Create a new ECKey with an encrypted private key, a public key and a KeyCrypter.
      +
      +
      Parameters:
      +
      encryptedPrivateKey - The private key, encrypted,
      +
      pubKey - The keys public key
      +
      keyCrypter - The KeyCrypter that will be used, with an AES key, to encrypt and decrypt the private key
      +
      +
      +
    • +
    • +
      +

      ECKey

      +
      @Deprecated +public ECKey(@Nullable + BigInteger privKey, + @Nullable + byte[] pubKey, + boolean compressed)
      +
      Deprecated.
      +
      Creates an ECKey given either the private key only, the public key only, or both. If only the private key + is supplied, the public key will be calculated from it (this is slow). If both are supplied, it's assumed + the public key already correctly matches the private key. If only the public key is supplied, this ECKey cannot + be used for signing.
      +
      +
      Parameters:
      +
      compressed - If set to true and pubKey is null, the derived public key will be in compressed form.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      compressPoint

      +
      @Deprecated +public static LazyECPoint compressPoint(LazyECPoint point)
      +
      Deprecated. + +
      +
      +
    • +
    • +
      +

      decompressPoint

      +
      @Deprecated +public static LazyECPoint decompressPoint(LazyECPoint point)
      +
      Deprecated. + +
      +
      +
    • +
    • +
      +

      fromASN1

      +
      public static ECKey fromASN1(byte[] asn1privkey)
      +
      Construct an ECKey from an ASN.1 encoded private key. These are produced by OpenSSL and stored by Bitcoin + Core in its wallet. Note that this is slow because it requires an EC point multiply.
      +
      +
    • +
    • +
      +

      fromPrivate

      +
      public static ECKey fromPrivate(BigInteger privKey)
      +
      Creates an ECKey given the private key only. The public key is calculated from it (this is slow). The resulting + public key is compressed.
      +
      +
    • +
    • +
      +

      fromPrivate

      +
      public static ECKey fromPrivate(BigInteger privKey, + boolean compressed)
      +
      Creates an ECKey given the private key only. The public key is calculated from it (this is slow).
      +
      +
      Parameters:
      +
      compressed - Determines whether the resulting ECKey will use a compressed encoding for the public key.
      +
      +
      +
    • +
    • +
      +

      fromPrivate

      +
      public static ECKey fromPrivate(byte[] privKeyBytes)
      +
      Creates an ECKey given the private key only. The public key is calculated from it (this is slow). The resulting + public key is compressed.
      +
      +
    • +
    • +
      +

      fromPrivate

      +
      public static ECKey fromPrivate(byte[] privKeyBytes, + boolean compressed)
      +
      Creates an ECKey given the private key only. The public key is calculated from it (this is slow).
      +
      +
      Parameters:
      +
      compressed - Determines whether the resulting ECKey will use a compressed encoding for the public key.
      +
      +
      +
    • +
    • +
      +

      fromPrivateAndPrecalculatedPublic

      +
      public static ECKey fromPrivateAndPrecalculatedPublic(BigInteger priv, + org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
      +
      Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key. This is used to speed things up when you know you have the right values + already.
      +
      +
      Parameters:
      +
      compressed - Determines whether the resulting ECKey will use a compressed encoding for the public key.
      +
      +
      +
    • +
    • +
      +

      fromPrivateAndPrecalculatedPublic

      +
      public static ECKey fromPrivateAndPrecalculatedPublic(byte[] priv, + byte[] pub)
      +
      Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the + generator point by the private key. This is used to speed things up when you know you have the right values + already. The compression state of the point will be preserved.
      +
      +
    • +
    • +
      +

      fromPublicOnly

      +
      public static ECKey fromPublicOnly(org.bouncycastle.math.ec.ECPoint pub, + boolean compressed)
      +
      Creates an ECKey that cannot be used for signing, only verifying signatures, from the given point.
      +
      +
      Parameters:
      +
      compressed - Determines whether the resulting ECKey will use a compressed encoding for the public key.
      +
      +
      +
    • +
    • +
      +

      fromPublicOnly

      +
      public static ECKey fromPublicOnly(byte[] pub)
      +
      Creates an ECKey that cannot be used for signing, only verifying signatures, from the given encoded point. + The compression state of pub will be preserved.
      +
      +
    • +
    • +
      +

      fromPublicOnly

      +
      public static ECKey fromPublicOnly(ECKey key)
      +
      +
    • +
    • +
      +

      decompress

      +
      public ECKey decompress()
      +
      Returns a copy of this key, but with the public point represented in uncompressed form. Normally you would + never need this: it's for specialised scenarios or when backwards compatibility in encoded form is necessary.
      +
      +
    • +
    • +
      +

      fromEncrypted

      +
      public static ECKey fromEncrypted(EncryptedData encryptedPrivateKey, + KeyCrypter crypter, + byte[] pubKey)
      +
      Constructs a key that has an encrypted private component. The given object wraps encrypted bytes and an + initialization vector. Note that the key will not be decrypted during this call: the returned ECKey is + unusable for signing unless a decryption key is supplied.
      +
      +
    • +
    • +
      +

      isPubKeyOnly

      +
      public boolean isPubKeyOnly()
      +
      Returns true if this key doesn't have unencrypted access to private key bytes. This may be because it was never + given any private key bytes to begin with (a watching key), or because the key is encrypted. You can use + isEncrypted() to tell the cases apart.
      +
      +
    • +
    • +
      +

      hasPrivKey

      +
      public boolean hasPrivKey()
      +
      Returns true if this key has unencrypted access to private key bytes. Does the opposite of + isPubKeyOnly().
      +
      +
    • +
    • +
      +

      isWatching

      +
      public boolean isWatching()
      +
      Returns true if this key is watch only, meaning it has a public key but no private key.
      +
      +
    • +
    • +
      +

      toASN1

      +
      public byte[] toASN1()
      +
      Output this ECKey as an ASN.1 encoded private key, as understood by OpenSSL or used by Bitcoin Core + in its wallet storage format.
      +
      +
      Throws:
      +
      ECKey.MissingPrivateKeyException - if the private key is missing or encrypted.
      +
      +
      +
    • +
    • +
      +

      publicKeyFromPrivate

      +
      public static byte[] publicKeyFromPrivate(BigInteger privKey, + boolean compressed)
      +
      Returns public key bytes from the given private key. To convert a byte array into a BigInteger, + use new BigInteger(1, bytes);
      +
      +
    • +
    • +
      +

      publicPointFromPrivate

      +
      public static org.bouncycastle.math.ec.ECPoint publicPointFromPrivate(BigInteger privKey)
      +
      Returns public key point from the given private key. To convert a byte array into a BigInteger, + use new BigInteger(1, bytes);
      +
      +
    • +
    • +
      +

      getPubKeyHash

      +
      public byte[] getPubKeyHash()
      +
      Gets the hash160 form of the public key (as seen in addresses).
      +
      +
    • +
    • +
      +

      getPubKey

      +
      public byte[] getPubKey()
      +
      Gets the raw public key value. This appears in transaction scriptSigs. Note that this is not the same + as the pubKeyHash/address.
      +
      +
    • +
    • +
      +

      getPubKeyPoint

      +
      public org.bouncycastle.math.ec.ECPoint getPubKeyPoint()
      +
      Gets the public key in the form of an elliptic curve point object from Bouncy Castle.
      +
      +
    • +
    • +
      +

      getPrivKey

      +
      public BigInteger getPrivKey()
      +
      Gets the private key in the form of an integer field element. The public key is derived by performing EC + point addition this number of times (i.e. point multiplying).
      +
      +
      Throws:
      +
      IllegalStateException - if the private key bytes are not available.
      +
      +
      +
    • +
    • +
      +

      isCompressed

      +
      public boolean isCompressed()
      +
      Returns whether this key is using the compressed form or not. Compressed pubkeys are only 33 bytes, not 64.
      +
      +
    • +
    • +
      +

      sign

      +
      public ECKey.ECDSASignature sign(Sha256Hash input) + throws KeyCrypterException
      +
      Signs the given hash and returns the R and S components as BigIntegers. In the Bitcoin protocol, they are + usually encoded using ASN.1 format, so you want toASN1() + instead. However sometimes the independent components can be useful, for instance, if you're going to do + further EC maths on them.
      +
      +
      Throws:
      +
      KeyCrypterException - if this ECKey doesn't have a private part.
      +
      +
      +
    • +
    • +
      +

      sign

      +
      public ECKey.ECDSASignature sign(Sha256Hash input, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Signs the given hash and returns the R and S components as BigIntegers. In the Bitcoin protocol, they are + usually encoded using DER format, so you want ECKey.ECDSASignature.encodeToDER() + instead. However sometimes the independent components can be useful, for instance, if you're doing to do further + EC maths on them.
      +
      +
      Parameters:
      +
      aesKey - The AES key to use for decryption of the private key. If null then no decryption is required.
      +
      Throws:
      +
      KeyCrypterException - if there's something wrong with aesKey.
      +
      ECKey.MissingPrivateKeyException - if this key cannot sign because it's pubkey only.
      +
      +
      +
    • +
    • +
      +

      doSign

      +
      protected ECKey.ECDSASignature doSign(Sha256Hash input, + BigInteger privateKeyForSigning)
      +
      +
    • +
    • +
      +

      verify

      +
      public static boolean verify(byte[] data, + ECKey.ECDSASignature signature, + byte[] pub)
      +

      Verifies the given ECDSA signature against the message bytes using the public key bytes.

      + +

      When using native ECDSA verification, data must be 32 bytes, and no element may be + larger than 520 bytes.

      +
      +
      Parameters:
      +
      data - Hash of the data to verify.
      +
      signature - ASN.1 encoded signature.
      +
      pub - The public key bytes to use.
      +
      +
      +
    • +
    • +
      +

      verify

      +
      public static boolean verify(byte[] data, + byte[] signature, + byte[] pub) + throws SignatureDecodeException
      +
      Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
      +
      +
      Parameters:
      +
      data - Hash of the data to verify.
      +
      signature - ASN.1 encoded signature.
      +
      pub - The public key bytes to use.
      +
      Throws:
      +
      SignatureDecodeException - if the signature is unparseable in some way.
      +
      +
      +
    • +
    • +
      +

      verify

      +
      public boolean verify(byte[] hash, + byte[] signature) + throws SignatureDecodeException
      +
      Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key.
      +
      +
      Parameters:
      +
      hash - Hash of the data to verify.
      +
      signature - ASN.1 encoded signature.
      +
      Throws:
      +
      SignatureDecodeException - if the signature is unparseable in some way.
      +
      +
      +
    • +
    • +
      +

      verify

      +
      public boolean verify(Sha256Hash sigHash, + ECKey.ECDSASignature signature)
      +
      Verifies the given R/S pair (signature) against a hash using the public key.
      +
      +
    • +
    • +
      +

      verifyOrThrow

      +
      public void verifyOrThrow(byte[] hash, + byte[] signature) + throws SignatureDecodeException, +SignatureException
      +
      Verifies the given ASN.1 encoded ECDSA signature against a hash using the public key, and throws an exception + if the signature doesn't match
      +
      +
      Throws:
      +
      SignatureDecodeException - if the signature is unparseable in some way.
      +
      SignatureException - if the signature does not match.
      +
      +
      +
    • +
    • +
      +

      verifyOrThrow

      +
      public void verifyOrThrow(Sha256Hash sigHash, + ECKey.ECDSASignature signature) + throws SignatureException
      +
      Verifies the given R/S pair (signature) against a hash using the public key, and throws an exception + if the signature doesn't match
      +
      +
      Throws:
      +
      SignatureException - if the signature does not match.
      +
      +
      +
    • +
    • +
      +

      isPubKeyCanonical

      +
      public static boolean isPubKeyCanonical(byte[] pubkey)
      +
      Returns true if the given pubkey is canonical, i.e. the correct length taking into account compression.
      +
      +
    • +
    • +
      +

      isPubKeyCompressed

      +
      public static boolean isPubKeyCompressed(byte[] encoded)
      +
      Returns true if the given pubkey is in its compressed form.
      +
      +
    • +
    • +
      +

      signMessage

      +
      public String signMessage(String message) + throws KeyCrypterException
      +
      Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
      +
      +
      Throws:
      +
      IllegalStateException - if this ECKey does not have the private part.
      +
      KeyCrypterException - if this ECKey is encrypted and no AESKey is provided or it does not decrypt the ECKey.
      +
      +
      +
    • +
    • +
      +

      signMessage

      +
      public String signMessage(String message, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64 + encoded string.
      +
      +
      Throws:
      +
      IllegalStateException - if this ECKey does not have the private part.
      +
      KeyCrypterException - if this ECKey is encrypted and no AESKey is provided or it does not decrypt the ECKey.
      +
      +
      +
    • +
    • +
      +

      signedMessageToKey

      +
      public static ECKey signedMessageToKey(String message, + String signatureBase64) + throws SignatureException
      +
      Given an arbitrary piece of text and a Bitcoin-format message signature encoded in base64, returns an ECKey + containing the public key that was used to sign it. This can then be compared to the expected public key to + determine if the signature was correct. These sorts of signatures are compatible with the Bitcoin-Qt/bitcoind + format generated by signmessage/verifymessage RPCs and GUI menu options. They are intended for humans to verify + their communications with each other, hence the base64 format and the fact that the input is text.
      +
      +
      Parameters:
      +
      message - Some piece of human readable text.
      +
      signatureBase64 - The Bitcoin-format message signature in base64
      +
      Throws:
      +
      SignatureException - If the public key could not be recovered or if there was a signature format error.
      +
      +
      +
    • +
    • +
      +

      verifyMessage

      +
      public void verifyMessage(String message, + String signatureBase64) + throws SignatureException
      +
      Convenience wrapper around signedMessageToKey(String, String). If the key derived from the + signature is not the same as this one, throws a SignatureException.
      +
      +
      Throws:
      +
      SignatureException
      +
      +
      +
    • +
    • +
      +

      findRecoveryId

      +
      public byte findRecoveryId(Sha256Hash hash, + ECKey.ECDSASignature sig)
      +
      Returns the recovery ID, a byte with value between 0 and 3, inclusive, that specifies which of 4 possible + curve points was used to sign a message. This value is also referred to as "v".
      +
      +
      Throws:
      +
      RuntimeException - if no recovery ID can be found.
      +
      +
      +
    • +
    • +
      +

      recoverFromSignature

      +
      @Nullable +public static ECKey recoverFromSignature(int recId, + ECKey.ECDSASignature sig, + Sha256Hash message, + boolean compressed)
      +

      Given the components of a signature and a selector value, recover and return the public key + that generated the signature according to the algorithm in SEC1v2 section 4.1.6.

      + +

      The recId is an index from 0 to 3 which indicates which of the 4 possible keys is the correct one. Because + the key recovery operation yields multiple potential keys, the correct key must either be stored alongside the + signature, or you must be willing to try each recId in turn until you find one that outputs the key you are + expecting.

      + +

      If this method returns null it means recovery was not possible and recId should be iterated.

      + +

      Given the above two points, a correct usage of this method is inside a for loop from 0 to 3, and if the + output is null OR a key that is not the one you expect, you try again with the next recId.

      +
      +
      Parameters:
      +
      recId - Which possible key to recover.
      +
      sig - the R and S components of the signature, wrapped.
      +
      message - Hash of the data that was signed.
      +
      compressed - Whether or not the original pubkey was compressed.
      +
      Returns:
      +
      An ECKey containing only the public part, or null if recovery wasn't possible.
      +
      +
      +
    • +
    • +
      +

      getPrivKeyBytes

      +
      public byte[] getPrivKeyBytes()
      +
      Returns a 32 byte array containing the private key.
      +
      +
      Throws:
      +
      ECKey.MissingPrivateKeyException - if the private key bytes are missing/encrypted.
      +
      +
      +
    • +
    • +
      +

      getPrivateKeyEncoded

      +
      public DumpedPrivateKey getPrivateKeyEncoded(NetworkParameters params)
      +
      Exports the private key in the form used by Bitcoin Core's "dumpprivkey" and "importprivkey" commands. Use + the DumpedPrivateKey.toString() method to get the string.
      +
      +
      Parameters:
      +
      params - The network this key is intended for use on.
      +
      Returns:
      +
      Private key bytes as a DumpedPrivateKey.
      +
      Throws:
      +
      IllegalStateException - if the private key is not available.
      +
      +
      +
    • +
    • +
      +

      getCreationTimeSeconds

      +
      public long getCreationTimeSeconds()
      +
      Returns the creation time of this key or zero if the key was deserialized from a version that did not store + that data.
      +
      +
      Specified by:
      +
      getCreationTimeSeconds in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      setCreationTimeSeconds

      +
      public void setCreationTimeSeconds(long newCreationTimeSeconds)
      +
      Sets the creation time of this key. Zero is a convention to mean "unavailable". This method can be useful when + you have a raw key you are importing from somewhere else.
      +
      +
    • +
    • +
      +

      encrypt

      +
      public ECKey encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Create an encrypted private key with the keyCrypter and the AES key supplied. + This method returns a new encrypted key and leaves the original unchanged.
      +
      +
      Parameters:
      +
      keyCrypter - The keyCrypter that specifies exactly how the encrypted bytes are created.
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached as it is slow to create).
      +
      Returns:
      +
      encryptedKey
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public ECKey decrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Create a decrypted private key with the keyCrypter and AES key supplied. Note that if the aesKey is wrong, this + has some chance of throwing KeyCrypterException due to the corrupted padding that will result, but it can also + just yield a garbage key.
      +
      +
      Parameters:
      +
      keyCrypter - The keyCrypter that specifies exactly how the decrypted bytes are created.
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached).
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public ECKey decrypt(org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Create a decrypted private key with AES key. Note that if the AES key is wrong, this + has some chance of throwing KeyCrypterException due to the corrupted padding that will result, but it can also + just yield a garbage key.
      +
      +
      Parameters:
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached).
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      maybeDecrypt

      +
      public ECKey maybeDecrypt(@Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Creates decrypted private key if needed.
      +
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      encryptionIsReversible

      +
      public static boolean encryptionIsReversible(ECKey originalKey, + ECKey encryptedKey, + KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +

      Check that it is possible to decrypt the key with the keyCrypter and that the original key is returned.

      + +

      Because it is a critical failure if the private keys cannot be decrypted successfully (resulting of loss of all + bitcoins controlled by the private key) you can use this method to check when you *encrypt* a wallet that + it can definitely be decrypted successfully.

      + +

      See Wallet.encrypt(KeyCrypter keyCrypter, KeyParameter aesKey) for example usage.

      +
      +
      Returns:
      +
      true if the encrypted key can be decrypted back to the original key successfully.
      +
      +
      +
    • +
    • +
      +

      isEncrypted

      +
      public boolean isEncrypted()
      +
      Indicates whether the private key is encrypted (true) or not (false). + A private key is deemed to be encrypted when there is both a KeyCrypter and the encryptedPrivateKey is non-zero.
      +
      +
      Specified by:
      +
      isEncrypted in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      @Nullable +public Protos.Wallet.EncryptionType getEncryptionType()
      +
      Description copied from interface: EncryptableItem
      +
      Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
      +
      +
      Specified by:
      +
      getEncryptionType in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      @Nullable +public byte[] getSecretBytes()
      +
      A wrapper for getPrivKeyBytes() that returns null if the private key bytes are missing or would have + to be derived (for the HD key case).
      +
      +
      Specified by:
      +
      getSecretBytes in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      @Nullable +public EncryptedData getEncryptedData()
      + +
      +
      Specified by:
      +
      getEncryptedData in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getEncryptedPrivateKey

      +
      @Nullable +public EncryptedData getEncryptedPrivateKey()
      +
      Returns the the encrypted private key bytes and initialisation vector for this ECKey, or null if the ECKey + is not encrypted.
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Returns the KeyCrypter that was used to encrypt to encrypt this ECKey. You need this to decrypt the ECKey.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toStringWithPrivate

      +
      public String toStringWithPrivate(@Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + NetworkParameters params)
      +
      Produce a string rendering of the ECKey INCLUDING the private key. + Unless you absolutely need the private key it is better for security reasons to just use toString().
      +
      +
    • +
    • +
      +

      getPrivateKeyAsHex

      +
      public String getPrivateKeyAsHex()
      +
      +
    • +
    • +
      +

      getPublicKeyAsHex

      +
      public String getPublicKeyAsHex()
      +
      +
    • +
    • +
      +

      getPrivateKeyAsWiF

      +
      public String getPrivateKeyAsWiF(NetworkParameters params)
      +
      +
    • +
    • +
      +

      formatKeyWithAddress

      +
      public void formatKeyWithAddress(boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + StringBuilder builder, + NetworkParameters params, + Script.ScriptType outputScriptType, + @Nullable + String comment)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/EmptyMessage.html b/javadoc/0.16.3/org/bitcoinj/core/EmptyMessage.html new file mode 100644 index 000000000..4205e20b2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/EmptyMessage.html @@ -0,0 +1,253 @@ + + + + +EmptyMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EmptyMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.EmptyMessage
+
+
+
+
+
Direct Known Subclasses:
+
GetAddrMessage, SendAddrV2Message, SendHeadersMessage, UnknownMessage, VersionAck
+
+
+
public abstract class EmptyMessage +extends Message
+

Parent class for header only messages that don't have a payload. + Currently this includes getaddr, verack and special bitcoinj class UnknownMessage.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      bitcoinSerializeToStream

      +
      protected final void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerialize

      +
      public byte[] bitcoinSerialize()
      +
      Description copied from class: Message
      +
      Returns a copy of the array returned by Message.unsafeBitcoinSerialize(), which is safe to mutate. + If you need extra performance and can guarantee you won't write to the array, you can use the unsafe version.
      +
      +
      Overrides:
      +
      bitcoinSerialize in class Message
      +
      Returns:
      +
      a freshly allocated serialized byte array
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/FeeFilterMessage.html b/javadoc/0.16.3/org/bitcoinj/core/FeeFilterMessage.html new file mode 100644 index 000000000..4bfaace4d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/FeeFilterMessage.html @@ -0,0 +1,234 @@ + + + + +FeeFilterMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FeeFilterMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.FeeFilterMessage
+
+
+
+
+
public class FeeFilterMessage +extends Message
+

Represents an "feefilter" message on the P2P network, which instructs a peer to filter transaction invs for + transactions that fall below the feerate provided.

+ +

See BIP133 for details.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/FilteredBlock.html b/javadoc/0.16.3/org/bitcoinj/core/FilteredBlock.html new file mode 100644 index 000000000..6c337f967 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/FilteredBlock.html @@ -0,0 +1,363 @@ + + + + +FilteredBlock (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FilteredBlock

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.FilteredBlock
+
+
+
+
+
public class FilteredBlock +extends Message
+

A FilteredBlock is used to relay a block with its transactions filtered using a BloomFilter. It consists + of the block header and a PartialMerkleTree which contains the transactions which matched the filter.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      bitcoinSerializeToStream

      +
      public void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      getTransactionHashes

      +
      public List<Sha256Hash> getTransactionHashes() + throws VerificationException
      +
      Gets a list of leaf hashes which are contained in the partial merkle tree in this filtered block
      +
      +
      Throws:
      +
      ProtocolException - If the partial merkle block is invalid or the merkle root of the partial merkle block doesn't match the block header
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      getBlockHeader

      +
      public Block getBlockHeader()
      +
      Gets a copy of the block header
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      Gets the hash of the block represented in this Filtered Block
      +
      +
      Overrides:
      +
      getHash in class Message
      +
      +
      +
    • +
    • +
      +

      provideTransaction

      +
      public boolean provideTransaction(Transaction tx) + throws VerificationException
      +
      Provide this FilteredBlock with a transaction which is in its Merkle tree.
      +
      +
      Returns:
      +
      false if the tx is not relevant to this FilteredBlock
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      getPartialMerkleTree

      +
      public PartialMerkleTree getPartialMerkleTree()
      +
      Returns the PartialMerkleTree object that provides the mathematical proof of transaction inclusion in the block.
      +
      +
    • +
    • +
      +

      getAssociatedTransactions

      +
      public Map<Sha256Hash,Transaction> getAssociatedTransactions()
      +
      Gets the set of transactions which were provided using provideTransaction() which match in getTransactionHashes()
      +
      +
    • +
    • +
      +

      getTransactionCount

      +
      public int getTransactionCount()
      +
      Number of transactions in this block, before it was filtered
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/FullPrunedBlockChain.html b/javadoc/0.16.3/org/bitcoinj/core/FullPrunedBlockChain.html new file mode 100644 index 000000000..ffc47fa36 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/FullPrunedBlockChain.html @@ -0,0 +1,598 @@ + + + + +FullPrunedBlockChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FullPrunedBlockChain

+
+
java.lang.Object +
org.bitcoinj.core.AbstractBlockChain +
org.bitcoinj.core.FullPrunedBlockChain
+
+
+
+
+
public class FullPrunedBlockChain +extends AbstractBlockChain
+

A FullPrunedBlockChain works in conjunction with a FullPrunedBlockStore to verify all the rules of the + Bitcoin system, with the downside being a large cost in system resources. Fully verifying means all unspent + transaction outputs are stored. Once a transaction output is spent and that spend is buried deep enough, the data + related to it is deleted to ensure disk space usage doesn't grow forever. For this reason a pruning node cannot + serve the full block chain to other clients, but it nevertheless provides the same security guarantees as Bitcoin + Core does.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/GetAddrMessage.html b/javadoc/0.16.3/org/bitcoinj/core/GetAddrMessage.html new file mode 100644 index 000000000..50c2eec97 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/GetAddrMessage.html @@ -0,0 +1,151 @@ + + + + +GetAddrMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GetAddrMessage

+
+ +
+
+
public class GetAddrMessage +extends EmptyMessage
+

Represents the "getaddr" P2P protocol message, which requests network AddressMessages from a peer. Not to + be confused with Address which is sort of like an account number.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/GetBlocksMessage.html b/javadoc/0.16.3/org/bitcoinj/core/GetBlocksMessage.html new file mode 100644 index 000000000..ec7ef25b7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/GetBlocksMessage.html @@ -0,0 +1,325 @@ + + + + +GetBlocksMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GetBlocksMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.GetBlocksMessage
+
+
+
+
+
Direct Known Subclasses:
+
GetHeadersMessage
+
+
+
public class GetBlocksMessage +extends Message
+

Represents the "getblocks" P2P network message, which requests the hashes of the parts of the block chain we're + missing. Those blocks can then be downloaded with a GetDataMessage.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/GetDataMessage.html b/javadoc/0.16.3/org/bitcoinj/core/GetDataMessage.html new file mode 100644 index 000000000..621918f39 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/GetDataMessage.html @@ -0,0 +1,259 @@ + + + + +GetDataMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GetDataMessage

+
+ +
+
+
public class GetDataMessage +extends ListMessage
+

Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their + hashes.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      GetDataMessage

      +
      public GetDataMessage(NetworkParameters params, + byte[] payloadBytes) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      GetDataMessage

      +
      public GetDataMessage(NetworkParameters params, + byte[] payload, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      Deserializes a 'getdata' message.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      serializer - the serializer to use for this message.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      GetDataMessage

      +
      public GetDataMessage(NetworkParameters params)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addTransaction

      +
      public void addTransaction(Sha256Hash hash, + boolean includeWitness)
      +
      +
    • +
    • +
      +

      addBlock

      +
      public void addBlock(Sha256Hash hash, + boolean includeWitness)
      +
      +
    • +
    • +
      +

      addFilteredBlock

      +
      public void addFilteredBlock(Sha256Hash hash)
      +
      +
    • +
    • +
      +

      getHashOf

      +
      public Sha256Hash getHashOf(int i)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/GetHeadersMessage.html b/javadoc/0.16.3/org/bitcoinj/core/GetHeadersMessage.html new file mode 100644 index 000000000..b022b1628 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/GetHeadersMessage.html @@ -0,0 +1,240 @@ + + + + +GetHeadersMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GetHeadersMessage

+
+ +
+
+
public class GetHeadersMessage +extends GetBlocksMessage
+

The "getheaders" command is structurally identical to "getblocks", but has different meaning. On receiving this + message a Bitcoin node returns matching blocks up to the limit, but without the bodies. It is useful as an + optimization: when your wallet does not contain any keys created before a particular time, you don't have to download + the bodies for those blocks because you know there are no relevant transactions.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/GetUTXOsMessage.html b/javadoc/0.16.3/org/bitcoinj/core/GetUTXOsMessage.html new file mode 100644 index 000000000..bc753908e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/GetUTXOsMessage.html @@ -0,0 +1,324 @@ + + + + +GetUTXOsMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GetUTXOsMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.GetUTXOsMessage
+
+
+
+
+
public class GetUTXOsMessage +extends Message
+

This command is supported only by Bitcoin XT nodes, which + advertise themselves using the second service bit flag. It requests a query of the UTXO set keyed by a set of + outpoints (i.e. tx hash and output index). The result contains a bitmap of spentness flags, and the contents of + the associated outputs if they were found. The results aren't authenticated by anything, so the peer could lie, + or a man in the middle could swap out its answer for something else. Please consult + BIP 65 for more information on this + message.

+ +

Note that this message does not let you query the UTXO set by address, script or any other criteria. The + reason is that Bitcoin nodes don't calculate the necessary database indexes to answer such queries, to save + space and time. If you want to look up unspent outputs by address, you can either query a block explorer site, + or you can use the FullPrunedBlockChain class to build the required indexes yourself. Bear in that it will + be quite slow and disk intensive to do that!

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MIN_PROTOCOL_VERSION

      +
      public static final int MIN_PROTOCOL_VERSION
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SERVICE_FLAGS_REQUIRED

      +
      public static final long SERVICE_FLAGS_REQUIRED
      +
      Bitmask of service flags required for a node to support this command (0x3)
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      getIncludeMempool

      +
      public boolean getIncludeMempool()
      +
      +
    • +
    • +
      +

      getOutPoints

      +
      public com.google.common.collect.ImmutableList<TransactionOutPoint> getOutPoints()
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/HeadersMessage.html b/javadoc/0.16.3/org/bitcoinj/core/HeadersMessage.html new file mode 100644 index 000000000..ef4c8654c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/HeadersMessage.html @@ -0,0 +1,282 @@ + + + + +HeadersMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HeadersMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.HeadersMessage
+
+
+
+
+
public class HeadersMessage +extends Message
+

A protocol message that contains a repeated series of block headers, sent in response to the "getheaders" command. + This is useful when you want to traverse the chain but know you don't care about the block contents, for example, + because you have a freshly created wallet with no keys.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/InsufficientMoneyException.html b/javadoc/0.16.3/org/bitcoinj/core/InsufficientMoneyException.html new file mode 100644 index 000000000..ab6864ece --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/InsufficientMoneyException.html @@ -0,0 +1,203 @@ + + + + +InsufficientMoneyException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class InsufficientMoneyException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.InsufficientMoneyException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class InsufficientMoneyException +extends Exception
+
Thrown to indicate that you don't have enough money available to perform the requested operation.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      missing

      +
      @Nullable +public final Coin missing
      +
      Contains the number of satoshis that would have been required to complete the operation.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InsufficientMoneyException

      +
      protected InsufficientMoneyException()
      +
      +
    • +
    • +
      +

      InsufficientMoneyException

      +
      public InsufficientMoneyException(Coin missing)
      +
      +
    • +
    • +
      +

      InsufficientMoneyException

      +
      public InsufficientMoneyException(Coin missing, + String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.Type.html b/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.Type.html new file mode 100644 index 000000000..bb32e99f0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.Type.html @@ -0,0 +1,300 @@ + + + + +InventoryItem.Type (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class InventoryItem.Type

+
+
java.lang.Object +
java.lang.Enum<InventoryItem.Type> +
org.bitcoinj.core.InventoryItem.Type
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<InventoryItem.Type>, Constable
+
+
+
Enclosing class:
+
InventoryItem
+
+
+
public static enum InventoryItem.Type +extends Enum<InventoryItem.Type>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      code

      +
      public final int code
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static InventoryItem.Type[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static InventoryItem.Type valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      ofCode

      +
      public static InventoryItem.Type ofCode(int code)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.html b/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.html new file mode 100644 index 000000000..3522c642a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/InventoryItem.html @@ -0,0 +1,244 @@ + + + + +InventoryItem (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class InventoryItem

+
+
java.lang.Object +
org.bitcoinj.core.InventoryItem
+
+
+
+
public class InventoryItem +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/InventoryMessage.html b/javadoc/0.16.3/org/bitcoinj/core/InventoryMessage.html new file mode 100644 index 000000000..6b08d834d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/InventoryMessage.html @@ -0,0 +1,289 @@ + + + + +InventoryMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class InventoryMessage

+
+ +
+
+
Direct Known Subclasses:
+
NotFoundMessage
+
+
+
public class InventoryMessage +extends ListMessage
+

Represents the "inv" P2P network message. An inv contains a list of hashes of either blocks or transactions. It's + a bandwidth optimization - on receiving some data, a (fully validating) peer sends every connected peer an inv + containing the hash of what it saw. It'll only transmit the full thing if a peer asks for it with a + GetDataMessage.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MAX_INV_SIZE

      +
      public static final int MAX_INV_SIZE
      +
      A hard coded constant in the protocol.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InventoryMessage

      +
      public InventoryMessage(NetworkParameters params, + byte[] bytes) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      InventoryMessage

      +
      public InventoryMessage(NetworkParameters params, + byte[] payload, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      Deserializes an 'inv' message.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      serializer - the serializer to use for this message.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      InventoryMessage

      +
      public InventoryMessage(NetworkParameters params)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addBlock

      +
      public void addBlock(Block block)
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public void addTransaction(Transaction tx)
      +
      +
    • +
    • +
      +

      with

      +
      public static InventoryMessage with(Transaction... txns)
      +
      Creates a new inv message for the given transactions.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/LegacyAddress.html b/javadoc/0.16.3/org/bitcoinj/core/LegacyAddress.html new file mode 100644 index 000000000..1b1c93fe0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/LegacyAddress.html @@ -0,0 +1,492 @@ + + + + +LegacyAddress (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LegacyAddress

+
+ +
+
+
All Implemented Interfaces:
+
Serializable, Cloneable, Comparable<Address>
+
+
+
public class LegacyAddress +extends Address
+

A Bitcoin address looks like 1MsScoe2fTJoq4ZPdQgqyhgWeoNamYPevy and is derived from an elliptic curve public key + plus a set of network parameters. Not to be confused with a PeerAddress or AddressMessage + which are about network (TCP) addresses.

+ +

A standard address is built by taking the RIPE-MD160 hash of the public key bytes, with a version prefix and a + checksum suffix, then encoding it textually as base58. The version prefix is used to both denote the network for + which the address is valid (see NetworkParameters, and also to indicate how the bytes inside the address + should be interpreted. Whilst almost all addresses today are hashes of public keys, another (currently unsupported + type) can contain a hash of a script instead.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      LENGTH

      +
      public static final int LENGTH
      +
      An address is a RIPEMD160 hash of a public key, therefore is always 160 bits or 20 bytes.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      p2sh

      +
      public final boolean p2sh
      +
      True if P2SH, false if P2PKH.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ListMessage.html b/javadoc/0.16.3/org/bitcoinj/core/ListMessage.html new file mode 100644 index 000000000..0ad773127 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ListMessage.html @@ -0,0 +1,347 @@ + + + + +ListMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ListMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.ListMessage
+
+
+
+
+
Direct Known Subclasses:
+
GetDataMessage, InventoryMessage
+
+
+
public abstract class ListMessage +extends Message
+

Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/MemoryPoolMessage.html b/javadoc/0.16.3/org/bitcoinj/core/MemoryPoolMessage.html new file mode 100644 index 000000000..dd850c3af --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/MemoryPoolMessage.html @@ -0,0 +1,207 @@ + + + + +MemoryPoolMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MemoryPoolMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.MemoryPoolMessage
+
+
+
+
+
public class MemoryPoolMessage +extends Message
+

The "mempool" message asks a remote peer to announce all transactions in its memory pool, possibly restricted by + any Bloom filter set on the connection. The list of transaction hashes comes back in an inv message. Note that + this is different to the TxConfidenceTable object which doesn't try to keep track of all pending transactions, + it's just a holding area for transactions that a part of the app may find interesting. The mempool message has + no fields.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MemoryPoolMessage

      +
      public MemoryPoolMessage()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Message.html b/javadoc/0.16.3/org/bitcoinj/core/Message.html new file mode 100644 index 000000000..0884edc77 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Message.html @@ -0,0 +1,679 @@ + + + + +Message (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Message

+
+
java.lang.Object +
org.bitcoinj.core.Message
+
+
+
+
Direct Known Subclasses:
+
AddressMessage, Block, BloomFilter, ChildMessage, EmptyMessage, FeeFilterMessage, FilteredBlock, GetBlocksMessage, GetUTXOsMessage, HeadersMessage, ListMessage, MemoryPoolMessage, PartialMerkleTree, Ping, Pong, RejectMessage, UTXOsMessage, VersionMessage
+
+
+
public abstract class Message +extends Object
+

A Message is a data structure that can be serialized/deserialized using the Bitcoin serialization format. + Specific types of messages that are used both in the block chain, and on the wire, are derived from this + class.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MAX_SIZE

      +
      public static final int MAX_SIZE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      UNKNOWN_LENGTH

      +
      public static final int UNKNOWN_LENGTH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      offset

      +
      protected int offset
      +
      +
    • +
    • +
      +

      cursor

      +
      protected int cursor
      +
      +
    • +
    • +
      +

      length

      +
      protected int length
      +
      +
    • +
    • +
      +

      payload

      +
      protected byte[] payload
      +
      +
    • +
    • +
      +

      recached

      +
      protected boolean recached
      +
      +
    • +
    • +
      +

      serializer

      +
      protected MessageSerializer serializer
      +
      +
    • +
    • +
      +

      params

      +
      protected NetworkParameters params
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Message

      +
      protected Message()
      +
      +
    • +
    • +
      +

      Message

      +
      protected Message(NetworkParameters params)
      +
      +
    • +
    • +
      +

      Message

      +
      protected Message(NetworkParameters params, + byte[] payload, + int offset, + MessageSerializer serializer, + int length) + throws ProtocolException
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      length - The length of message payload if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Message

      +
      protected Message(NetworkParameters params, + byte[] payload, + int offset) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      parse

      +
      protected abstract void parse() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      unCache

      +
      protected void unCache()
      +

      To be called before any change of internal values including any setters. This ensures any cached byte array is + removed.

      +

      Child messages of this object(e.g. Transactions belonging to a Block) will not have their internal byte caches + invalidated unless they are also modified internally.

      +
      +
    • +
    • +
      +

      adjustLength

      +
      protected void adjustLength(int newArraySize, + int adjustment)
      +
      +
    • +
    • +
      +

      isCached

      +
      public boolean isCached()
      +
      used for unit testing
      +
      +
    • +
    • +
      +

      isRecached

      +
      public boolean isRecached()
      +
      +
    • +
    • +
      +

      setSerializer

      +
      public void setSerializer(MessageSerializer serializer)
      +
      Overrides the message serializer.
      +
      +
      Parameters:
      +
      serializer - the new serializer
      +
      +
      +
    • +
    • +
      +

      bitcoinSerialize

      +
      public byte[] bitcoinSerialize()
      +
      Returns a copy of the array returned by unsafeBitcoinSerialize(), which is safe to mutate. + If you need extra performance and can guarantee you won't write to the array, you can use the unsafe version.
      +
      +
      Returns:
      +
      a freshly allocated serialized byte array
      +
      +
      +
    • +
    • +
      +

      unsafeBitcoinSerialize

      +
      public byte[] unsafeBitcoinSerialize()
      +

      Serialize this message to a byte array that conforms to the bitcoin wire protocol.

      + +

      This method may return the original byte array used to construct this message if the + following conditions are met:

      + +
        +
      1. 1) The message was parsed from a byte array with parseRetain = true
      2. +
      3. 2) The message has not been modified
      4. +
      5. 3) The array had an offset of 0 and no surplus bytes
      6. +
      + +

      If condition 3 is not met then an copy of the relevant portion of the array will be returned. + Otherwise a full serialize will occur. For this reason you should only use this API if you can guarantee you + will treat the resulting array as read only.

      +
      +
      Returns:
      +
      a byte array owned by this object, do NOT mutate it.
      +
      +
      +
    • +
    • +
      +

      bitcoinSerialize

      +
      public final void bitcoinSerialize(OutputStream stream) + throws IOException
      +
      Serialize this message to the provided OutputStream using the bitcoin wire format.
      +
      +
      Parameters:
      +
      stream -
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      This method is a NOP for all classes except Block and Transaction. It is only declared in Message + so BitcoinSerializer can avoid 2 instanceof checks + a casting.
      +
      +
    • +
    • +
      +

      getMessageSize

      +
      public final int getMessageSize()
      +
      This returns a correct value by parsing the message.
      +
      +
    • +
    • +
      +

      readUint32

      +
      protected long readUint32() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readInt64

      +
      protected long readInt64() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readUint64

      +
      protected BigInteger readUint64() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readVarInt

      +
      protected VarInt readVarInt() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readVarInt

      +
      protected VarInt readVarInt(int offset) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readBytes

      +
      protected byte[] readBytes(int length) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readByte

      +
      protected byte readByte() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readByteArray

      +
      protected byte[] readByteArray() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readStr

      +
      protected String readStr() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      readHash

      +
      protected Sha256Hash readHash() + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      hasMoreBytes

      +
      protected boolean hasMoreBytes()
      +
      +
    • +
    • +
      +

      getParams

      +
      public NetworkParameters getParams()
      +
      Network parameters this message was created with.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/MessageSerializer.html b/javadoc/0.16.3/org/bitcoinj/core/MessageSerializer.html new file mode 100644 index 000000000..509b7f385 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/MessageSerializer.html @@ -0,0 +1,572 @@ + + + + +MessageSerializer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MessageSerializer

+
+
java.lang.Object +
org.bitcoinj.core.MessageSerializer
+
+
+
+
Direct Known Subclasses:
+
BitcoinSerializer
+
+
+
public abstract class MessageSerializer +extends Object
+
Generic interface for classes which serialize/deserialize messages. Implementing + classes should be immutable.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Monetary.html b/javadoc/0.16.3/org/bitcoinj/core/Monetary.html new file mode 100644 index 000000000..58f51b076 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Monetary.html @@ -0,0 +1,160 @@ + + + + +Monetary (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Monetary

+
+
+
+
All Superinterfaces:
+
Serializable
+
+
+
All Known Implementing Classes:
+
Coin, Fiat
+
+
+
public interface Monetary +extends Serializable
+
Classes implementing this interface represent a monetary value, such as a Bitcoin or fiat amount.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    Returns the number of "smallest units" of this monetary value.
    +
    +
    int
    + +
     
    +
    int
    + +
    +
    Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      smallestUnitExponent

      +
      int smallestUnitExponent()
      +
      Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation. For Bitcoin, a + satoshi is worth 1E-8 so this would be 8.
      +
      +
    • +
    • +
      +

      getValue

      +
      long getValue()
      +
      Returns the number of "smallest units" of this monetary value. For Bitcoin, this would be the number of satoshis.
      +
      +
    • +
    • +
      +

      signum

      +
      int signum()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.ProtocolVersion.html b/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.ProtocolVersion.html new file mode 100644 index 000000000..91e0fa7a9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.ProtocolVersion.html @@ -0,0 +1,271 @@ + + + + +NetworkParameters.ProtocolVersion (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class NetworkParameters.ProtocolVersion

+
+
java.lang.Object +
java.lang.Enum<NetworkParameters.ProtocolVersion> +
org.bitcoinj.core.NetworkParameters.ProtocolVersion
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<NetworkParameters.ProtocolVersion>, Constable
+
+
+
Enclosing class:
+
NetworkParameters
+
+
+
public static enum NetworkParameters.ProtocolVersion +extends Enum<NetworkParameters.ProtocolVersion>
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.html b/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.html new file mode 100644 index 000000000..f3893bd6d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/NetworkParameters.html @@ -0,0 +1,1260 @@ + + + + +NetworkParameters (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NetworkParameters

+
+
java.lang.Object +
org.bitcoinj.core.NetworkParameters
+
+
+
+
Direct Known Subclasses:
+
AbstractBitcoinNetParams
+
+
+
public abstract class NetworkParameters +extends Object
+

NetworkParameters contains the data needed for working with an instantiation of a Bitcoin chain.

+ +

This is an abstract class, concrete instantiations can be found in the params package. There are four: + one for the main network (MainNetParams), one for the public test network, and two others that are + intended for unit testing and local app development purposes. Although this class contains some aliases for + them, you are encouraged to call the static get() methods on each specific params class directly.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ID_MAINNET

      +
      public static final String ID_MAINNET
      +
      The string returned by getId() for the main, production network where people trade things.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ID_TESTNET

      +
      public static final String ID_TESTNET
      +
      The string returned by getId() for the testnet.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ID_REGTEST

      +
      public static final String ID_REGTEST
      +
      The string returned by getId() for regtest mode.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ID_UNITTESTNET

      +
      public static final String ID_UNITTESTNET
      +
      Unit test network.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PAYMENT_PROTOCOL_ID_MAINNET

      +
      public static final String PAYMENT_PROTOCOL_ID_MAINNET
      +
      The string used by the payment protocol to represent the main net.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PAYMENT_PROTOCOL_ID_TESTNET

      +
      public static final String PAYMENT_PROTOCOL_ID_TESTNET
      +
      The string used by the payment protocol to represent the test net.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PAYMENT_PROTOCOL_ID_UNIT_TESTS

      +
      public static final String PAYMENT_PROTOCOL_ID_UNIT_TESTS
      +
      The string used by the payment protocol to represent unit testing (note that this is non-standard).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PAYMENT_PROTOCOL_ID_REGTEST

      +
      public static final String PAYMENT_PROTOCOL_ID_REGTEST
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      maxTarget

      +
      protected BigInteger maxTarget
      +
      +
    • +
    • +
      +

      port

      +
      protected int port
      +
      +
    • +
    • +
      +

      packetMagic

      +
      protected long packetMagic
      +
      +
    • +
    • +
      +

      addressHeader

      +
      protected int addressHeader
      +
      +
    • +
    • +
      +

      p2shHeader

      +
      protected int p2shHeader
      +
      +
    • +
    • +
      +

      dumpedPrivateKeyHeader

      +
      protected int dumpedPrivateKeyHeader
      +
      +
    • +
    • +
      +

      segwitAddressHrp

      +
      protected String segwitAddressHrp
      +
      +
    • +
    • +
      +

      interval

      +
      protected int interval
      +
      +
    • +
    • +
      +

      targetTimespan

      +
      protected int targetTimespan
      +
      +
    • +
    • +
      +

      bip32HeaderP2PKHpub

      +
      protected int bip32HeaderP2PKHpub
      +
      +
    • +
    • +
      +

      bip32HeaderP2PKHpriv

      +
      protected int bip32HeaderP2PKHpriv
      +
      +
    • +
    • +
      +

      bip32HeaderP2WPKHpub

      +
      protected int bip32HeaderP2WPKHpub
      +
      +
    • +
    • +
      +

      bip32HeaderP2WPKHpriv

      +
      protected int bip32HeaderP2WPKHpriv
      +
      +
    • +
    • +
      +

      majorityEnforceBlockUpgrade

      +
      protected int majorityEnforceBlockUpgrade
      +
      Used to check majorities for block version upgrade
      +
      +
    • +
    • +
      +

      majorityRejectBlockOutdated

      +
      protected int majorityRejectBlockOutdated
      +
      +
    • +
    • +
      +

      majorityWindow

      +
      protected int majorityWindow
      +
      +
    • +
    • +
      +

      id

      +
      protected String id
      +
      See getId(). This may be null for old deserialized wallets. In that case we derive it heuristically + by looking at the port number.
      +
      +
    • +
    • +
      +

      spendableCoinbaseDepth

      +
      protected int spendableCoinbaseDepth
      +
      The depth of blocks required for a coinbase transaction to be spendable.
      +
      +
    • +
    • +
      +

      subsidyDecreaseBlockCount

      +
      protected int subsidyDecreaseBlockCount
      +
      +
    • +
    • +
      +

      dnsSeeds

      +
      protected String[] dnsSeeds
      +
      +
    • +
    • +
      +

      addrSeeds

      +
      protected int[] addrSeeds
      +
      +
    • +
    • +
      +

      httpSeeds

      +
      protected HttpDiscovery.Details[] httpSeeds
      +
      +
    • +
    • +
      +

      checkpoints

      +
      protected Map<Integer,Sha256Hash> checkpoints
      +
      +
    • +
    • +
      +

      defaultSerializer

      +
      protected transient volatile MessageSerializer defaultSerializer
      +
      +
    • +
    • +
      +

      TARGET_TIMESPAN

      +
      public static final int TARGET_TIMESPAN
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TARGET_SPACING

      +
      public static final int TARGET_SPACING
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      INTERVAL

      +
      public static final int INTERVAL
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BIP16_ENFORCE_TIME

      +
      public static final int BIP16_ENFORCE_TIME
      +
      Blocks with a timestamp after this should enforce BIP 16, aka "Pay to script hash". This BIP changed the + network rules in a soft-forking manner, that is, blocks that don't follow the rules are accepted but not + mined upon and thus will be quickly re-orged out as long as the majority are enforcing the rule.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_COINS

      +
      public static final long MAX_COINS
      +
      The maximum number of coins to be generated
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_MONEY

      +
      public static final Coin MAX_MONEY
      +
      The maximum money to be generated
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NetworkParameters

      +
      protected NetworkParameters()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getId

      +
      public String getId()
      +
      A Java package style string acting as unique ID for these parameters
      +
      +
    • +
    • +
      +

      getPaymentProtocolId

      +
      public abstract String getPaymentProtocolId()
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      fromID

      +
      @Nullable +public static NetworkParameters fromID(String id)
      +
      Returns the network parameters for the given string ID or NULL if not recognized.
      +
      +
    • +
    • +
      +

      fromPmtProtocolID

      +
      @Nullable +public static NetworkParameters fromPmtProtocolID(String pmtProtocolId)
      +
      Returns the network parameters for the given string paymentProtocolID or NULL if not recognized.
      +
      +
    • +
    • +
      +

      getSpendableCoinbaseDepth

      +
      public int getSpendableCoinbaseDepth()
      +
      +
    • +
    • +
      +

      checkDifficultyTransitions

      +
      public abstract void checkDifficultyTransitions(StoredBlock storedPrev, + Block next, + BlockStore blockStore) + throws VerificationException, +BlockStoreException
      +
      Throws an exception if the block's difficulty is not correct.
      +
      +
      Throws:
      +
      VerificationException - if the block's difficulty is not correct.
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      passesCheckpoint

      +
      public boolean passesCheckpoint(int height, + Sha256Hash hash)
      +
      Returns true if the block height is either not a checkpoint, or is a checkpoint and the hash matches.
      +
      +
    • +
    • +
      +

      isCheckpoint

      +
      public boolean isCheckpoint(int height)
      +
      Returns true if the given height has a recorded checkpoint.
      +
      +
    • +
    • +
      +

      getSubsidyDecreaseBlockCount

      +
      public int getSubsidyDecreaseBlockCount()
      +
      +
    • +
    • +
      +

      getDnsSeeds

      +
      public String[] getDnsSeeds()
      +
      Returns DNS names that when resolved, give IP addresses of active peers.
      +
      +
    • +
    • +
      +

      getAddrSeeds

      +
      public int[] getAddrSeeds()
      +
      Returns IP address of active peers.
      +
      +
    • +
    • +
      +

      getHttpSeeds

      +
      public HttpDiscovery.Details[] getHttpSeeds()
      +
      Returns discovery objects for seeds implementing the Cartographer protocol. See HttpDiscovery for more info.
      +
      +
    • +
    • +
      +

      getGenesisBlock

      +
      public abstract Block getGenesisBlock()
      +

      Genesis block for this chain.

      + +

      The first block in every chain is a well known constant shared between all Bitcoin implementations. For a + block to be valid, it must be eventually possible to work backwards to the genesis block by following the + prevBlockHash pointers in the block headers.

      + +

      The genesis blocks for both test and main networks contain the timestamp of when they were created, + and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second + bailout for banks".

      +
      +
    • +
    • +
      +

      getPort

      +
      public int getPort()
      +
      Default TCP port on which to connect to nodes.
      +
      +
    • +
    • +
      +

      getPacketMagic

      +
      public long getPacketMagic()
      +
      The header bytes that identify the start of a packet on this network.
      +
      +
    • +
    • +
      +

      getAddressHeader

      +
      public int getAddressHeader()
      +
      First byte of a base58 encoded address. See LegacyAddress. This is the same as acceptableAddressCodes[0] and + is the one used for "normal" addresses. Other types of address may be encountered with version codes found in + the acceptableAddressCodes array.
      +
      +
    • +
    • +
      +

      getP2SHHeader

      +
      public int getP2SHHeader()
      +
      First byte of a base58 encoded P2SH address. P2SH addresses are defined as part of BIP0013.
      +
      +
    • +
    • +
      +

      getDumpedPrivateKeyHeader

      +
      public int getDumpedPrivateKeyHeader()
      +
      First byte of a base58 encoded dumped private key. See DumpedPrivateKey.
      +
      +
    • +
    • +
      +

      getSegwitAddressHrp

      +
      public String getSegwitAddressHrp()
      +
      Human readable part of bech32 encoded segwit address.
      +
      +
    • +
    • +
      +

      getTargetTimespan

      +
      public int getTargetTimespan()
      +
      How much time in seconds is supposed to pass between "interval" blocks. If the actual elapsed time is + significantly different from this value, the network difficulty formula will produce a different value. Both + test and main Bitcoin networks use 2 weeks (1209600 seconds).
      +
      +
    • +
    • +
      +

      allowEmptyPeerChain

      +
      public boolean allowEmptyPeerChain()
      +
      If we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks.
      +
      +
    • +
    • +
      +

      getInterval

      +
      public int getInterval()
      +
      How many blocks pass between difficulty adjustment periods. Bitcoin standardises this to be 2016.
      +
      +
    • +
    • +
      +

      getMaxTarget

      +
      public BigInteger getMaxTarget()
      +
      Maximum target represents the easiest allowable proof of work.
      +
      +
    • +
    • +
      +

      getBip32HeaderP2PKHpub

      +
      public int getBip32HeaderP2PKHpub()
      +
      Returns the 4 byte header for BIP32 wallet P2PKH - public key part.
      +
      +
    • +
    • +
      +

      getBip32HeaderP2PKHpriv

      +
      public int getBip32HeaderP2PKHpriv()
      +
      Returns the 4 byte header for BIP32 wallet P2PKH - private key part.
      +
      +
    • +
    • +
      +

      getBip32HeaderP2WPKHpub

      +
      public int getBip32HeaderP2WPKHpub()
      +
      Returns the 4 byte header for BIP32 wallet P2WPKH - public key part.
      +
      +
    • +
    • +
      +

      getBip32HeaderP2WPKHpriv

      +
      public int getBip32HeaderP2WPKHpriv()
      +
      Returns the 4 byte header for BIP32 wallet P2WPKH - private key part.
      +
      +
    • +
    • +
      +

      getMaxMoney

      +
      public abstract Coin getMaxMoney()
      +
      Returns the number of coins that will be produced in total, on this + network. Where not applicable, a very large number of coins is returned + instead (i.e. the main coin issue for Dogecoin).
      +
      +
    • +
    • +
      +

      getMinNonDustOutput

      +
      @Deprecated +public abstract Coin getMinNonDustOutput()
      + +
      +
    • +
    • +
      +

      getMonetaryFormat

      +
      public abstract MonetaryFormat getMonetaryFormat()
      +
      The monetary object for this currency.
      +
      +
    • +
    • +
      +

      getUriScheme

      +
      public abstract String getUriScheme()
      +
      Scheme part for URIs, for example "bitcoin".
      +
      +
    • +
    • +
      +

      hasMaxMoney

      +
      public abstract boolean hasMaxMoney()
      +
      Returns whether this network has a maximum number of coins (finite supply) or + not. Always returns true for Bitcoin, but exists to be overridden for other + networks.
      +
      +
    • +
    • +
      +

      getDefaultSerializer

      +
      public final MessageSerializer getDefaultSerializer()
      +
      Return the default serializer for this network. This is a shared serializer.
      +
      +
      Returns:
      +
      the default serializer for this network.
      +
      +
      +
    • +
    • +
      +

      getSerializer

      +
      public abstract BitcoinSerializer getSerializer(boolean parseRetain)
      +
      Construct and return a custom serializer.
      +
      +
    • +
    • +
      +

      getMajorityEnforceBlockUpgrade

      +
      public int getMajorityEnforceBlockUpgrade()
      +
      The number of blocks in the last getMajorityWindow() blocks + at which to trigger a notice to the user to upgrade their client, where + the client does not understand those blocks.
      +
      +
    • +
    • +
      +

      getMajorityRejectBlockOutdated

      +
      public int getMajorityRejectBlockOutdated()
      +
      The number of blocks in the last getMajorityWindow() blocks + at which to enforce the requirement that all new blocks are of the + newer type (i.e. outdated blocks are rejected).
      +
      +
    • +
    • +
      +

      getMajorityWindow

      +
      public int getMajorityWindow()
      +
      The sampling window from which the version numbers of blocks are taken + in order to determine if a new block version is now the majority.
      +
      +
    • +
    • +
      +

      getBlockVerificationFlags

      +
      public EnumSet<Block.VerifyFlag> getBlockVerificationFlags(Block block, + VersionTally tally, + Integer height)
      +
      The flags indicating which block validation tests should be applied to + the given block. Enables support for alternative blockchains which enable + tests based on different criteria.
      +
      +
      Parameters:
      +
      block - block to determine flags for.
      +
      height - height of the block, if known, null otherwise. Returned + tests should be a safe subset if block height is unknown.
      +
      +
      +
    • +
    • +
      +

      getTransactionVerificationFlags

      +
      public EnumSet<Script.VerifyFlag> getTransactionVerificationFlags(Block block, + Transaction transaction, + VersionTally tally, + Integer height)
      +
      The flags indicating which script validation tests should be applied to + the given transaction. Enables support for alternative blockchains which enable + tests based on different criteria.
      +
      +
      Parameters:
      +
      block - block the transaction belongs to.
      +
      transaction - to determine flags for.
      +
      height - height of the block, if known, null otherwise. Returned + tests should be a safe subset if block height is unknown.
      +
      +
      +
    • +
    • +
      +

      getProtocolVersionNum

      +
      public abstract int getProtocolVersionNum(NetworkParameters.ProtocolVersion version)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/NotFoundMessage.html b/javadoc/0.16.3/org/bitcoinj/core/NotFoundMessage.html new file mode 100644 index 000000000..742fbf997 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/NotFoundMessage.html @@ -0,0 +1,210 @@ + + + + +NotFoundMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NotFoundMessage

+
+ +
+
+
public class NotFoundMessage +extends InventoryMessage
+

Sent by a peer when a getdata request doesn't find the requested data in the mempool. It has the same format + as an inventory message and lists the hashes of the missing items.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PartialMerkleTree.html b/javadoc/0.16.3/org/bitcoinj/core/PartialMerkleTree.html new file mode 100644 index 000000000..b0257d3c5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PartialMerkleTree.html @@ -0,0 +1,348 @@ + + + + +PartialMerkleTree (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PartialMerkleTree

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.PartialMerkleTree
+
+
+
+
+
public class PartialMerkleTree +extends Message
+

A data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner.

+ +

The encoding works as follows: we traverse the tree in depth-first order, storing a bit for each traversed node, + signifying whether the node is the parent of at least one matched leaf txid (or a matched txid itself). In case we + are at the leaf level, or this bit is 0, its merkle node hash is stored, and its children are not explored further. + Otherwise, no hash is stored, but we recurse into both (or the only) child branch. During decoding, the same + depth-first traversal is performed, consuming bits and hashes as they were written during encoding.

+ +

The serialization is fixed and provides a hard guarantee about the encoded size, + SIZE <= 10 + ceil(32.25*N) where N represents the number of leaf nodes of the partial tree. N itself + is bounded by:

+ +

+ N <= total_transactions
+ N <= 1 + matched_transactions*tree_height +

+ +

The serialization format:

+
+  - uint32     total_transactions (4 bytes)
+  - varint     number of hashes   (1-3 bytes)
+  - uint256[]  hashes in depth-first order (<= 32*N bytes)
+  - varint     number of bytes of flag bits (1-3 bytes)
+  - byte[]     flag bits, packed per 8 in a byte, least significant bit first (<= 2*N-1 bits)
+ 
+

The size constraints follow from this.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PartialMerkleTree

      +
      public PartialMerkleTree(NetworkParameters params, + byte[] payloadBytes, + int offset) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      PartialMerkleTree

      +
      public PartialMerkleTree(NetworkParameters params, + byte[] bits, + List<Sha256Hash> hashes, + int origTxCount)
      +
      Constructs a new PMT with the given bit set (little endian) and the raw list of hashes including internal hashes, + taking ownership of the list.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      buildFromLeaves

      +
      public static PartialMerkleTree buildFromLeaves(NetworkParameters params, + byte[] includeBits, + List<Sha256Hash> allLeafHashes)
      +
      Calculates a PMT given the list of leaf hashes and which leaves need to be included. The relevant interior hashes + are calculated and a new PMT returned.
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      public void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      getTxnHashAndMerkleRoot

      +
      public Sha256Hash getTxnHashAndMerkleRoot(List<Sha256Hash> matchedHashesOut) + throws VerificationException
      +
      Extracts tx hashes that are in this merkle tree + and returns the merkle root of this tree. + + The returned root should be checked against the + merkle root contained in the block header for security.
      +
      +
      Parameters:
      +
      matchedHashesOut - A list which will contain the matched txn (will be cleared).
      +
      Returns:
      +
      the merkle root of this merkle tree
      +
      Throws:
      +
      ProtocolException - if this partial merkle tree is invalid
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      getTransactionCount

      +
      public int getTransactionCount()
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Peer.html b/javadoc/0.16.3/org/bitcoinj/core/Peer.html new file mode 100644 index 000000000..9b911c10c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Peer.html @@ -0,0 +1,1225 @@ + + + + +Peer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Peer

+
+ +
+
+
All Implemented Interfaces:
+
StreamConnection
+
+
+
public class Peer +extends PeerSocketHandler
+

A Peer handles the high level communication with a Bitcoin node, extending a PeerSocketHandler which + handles low-level message (de)serialization.

+ +

Note that timeouts are handled by the extended + AbstractTimeoutHandler and timeout is automatically disabled (using + AbstractTimeoutHandler.setTimeoutEnabled(boolean)) once the version + handshake completes.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addBlocksDownloadedEventListener

      +
      public void addBlocksDownloadedEventListener(BlocksDownloadedEventListener listener)
      +
      Registers a listener that is invoked when new blocks are downloaded.
      +
      +
    • +
    • +
      +

      addBlocksDownloadedEventListener

      +
      public void addBlocksDownloadedEventListener(Executor executor, + BlocksDownloadedEventListener listener)
      +
      Registers a listener that is invoked when new blocks are downloaded.
      +
      +
    • +
    • +
      +

      addChainDownloadStartedEventListener

      +
      public void addChainDownloadStartedEventListener(ChainDownloadStartedEventListener listener)
      +
      Registers a listener that is invoked when a blockchain downloaded starts.
      +
      +
    • +
    • +
      +

      addChainDownloadStartedEventListener

      +
      public void addChainDownloadStartedEventListener(Executor executor, + ChainDownloadStartedEventListener listener)
      +
      Registers a listener that is invoked when a blockchain downloaded starts.
      +
      +
    • +
    • +
      +

      addConnectedEventListener

      +
      public void addConnectedEventListener(PeerConnectedEventListener listener)
      +
      Registers a listener that is invoked when a peer is connected.
      +
      +
    • +
    • +
      +

      addConnectedEventListener

      +
      public void addConnectedEventListener(Executor executor, + PeerConnectedEventListener listener)
      +
      Registers a listener that is invoked when a peer is connected.
      +
      +
    • +
    • +
      +

      addDisconnectedEventListener

      +
      public void addDisconnectedEventListener(PeerDisconnectedEventListener listener)
      +
      Registers a listener that is invoked when a peer is disconnected.
      +
      +
    • +
    • +
      +

      addDisconnectedEventListener

      +
      public void addDisconnectedEventListener(Executor executor, + PeerDisconnectedEventListener listener)
      +
      Registers a listener that is invoked when a peer is disconnected.
      +
      +
    • +
    • +
      +

      addGetDataEventListener

      +
      public void addGetDataEventListener(GetDataEventListener listener)
      +
      Registers a listener that is called when messages are received.
      +
      +
    • +
    • +
      +

      addGetDataEventListener

      +
      public void addGetDataEventListener(Executor executor, + GetDataEventListener listener)
      +
      Registers a listener that is called when messages are received.
      +
      +
    • +
    • +
      +

      addOnTransactionBroadcastListener

      +
      public void addOnTransactionBroadcastListener(OnTransactionBroadcastListener listener)
      +
      Registers a listener that is called when a transaction is broadcast across the network
      +
      +
    • +
    • +
      +

      addOnTransactionBroadcastListener

      +
      public void addOnTransactionBroadcastListener(Executor executor, + OnTransactionBroadcastListener listener)
      +
      Registers a listener that is called when a transaction is broadcast across the network
      +
      +
    • +
    • +
      +

      addPreMessageReceivedEventListener

      +
      public void addPreMessageReceivedEventListener(PreMessageReceivedEventListener listener)
      +
      Registers a listener that is called immediately before a message is received
      +
      +
    • +
    • +
      +

      addPreMessageReceivedEventListener

      +
      public void addPreMessageReceivedEventListener(Executor executor, + PreMessageReceivedEventListener listener)
      +
      Registers a listener that is called immediately before a message is received
      +
      +
    • +
    • +
      +

      removeBlocksDownloadedEventListener

      +
      public boolean removeBlocksDownloadedEventListener(BlocksDownloadedEventListener listener)
      +
      +
    • +
    • +
      +

      removeChainDownloadStartedEventListener

      +
      public boolean removeChainDownloadStartedEventListener(ChainDownloadStartedEventListener listener)
      +
      +
    • +
    • +
      +

      removeConnectedEventListener

      +
      public boolean removeConnectedEventListener(PeerConnectedEventListener listener)
      +
      +
    • +
    • +
      +

      removeDisconnectedEventListener

      +
      public boolean removeDisconnectedEventListener(PeerDisconnectedEventListener listener)
      +
      +
    • +
    • +
      +

      removeGetDataEventListener

      +
      public boolean removeGetDataEventListener(GetDataEventListener listener)
      +
      +
    • +
    • +
      +

      removeOnTransactionBroadcastListener

      +
      public boolean removeOnTransactionBroadcastListener(OnTransactionBroadcastListener listener)
      +
      +
    • +
    • +
      +

      removePreMessageReceivedEventListener

      +
      public boolean removePreMessageReceivedEventListener(PreMessageReceivedEventListener listener)
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toStringServices

      +
      @Deprecated +public String toStringServices(long services)
      +
      Deprecated.
      +
      +
    • +
    • +
      +

      timeoutOccurred

      +
      protected void timeoutOccurred()
      +
      +
      Overrides:
      +
      timeoutOccurred in class PeerSocketHandler
      +
      +
      +
    • +
    • +
      +

      connectionClosed

      +
      public void connectionClosed()
      +
      Description copied from interface: StreamConnection
      +
      Called when the connection socket is closed
      +
      +
    • +
    • +
      +

      connectionOpened

      +
      public void connectionOpened()
      +
      Description copied from interface: StreamConnection
      +
      Called when the connection socket is first opened
      +
      +
    • +
    • +
      +

      getConnectionOpenFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<Peer> getConnectionOpenFuture()
      +
      Provides a ListenableFuture that can be used to wait for the socket to connect. A socket connection does not + mean that protocol handshake has occurred.
      +
      +
    • +
    • +
      +

      getVersionHandshakeFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<Peer> getVersionHandshakeFuture()
      +
      +
    • +
    • +
      +

      processMessage

      +
      protected void processMessage(Message m) + throws Exception
      +
      Description copied from class: PeerSocketHandler
      +
      Called every time a message is received from the network
      +
      +
      Specified by:
      +
      processMessage in class PeerSocketHandler
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      processUTXOMessage

      +
      protected void processUTXOMessage(UTXOsMessage m)
      +
      +
    • +
    • +
      +

      startFilteredBlock

      +
      protected void startFilteredBlock(FilteredBlock m)
      +
      +
    • +
    • +
      +

      processNotFoundMessage

      +
      protected void processNotFoundMessage(NotFoundMessage m)
      +
      +
    • +
    • +
      +

      processHeaders

      +
      protected void processHeaders(HeadersMessage m) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      processGetData

      +
      protected void processGetData(GetDataMessage getdata)
      +
      +
    • +
    • +
      +

      processTransaction

      +
      protected void processTransaction(Transaction tx) + throws VerificationException
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      downloadDependencies

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Transaction>> downloadDependencies(Transaction tx)
      +

      Returns a future that wraps a list of all transactions that the given transaction depends on, recursively. + Only transactions in peers memory pools are included; the recursion stops at transactions that are in the + current best chain. So it doesn't make much sense to provide a tx that was already in the best chain and + a precondition checks this.

      + +

      For example, if tx has 2 inputs that connect to transactions A and B, and transaction B is unconfirmed and + has one input connecting to transaction C that is unconfirmed, and transaction C connects to transaction D + that is in the chain, then this method will return either {B, C} or {C, B}. No ordering is guaranteed.

      + +

      This method is useful for apps that want to learn about how long an unconfirmed transaction might take + to confirm, by checking for unexpectedly time locked transactions, unusually deep dependency trees or fee-paying + transactions that depend on unconfirmed free transactions.

      + +

      Note that dependencies downloaded this way will not trigger the onTransaction method of event listeners.

      +
      +
    • +
    • +
      +

      downloadDependenciesInternal

      +
      protected com.google.common.util.concurrent.ListenableFuture<Object> downloadDependenciesInternal(int maxDepth, + int depth, + Transaction tx, + Object marker, + List<Transaction> results)
      +
      +
    • +
    • +
      +

      processBlock

      +
      protected void processBlock(Block m)
      +
      +
    • +
    • +
      +

      endFilteredBlock

      +
      protected void endFilteredBlock(FilteredBlock m)
      +
      +
    • +
    • +
      +

      processInv

      +
      protected void processInv(InventoryMessage inv)
      +
      +
    • +
    • +
      +

      getBlock

      +
      public com.google.common.util.concurrent.ListenableFuture<Block> getBlock(Sha256Hash blockHash)
      +
      Asks the connected peer for the block of the given hash, and returns a future representing the answer. + If you want the block right away and don't mind waiting for it, just call .get() on the result. Your thread + will block until the peer answers.
      +
      +
    • +
    • +
      +

      getPeerMempoolTransaction

      +
      public com.google.common.util.concurrent.ListenableFuture<Transaction> getPeerMempoolTransaction(Sha256Hash hash)
      +
      Asks the connected peer for the given transaction from its memory pool. Transactions in the chain cannot be + retrieved this way because peers don't have a transaction ID to transaction-pos-on-disk index, and besides, + in future many peers will delete old transaction data they don't need.
      +
      +
    • +
    • +
      +

      getAddr

      +
      public com.google.common.util.concurrent.ListenableFuture<AddressMessage> getAddr()
      +
      Sends a getaddr request to the peer and returns a future that completes with the answer once the peer has replied.
      +
      +
    • +
    • +
      +

      setDownloadParameters

      +
      public void setDownloadParameters(long secondsSinceEpoch, + boolean useFilteredBlocks)
      +
      When downloading the block chain, the bodies will be skipped for blocks created before the given date. Any + transactions relevant to the wallet will therefore not be found, but if you know your wallet has no such + transactions it doesn't matter and can save a lot of bandwidth and processing time. Note that the times of blocks + isn't known until their headers are available and they are requested in chunks, so some headers may be downloaded + twice using this scheme, but this optimization can still be a large win for newly created wallets.
      +
      +
      Parameters:
      +
      secondsSinceEpoch - Time in seconds since the epoch or 0 to reset to always downloading block bodies.
      +
      +
      +
    • +
    • +
      +

      addWallet

      +
      public void addWallet(Wallet wallet)
      +
      Links the given wallet to this peer. If you have multiple peers, you should use a PeerGroup to manage + them and use the PeerGroup.addWallet(Wallet) method instead of registering the wallet with each peer + independently, otherwise the wallet will receive duplicate notifications.
      +
      +
    • +
    • +
      +

      removeWallet

      +
      public void removeWallet(Wallet wallet)
      +
      Unlinks the given wallet from peer. See addWallet(Wallet).
      +
      +
    • +
    • +
      +

      startBlockChainDownload

      +
      public void startBlockChainDownload()
      +
      Starts an asynchronous download of the block chain. The chain download is deemed to be complete once we've + downloaded the same number of blocks that the peer advertised having in its version handshake message.
      +
      +
    • +
    • +
      +

      ping

      +
      public com.google.common.util.concurrent.ListenableFuture<Long> ping() + throws ProtocolException
      +
      Sends the peer a ping message and returns a future that will be invoked when the pong is received back. + The future provides a number which is the number of milliseconds elapsed between the ping and the pong. + Once the pong is received the value returned by getLastPingTime() is + updated.
      +
      +
      Throws:
      +
      ProtocolException - if the peer version is too low to support measurable pings.
      +
      +
      +
    • +
    • +
      +

      ping

      +
      protected com.google.common.util.concurrent.ListenableFuture<Long> ping(long nonce) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      getLastPingTime

      +
      public long getLastPingTime()
      +
      Returns the elapsed time of the last ping/pong cycle. If ping() has never + been called or we did not hear back the "pong" message yet, returns Long.MAX_VALUE.
      +
      +
    • +
    • +
      +

      getPingTime

      +
      public long getPingTime()
      +
      Returns a moving average of the last N ping/pong cycles. If ping() has never + been called or we did not hear back the "pong" message yet, returns Long.MAX_VALUE. The moving average + window is 5 buckets.
      +
      +
    • +
    • +
      +

      processPong

      +
      protected void processPong(Pong m)
      +
      +
    • +
    • +
      +

      getPeerBlockHeightDifference

      +
      public int getPeerBlockHeightDifference()
      +
      Returns the difference between our best chain height and the peers, which can either be positive if we are + behind the peer, or negative if the peer is ahead of us.
      +
      +
    • +
    • +
      +

      isDownloadData

      +
      public boolean isDownloadData()
      +
      Returns true if this peer will try and download things it is sent in "inv" messages. Normally you only need + one peer to be downloading data. Defaults to true.
      +
      +
    • +
    • +
      +

      setDownloadData

      +
      public void setDownloadData(boolean downloadData)
      +
      If set to false, the peer won't try and fetch blocks and transactions it hears about. Normally, only one + peer should download missing blocks. Defaults to true. Changing this value from false to true may trigger + a request to the remote peer for the contents of its memory pool, if Bloom filtering is active.
      +
      +
    • +
    • +
      +

      getPeerVersionMessage

      +
      public VersionMessage getPeerVersionMessage()
      +
      Returns version data announced by the remote peer.
      +
      +
    • +
    • +
      +

      getFeeFilter

      +
      public Coin getFeeFilter()
      +
      Returns the fee filter announced by the remote peer, interpreted as satoshis per kB.
      +
      +
    • +
    • +
      +

      getVersionMessage

      +
      public VersionMessage getVersionMessage()
      +
      Returns version data we announce to our remote peers.
      +
      +
    • +
    • +
      +

      getBestHeight

      +
      public long getBestHeight()
      +
      +
      Returns:
      +
      the height of the best chain as claimed by peer: sum of its ver announcement and blocks announced since.
      +
      +
      +
    • +
    • +
      +

      setMinProtocolVersion

      +
      public boolean setMinProtocolVersion(int minProtocolVersion)
      +
      The minimum P2P protocol version that is accepted. If the peer speaks a protocol version lower than this, it + will be disconnected.
      +
      +
      Returns:
      +
      true if the peer was disconnected as a result
      +
      +
      +
    • +
    • +
      +

      setBloomFilter

      +
      public void setBloomFilter(BloomFilter filter)
      +

      Sets a Bloom filter on this connection. This will cause the given BloomFilter object to be sent to the + remote peer and if either a memory pool has been set using the constructor or the + vDownloadData property is true, a MemoryPoolMessage is sent as well to trigger downloading of any + pending transactions that may be relevant.

      + +

      The Peer does not automatically request filters from any wallets added using addWallet(Wallet). + This is to allow callers to avoid redundantly recalculating the same filter repeatedly when using multiple peers + and multiple wallets together.

      + +

      Therefore, you should not use this method if your app uses a PeerGroup. It is called for you.

      + +

      If the remote peer doesn't support Bloom filtering, then this call is ignored. Once set you presently cannot + unset a filter, though the underlying p2p protocol does support it.

      +
      +
    • +
    • +
      +

      setBloomFilter

      +
      public void setBloomFilter(BloomFilter filter, + boolean andQueryMemPool)
      +

      Sets a Bloom filter on this connection. This will cause the given BloomFilter object to be sent to the + remote peer and if requested, a MemoryPoolMessage is sent as well to trigger downloading of any + pending transactions that may be relevant.

      + +

      The Peer does not automatically request filters from any wallets added using addWallet(Wallet). + This is to allow callers to avoid redundantly recalculating the same filter repeatedly when using multiple peers + and multiple wallets together.

      + +

      Therefore, you should not use this method if your app uses a PeerGroup. It is called for you.

      + +

      If the remote peer doesn't support Bloom filtering, then this call is ignored. Once set you presently cannot + unset a filter, though the underlying p2p protocol does support it.

      +
      +
    • +
    • +
      +

      getBloomFilter

      +
      public BloomFilter getBloomFilter()
      +
      Returns the last BloomFilter set by setBloomFilter(BloomFilter). Bloom filters tell + the remote node what transactions to send us, in a compact manner.
      +
      +
    • +
    • +
      +

      getUTXOs

      +
      public com.google.common.util.concurrent.ListenableFuture<UTXOsMessage> getUTXOs(List<TransactionOutPoint> outPoints)
      +
      Sends a query to the remote peer asking for the unspent transaction outputs (UTXOs) for the given outpoints, + with the memory pool included. The result should be treated only as a hint: it's possible for the returned + outputs to be fictional and not exist in any transaction, and it's possible for them to be spent the moment + after the query returns. Most peers do not support this request. You will need to connect to Bitcoin XT + peers if you want this to work.
      +
      +
      Throws:
      +
      ProtocolException - if this peer doesn't support the protocol.
      +
      +
      +
    • +
    • +
      +

      getUTXOs

      +
      public com.google.common.util.concurrent.ListenableFuture<UTXOsMessage> getUTXOs(List<TransactionOutPoint> outPoints, + boolean includeMempool)
      +
      Sends a query to the remote peer asking for the unspent transaction outputs (UTXOs) for the given outpoints. + The result should be treated only as a hint: it's possible for the returned outputs to be fictional and not + exist in any transaction, and it's possible for them to be spent the moment after the query returns. + Most peers do not support this request. You will need to connect to Bitcoin XT peers if you want + this to work.
      +
      +
      Parameters:
      +
      includeMempool - If true (the default) the results take into account the contents of the memory pool too.
      +
      Throws:
      +
      ProtocolException - if this peer doesn't support the protocol.
      +
      +
      +
    • +
    • +
      +

      isDownloadTxDependencies

      +
      public boolean isDownloadTxDependencies()
      +
      Returns true if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet. The wallet can do risk analysis on pending/recent transactions + to try and discover if a pending tx might be at risk of double spending.
      +
      +
    • +
    • +
      +

      setDownloadTxDependencies

      +
      public void setDownloadTxDependencies(boolean enable)
      +
      Sets if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet. The wallet can do risk analysis on pending/recent transactions + to try and discover if a pending tx might be at risk of double spending.
      +
      +
    • +
    • +
      +

      setDownloadTxDependencies

      +
      public void setDownloadTxDependencies(int depth)
      +
      Sets if this peer will use getdata/notfound messages to walk backwards through transaction dependencies + before handing the transaction off to the wallet. The wallet can do risk analysis on pending/recent transactions + to try and discover if a pending tx might be at risk of double spending.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerAddress.html b/javadoc/0.16.3/org/bitcoinj/core/PeerAddress.html new file mode 100644 index 000000000..013191503 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerAddress.html @@ -0,0 +1,441 @@ + + + + +PeerAddress (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerAddress

+
+ +
+
+
public class PeerAddress +extends ChildMessage
+

A PeerAddress holds an IP address and port number representing the network location of + a peer in the Bitcoin P2P network. It exists primarily for serialization purposes.

+ +

This class abuses the protocol version contained in its serializer. It can only contain 0 (format within + VersionMessage), 1 (AddressV1Message) or 2 (AddressV2Message).

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + byte[] payload, + int offset, + Message parent, + MessageSerializer serializer) + throws ProtocolException
      +
      Construct a peer address from a serialized payload.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + InetAddress addr, + int port, + BigInteger services, + MessageSerializer serializer)
      +
      Construct a peer address from a memorized or hardcoded address.
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + InetAddress addr, + int port, + BigInteger services)
      +
      Constructs a peer address from the given IP address, port and services. Version number is default for the given parameters.
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + InetAddress addr, + int port)
      +
      Constructs a peer address from the given IP address and port. Version number is default for the given parameters.
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + InetAddress addr)
      +
      Constructs a peer address from the given IP address. Port and version number are default for the given + parameters.
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + InetSocketAddress addr)
      +
      Constructs a peer address from an InetSocketAddress. An InetSocketAddress can take in as parameters an + InetAddress or a String hostname. If you want to connect to a .onion, set the hostname to the .onion address.
      +
      +
    • +
    • +
      +

      PeerAddress

      +
      public PeerAddress(NetworkParameters params, + String hostname, + int port)
      +
      Constructs a peer address from a stringified hostname+port. Use this if you want to connect to a Tor .onion address.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerException.html b/javadoc/0.16.3/org/bitcoinj/core/PeerException.html new file mode 100644 index 000000000..b1c751837 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerException.html @@ -0,0 +1,167 @@ + + + + +PeerException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.PeerException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class PeerException +extends Exception
+
Thrown when a problem occurs in communicating with a peer, and we should + retry.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PeerException

      +
      public PeerException(String msg)
      +
      +
    • +
    • +
      +

      PeerException

      +
      public PeerException(Exception e)
      +
      +
    • +
    • +
      +

      PeerException

      +
      public PeerException(String msg, + Exception e)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerFilterProvider.html b/javadoc/0.16.3/org/bitcoinj/core/PeerFilterProvider.html new file mode 100644 index 000000000..633b4a313 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerFilterProvider.html @@ -0,0 +1,199 @@ + + + + +PeerFilterProvider (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerFilterProvider

+
+
+
+
All Known Implementing Classes:
+
Wallet
+
+
+
public interface PeerFilterProvider
+
An interface which provides the information required to properly filter data downloaded from Peers. Note that an + implementer is responsible for calling + PeerGroup.recalculateFastCatchupAndFilter(PeerGroup.FilterRecalculateMode) whenever a change occurs which + effects the data provided via this interface.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getEarliestKeyCreationTime

      +
      long getEarliestKeyCreationTime()
      +
      Returns the earliest timestamp (seconds since epoch) for which full/bloom-filtered blocks must be downloaded. + Blocks with timestamps before this time will only have headers downloaded. 0 requires that all + blocks be downloaded, and thus this should default to System.currentTimeMillis()/1000.
      +
      +
    • +
    • +
      +

      beginBloomFilterCalculation

      +
      void beginBloomFilterCalculation()
      +
      Called on all registered filter providers before getBloomFilterElementCount() and + getBloomFilter(int, double, long) are called. Once called, the provider should ensure that the items + it will want to insert into the filter don't change. The reason is that all providers will have their element + counts queried, and then a filter big enough for all of them will be specified. So the provider must use + consistent state. There is guaranteed to be a matching call to endBloomFilterCalculation() that can + be used to e.g. unlock a lock.
      +
      +
    • +
    • +
      +

      getBloomFilterElementCount

      +
      int getBloomFilterElementCount()
      +
      Gets the number of elements that will be added to a bloom filter returned by + getBloomFilter(int, double, long)
      +
      +
    • +
    • +
      +

      getBloomFilter

      +
      BloomFilter getBloomFilter(int size, + double falsePositiveRate, + long nTweak)
      +
      Gets a bloom filter that contains all the necessary elements for the listener to receive relevant transactions. + Default value should be an empty bloom filter with the given size, falsePositiveRate, and nTweak.
      +
      +
    • +
    • +
      +

      endBloomFilterCalculation

      +
      void endBloomFilterCalculation()
      + +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.FilterRecalculateMode.html b/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.FilterRecalculateMode.html new file mode 100644 index 000000000..a777579dd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.FilterRecalculateMode.html @@ -0,0 +1,230 @@ + + + + +PeerGroup.FilterRecalculateMode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class PeerGroup.FilterRecalculateMode

+
+
java.lang.Object +
java.lang.Enum<PeerGroup.FilterRecalculateMode> +
org.bitcoinj.core.PeerGroup.FilterRecalculateMode
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<PeerGroup.FilterRecalculateMode>, Constable
+
+
+
Enclosing class:
+
PeerGroup
+
+
+
public static enum PeerGroup.FilterRecalculateMode +extends Enum<PeerGroup.FilterRecalculateMode>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static PeerGroup.FilterRecalculateMode[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static PeerGroup.FilterRecalculateMode valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.html b/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.html new file mode 100644 index 000000000..0d353991c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerGroup.html @@ -0,0 +1,1813 @@ + + + + +PeerGroup (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerGroup

+
+
java.lang.Object +
org.bitcoinj.core.PeerGroup
+
+
+
+
All Implemented Interfaces:
+
TransactionBroadcaster
+
+
+
public class PeerGroup +extends Object +implements TransactionBroadcaster
+

Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages + the interaction between them all. Most applications will want to use one of these.

+ +

PeerGroup tries to maintain a constant number of connections to a set of distinct peers. + Each peer runs a network listener in its own thread. When a connection is lost, a new peer + will be tried after a delay as long as the number of connections less than the maximum.

+ +

Connections are made to addresses from a provided list. When that list is exhausted, + we start again from the head of the list.

+ +

The PeerGroup can broadcast a transaction to the currently connected set of peers. It can + also handle download of the blockchain from peers, restarting the process when peers die.

+ +

A PeerGroup won't do anything until you call the start() method + which will block until peer discovery is completed and some outbound connections + have been initiated (it will return before handshaking is done, however). + You should call stop() when finished. Note that not all methods + of PeerGroup are safe to call from a UI thread as some may do network IO, + but starting and stopping the service should be fine.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      lock

      +
      protected final ReentrantLock lock
      +
      +
    • +
    • +
      +

      DEFAULT_CONNECTIONS

      +
      public static final int DEFAULT_CONNECTIONS
      +
      The default number of connections to the p2p network the library will try to build. This is set to 12 empirically. + It used to be 4, but because we divide the connection pool in two for broadcasting transactions, that meant we + were only sending transactions to two peers and sometimes this wasn't reliable enough: transactions wouldn't + get through.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      params

      +
      protected final NetworkParameters params
      +
      +
    • +
    • +
      +

      chain

      +
      @Nullable +protected final AbstractBlockChain chain
      +
      +
    • +
    • +
      +

      executor

      +
      protected final com.google.common.util.concurrent.ListeningScheduledExecutorService executor
      +
      +
    • +
    • +
      +

      peerConnectedEventListeners

      +
      protected final CopyOnWriteArrayList<ListenerRegistration<PeerConnectedEventListener>> peerConnectedEventListeners
      +
      Callbacks for events related to peers connecting
      +
      +
    • +
    • +
      +

      peerDiscoveredEventListeners

      +
      protected final CopyOnWriteArrayList<ListenerRegistration<PeerDiscoveredEventListener>> peerDiscoveredEventListeners
      +
      Callbacks for events related to peer connection/disconnection
      +
      +
    • +
    • +
      +

      peerDisconnectedEventListeners

      +
      protected final CopyOnWriteArrayList<ListenerRegistration<PeerDisconnectedEventListener>> peerDisconnectedEventListeners
      +
      Callbacks for events related to peers disconnecting
      +
      +
    • +
    • +
      +

      peersTransactionBroadastEventListeners

      +
      protected final CopyOnWriteArrayList<ListenerRegistration<OnTransactionBroadcastListener>> peersTransactionBroadastEventListeners
      +
      +
    • +
    • +
      +

      DEFAULT_PING_INTERVAL_MSEC

      +
      public static final long DEFAULT_PING_INTERVAL_MSEC
      +
      How many milliseconds to wait after receiving a pong before sending another ping.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_BLOOM_FILTER_FP_RATE

      +
      public static final double DEFAULT_BLOOM_FILTER_FP_RATE
      +
      The default Bloom filter false positive rate, which is selected to be extremely low such that you hardly ever + download false positives. This provides maximum performance. Although this default can be overridden to push + the FP rate higher, due to + various complexities there are still ways a remote peer can deanonymize the users wallet. This is why the + FP rate is chosen for performance rather than privacy. If a future version of bitcoinj fixes the known + de-anonymization attacks this FP rate may rise again (or more likely, become expressed as a bandwidth allowance).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_FP_RATE_INCREASE

      +
      public static final double MAX_FP_RATE_INCREASE
      +
      Maximum increase in FP rate before forced refresh of the bloom filter
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_CONNECT_TIMEOUT_MILLIS

      +
      public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
      +
      The default timeout between when a connection attempt begins and version message exchange completes
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PeerGroup

      +
      public PeerGroup(NetworkParameters params)
      + +
      +
    • +
    • +
      +

      PeerGroup

      +
      public PeerGroup(Context context)
      +
      Creates a PeerGroup with the given context. No chain is provided so this node will report its chain height + as zero to other peers. This constructor is useful if you just want to explore the network but aren't interested + in downloading block data.
      +
      +
    • +
    • +
      +

      PeerGroup

      +
      public PeerGroup(NetworkParameters params, + @Nullable + AbstractBlockChain chain)
      + +
      +
    • +
    • +
      +

      PeerGroup

      +
      public PeerGroup(Context context, + @Nullable + AbstractBlockChain chain)
      +
      Creates a PeerGroup for the given context and chain. Blocks will be passed to the chain as they are broadcast + and downloaded. This is probably the constructor you want to use.
      +
      +
    • +
    • +
      +

      PeerGroup

      +
      public PeerGroup(NetworkParameters params, + @Nullable + AbstractBlockChain chain, + ClientConnectionManager connectionManager)
      +
      See PeerGroup(Context, AbstractBlockChain, ClientConnectionManager)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createPrivateExecutor

      +
      protected com.google.common.util.concurrent.ListeningScheduledExecutorService createPrivateExecutor()
      +
      +
    • +
    • +
      +

      setPeerDiscoveryTimeoutMillis

      +
      public void setPeerDiscoveryTimeoutMillis(long peerDiscoveryTimeoutMillis)
      +
      This is how many milliseconds we wait for peer discoveries to return their results.
      +
      +
    • +
    • +
      +

      setMaxConnections

      +
      public void setMaxConnections(int maxConnections)
      +
      Adjusts the desired number of connections that we will create to peers. Note that if there are already peers + open and the new value is lower than the current number of peers, those connections will be terminated. Likewise + if there aren't enough current connections to meet the new requested max size, some will be added.
      +
      +
    • +
    • +
      +

      setDownloadTxDependencies

      +
      public void setDownloadTxDependencies(int depth)
      +
      Configure download of pending transaction dependencies. A change of values only takes effect for newly connected + peers.
      +
      +
    • +
    • +
      +

      getMaxConnections

      +
      public int getMaxConnections()
      +
      The maximum number of connections that we will create to peers.
      +
      +
    • +
    • +
      +

      setVersionMessage

      +
      public void setVersionMessage(VersionMessage ver)
      +
      Sets the VersionMessage that will be announced on newly created connections. A version message is + primarily interesting because it lets you customize the "subVer" field which is used a bit like the User-Agent + field from HTTP. It means your client tells the other side what it is, see + BIP 14. + + The VersionMessage you provide is copied and the best chain height/time filled in for each new connection, + therefore you don't have to worry about setting that. The provided object is really more of a template.
      +
      +
    • +
    • +
      +

      getVersionMessage

      +
      public VersionMessage getVersionMessage()
      +
      Returns the version message provided by setVersionMessage or a default if none was given.
      +
      +
    • +
    • +
      +

      setUserAgent

      +
      public void setUserAgent(String name, + String version, + @Nullable + String comments)
      +
      Sets information that identifies this software to remote nodes. This is a convenience wrapper for creating + a new VersionMessage, calling VersionMessage.appendToSubVer(String, String, String) on it, + and then calling setVersionMessage(VersionMessage) on the result of that. See the docs for + VersionMessage.appendToSubVer(String, String, String) for information on what the fields should contain.
      +
      +
    • +
    • +
      +

      setUserAgent

      +
      public void setUserAgent(String name, + String version)
      +
      Sets information that identifies this software to remote nodes. This is a convenience wrapper for creating + a new VersionMessage, calling VersionMessage.appendToSubVer(String, String, String) on it, + and then calling setVersionMessage(VersionMessage) on the result of that. See the docs for + VersionMessage.appendToSubVer(String, String, String) for information on what the fields should contain.
      +
      +
    • +
    • +
      +

      addBlocksDownloadedEventListener

      +
      public void addBlocksDownloadedEventListener(BlocksDownloadedEventListener listener)
      + +
      +
    • +
    • +
      +

      addBlocksDownloadedEventListener

      +
      public void addBlocksDownloadedEventListener(Executor executor, + BlocksDownloadedEventListener listener)
      +

      Adds a listener that will be notified on the given executor when + blocks are downloaded by the download peer.

      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      addChainDownloadStartedEventListener

      +
      public void addChainDownloadStartedEventListener(ChainDownloadStartedEventListener listener)
      + +
      +
    • +
    • +
      +

      addChainDownloadStartedEventListener

      +
      public void addChainDownloadStartedEventListener(Executor executor, + ChainDownloadStartedEventListener listener)
      +

      Adds a listener that will be notified on the given executor when + chain download starts.

      +
      +
    • +
    • +
      +

      addConnectedEventListener

      +
      public void addConnectedEventListener(PeerConnectedEventListener listener)
      + +
      +
    • +
    • +
      +

      addConnectedEventListener

      +
      public void addConnectedEventListener(Executor executor, + PeerConnectedEventListener listener)
      +

      Adds a listener that will be notified on the given executor when + new peers are connected to.

      +
      +
    • +
    • +
      +

      addDisconnectedEventListener

      +
      public void addDisconnectedEventListener(PeerDisconnectedEventListener listener)
      + +
      +
    • +
    • +
      +

      addDisconnectedEventListener

      +
      public void addDisconnectedEventListener(Executor executor, + PeerDisconnectedEventListener listener)
      +

      Adds a listener that will be notified on the given executor when + peers are disconnected from.

      +
      +
    • +
    • +
      +

      addDiscoveredEventListener

      +
      public void addDiscoveredEventListener(PeerDiscoveredEventListener listener)
      + +
      +
    • +
    • +
      +

      addDiscoveredEventListener

      +
      public void addDiscoveredEventListener(Executor executor, + PeerDiscoveredEventListener listener)
      +

      Adds a listener that will be notified on the given executor when new + peers are discovered.

      +
      +
    • +
    • +
      +

      addGetDataEventListener

      +
      public void addGetDataEventListener(GetDataEventListener listener)
      + +
      +
    • +
    • +
      +

      addGetDataEventListener

      +
      public void addGetDataEventListener(Executor executor, + GetDataEventListener listener)
      + +
      +
    • +
    • +
      +

      addOnTransactionBroadcastListener

      +
      public void addOnTransactionBroadcastListener(OnTransactionBroadcastListener listener)
      + +
      +
    • +
    • +
      +

      addOnTransactionBroadcastListener

      +
      public void addOnTransactionBroadcastListener(Executor executor, + OnTransactionBroadcastListener listener)
      + +
      +
    • +
    • +
      +

      addPreMessageReceivedEventListener

      +
      public void addPreMessageReceivedEventListener(PreMessageReceivedEventListener listener)
      + +
      +
    • +
    • +
      +

      addPreMessageReceivedEventListener

      +
      public void addPreMessageReceivedEventListener(Executor executor, + PreMessageReceivedEventListener listener)
      + +
      +
    • +
    • +
      +

      removeBlocksDownloadedEventListener

      +
      public boolean removeBlocksDownloadedEventListener(BlocksDownloadedEventListener listener)
      +
      +
    • +
    • +
      +

      removeChainDownloadStartedEventListener

      +
      public boolean removeChainDownloadStartedEventListener(ChainDownloadStartedEventListener listener)
      +
      +
    • +
    • +
      +

      removeConnectedEventListener

      +
      public boolean removeConnectedEventListener(PeerConnectedEventListener listener)
      +
      The given event listener will no longer be called with events.
      +
      +
    • +
    • +
      +

      removeDisconnectedEventListener

      +
      public boolean removeDisconnectedEventListener(PeerDisconnectedEventListener listener)
      +
      The given event listener will no longer be called with events.
      +
      +
    • +
    • +
      +

      removeDiscoveredEventListener

      +
      public boolean removeDiscoveredEventListener(PeerDiscoveredEventListener listener)
      +
      The given event listener will no longer be called with events.
      +
      +
    • +
    • +
      +

      removeGetDataEventListener

      +
      public boolean removeGetDataEventListener(GetDataEventListener listener)
      +
      The given event listener will no longer be called with events.
      +
      +
    • +
    • +
      +

      removeOnTransactionBroadcastListener

      +
      public boolean removeOnTransactionBroadcastListener(OnTransactionBroadcastListener listener)
      +
      The given event listener will no longer be called with events.
      +
      +
    • +
    • +
      +

      removePreMessageReceivedEventListener

      +
      public boolean removePreMessageReceivedEventListener(PreMessageReceivedEventListener listener)
      +
      +
    • +
    • +
      +

      getConnectedPeers

      +
      public List<Peer> getConnectedPeers()
      +
      Returns a newly allocated list containing the currently connected peers. If all you care about is the count, + use numConnectedPeers().
      +
      +
    • +
    • +
      +

      getPendingPeers

      +
      public List<Peer> getPendingPeers()
      +
      Returns a list containing Peers that did not complete connection yet.
      +
      +
    • +
    • +
      +

      addAddress

      +
      public void addAddress(PeerAddress peerAddress)
      +
      Add an address to the list of potential peers to connect to. It won't necessarily be used unless there's a need + to build new connections to reach the max connection count.
      +
      +
      Parameters:
      +
      peerAddress - IP/port to use.
      +
      +
      +
    • +
    • +
      +

      addAddress

      +
      public void addAddress(PeerAddress peerAddress, + int priority)
      +
      Add an address to the list of potential peers to connect to. It won't necessarily be used unless there's a need + to build new connections to reach the max connection count.
      +
      +
      Parameters:
      +
      peerAddress - IP/port to use.
      +
      priority - for connecting and being picked as a download peer
      +
      +
      +
    • +
    • +
      +

      setRequiredServices

      +
      public void setRequiredServices(long requiredServices)
      +
      Convenience for connecting only to peers that can serve specific services. It will configure suitable peer + discoveries.
      +
      +
      Parameters:
      +
      requiredServices - Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK.
      +
      +
      +
    • +
    • +
      +

      addAddress

      +
      public void addAddress(InetAddress address)
      +
      Convenience method for addAddress(PeerAddress).
      +
      +
    • +
    • +
      +

      addAddress

      +
      public void addAddress(InetAddress address, + int priority)
      +
      Convenience method for addAddress(PeerAddress, int).
      +
      +
    • +
    • +
      +

      addPeerDiscovery

      +
      public void addPeerDiscovery(PeerDiscovery peerDiscovery)
      +
      Add addresses from a discovery source to the list of potential peers to connect to. If max connections has not + been configured, or set to zero, then it's set to the default at this point.
      +
      +
    • +
    • +
      +

      discoverPeers

      +
      protected int discoverPeers()
      +
      Returns number of discovered peers.
      +
      +
    • +
    • +
      +

      startAsync

      +
      public com.google.common.util.concurrent.ListenableFuture startAsync()
      +
      Starts the PeerGroup and begins network activity.
      +
      +
      Returns:
      +
      A future that completes when first connection activity has been triggered (note: not first connection made).
      +
      +
      +
    • +
    • +
      +

      start

      +
      public void start()
      +
      Does a blocking startup.
      +
      +
    • +
    • +
      +

      stopAsync

      +
      public com.google.common.util.concurrent.ListenableFuture stopAsync()
      +
      +
    • +
    • +
      +

      stop

      +
      public void stop()
      +
      Does a blocking stop
      +
      +
    • +
    • +
      +

      dropAllPeers

      +
      public void dropAllPeers()
      +
      Gracefully drops all connected peers.
      +
      +
    • +
    • +
      +

      addWallet

      +
      public void addWallet(Wallet wallet)
      +

      Link the given wallet to this PeerGroup. This is used for three purposes:

      + +
        +
      1. So the wallet receives broadcast transactions.
      2. +
      3. Announcing pending transactions that didn't get into the chain yet to our peers.
      4. +
      5. Set the fast catchup time using setFastCatchupTimeSecs(long), to optimize chain + download.
      6. +
      + +

      Note that this should be done before chain download commences because if you add a wallet with keys earlier + than the current chain head, the relevant parts of the chain won't be redownloaded for you.

      + +

      The Wallet will have an event listener registered on it, so to avoid leaks remember to use + removeWallet(Wallet) on it if you wish to keep the Wallet but lose the PeerGroup.

      +
      +
    • +
    • +
      +

      addPeerFilterProvider

      +
      public com.google.common.util.concurrent.ListenableFuture<BloomFilter> addPeerFilterProvider(PeerFilterProvider provider)
      +

      Link the given PeerFilterProvider to this PeerGroup. DO NOT use this for Wallets, use + addWallet(Wallet) instead.

      + +

      Note that this should be done before chain download commences because if you add a listener with keys earlier + than the current chain head, the relevant parts of the chain won't be redownloaded for you.

      + +

      This method invokes recalculateFastCatchupAndFilter(FilterRecalculateMode). + The return value of this method is the ListenableFuture returned by that invocation.

      +
      +
      Returns:
      +
      a future that completes once each Peer in this group has had its + BloomFilter (re)set.
      +
      +
      +
    • +
    • +
      +

      removePeerFilterProvider

      +
      public void removePeerFilterProvider(PeerFilterProvider provider)
      +
      Opposite of addPeerFilterProvider(PeerFilterProvider). Again, don't use this for wallets. Does not + trigger recalculation of the filter.
      +
      +
    • +
    • +
      +

      removeWallet

      +
      public void removeWallet(Wallet wallet)
      +
      Unlinks the given wallet so it no longer receives broadcast transactions or has its transactions announced.
      +
      +
    • +
    • +
      +

      recalculateFastCatchupAndFilter

      +
      public com.google.common.util.concurrent.ListenableFuture<BloomFilter> recalculateFastCatchupAndFilter(PeerGroup.FilterRecalculateMode mode)
      +
      Recalculates the bloom filter given to peers as well as the timestamp after which full blocks are downloaded + (instead of only headers). Note that calls made one after another may return the same future, if the request + wasn't processed yet (i.e. calls are deduplicated).
      +
      +
      Parameters:
      +
      mode - In what situations to send the filter to connected peers.
      +
      Returns:
      +
      a future that completes once the filter has been calculated (note: this does not mean acknowledged by remote peers).
      +
      +
      +
    • +
    • +
      +

      setBloomFilterFalsePositiveRate

      +
      public void setBloomFilterFalsePositiveRate(double bloomFilterFPRate)
      +

      Sets the false positive rate of bloom filters given to peers. The default is DEFAULT_BLOOM_FILTER_FP_RATE.

      + +

      Be careful regenerating the bloom filter too often, as it decreases anonymity because remote nodes can + compare transactions against both the new and old filters to significantly decrease the false positive rate.

      + +

      See the docs for BloomFilter(int, double, long, BloomFilter.BloomUpdate) for a brief + explanation of anonymity when using bloom filters.

      +
      +
    • +
    • +
      +

      numConnectedPeers

      +
      public int numConnectedPeers()
      +
      Returns the number of currently connected peers. To be informed when this count changes, use + PeerConnectedEventListener.onPeerConnected(org.bitcoinj.core.Peer, int) and PeerDisconnectedEventListener.onPeerDisconnected(org.bitcoinj.core.Peer, int).
      +
      +
    • +
    • +
      +

      connectTo

      +
      @Nullable +public Peer connectTo(InetSocketAddress address)
      +
      Connect to a peer by creating a channel to the destination address. This should not be + used normally - let the PeerGroup manage connections through start()
      +
      +
      Parameters:
      +
      address - destination IP and port.
      +
      Returns:
      +
      The newly created Peer object or null if the peer could not be connected. + Use Peer.getConnectionOpenFuture() if you + want a future which completes when the connection is open.
      +
      +
      +
    • +
    • +
      +

      connectToLocalHost

      +
      @Nullable +public Peer connectToLocalHost()
      +
      Helper for forcing a connection to localhost. Useful when using regtest mode. Returns the peer object.
      +
      +
    • +
    • +
      +

      connectTo

      +
      @Nullable +protected Peer connectTo(PeerAddress address, + boolean incrementMaxConnections, + int connectTimeoutMillis)
      +
      Creates a version message to send, constructs a Peer object and attempts to connect it. Returns the peer on + success or null on failure.
      +
      +
      Parameters:
      +
      address - Remote network address
      +
      incrementMaxConnections - Whether to consider this connection an attempt to fill our quota, or something + explicitly requested.
      +
      Returns:
      +
      Peer or null.
      +
      +
      +
    • +
    • +
      +

      createPeer

      +
      protected Peer createPeer(PeerAddress address, + VersionMessage ver)
      +
      You can override this to customise the creation of Peer objects.
      +
      +
    • +
    • +
      +

      setConnectTimeoutMillis

      +
      public void setConnectTimeoutMillis(int connectTimeoutMillis)
      +
      Sets the timeout between when a connection attempt to a peer begins and when the version message exchange + completes. This does not apply to currently pending peers.
      +
      +
    • +
    • +
      +

      startBlockChainDownload

      +
      public void startBlockChainDownload(PeerDataEventListener listener)
      +

      Start downloading the blockchain.

      + +

      If no peers are currently connected, the download will be started once a peer starts. If the peer dies, + the download will resume with another peer.

      +
      +
      Parameters:
      +
      listener - a listener for chain download events, may not be null
      +
      +
      +
    • +
    • +
      +

      downloadBlockChain

      +
      public void downloadBlockChain()
      +
      Download the blockchain from peers. Convenience that uses a DownloadProgressTracker for you.

      + + This method waits until the download is complete. "Complete" is defined as downloading + from at least one peer all the blocks that are in that peer's inventory.

      +
      +
    • +
    • +
      +

      handleNewPeer

      +
      protected void handleNewPeer(Peer peer)
      +
      +
    • +
    • +
      +

      getMemoryPool

      +
      @Deprecated +@Nullable +public TxConfidenceTable getMemoryPool()
      +
      Deprecated.
      +
      Use "Context.get().getConfidenceTable()" instead
      +
      +
    • +
    • +
      +

      setFastCatchupTimeSecs

      +
      public void setFastCatchupTimeSecs(long secondsSinceEpoch)
      +
      Tells the PeerGroup to download only block headers before a certain time and bodies after that. Call this + before starting block chain download. + Do not use a time > NOW - 1 block, as it will break some block download logic.
      +
      +
    • +
    • +
      +

      getFastCatchupTimeSecs

      +
      public long getFastCatchupTimeSecs()
      +
      Returns the current fast catchup time. The contents of blocks before this time won't be downloaded as they + cannot contain any interesting transactions. If you use addWallet(Wallet) this just returns + the min of the wallets earliest key times.
      +
      +
      Returns:
      +
      a time in seconds since the epoch
      +
      +
      +
    • +
    • +
      +

      handlePeerDeath

      +
      protected void handlePeerDeath(Peer peer, + @Nullable + Throwable exception)
      +
      +
    • +
    • +
      +

      setStallThreshold

      +
      public void setStallThreshold(int periodSecs, + int bytesPerSecond)
      +
      Configures the stall speed: the speed at which a peer is considered to be serving us the block chain + unacceptably slowly. Once a peer has served us data slower than the given data rate for the given + number of seconds, it is considered stalled and will be disconnected, forcing the chain download to continue + from a different peer. The defaults are chosen conservatively, but if you are running on a platform that is + CPU constrained or on a very slow network e.g. EDGE, the default settings may need adjustment to + avoid false stalls.
      +
      +
      Parameters:
      +
      periodSecs - How many seconds the download speed must be below blocksPerSec, defaults to 10.
      +
      bytesPerSecond - Download speed (only blocks/txns count) must be consistently below this for a stall, defaults to the bandwidth required for 10 block headers per second.
      +
      +
      +
    • +
    • +
      +

      waitForPeers

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Peer>> waitForPeers(int numPeers)
      +
      Returns a future that is triggered when the number of connected peers is equal to the given number of + peers. By using this with getMaxConnections() you can wait until the + network is fully online. To block immediately, just call get() on the result. Just calls + waitForPeersOfVersion(int, long) with zero as the protocol version.
      +
      +
      Parameters:
      +
      numPeers - How many peers to wait for.
      +
      Returns:
      +
      a future that will be triggered when the number of connected peers is greater than or equals numPeers
      +
      +
      +
    • +
    • +
      +

      waitForPeersOfVersion

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Peer>> waitForPeersOfVersion(int numPeers, + long protocolVersion)
      +
      Returns a future that is triggered when there are at least the requested number of connected peers that support + the given protocol version or higher. To block immediately, just call get() on the result.
      +
      +
      Parameters:
      +
      numPeers - How many peers to wait for.
      +
      protocolVersion - The protocol version the awaited peers must implement (or better).
      +
      Returns:
      +
      a future that will be triggered when the number of connected peers implementing protocolVersion or higher is greater than or equals numPeers
      +
      +
      +
    • +
    • +
      +

      findPeersOfAtLeastVersion

      +
      public List<Peer> findPeersOfAtLeastVersion(long protocolVersion)
      +
      Returns an array list of peers that implement the given protocol version or better.
      +
      +
    • +
    • +
      +

      waitForPeersWithServiceMask

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Peer>> waitForPeersWithServiceMask(int numPeers, + int mask)
      +
      Returns a future that is triggered when there are at least the requested number of connected peers that support + the given protocol version or higher. To block immediately, just call get() on the result.
      +
      +
      Parameters:
      +
      numPeers - How many peers to wait for.
      +
      mask - An integer representing a bit mask that will be ANDed with the peers advertised service masks.
      +
      Returns:
      +
      a future that will be triggered when the number of connected peers implementing protocolVersion or higher is greater than or equals numPeers
      +
      +
      +
    • +
    • +
      +

      findPeersWithServiceMask

      +
      public List<Peer> findPeersWithServiceMask(int mask)
      +
      Returns an array list of peers that match the requested service bit mask.
      +
      +
    • +
    • +
      +

      getMinBroadcastConnections

      +
      public int getMinBroadcastConnections()
      +
      Returns the number of connections that are required before transactions will be broadcast. If there aren't + enough, broadcastTransaction(Transaction) will wait until the minimum number is reached so + propagation across the network can be observed. If no value has been set using + setMinBroadcastConnections(int) a default of 80% of whatever + getMaxConnections() returns is used.
      +
      +
    • +
    • +
      +

      setMinBroadcastConnections

      +
      public void setMinBroadcastConnections(int value)
      + +
      +
    • +
    • +
      +

      broadcastTransaction

      +
      public TransactionBroadcast broadcastTransaction(Transaction tx)
      +
      Calls broadcastTransaction(Transaction, int, boolean) with getMinBroadcastConnections() as + the number of connections to wait for before commencing broadcast. Also, if the transaction has no broadcast + confirmations yet the peers will be dropped after the transaction has been sent.
      +
      +
      Specified by:
      +
      broadcastTransaction in interface TransactionBroadcaster
      +
      +
      +
    • +
    • +
      +

      broadcastTransaction

      +
      public TransactionBroadcast broadcastTransaction(Transaction tx, + int minConnections, + boolean dropPeersAfterBroadcast)
      +

      Given a transaction, sends it un-announced to one peer and then waits for it to be received back from other + peers. Once all connected peers have announced the transaction, the future available via the + TransactionBroadcast.future() method will be completed. If anything goes + wrong the exception will be thrown when get() is called, or you can receive it via a callback on the + ListenableFuture. This method returns immediately, so if you want it to block just call get() on the + result.

      + +

      Optionally, peers will be dropped after they have been used for broadcasting the transaction and they have + no broadcast confirmations yet.

      + +

      Note that if the PeerGroup is limited to only one connection (discovery is not activated) then the future + will complete as soon as the transaction was successfully written to that peer.

      + +

      The transaction won't be sent until there are at least minConnections active connections available. + A good choice for proportion would be between 0.5 and 0.8 but if you want faster transmission during initial + bringup of the peer group you can lower it.

      + +

      The returned TransactionBroadcast object can be used to get progress feedback, + which is calculated by watching the transaction propagate across the network and be announced by peers.

      +
      +
    • +
    • +
      +

      getPingIntervalMsec

      +
      public long getPingIntervalMsec()
      +
      Returns the period between pings for an individual peer. Setting this lower means more accurate and timely ping + times are available via Peer.getLastPingTime() but it increases load on the + remote node. It defaults to DEFAULT_PING_INTERVAL_MSEC.
      +
      +
    • +
    • +
      +

      setPingIntervalMsec

      +
      public void setPingIntervalMsec(long pingIntervalMsec)
      +
      Sets the period between pings for an individual peer. Setting this lower means more accurate and timely ping + times are available via Peer.getLastPingTime() but it increases load on the + remote node. It defaults to DEFAULT_PING_INTERVAL_MSEC. + Setting the value to be smaller or equals 0 disables pinging entirely, although you can still request one yourself + using Peer.ping().
      +
      +
    • +
    • +
      +

      setMinRequiredProtocolVersion

      +
      public void setMinRequiredProtocolVersion(int minRequiredProtocolVersion)
      +
      If a peer is connected to that claims to speak a protocol version lower than the given version, it will + be disconnected and another one will be tried instead.
      +
      +
    • +
    • +
      +

      getMinRequiredProtocolVersion

      +
      public int getMinRequiredProtocolVersion()
      +
      The minimum protocol version required: defaults to the version required for Bloom filtering.
      +
      +
    • +
    • +
      +

      getMostCommonChainHeight

      +
      public int getMostCommonChainHeight()
      +
      Returns our peers most commonly reported chain height. + If the most common heights are tied, or no peers are connected, returns 0.
      +
      +
    • +
    • +
      +

      getMostCommonChainHeight

      +
      public static int getMostCommonChainHeight(List<Peer> peers)
      +
      Returns most commonly reported chain height from the given list of Peers. + If the most common heights are tied, or no peers are connected, returns 0.
      +
      +
    • +
    • +
      +

      selectDownloadPeer

      +
      @Nullable +protected Peer selectDownloadPeer(List<Peer> peers)
      +
      Given a list of Peers, return a Peer to be used as the download peer. If you don't want PeerGroup to manage + download peer statuses for you, just override this and always return null.
      +
      +
    • +
    • +
      +

      getDownloadPeer

      +
      public Peer getDownloadPeer()
      +
      Returns the currently selected download peer. Bear in mind that it may have changed as soon as this method + returns. Can return null if no peer was selected.
      +
      +
    • +
    • +
      +

      getMaxPeersToDiscoverCount

      +
      public int getMaxPeersToDiscoverCount()
      +
      Returns the maximum number of Peers to discover. This maximum is checked after + each PeerDiscovery so this max number can be surpassed.
      +
      +
      Returns:
      +
      the maximum number of peers to discover
      +
      +
      +
    • +
    • +
      +

      setMaxPeersToDiscoverCount

      +
      public void setMaxPeersToDiscoverCount(int maxPeersToDiscoverCount)
      +
      Sets the maximum number of Peers to discover. This maximum is checked after + each PeerDiscovery so this max number can be surpassed.
      +
      +
      Parameters:
      +
      maxPeersToDiscoverCount - the maximum number of peers to discover
      +
      +
      +
    • +
    • +
      +

      getUseLocalhostPeerWhenPossible

      +
      public boolean getUseLocalhostPeerWhenPossible()
      + +
      +
    • +
    • +
      +

      setUseLocalhostPeerWhenPossible

      +
      public void setUseLocalhostPeerWhenPossible(boolean useLocalhostPeerWhenPossible)
      +
      When true (the default), PeerGroup will attempt to connect to a Bitcoin node running on localhost before + attempting to use the P2P network. If successful, only localhost will be used. This makes for a simple + and easy way for a user to upgrade a bitcoinj based app running in SPV mode to fully validating security.
      +
      +
    • +
    • +
      +

      isRunning

      +
      public boolean isRunning()
      +
      +
    • +
    • +
      +

      setBloomFilteringEnabled

      +
      public void setBloomFilteringEnabled(boolean bloomFilteringEnabled)
      +
      Can be used to disable Bloom filtering entirely, even in SPV mode. You are very unlikely to need this, it is + an optimisation for rare cases when full validation is not required but it's still more efficient to download + full blocks than filtered blocks.
      +
      +
    • +
    • +
      +

      isBloomFilteringEnabled

      +
      public boolean isBloomFilteringEnabled()
      +
      Returns whether the Bloom filtering protocol optimisation is in use: defaults to true.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PeerSocketHandler.html b/javadoc/0.16.3/org/bitcoinj/core/PeerSocketHandler.html new file mode 100644 index 000000000..e1a405d98 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PeerSocketHandler.html @@ -0,0 +1,362 @@ + + + + +PeerSocketHandler (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerSocketHandler

+
+
java.lang.Object +
org.bitcoinj.net.AbstractTimeoutHandler +
org.bitcoinj.core.PeerSocketHandler
+
+
+
+
+
All Implemented Interfaces:
+
StreamConnection
+
+
+
Direct Known Subclasses:
+
Peer
+
+
+
public abstract class PeerSocketHandler +extends AbstractTimeoutHandler +implements StreamConnection
+
Handles high-level message (de)serialization for peers, acting as the bridge between the + org.bitcoinj.net classes and Peer.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      sendMessage

      +
      public com.google.common.util.concurrent.ListenableFuture sendMessage(Message message) + throws NotYetConnectedException
      +
      Sends the given message to the peer. Due to the asynchronousness of network programming, there is no guarantee + the peer will have received it. Throws NotYetConnectedException if we are not yet connected to the remote peer. + TODO: Maybe use something other than the unchecked NotYetConnectedException here
      +
      +
      Throws:
      +
      NotYetConnectedException
      +
      +
      +
    • +
    • +
      +

      close

      +
      public void close()
      +
      Closes the connection to the peer if one exists, or immediately closes the connection as soon as it opens
      +
      +
    • +
    • +
      +

      timeoutOccurred

      +
      protected void timeoutOccurred()
      +
      +
      Specified by:
      +
      timeoutOccurred in class AbstractTimeoutHandler
      +
      +
      +
    • +
    • +
      +

      processMessage

      +
      protected abstract void processMessage(Message m) + throws Exception
      +
      Called every time a message is received from the network
      +
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      receiveBytes

      +
      public int receiveBytes(ByteBuffer buff)
      +
      Description copied from interface: StreamConnection
      +

      Called when new bytes are available from the remote end. This should only ever be called by the single + writeTarget associated with any given StreamConnection, multiple callers will likely confuse implementations.

      + + Implementers/callers must follow the following conventions exactly: +
        +
      • buff will start with its limit set to the position we can read to and its position set to the location we + will start reading at (always 0)
      • +
      • May read more than one message (recursively) if there are enough bytes available
      • +
      • Uses some internal buffering to store message which are larger (incl their length prefix) than buff's + capacity(), ie it is up to this method to ensure we don't run out of buffer space to decode the next message. +
      • +
      • buff will end with its limit the same as it was previously, and its position set to the position up to which + bytes have been read (the same as its return value)
      • +
      • buff must be at least the size of a Bitcoin header (incl magic bytes).
      • +
      +
      +
      Specified by:
      +
      receiveBytes in interface StreamConnection
      +
      Returns:
      +
      The amount of bytes consumed which should not be provided again
      +
      +
      +
    • +
    • +
      +

      setWriteTarget

      +
      public void setWriteTarget(MessageWriteTarget writeTarget)
      +
      Sets the MessageWriteTarget used to write messages to the peer. This should almost never be called, it is + called automatically by NioClient or + NioClientManager once the socket finishes initialization.
      +
      +
      Specified by:
      +
      setWriteTarget in interface StreamConnection
      +
      +
      +
    • +
    • +
      +

      getMaxMessageSize

      +
      public int getMaxMessageSize()
      +
      Description copied from interface: StreamConnection
      +
      Returns the maximum message size of a message on the socket. This is used in calculating size of buffers to + allocate.
      +
      +
      Specified by:
      +
      getMaxMessageSize in interface StreamConnection
      +
      +
      +
    • +
    • +
      +

      getAddress

      +
      public PeerAddress getAddress()
      +
      +
      Returns:
      +
      the IP address and port of peer.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Ping.html b/javadoc/0.16.3/org/bitcoinj/core/Ping.html new file mode 100644 index 000000000..0508be8f9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Ping.html @@ -0,0 +1,250 @@ + + + + +Ping (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Ping

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.Ping
+
+
+
+
+
public class Ping +extends Message
+

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Ping

      +
      public Ping(NetworkParameters params, + byte[] payloadBytes) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Ping

      +
      public Ping(long nonce)
      +
      Create a Ping with a nonce value. + Only use this if the remote node has a protocol version greater than 60000
      +
      +
    • +
    • +
      +

      Ping

      +
      public Ping()
      +
      Create a Ping without a nonce value. + Only use this if the remote node has a protocol version lower than or equal 60000
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Pong.html b/javadoc/0.16.3/org/bitcoinj/core/Pong.html new file mode 100644 index 000000000..feeb2011f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Pong.html @@ -0,0 +1,232 @@ + + + + +Pong (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Pong

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.Pong
+
+
+
+
+
public class Pong +extends Message
+

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Pong

      +
      public Pong(NetworkParameters params, + byte[] payloadBytes) + throws ProtocolException
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Pong

      +
      public Pong(long nonce)
      +
      Create a Pong with a nonce value. + Only use this if the remote node has a protocol version greater than 60000
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PrefixedChecksummedBytes.html b/javadoc/0.16.3/org/bitcoinj/core/PrefixedChecksummedBytes.html new file mode 100644 index 000000000..28196567e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PrefixedChecksummedBytes.html @@ -0,0 +1,282 @@ + + + + +PrefixedChecksummedBytes (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrefixedChecksummedBytes

+
+
java.lang.Object +
org.bitcoinj.core.PrefixedChecksummedBytes
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
Direct Known Subclasses:
+
Address, BIP38PrivateKey, DumpedPrivateKey
+
+
+
public abstract class PrefixedChecksummedBytes +extends Object +implements Serializable, Cloneable
+

+ The following format is often used to represent some type of data (e.g. key or hash of key): +

+ +
+ [prefix] [data bytes] [checksum]
+ 
+

+ and the result is then encoded with some variant of base. This format is most commonly used for addresses and private + keys exported using Bitcoin Core's dumpprivkey command. +

+
+
See Also:
+
+ +
+
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/ProtocolException.html b/javadoc/0.16.3/org/bitcoinj/core/ProtocolException.html new file mode 100644 index 000000000..9789860a0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/ProtocolException.html @@ -0,0 +1,178 @@ + + + + +ProtocolException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ProtocolException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class ProtocolException +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ProtocolException

      +
      public ProtocolException(String msg)
      +
      +
    • +
    • +
      +

      ProtocolException

      +
      public ProtocolException(Exception e)
      +
      +
    • +
    • +
      +

      ProtocolException

      +
      public ProtocolException(String msg, + Exception e)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/PrunedException.html b/javadoc/0.16.3/org/bitcoinj/core/PrunedException.html new file mode 100644 index 000000000..bb35709d6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/PrunedException.html @@ -0,0 +1,182 @@ + + + + +PrunedException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PrunedException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.PrunedException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class PrunedException +extends Exception
+
PrunedException is thrown in cases where a fully verifying node has deleted (pruned) old block data that turned + out to be necessary for handling a re-org. Normally this should never happen unless you're playing with the testnet + as the pruning parameters should be set very conservatively, such that an absolutely enormous re-org would be + required to trigger it.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PrunedException

      +
      public PrunedException(Sha256Hash hash)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.RejectCode.html b/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.RejectCode.html new file mode 100644 index 000000000..2c7b2d7a0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.RejectCode.html @@ -0,0 +1,308 @@ + + + + +RejectMessage.RejectCode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class RejectMessage.RejectCode

+
+
java.lang.Object +
java.lang.Enum<RejectMessage.RejectCode> +
org.bitcoinj.core.RejectMessage.RejectCode
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<RejectMessage.RejectCode>, Constable
+
+
+
Enclosing class:
+
RejectMessage
+
+
+
public static enum RejectMessage.RejectCode +extends Enum<RejectMessage.RejectCode>
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from class java.lang.Enum

    +Enum.EnumDesc<E extends Enum<E>>
    +
    +
  • + +
  • +
    +

    Enum Constant Summary

    +
    Enum Constants
    +
    +
    Enum Constant
    +
    Description
    + +
    +
    The message described a block which was invalid according to hard-coded checkpoint blocks.
    +
    + +
    +
    The message was relayed multiple times or described an object which is in conflict with another.
    +
    + +
    +
    This refers to a specific form of NONSTANDARD transactions, which have an output smaller than some constant + defining them as dust (this is no longer used).
    +
    + +
    +
    The messages described an object which did not have sufficient fee to be relayed further.
    +
    + +
    +
    The message described an invalid object
    +
    + +
    +
    The message was not able to be parsed
    +
    + +
    +
    The message described an object was not standard and was thus not accepted.
    +
    + +
    +
    The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)
    +
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Returns the enum constant of this class with the specified name.
    +
    + + +
    +
    Returns an array containing the constants of this enum class, in +the order they are declared.
    +
    +
    +
    +
    + +
    +

    Methods inherited from class java.lang.Object

    +getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      MALFORMED

      +
      public static final RejectMessage.RejectCode MALFORMED
      +
      The message was not able to be parsed
      +
      +
    • +
    • +
      +

      INVALID

      +
      public static final RejectMessage.RejectCode INVALID
      +
      The message described an invalid object
      +
      +
    • +
    • +
      +

      OBSOLETE

      +
      public static final RejectMessage.RejectCode OBSOLETE
      +
      The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)
      +
      +
    • +
    • +
      +

      DUPLICATE

      +
      public static final RejectMessage.RejectCode DUPLICATE
      +
      The message was relayed multiple times or described an object which is in conflict with another. + This message can describe errors in protocol implementation or the presence of an attempt to DOUBLE SPEND.
      +
      +
    • +
    • +
      +

      NONSTANDARD

      +
      public static final RejectMessage.RejectCode NONSTANDARD
      +
      The message described an object was not standard and was thus not accepted. + Bitcoin Core has a concept of standard transaction forms, which describe scripts and encodings which + it is willing to relay further. Other transactions are neither relayed nor mined, though they are considered + valid if they appear in a block.
      +
      +
    • +
    • +
      +

      DUST

      +
      public static final RejectMessage.RejectCode DUST
      +
      This refers to a specific form of NONSTANDARD transactions, which have an output smaller than some constant + defining them as dust (this is no longer used).
      +
      +
    • +
    • +
      +

      INSUFFICIENTFEE

      +
      public static final RejectMessage.RejectCode INSUFFICIENTFEE
      +
      The messages described an object which did not have sufficient fee to be relayed further.
      +
      +
    • +
    • +
      +

      CHECKPOINT

      +
      public static final RejectMessage.RejectCode CHECKPOINT
      +
      The message described a block which was invalid according to hard-coded checkpoint blocks.
      +
      +
    • +
    • +
      +

      OTHER

      +
      public static final RejectMessage.RejectCode OTHER
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static RejectMessage.RejectCode[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static RejectMessage.RejectCode valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.html b/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.html new file mode 100644 index 000000000..4898a02a5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/RejectMessage.html @@ -0,0 +1,344 @@ + + + + +RejectMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RejectMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.RejectMessage
+
+
+
+
+
public class RejectMessage +extends Message
+

A message sent by nodes when a message we sent was rejected (ie a transaction had too little fee/was invalid/etc).

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      public void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getRejectedMessage

      +
      public String getRejectedMessage()
      +
      Provides the type of message which was rejected by the peer. + Note that this is ENTIRELY UNTRUSTED and should be sanity-checked before it is printed or processed.
      +
      +
    • +
    • +
      +

      getRejectedObjectHash

      +
      public Sha256Hash getRejectedObjectHash()
      +
      Provides the hash of the rejected object (if getRejectedMessage() is either "tx" or "block"), otherwise null.
      +
      +
    • +
    • +
      +

      getReasonCode

      +
      public RejectMessage.RejectCode getReasonCode()
      +
      The reason code given for why the peer rejected the message.
      +
      +
    • +
    • +
      +

      getReasonString

      +
      public String getReasonString()
      +
      The reason message given for rejection. + Note that this is ENTIRELY UNTRUSTED and should be sanity-checked before it is printed or processed.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      A String representation of the relevant details of this reject message. + Be aware that the value returned by this method includes the value returned by + getReasonString, which is taken from the reject message unchecked. + Through malice or otherwise, it might contain control characters or other harmful content.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/RejectedTransactionException.html b/javadoc/0.16.3/org/bitcoinj/core/RejectedTransactionException.html new file mode 100644 index 000000000..460802178 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/RejectedTransactionException.html @@ -0,0 +1,199 @@ + + + + +RejectedTransactionException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RejectedTransactionException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.RejectedTransactionException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class RejectedTransactionException +extends Exception
+
This exception is used by the TransactionBroadcast class to indicate that a broadcast + Transaction has been rejected by the network, for example because it violates a + protocol rule. Note that not all invalid transactions generate a reject message, and + some peers may never do so.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      RejectedTransactionException

      +
      public RejectedTransactionException(Transaction tx, + RejectMessage rejectMessage)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getTransaction

      +
      public Transaction getTransaction()
      +
      Return the original Transaction object whose broadcast was rejected.
      +
      +
    • +
    • +
      +

      getRejectMessage

      +
      public RejectMessage getRejectMessage()
      +
      Return the RejectMessage object representing the broadcast rejection.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/SegwitAddress.html b/javadoc/0.16.3/org/bitcoinj/core/SegwitAddress.html new file mode 100644 index 000000000..58d127d81 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/SegwitAddress.html @@ -0,0 +1,496 @@ + + + + +SegwitAddress (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SegwitAddress

+
+ +
+
+
All Implemented Interfaces:
+
Serializable, Cloneable, Comparable<Address>
+
+
+
public class SegwitAddress +extends Address
+

Implementation of native segwit addresses. They are composed of two parts:

+ +
    +
  • A human-readable part (HRP) which is a string the specifies the network. See + NetworkParameters.getSegwitAddressHrp().
  • +
  • A data part, containing the witness version (encoded as an OP_N operator) and program (encoded by re-arranging + bits into groups of 5).
  • +
+ +

See BIP350 and + BIP173 for details.

+ +

However, you don't need to care about the internals. Use fromBech32(NetworkParameters, String), + fromHash(NetworkParameters, byte[]) or fromKey(NetworkParameters, ECKey) to construct a native + segwit address.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      WITNESS_PROGRAM_LENGTH_PKH

      +
      public static final int WITNESS_PROGRAM_LENGTH_PKH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WITNESS_PROGRAM_LENGTH_SH

      +
      public static final int WITNESS_PROGRAM_LENGTH_SH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WITNESS_PROGRAM_LENGTH_TR

      +
      public static final int WITNESS_PROGRAM_LENGTH_TR
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WITNESS_PROGRAM_MIN_LENGTH

      +
      public static final int WITNESS_PROGRAM_MIN_LENGTH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WITNESS_PROGRAM_MAX_LENGTH

      +
      public static final int WITNESS_PROGRAM_MAX_LENGTH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getWitnessVersion

      +
      public int getWitnessVersion()
      +
      Returns the witness version in decoded form. Only versions 0 and 1 are in use right now.
      +
      +
      Returns:
      +
      witness version, between 0 and 16
      +
      +
      +
    • +
    • +
      +

      getWitnessProgram

      +
      public byte[] getWitnessProgram()
      +
      Returns the witness program in decoded form.
      +
      +
      Returns:
      +
      witness program
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public byte[] getHash()
      +
      Description copied from class: Address
      +
      Get either the public key hash or script hash that is encoded in the address.
      +
      +
      Specified by:
      +
      getHash in class Address
      +
      Returns:
      +
      hash that is encoded in the address
      +
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      public Script.ScriptType getOutputScriptType()
      +
      Get the type of output script that will be used for sending to the address. This is either + Script.ScriptType.P2WPKH or Script.ScriptType.P2WSH.
      +
      +
      Specified by:
      +
      getOutputScriptType in class Address
      +
      Returns:
      +
      type of output script
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      fromBech32

      +
      public static SegwitAddress fromBech32(@Nullable + NetworkParameters params, + String bech32) + throws AddressFormatException
      +
      Construct a SegwitAddress from its textual form.
      +
      +
      Parameters:
      +
      params - expected network this address is valid for, or null if the network should be derived from the bech32
      +
      bech32 - bech32-encoded textual form of the address
      +
      Returns:
      +
      constructed address
      +
      Throws:
      +
      AddressFormatException - if something about the given bech32 address isn't right
      +
      +
      +
    • +
    • +
      +

      fromHash

      +
      public static SegwitAddress fromHash(NetworkParameters params, + byte[] hash)
      +
      Construct a SegwitAddress that represents the given hash, which is either a pubkey hash or a script hash. + The resulting address will be either a P2WPKH or a P2WSH type of address.
      +
      +
      Parameters:
      +
      params - network this address is valid for
      +
      hash - 20-byte pubkey hash or 32-byte script hash
      +
      Returns:
      +
      constructed address
      +
      +
      +
    • +
    • +
      +

      fromProgram

      +
      public static SegwitAddress fromProgram(NetworkParameters params, + int witnessVersion, + byte[] witnessProgram)
      +
      Construct a SegwitAddress that represents the given program, which is either a pubkey, a pubkey hash + or a script hash – depending on the script version. The resulting address will be either a P2WPKH, a P2WSH or + a P2TR type of address.
      +
      +
      Parameters:
      +
      params - network this address is valid for
      +
      witnessVersion - version number between 0 and 16
      +
      witnessProgram - version dependent witness program
      +
      Returns:
      +
      constructed address
      +
      +
      +
    • +
    • +
      +

      fromKey

      +
      public static SegwitAddress fromKey(NetworkParameters params, + ECKey key)
      +
      Construct a SegwitAddress that represents the public part of the given ECKey. Note that an + address is derived from a hash of the public key and is not the public key itself.
      +
      +
      Parameters:
      +
      params - network this address is valid for
      +
      key - only the public part is used
      +
      Returns:
      +
      constructed address
      +
      +
      +
    • +
    • +
      +

      toBech32

      +
      public String toBech32()
      +
      Returns the textual form of the address.
      +
      +
      Returns:
      +
      textual form encoded in bech32
      +
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(Address o)
      +
      Comparison field order for addresses is: +
        +
      1. NetworkParameters.getId()
      2. +
      3. Legacy vs. Segwit
      4. +
      5. (Legacy only) Version byte
      6. +
      7. remaining bytes
      8. +
      +

      + Implementations may use compareAddressPartial for tests 1 and 2.

      +
      +
      Specified by:
      +
      compareTo in interface Comparable<Address>
      +
      Specified by:
      +
      compareTo in class Address
      +
      Parameters:
      +
      o - other Address object
      +
      Returns:
      +
      comparison result
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/SendAddrV2Message.html b/javadoc/0.16.3/org/bitcoinj/core/SendAddrV2Message.html new file mode 100644 index 000000000..044e61b4a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/SendAddrV2Message.html @@ -0,0 +1,153 @@ + + + + +SendAddrV2Message (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SendAddrV2Message

+
+ +
+
+
public class SendAddrV2Message +extends EmptyMessage
+

Represents the sendaddrv2 P2P protocol message, which indicates that a node can understand and prefers + to receive addrv2 messages instead of addr messages.

+ +

See BIP155 for details.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/SendHeadersMessage.html b/javadoc/0.16.3/org/bitcoinj/core/SendHeadersMessage.html new file mode 100644 index 000000000..c423adb25 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/SendHeadersMessage.html @@ -0,0 +1,165 @@ + + + + +SendHeadersMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SendHeadersMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.EmptyMessage +
org.bitcoinj.core.SendHeadersMessage
+
+
+
+
+
+
public class SendHeadersMessage +extends EmptyMessage
+

+ A new message, "sendheaders", which indicates that a node prefers to receive new block announcements via a "headers" + message rather than an "inv". +

+ +

+ See BIP 130. +

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      SendHeadersMessage

      +
      public SendHeadersMessage()
      +
      +
    • +
    • +
      +

      SendHeadersMessage

      +
      public SendHeadersMessage(NetworkParameters params, + byte[] payload)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Sha256Hash.html b/javadoc/0.16.3/org/bitcoinj/core/Sha256Hash.html new file mode 100644 index 000000000..86afe30a5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Sha256Hash.html @@ -0,0 +1,565 @@ + + + + +Sha256Hash (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Sha256Hash

+
+
java.lang.Object +
org.bitcoinj.core.Sha256Hash
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Sha256Hash>
+
+
+
public class Sha256Hash +extends Object +implements Serializable, Comparable<Sha256Hash>
+
A Sha256Hash wraps a byte[] so that equals(java.lang.Object) and hashCode() work correctly, allowing it to be used as a key in a + map. It also checks that the length is correct (equal to LENGTH) and provides a bit more type safety. +

+ Given that Sha256Hash instances can be created using wrapReversed(byte[]) or twiceOf(byte[]) or by wrapping raw bytes, there is no guarantee that if two Sha256Hash instances are found equal (via equals(Object)) that their preimages would be the same (even in the absence of a hash collision.)

+
+
See Also:
+
+ +
+
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final Sha256Hash
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
     
    +
    boolean
    + +
     
    +
    byte[]
    + +
    +
    Returns the internal byte array, without defensively copying.
    +
    +
    byte[]
    + +
    +
    Returns a reversed copy of the internal byte array.
    +
    +
    static byte[]
    +
    hash(byte[] input)
    +
    +
    Calculates the SHA-256 hash of the given bytes.
    +
    +
    static byte[]
    +
    hash(byte[] input, + int offset, + int length)
    +
    +
    Calculates the SHA-256 hash of the given byte range.
    +
    +
    int
    + +
    +
    Returns the last four bytes of the wrapped hash.
    +
    +
    static byte[]
    +
    hashTwice(byte[] input)
    +
    +
    Calculates the SHA-256 hash of the given bytes, + and then hashes the resulting hash again.
    +
    +
    static byte[]
    +
    hashTwice(byte[] input1, + byte[] input2)
    +
    +
    Calculates the hash of hash on the given chunks of bytes.
    +
    +
    static byte[]
    +
    hashTwice(byte[] input, + int offset, + int length)
    +
    +
    Calculates the SHA-256 hash of the given byte range, + and then hashes the resulting hash again.
    +
    +
    static byte[]
    +
    hashTwice(byte[] input1, + int offset1, + int length1, + byte[] input2, + int offset2, + int length2)
    +
    +
    Calculates the hash of hash on the given byte ranges.
    +
    + + +
    +
    Returns a new SHA-256 MessageDigest instance.
    +
    +
    static Sha256Hash
    +
    of(byte[] contents)
    +
    +
    Creates a new instance containing the calculated (one-time) hash of the given bytes.
    +
    +
    static Sha256Hash
    +
    of(File file)
    +
    +
    Creates a new instance containing the calculated (one-time) hash of the given file's contents.
    +
    + + +
    +
    Returns the bytes interpreted as a positive integer.
    +
    + + +
     
    +
    static Sha256Hash
    +
    twiceOf(byte[] contents)
    +
    +
    Creates a new instance containing the hash of the calculated hash of the given bytes.
    +
    +
    static Sha256Hash
    +
    twiceOf(byte[] content1, + byte[] content2)
    +
    +
    Creates a new instance containing the hash of the calculated hash of the given bytes.
    +
    +
    static Sha256Hash
    +
    wrap(byte[] rawHashBytes)
    +
    +
    Creates a new instance that wraps the given hash value.
    +
    +
    static Sha256Hash
    +
    wrap(String hexString)
    +
    +
    Creates a new instance that wraps the given hash value (represented as a hex string).
    +
    +
    static Sha256Hash
    +
    wrapReversed(byte[] rawHashBytes)
    +
    +
    Creates a new instance that wraps the given hash value, but with byte order reversed.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      LENGTH

      +
      public static final int LENGTH
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ZERO_HASH

      +
      public static final Sha256Hash ZERO_HASH
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      wrap

      +
      public static Sha256Hash wrap(byte[] rawHashBytes)
      +
      Creates a new instance that wraps the given hash value.
      +
      +
      Parameters:
      +
      rawHashBytes - the raw hash bytes to wrap
      +
      Returns:
      +
      a new instance
      +
      Throws:
      +
      IllegalArgumentException - if the given array length is not exactly 32
      +
      +
      +
    • +
    • +
      +

      wrap

      +
      public static Sha256Hash wrap(String hexString)
      +
      Creates a new instance that wraps the given hash value (represented as a hex string).
      +
      +
      Parameters:
      +
      hexString - a hash value represented as a hex string
      +
      Returns:
      +
      a new instance
      +
      Throws:
      +
      IllegalArgumentException - if the given string is not a valid + hex string, or if it does not represent exactly 32 bytes
      +
      +
      +
    • +
    • +
      +

      wrapReversed

      +
      public static Sha256Hash wrapReversed(byte[] rawHashBytes)
      +
      Creates a new instance that wraps the given hash value, but with byte order reversed.
      +
      +
      Parameters:
      +
      rawHashBytes - the raw hash bytes to wrap
      +
      Returns:
      +
      a new instance
      +
      Throws:
      +
      IllegalArgumentException - if the given array length is not exactly 32
      +
      +
      +
    • +
    • +
      +

      of

      +
      public static Sha256Hash of(byte[] contents)
      +
      Creates a new instance containing the calculated (one-time) hash of the given bytes.
      +
      +
      Parameters:
      +
      contents - the bytes on which the hash value is calculated
      +
      Returns:
      +
      a new instance containing the calculated (one-time) hash
      +
      +
      +
    • +
    • +
      +

      twiceOf

      +
      public static Sha256Hash twiceOf(byte[] contents)
      +
      Creates a new instance containing the hash of the calculated hash of the given bytes.
      +
      +
      Parameters:
      +
      contents - the bytes on which the hash value is calculated
      +
      Returns:
      +
      a new instance containing the calculated (two-time) hash
      +
      +
      +
    • +
    • +
      +

      twiceOf

      +
      public static Sha256Hash twiceOf(byte[] content1, + byte[] content2)
      +
      Creates a new instance containing the hash of the calculated hash of the given bytes.
      +
      +
      Parameters:
      +
      content1 - first bytes on which the hash value is calculated
      +
      content2 - second bytes on which the hash value is calculated
      +
      Returns:
      +
      a new instance containing the calculated (two-time) hash
      +
      +
      +
    • +
    • +
      +

      of

      +
      public static Sha256Hash of(File file) + throws IOException
      +
      Creates a new instance containing the calculated (one-time) hash of the given file's contents. + + The file contents are read fully into memory, so this method should only be used with small files.
      +
      +
      Parameters:
      +
      file - the file on which the hash value is calculated
      +
      Returns:
      +
      a new instance containing the calculated (one-time) hash
      +
      Throws:
      +
      IOException - if an error occurs while reading the file
      +
      +
      +
    • +
    • +
      +

      newDigest

      +
      public static MessageDigest newDigest()
      +
      Returns a new SHA-256 MessageDigest instance. + + This is a convenience method which wraps the checked + exception that can never occur with a RuntimeException.
      +
      +
      Returns:
      +
      a new SHA-256 MessageDigest instance
      +
      +
      +
    • +
    • +
      +

      hash

      +
      public static byte[] hash(byte[] input)
      +
      Calculates the SHA-256 hash of the given bytes.
      +
      +
      Parameters:
      +
      input - the bytes to hash
      +
      Returns:
      +
      the hash (in big-endian order)
      +
      +
      +
    • +
    • +
      +

      hash

      +
      public static byte[] hash(byte[] input, + int offset, + int length)
      +
      Calculates the SHA-256 hash of the given byte range.
      +
      +
      Parameters:
      +
      input - the array containing the bytes to hash
      +
      offset - the offset within the array of the bytes to hash
      +
      length - the number of bytes to hash
      +
      Returns:
      +
      the hash (in big-endian order)
      +
      +
      +
    • +
    • +
      +

      hashTwice

      +
      public static byte[] hashTwice(byte[] input)
      +
      Calculates the SHA-256 hash of the given bytes, + and then hashes the resulting hash again.
      +
      +
      Parameters:
      +
      input - the bytes to hash
      +
      Returns:
      +
      the double-hash (in big-endian order)
      +
      +
      +
    • +
    • +
      +

      hashTwice

      +
      public static byte[] hashTwice(byte[] input1, + byte[] input2)
      +
      Calculates the hash of hash on the given chunks of bytes. This is equivalent to concatenating the two + chunks and then passing the result to hashTwice(byte[]).
      +
      +
    • +
    • +
      +

      hashTwice

      +
      public static byte[] hashTwice(byte[] input, + int offset, + int length)
      +
      Calculates the SHA-256 hash of the given byte range, + and then hashes the resulting hash again.
      +
      +
      Parameters:
      +
      input - the array containing the bytes to hash
      +
      offset - the offset within the array of the bytes to hash
      +
      length - the number of bytes to hash
      +
      Returns:
      +
      the double-hash (in big-endian order)
      +
      +
      +
    • +
    • +
      +

      hashTwice

      +
      public static byte[] hashTwice(byte[] input1, + int offset1, + int length1, + byte[] input2, + int offset2, + int length2)
      +
      Calculates the hash of hash on the given byte ranges. This is equivalent to + concatenating the two ranges and then passing the result to hashTwice(byte[]).
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      Returns the last four bytes of the wrapped hash. This should be unique enough to be a suitable hash code even for + blocks, where the goal is to try and get the first bytes to be zeros (i.e. the value as a big integer lower + than the target value).
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toBigInteger

      +
      public BigInteger toBigInteger()
      +
      Returns the bytes interpreted as a positive integer.
      +
      +
    • +
    • +
      +

      getBytes

      +
      public byte[] getBytes()
      +
      Returns the internal byte array, without defensively copying. Therefore do NOT modify the returned array.
      +
      +
    • +
    • +
      +

      getReversedBytes

      +
      public byte[] getReversedBytes()
      +
      Returns a reversed copy of the internal byte array.
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(Sha256Hash other)
      +
      +
      Specified by:
      +
      compareTo in interface Comparable<Sha256Hash>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/SignatureDecodeException.html b/javadoc/0.16.3/org/bitcoinj/core/SignatureDecodeException.html new file mode 100644 index 000000000..64792807f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/SignatureDecodeException.html @@ -0,0 +1,173 @@ + + + + +SignatureDecodeException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SignatureDecodeException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.SignatureDecodeException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class SignatureDecodeException +extends Exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      SignatureDecodeException

      +
      public SignatureDecodeException()
      +
      +
    • +
    • +
      +

      SignatureDecodeException

      +
      public SignatureDecodeException(String message)
      +
      +
    • +
    • +
      +

      SignatureDecodeException

      +
      public SignatureDecodeException(Throwable cause)
      +
      +
    • +
    • +
      +

      SignatureDecodeException

      +
      public SignatureDecodeException(String message, + Throwable cause)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/StoredBlock.html b/javadoc/0.16.3/org/bitcoinj/core/StoredBlock.html new file mode 100644 index 000000000..da61d13de --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/StoredBlock.html @@ -0,0 +1,364 @@ + + + + +StoredBlock (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StoredBlock

+
+
java.lang.Object +
org.bitcoinj.core.StoredBlock
+
+
+
+
public class StoredBlock +extends Object
+
Wraps a Block object with extra data that can be derived from the block chain but is slow or inconvenient to + calculate. By storing it alongside the block header we reduce the amount of work required significantly. + Recalculation is slow because the fields are cumulative - to find the chainWork you have to iterate over every + block in the chain back to the genesis block, which involves lots of seeking/loading etc. So we just keep a + running total: it's a disk space vs cpu/io tradeoff.

+ + StoredBlocks are put inside a BlockStore which saves them to memory or disk.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      COMPACT_SERIALIZED_SIZE

      +
      public static final int COMPACT_SERIALIZED_SIZE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      StoredBlock

      +
      public StoredBlock(Block header, + BigInteger chainWork, + int height)
      +
      Create a StoredBlock from a (header-only) Block, chain work value, and block height
      +
      +
      Parameters:
      +
      header - A Block object with only a header (no transactions should be included)
      +
      chainWork - Calculated chainWork for this block
      +
      height - block height for this block
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getHeader

      +
      public Block getHeader()
      +
      The block header this object wraps. The referenced block object must not have any transactions in it.
      +
      +
    • +
    • +
      +

      getChainWork

      +
      public BigInteger getChainWork()
      +
      The total sum of work done in this block, and all the blocks below it in the chain. Work is a measure of how + many tries are needed to solve a block. If the target is set to cover 10% of the total hash value space, + then the work represented by a block is 10.
      +
      +
    • +
    • +
      +

      getHeight

      +
      public int getHeight()
      +
      Position in the chain for this block. The genesis block has a height of zero.
      +
      +
    • +
    • +
      +

      moreWorkThan

      +
      public boolean moreWorkThan(StoredBlock other)
      +
      Returns true if this objects chainWork is higher than the others.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      build

      +
      public StoredBlock build(Block block) + throws VerificationException
      +
      Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      getPrev

      +
      public StoredBlock getPrev(BlockStore store) + throws BlockStoreException
      +
      Given a block store, looks up the previous block in this chain. Convenience method for doing + store.get(this.getHeader().getPrevBlockHash()).
      +
      +
      Returns:
      +
      the previous block in the chain or null if it was not found in the store.
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      serializeCompact

      +
      public void serializeCompact(ByteBuffer buffer)
      +
      Serializes the stored block to a custom packed format. Used by CheckpointManager.
      +
      +
    • +
    • +
      +

      deserializeCompact

      +
      public static StoredBlock deserializeCompact(NetworkParameters params, + ByteBuffer buffer) + throws ProtocolException
      +
      De-serializes the stored block from a custom packed format. Used by CheckpointManager.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/StoredUndoableBlock.html b/javadoc/0.16.3/org/bitcoinj/core/StoredUndoableBlock.html new file mode 100644 index 000000000..00e267e91 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/StoredUndoableBlock.html @@ -0,0 +1,244 @@ + + + + +StoredUndoableBlock (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class StoredUndoableBlock

+
+
java.lang.Object +
org.bitcoinj.core.StoredUndoableBlock
+
+
+
+
public class StoredUndoableBlock +extends Object
+
Contains minimal data necessary to disconnect/connect the transactions + in the stored block at will. Can either store the full set of + transactions (if the inputs for the block have not been tested to work) + or the set of transaction outputs created/destroyed when the block is + connected.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getTxOutChanges

      +
      public TransactionOutputChanges getTxOutChanges()
      +
      Get the transaction output changes if they have been calculated, otherwise null. + Only one of this and getTransactions() will return a non-null value.
      +
      +
    • +
    • +
      +

      getTransactions

      +
      public List<Transaction> getTransactions()
      +
      Get the full list of transactions if it is stored, otherwise null. + Only one of this and getTxOutChanges() will return a non-null value.
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      Get the hash of the represented block
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Transaction.Purpose.html b/javadoc/0.16.3/org/bitcoinj/core/Transaction.Purpose.html new file mode 100644 index 000000000..e136298c1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Transaction.Purpose.html @@ -0,0 +1,285 @@ + + + + +Transaction.Purpose (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Transaction.Purpose

+
+
java.lang.Object +
java.lang.Enum<Transaction.Purpose> +
org.bitcoinj.core.Transaction.Purpose
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Transaction.Purpose>, Constable
+
+
+
Enclosing class:
+
Transaction
+
+
+
public static enum Transaction.Purpose +extends Enum<Transaction.Purpose>
+
This enum describes the underlying reason the transaction was created. It's useful for rendering wallet GUIs + more appropriately.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      UNKNOWN

      +
      public static final Transaction.Purpose UNKNOWN
      +
      Used when the purpose of a transaction is genuinely unknown.
      +
      +
    • +
    • +
      +

      USER_PAYMENT

      +
      public static final Transaction.Purpose USER_PAYMENT
      +
      Transaction created to satisfy a user payment request.
      +
      +
    • +
    • +
      +

      KEY_ROTATION

      +
      public static final Transaction.Purpose KEY_ROTATION
      +
      Transaction automatically created and broadcast in order to reallocate money from old to new keys.
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_CLAIM

      +
      public static final Transaction.Purpose ASSURANCE_CONTRACT_CLAIM
      +
      Transaction that uses up pledges to an assurance contract
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_PLEDGE

      +
      public static final Transaction.Purpose ASSURANCE_CONTRACT_PLEDGE
      +
      Transaction that makes a pledge to an assurance contract.
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_STUB

      +
      public static final Transaction.Purpose ASSURANCE_CONTRACT_STUB
      +
      Send-to-self transaction that exists just to create an output of the right size we can pledge.
      +
      +
    • +
    • +
      +

      RAISE_FEE

      +
      public static final Transaction.Purpose RAISE_FEE
      +
      Raise fee, e.g. child-pays-for-parent.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Transaction.Purpose[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Transaction.Purpose valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Transaction.SigHash.html b/javadoc/0.16.3/org/bitcoinj/core/Transaction.SigHash.html new file mode 100644 index 000000000..aa58d5734 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Transaction.SigHash.html @@ -0,0 +1,314 @@ + + + + +Transaction.SigHash (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Transaction.SigHash

+
+
java.lang.Object +
java.lang.Enum<Transaction.SigHash> +
org.bitcoinj.core.Transaction.SigHash
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Transaction.SigHash>, Constable
+
+
+
Enclosing class:
+
Transaction
+
+
+
public static enum Transaction.SigHash +extends Enum<Transaction.SigHash>
+
These constants are a part of a scriptSig signature on the inputs. They define the details of how a + transaction can be redeemed, specifically, they control how the hash of the transaction is calculated.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      value

      +
      public final int value
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Transaction.SigHash[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Transaction.SigHash valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      byteValue

      +
      public byte byteValue()
      +
      +
      Returns:
      +
      the value as a byte
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Transaction.html b/javadoc/0.16.3/org/bitcoinj/core/Transaction.html new file mode 100644 index 000000000..0e9d4ce17 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Transaction.html @@ -0,0 +1,2138 @@ + + + + +Transaction (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Transaction

+
+ +
+
+
public class Transaction +extends ChildMessage
+

A transaction represents the movement of coins from some addresses to some other addresses. It can also represent + the minting of new coins. A Transaction object corresponds to the equivalent in the Bitcoin C++ implementation.

+ +

Transactions are the fundamental atoms of Bitcoin and have many powerful features. Read + "Working with transactions" in the + documentation to learn more about how to use this class.

+ +

All Bitcoin transactions are at risk of being reversed, though the risk is much less than with traditional payment + systems. Transactions have confidence levels, which help you decide whether to trust a transaction or not. + Whether to trust a transaction is something that needs to be decided on a case by case basis - a rule that makes + sense for selling MP3s might not make sense for selling cars, or accepting payments from a family member. If you + are building a wallet, how to present confidence to your users is something to consider carefully.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SORT_TX_BY_UPDATE_TIME

      +
      public static final Comparator<Transaction> SORT_TX_BY_UPDATE_TIME
      +
      A comparator that can be used to sort transactions by their updateTime field. The ordering goes from most recent + into the past.
      +
      +
    • +
    • +
      +

      SORT_TX_BY_HEIGHT

      +
      public static final Comparator<Transaction> SORT_TX_BY_HEIGHT
      +
      A comparator that can be used to sort transactions by their chain height.
      +
      +
    • +
    • +
      +

      SERIALIZE_TRANSACTION_NO_WITNESS

      +
      public static final int SERIALIZE_TRANSACTION_NO_WITNESS
      +
      When this bit is set in protocolVersion, do not include witness. The actual value is the same as in Bitcoin Core + for consistency.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LOCKTIME_THRESHOLD

      +
      public static final int LOCKTIME_THRESHOLD
      +
      Threshold for lockTime: below this value it is interpreted as block number, otherwise as timestamp.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LOCKTIME_THRESHOLD_BIG

      +
      public static final BigInteger LOCKTIME_THRESHOLD_BIG
      +
      Same but as a BigInteger for CHECKLOCKTIMEVERIFY
      +
      +
    • +
    • +
      +

      MAX_STANDARD_TX_SIZE

      +
      public static final int MAX_STANDARD_TX_SIZE
      +
      How many bytes a transaction can be before it won't be relayed anymore. Currently 100kb.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      REFERENCE_DEFAULT_MIN_TX_FEE

      +
      public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE
      +
      If feePerKb is lower than this, Bitcoin Core will treat it as if there were no fee.
      +
      +
    • +
    • +
      +

      DEFAULT_TX_FEE

      +
      public static final Coin DEFAULT_TX_FEE
      +
      If using this feePerKb, transactions will get confirmed within the next couple of blocks. + This should be adjusted from time to time. Last adjustment: February 2017.
      +
      +
    • +
    • +
      +

      MIN_NONDUST_OUTPUT

      +
      @Deprecated +public static final Coin MIN_NONDUST_OUTPUT
      + +
      +
    • +
    • +
      +

      SIGHASH_ANYONECANPAY_VALUE

      +
      public static final byte SIGHASH_ANYONECANPAY_VALUE
      +
      Deprecated. +
      Instead use SigHash.ANYONECANPAY.value or SigHash.ANYONECANPAY.byteValue() as appropriate.
      +
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Transaction

      +
      public Transaction(NetworkParameters params)
      +
      +
    • +
    • +
      +

      Transaction

      +
      public Transaction(NetworkParameters params, + byte[] payloadBytes) + throws ProtocolException
      +
      Creates a transaction from the given serialized bytes, eg, from a block or a tx network message.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Transaction

      +
      public Transaction(NetworkParameters params, + byte[] payload, + int offset) + throws ProtocolException
      +
      Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Transaction

      +
      public Transaction(NetworkParameters params, + byte[] payload, + int offset, + @Nullable + Message parent, + MessageSerializer setSerializer, + int length, + @Nullable + byte[] hashFromHeader) + throws ProtocolException
      +
      Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      parent - The parent of the transaction.
      +
      setSerializer - The serializer to use for this transaction.
      +
      length - The length of message if known. Usually this is provided when deserializing of the wire + as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH
      +
      hashFromHeader - Used by BitcoinSerializer. The serializer has to calculate a hash for checksumming so to + avoid wasting the considerable effort a set method is provided so the serializer can set it. No verification + is performed on this hash.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      Transaction

      +
      public Transaction(NetworkParameters params, + byte[] payload, + @Nullable + Message parent, + MessageSerializer setSerializer, + int length) + throws ProtocolException
      +
      Creates a transaction by reading payload. Length of a transaction is fixed.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getHash

      +
      @Deprecated +public Sha256Hash getHash()
      +
      Deprecated. + +
      +
      Description copied from class: Message
      +
      This method is a NOP for all classes except Block and Transaction. It is only declared in Message + so BitcoinSerializer can avoid 2 instanceof checks + a casting.
      +
      +
      Overrides:
      +
      getHash in class Message
      +
      +
      +
    • +
    • +
      +

      getHashAsString

      +
      @Deprecated +public String getHashAsString()
      +
      Deprecated. +
      use getTxId().toString()
      +
      +
      +
    • +
    • +
      +

      getTxId

      +
      public Sha256Hash getTxId()
      +
      Returns the transaction id as you see them in block explorers. It is used as a reference by transaction inputs + via outpoints.
      +
      +
    • +
    • +
      +

      getWTxId

      +
      public Sha256Hash getWTxId()
      +
      Returns the witness transaction id (aka witness id) as per BIP144. For transactions without witness, this is the + same as getTxId().
      +
      +
    • +
    • +
      +

      getWeight

      +
      public int getWeight()
      +
      Gets the transaction weight as defined in BIP141.
      +
      +
    • +
    • +
      +

      getVsize

      +
      public int getVsize()
      +
      Gets the virtual transaction size as defined in BIP141.
      +
      +
    • +
    • +
      +

      getInputSum

      +
      public Coin getInputSum()
      +
      Gets the sum of the inputs, regardless of who owns them.
      +
      +
    • +
    • +
      +

      getValueSentToMe

      +
      public Coin getValueSentToMe(TransactionBag transactionBag)
      +
      Calculates the sum of the outputs that are sending coins to a key in the wallet.
      +
      +
    • +
    • +
      +

      getAppearsInHashes

      +
      @Nullable +public Map<Sha256Hash,Integer> getAppearsInHashes()
      +
      Returns a map of block [hashes] which contain the transaction mapped to relativity counters, or null if this + transaction doesn't have that data because it's not stored in the wallet or because it has never appeared in a + block.
      +
      +
    • +
    • +
      +

      isPending

      +
      public boolean isPending()
      +
      Convenience wrapper around getConfidence().getConfidenceType()
      +
      +
      Returns:
      +
      true if this transaction hasn't been seen in any block yet.
      +
      +
      +
    • +
    • +
      +

      setBlockAppearance

      +
      public void setBlockAppearance(StoredBlock block, + boolean bestChain, + int relativityOffset)
      +

      Puts the given block in the internal set of blocks in which this transaction appears. This is + used by the wallet to ensure transactions that appear on side chains are recorded properly even though the + block stores do not save the transaction data at all.

      + +

      If there is a re-org this will be called once for each block that was previously seen, to update which block + is the best chain. The best chain block is guaranteed to be called last. So this must be idempotent.

      + +

      Sets updatedAt to be the earliest valid block time where this tx was seen.

      +
      +
      Parameters:
      +
      block - The StoredBlock in which the transaction has appeared.
      +
      bestChain - whether to set the updatedAt timestamp from the block header (only if not already set)
      +
      relativityOffset - A number that disambiguates the order of transactions within a block.
      +
      +
      +
    • +
    • +
      +

      addBlockAppearance

      +
      public void addBlockAppearance(Sha256Hash blockHash, + int relativityOffset)
      +
      +
    • +
    • +
      +

      getValueSentFromMe

      +
      public Coin getValueSentFromMe(TransactionBag wallet) + throws ScriptException
      +
      Calculates the sum of the inputs that are spending coins with keys in the wallet. This requires the + transactions sending coins to those keys to be in the wallet. This method will not attempt to download the + blocks containing the input transactions if the key is in the wallet but the transactions are not.
      +
      +
      Returns:
      +
      sum of the inputs that are spending coins with keys in the wallet
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getOutputSum

      +
      public Coin getOutputSum()
      +
      Gets the sum of the outputs of the transaction. If the outputs are less than the inputs, it does not count the fee.
      +
      +
      Returns:
      +
      the sum of the outputs regardless of who owns them.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public Coin getValue(TransactionBag wallet) + throws ScriptException
      + +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getFee

      +
      public Coin getFee()
      +
      The transaction fee is the difference of the value of all inputs and the value of all outputs. Currently, the fee + can only be determined for transactions created by us.
      +
      +
      Returns:
      +
      fee, or null if it cannot be determined
      +
      +
      +
    • +
    • +
      +

      isAnyOutputSpent

      +
      public boolean isAnyOutputSpent()
      +
      Returns true if any of the outputs is marked as spent.
      +
      +
    • +
    • +
      +

      isEveryOwnedOutputSpent

      +
      public boolean isEveryOwnedOutputSpent(TransactionBag transactionBag)
      +
      Returns false if this transaction has at least one output that is owned by the given wallet and unspent, true + otherwise.
      +
      +
    • +
    • +
      +

      getUpdateTime

      +
      public Date getUpdateTime()
      +
      Returns the earliest time at which the transaction was seen (broadcast or included into the chain), + or the epoch if that information isn't available.
      +
      +
    • +
    • +
      +

      setUpdateTime

      +
      public void setUpdateTime(Date updatedAt)
      +
      +
    • +
    • +
      +

      unCache

      +
      protected void unCache()
      +
      Description copied from class: Message
      +

      To be called before any change of internal values including any setters. This ensures any cached byte array is + removed.

      +

      Child messages of this object(e.g. Transactions belonging to a Block) will not have their internal byte caches + invalidated unless they are also modified internally.

      +
      +
      Overrides:
      +
      unCache in class ChildMessage
      +
      +
      +
    • +
    • +
      +

      calcLength

      +
      protected static int calcLength(byte[] buf, + int offset)
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      Deserialize according to BIP144 or + the classic format, depending on if the + transaction is segwit or not.
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      hasWitnesses

      +
      public boolean hasWitnesses()
      +
      +
      Returns:
      +
      true of the transaction has any witnesses in any of its inputs
      +
      +
      +
    • +
    • +
      +

      getOptimalEncodingMessageSize

      +
      public int getOptimalEncodingMessageSize()
      +
      +
    • +
    • +
      +

      getMessageSizeForPriorityCalc

      +
      public int getMessageSizeForPriorityCalc()
      +
      The priority (coin age) calculation doesn't use the regular message size, but rather one adjusted downwards + for the number of inputs. The goal is to incentivise cleaning up the UTXO set with free transactions, if one + can do so.
      +
      +
    • +
    • +
      +

      isCoinBase

      +
      public boolean isCoinBase()
      +
      A coinbase transaction is one that creates a new coin. They are the first transaction in each block and their + value is determined by a formula that all implementations of Bitcoin share. In 2011 the value of a coinbase + transaction is 50 coins, but in future it will be less. A coinbase transaction is defined not only by its + position in a block but by the data in the inputs.
      +
      +
    • +
    • +
      +

      isMature

      +
      public boolean isMature()
      +
      A transaction is mature if it is either a building coinbase tx that is as deep or deeper than the required coinbase depth, or a non-coinbase tx.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString(@Nullable + AbstractBlockChain chain, + @Nullable + CharSequence indent)
      +
      A human readable version of the transaction useful for debugging. The format is not guaranteed to be stable.
      +
      +
      Parameters:
      +
      chain - If provided, will be used to estimate lock times (if set). Can be null.
      +
      +
      +
    • +
    • +
      +

      toHexString

      +
      public String toHexString()
      +
      Serializes the transaction into the Bitcoin network format and encodes it as hex string.
      +
      +
      Returns:
      +
      raw transaction in hex format
      +
      +
      +
    • +
    • +
      +

      clearInputs

      +
      public void clearInputs()
      +
      Removes all the inputs from this transaction. + Note that this also invalidates the length attribute
      +
      +
    • +
    • +
      +

      addInput

      +
      public TransactionInput addInput(TransactionOutput from)
      +
      Adds an input to this transaction that imports value from the given output. Note that this input is not + complete and after every input is added with addInput(TransactionInput) and every output is added with + addOutput(TransactionOutput), a TransactionSigner must be used to finalize the transaction and finish the inputs + off. Otherwise it won't be accepted by the network.
      +
      +
      Returns:
      +
      the newly created input.
      +
      +
      +
    • +
    • +
      +

      addInput

      +
      public TransactionInput addInput(TransactionInput input)
      +
      Adds an input directly, with no checking that it's valid.
      +
      +
      Returns:
      +
      the new input.
      +
      +
      +
    • +
    • +
      +

      addInput

      +
      public TransactionInput addInput(Sha256Hash spendTxHash, + long outputIndex, + Script script)
      +
      Creates and adds an input to this transaction, with no checking that it's valid.
      +
      +
      Returns:
      +
      the newly created input.
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutPoint prevOut, + Script scriptPubKey, + Coin amount, + ECKey sigKey, + Transaction.SigHash sigHash, + boolean anyoneCanPay) + throws ScriptException
      +
      Adds a new and fully signed input for the given parameters. Note that this method is not thread safe + and requires external synchronization. Please refer to general documentation on Bitcoin scripting and contracts + to understand the values of sigHash and anyoneCanPay: otherwise you can use the other form of this method + that sets them to typical defaults.
      +
      +
      Parameters:
      +
      prevOut - A reference to the output being spent
      +
      scriptPubKey - The scriptPubKey of the output
      +
      amount - The amount of the output (which is part of the signature hash for segwit)
      +
      sigKey - The signing key
      +
      sigHash - enum specifying how the transaction hash is calculated
      +
      anyoneCanPay - anyone-can-pay hashing
      +
      Returns:
      +
      The newly created input
      +
      Throws:
      +
      ScriptException - if the scriptPubKey is something we don't know how to sign.
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutPoint prevOut, + Script scriptPubKey, + ECKey sigKey, + Transaction.SigHash sigHash, + boolean anyoneCanPay) + throws ScriptException
      +
      +
      Parameters:
      +
      prevOut - A reference to the output being spent
      +
      scriptPubKey - The scriptPubKey of the output
      +
      sigKey - The signing key
      +
      sigHash - enum specifying how the transaction hash is calculated
      +
      anyoneCanPay - anyone-can-pay hashing
      +
      Returns:
      +
      The newly created input
      +
      Throws:
      +
      ScriptException - if the scriptPubKey is something we don't know how to sign.
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutPoint prevOut, + Script scriptPubKey, + Coin amount, + ECKey sigKey) + throws ScriptException
      +
      Adds a new and fully signed input for the given parameters. Note that this method is not thread safe + and requires external synchronization. + Defaults to Transaction.SigHash.ALL and "false" for the anyoneCanPay flag. This is normally what you want.
      +
      +
      Parameters:
      +
      prevOut - A reference to the output being spent
      +
      scriptPubKey - The scriptPubKey of the output
      +
      amount - The amount of the output (which is part of the signature hash for segwit)
      +
      sigKey - The signing key
      +
      Returns:
      +
      The newly created input
      +
      Throws:
      +
      ScriptException - if the scriptPubKey is something we don't know how to sign.
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutPoint prevOut, + Script scriptPubKey, + ECKey sigKey) + throws ScriptException
      +
      +
      Parameters:
      +
      prevOut - A reference to the output being spent
      +
      scriptPubKey - The scriptPubKey of the output
      +
      sigKey - The signing key
      +
      Returns:
      +
      The newly created input
      +
      Throws:
      +
      ScriptException - if the scriptPubKey is something we don't know how to sign.
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutput output, + ECKey sigKey)
      +
      Adds an input that points to the given output and contains a valid signature for it, calculated using the + signing key. Defaults to Transaction.SigHash.ALL and "false" for the anyoneCanPay flag. This is normally what you want.
      +
      +
      Parameters:
      +
      output - output to sign and use as input
      +
      sigKey - The signing key
      +
      Returns:
      +
      The newly created input
      +
      +
      +
    • +
    • +
      +

      addSignedInput

      +
      public TransactionInput addSignedInput(TransactionOutput output, + ECKey sigKey, + Transaction.SigHash sigHash, + boolean anyoneCanPay)
      +
      Adds an input that points to the given output and contains a valid signature for it, calculated using the + signing key.
      +
      +
      Parameters:
      +
      output - output to sign and use as input
      +
      sigKey - The signing key
      +
      sigHash - enum specifying how the transaction hash is calculated
      +
      anyoneCanPay - anyone-can-pay hashing
      +
      Returns:
      +
      The newly created input
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      clearOutputs

      +
      public void clearOutputs()
      +
      Removes all the outputs from this transaction. + Note that this also invalidates the length attribute
      +
      +
    • +
    • +
      +

      addOutput

      +
      public TransactionOutput addOutput(TransactionOutput to)
      +
      Adds the given output to this transaction. The output must be completely initialized. Returns the given output.
      +
      +
    • +
    • +
      +

      addOutput

      +
      public TransactionOutput addOutput(Coin value, + Address address)
      +
      Creates an output based on the given address and value, adds it to this transaction, and returns the new output.
      +
      +
    • +
    • +
      +

      addOutput

      +
      public TransactionOutput addOutput(Coin value, + ECKey pubkey)
      +
      Creates an output that pays to the given pubkey directly (no address) with the given value, adds it to this + transaction, and returns the new output.
      +
      +
    • +
    • +
      +

      addOutput

      +
      public TransactionOutput addOutput(Coin value, + Script script)
      +
      Creates an output that pays to the given script. The address and key forms are specialisations of this method, + you won't normally need to use it unless you're doing unusual things.
      +
      +
    • +
    • +
      +

      calculateSignature

      +
      public TransactionSignature calculateSignature(int inputIndex, + ECKey key, + byte[] redeemScript, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      Calculates a signature that is valid for being inserted into the input at the given position. This is simply + a wrapper around calling hashForSignature(int, byte[], Transaction.SigHash, boolean) + followed by ECKey.sign(Sha256Hash) and then returning a new TransactionSignature. The key + must be usable for signing as-is: if the key is encrypted it must be decrypted first external to this method.
      +
      +
      Parameters:
      +
      inputIndex - Which input to calculate the signature for, as an index.
      +
      key - The private key used to calculate the signature.
      +
      redeemScript - Byte-exact contents of the scriptPubKey that is being satisfied, or the P2SH redeem script.
      +
      hashType - Signing mode, see the enum for documentation.
      +
      anyoneCanPay - Signing mode, see the SigHash enum for documentation.
      +
      Returns:
      +
      A newly calculated signature object that wraps the r, s and sighash components.
      +
      +
      +
    • +
    • +
      +

      calculateSignature

      +
      public TransactionSignature calculateSignature(int inputIndex, + ECKey key, + Script redeemScript, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      Calculates a signature that is valid for being inserted into the input at the given position. This is simply + a wrapper around calling hashForSignature(int, byte[], Transaction.SigHash, boolean) + followed by ECKey.sign(Sha256Hash) and then returning a new TransactionSignature.
      +
      +
      Parameters:
      +
      inputIndex - Which input to calculate the signature for, as an index.
      +
      key - The private key used to calculate the signature.
      +
      redeemScript - The scriptPubKey that is being satisfied, or the P2SH redeem script.
      +
      hashType - Signing mode, see the enum for documentation.
      +
      anyoneCanPay - Signing mode, see the SigHash enum for documentation.
      +
      Returns:
      +
      A newly calculated signature object that wraps the r, s and sighash components.
      +
      +
      +
    • +
    • +
      +

      calculateSignature

      +
      public TransactionSignature calculateSignature(int inputIndex, + ECKey key, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + byte[] redeemScript, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      Calculates a signature that is valid for being inserted into the input at the given position. This is simply + a wrapper around calling hashForSignature(int, byte[], Transaction.SigHash, boolean) + followed by ECKey.sign(Sha256Hash) and then returning a new TransactionSignature. The key + must be usable for signing as-is: if the key is encrypted it must be decrypted first external to this method.
      +
      +
      Parameters:
      +
      inputIndex - Which input to calculate the signature for, as an index.
      +
      key - The private key used to calculate the signature.
      +
      aesKey - The AES key to use for decryption of the private key. If null then no decryption is required.
      +
      redeemScript - Byte-exact contents of the scriptPubKey that is being satisfied, or the P2SH redeem script.
      +
      hashType - Signing mode, see the enum for documentation.
      +
      anyoneCanPay - Signing mode, see the SigHash enum for documentation.
      +
      Returns:
      +
      A newly calculated signature object that wraps the r, s and sighash components.
      +
      +
      +
    • +
    • +
      +

      calculateSignature

      +
      public TransactionSignature calculateSignature(int inputIndex, + ECKey key, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + Script redeemScript, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      Calculates a signature that is valid for being inserted into the input at the given position. This is simply + a wrapper around calling hashForSignature(int, byte[], Transaction.SigHash, boolean) + followed by ECKey.sign(Sha256Hash) and then returning a new TransactionSignature.
      +
      +
      Parameters:
      +
      inputIndex - Which input to calculate the signature for, as an index.
      +
      key - The private key used to calculate the signature.
      +
      aesKey - The AES key to use for decryption of the private key. If null then no decryption is required.
      +
      redeemScript - The scriptPubKey that is being satisfied, or the P2SH redeem script.
      +
      hashType - Signing mode, see the enum for documentation.
      +
      anyoneCanPay - Signing mode, see the SigHash enum for documentation.
      +
      Returns:
      +
      A newly calculated signature object that wraps the r, s and sighash components.
      +
      +
      +
    • +
    • +
      +

      hashForSignature

      +
      public Sha256Hash hashForSignature(int inputIndex, + byte[] redeemScript, + Transaction.SigHash type, + boolean anyoneCanPay)
      +

      Calculates a signature hash, that is, a hash of a simplified form of the transaction. How exactly the transaction + is simplified is specified by the type and anyoneCanPay parameters.

      + +

      This is a low level API and when using the regular Wallet class you don't have to call this yourself. + When working with more complex transaction types and contracts, it can be necessary. When signing a P2SH output + the redeemScript should be the script encoded into the scriptSig field, for normal transactions, it's the + scriptPubKey of the output you're signing for.

      +
      +
      Parameters:
      +
      inputIndex - input the signature is being calculated for. Tx signatures are always relative to an input.
      +
      redeemScript - the bytes that should be in the given input during signing.
      +
      type - Should be SigHash.ALL
      +
      anyoneCanPay - should be false.
      +
      +
      +
    • +
    • +
      +

      hashForSignature

      +
      public Sha256Hash hashForSignature(int inputIndex, + Script redeemScript, + Transaction.SigHash type, + boolean anyoneCanPay)
      +

      Calculates a signature hash, that is, a hash of a simplified form of the transaction. How exactly the transaction + is simplified is specified by the type and anyoneCanPay parameters.

      + +

      This is a low level API and when using the regular Wallet class you don't have to call this yourself. + When working with more complex transaction types and contracts, it can be necessary. When signing a P2SH output + the redeemScript should be the script encoded into the scriptSig field, for normal transactions, it's the + scriptPubKey of the output you're signing for.

      +
      +
      Parameters:
      +
      inputIndex - input the signature is being calculated for. Tx signatures are always relative to an input.
      +
      redeemScript - the script that should be in the given input during signing.
      +
      type - Should be SigHash.ALL
      +
      anyoneCanPay - should be false.
      +
      +
      +
    • +
    • +
      +

      hashForSignature

      +
      public Sha256Hash hashForSignature(int inputIndex, + byte[] connectedScript, + byte sigHashType)
      +
      This is required for signatures which use a sigHashType which cannot be represented using SigHash and anyoneCanPay + See transaction c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73, which has sigHashType 0
      +
      +
    • +
    • +
      +

      calculateWitnessSignature

      +
      public TransactionSignature calculateWitnessSignature(int inputIndex, + ECKey key, + byte[] scriptCode, + Coin value, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      +
    • +
    • +
      +

      calculateWitnessSignature

      +
      public TransactionSignature calculateWitnessSignature(int inputIndex, + ECKey key, + Script scriptCode, + Coin value, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      +
    • +
    • +
      +

      calculateWitnessSignature

      +
      public TransactionSignature calculateWitnessSignature(int inputIndex, + ECKey key, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + byte[] scriptCode, + Coin value, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      +
    • +
    • +
      +

      calculateWitnessSignature

      +
      public TransactionSignature calculateWitnessSignature(int inputIndex, + ECKey key, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + Script scriptCode, + Coin value, + Transaction.SigHash hashType, + boolean anyoneCanPay)
      +
      +
    • +
    • +
      +

      hashForWitnessSignature

      +
      public Sha256Hash hashForWitnessSignature(int inputIndex, + byte[] scriptCode, + Coin prevValue, + Transaction.SigHash type, + boolean anyoneCanPay)
      +
      +
    • +
    • +
      +

      hashForWitnessSignature

      +
      public Sha256Hash hashForWitnessSignature(int inputIndex, + Script scriptCode, + Coin prevValue, + Transaction.SigHash type, + boolean anyoneCanPay)
      +

      Calculates a signature hash, that is, a hash of a simplified form of the transaction. How exactly the transaction + is simplified is specified by the type and anyoneCanPay parameters.

      + +

      This is a low level API and when using the regular Wallet class you don't have to call this yourself. + When working with more complex transaction types and contracts, it can be necessary. When signing a Witness output + the scriptCode should be the script encoded into the scriptSig field, for normal transactions, it's the + scriptPubKey of the output you're signing for. (See BIP143: https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki)

      +
      +
      Parameters:
      +
      inputIndex - input the signature is being calculated for. Tx signatures are always relative to an input.
      +
      scriptCode - the script that should be in the given input during signing.
      +
      prevValue - the value of the coin being spent
      +
      type - Should be SigHash.ALL
      +
      anyoneCanPay - should be false.
      +
      +
      +
    • +
    • +
      +

      hashForWitnessSignature

      +
      public Sha256Hash hashForWitnessSignature(int inputIndex, + byte[] scriptCode, + Coin prevValue, + byte sigHashType)
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream, + boolean useSegwit) + throws IOException
      +
      Serialize according to BIP144 or the + classic format, depending on if segwit is + desired.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getLockTime

      +
      public long getLockTime()
      +
      Transactions can have an associated lock time, specified either as a block height or in seconds since the + UNIX epoch. A transaction is not allowed to be confirmed by miners until the lock time is reached, and + since Bitcoin 0.8+ a transaction that did not end its lock period (non final) is considered to be non + standard and won't be relayed or included in the memory pool either.
      +
      +
    • +
    • +
      +

      setLockTime

      +
      public void setLockTime(long lockTime)
      +
      Transactions can have an associated lock time, specified either as a block height or in seconds since the + UNIX epoch. A transaction is not allowed to be confirmed by miners until the lock time is reached, and + since Bitcoin 0.8+ a transaction that did not end its lock period (non final) is considered to be non + standard and won't be relayed or included in the memory pool either.
      +
      +
    • +
    • +
      +

      getVersion

      +
      public long getVersion()
      +
      +
    • +
    • +
      +

      setVersion

      +
      public void setVersion(int version)
      +
      +
    • +
    • +
      +

      getInputs

      +
      public List<TransactionInput> getInputs()
      +
      Returns an unmodifiable view of all inputs.
      +
      +
    • +
    • +
      +

      getOutputs

      +
      public List<TransactionOutput> getOutputs()
      +
      Returns an unmodifiable view of all outputs.
      +
      +
    • +
    • +
      +

      getWalletOutputs

      +
      public List<TransactionOutput> getWalletOutputs(TransactionBag transactionBag)
      +

      Returns the list of transacion outputs, whether spent or unspent, that match a wallet by address or that are + watched by a wallet, i.e., transaction outputs whose script's address is controlled by the wallet and transaction + outputs whose script is watched by the wallet.

      +
      +
      Parameters:
      +
      transactionBag - The wallet that controls addresses and watches scripts.
      +
      Returns:
      +
      linked list of outputs relevant to the wallet in this transaction
      +
      +
      +
    • +
    • +
      +

      shuffleOutputs

      +
      public void shuffleOutputs()
      +
      Randomly re-orders the transaction outputs: good for privacy
      +
      +
    • +
    • +
      +

      getInput

      +
      public TransactionInput getInput(long index)
      +
      Same as getInputs().get(index).
      +
      +
    • +
    • +
      +

      getOutput

      +
      public TransactionOutput getOutput(long index)
      +
      Same as getOutputs().get(index)
      +
      +
    • +
    • +
      +

      getConfidence

      +
      public TransactionConfidence getConfidence()
      +
      Returns the confidence object for this transaction from the TxConfidenceTable + referenced by the implicit Context.
      +
      +
    • +
    • +
      +

      getConfidence

      +
      public TransactionConfidence getConfidence(Context context)
      +
      Returns the confidence object for this transaction from the TxConfidenceTable + referenced by the given Context.
      +
      +
    • +
    • +
      +

      getConfidence

      +
      public TransactionConfidence getConfidence(TxConfidenceTable table)
      +
      Returns the confidence object for this transaction from the TxConfidenceTable
      +
      +
    • +
    • +
      +

      hasConfidence

      +
      public boolean hasConfidence()
      +
      Check if the transaction has a known confidence
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      getSigOpCount

      +
      public int getSigOpCount() + throws ScriptException
      +
      Gets the count of regular SigOps in this transactions
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      checkCoinBaseHeight

      +
      public void checkCoinBaseHeight(int height) + throws VerificationException
      +
      Check block height is in coinbase input script, for use after BIP 34 + enforcement is enabled.
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      findWitnessCommitment

      +
      public Sha256Hash findWitnessCommitment()
      +
      Loops the outputs of a coinbase transaction to locate the witness commitment.
      +
      +
    • +
    • +
      +

      verify

      +
      public void verify() + throws VerificationException
      +

      Checks the transaction contents for sanity, in ways that can be done in a standalone manner. + Does not perform all checks on a transaction such as whether the inputs are already spent. + Specifically this method verifies:

      + +
        +
      • That there is at least one input and output.
      • +
      • That the serialized size is not larger than the max block size.
      • +
      • That no outputs have negative value.
      • +
      • That the outputs do not sum to larger than the max allowed quantity of coin in the system.
      • +
      • If the tx is a coinbase tx, the coinbase scriptSig size is within range. Otherwise that there are no + coinbase inputs in the tx.
      • +
      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      isTimeLocked

      +
      public boolean isTimeLocked()
      +

      A transaction is time-locked if at least one of its inputs is non-final and it has a lock time. A transaction can + also have a relative lock time which this method doesn't tell. Use hasRelativeLockTime() to find out.

      + +

      To check if this transaction is final at a given height and time, see isFinal(int, long) +

      +
      +
    • +
    • +
      +

      hasRelativeLockTime

      +
      public boolean hasRelativeLockTime()
      +
      A transaction has a relative lock time + (BIP 68) if it is version 2 or + higher and at least one of its inputs has its TransactionInput.SEQUENCE_LOCKTIME_DISABLE_FLAG cleared.
      +
      +
    • +
    • +
      +

      isOptInFullRBF

      +
      public boolean isOptInFullRBF()
      +
      Returns whether this transaction will opt into the + full replace-by-fee semantics.
      +
      +
    • +
    • +
      +

      isFinal

      +
      public boolean isFinal(int height, + long blockTimeSeconds)
      +

      Returns true if this transaction is considered finalized and can be placed in a block. Non-finalized + transactions won't be included by miners and can be replaced with newer versions using sequence numbers. + This is useful in certain types of contracts, such as + micropayment channels.

      + +

      Note that currently the replacement feature is disabled in Bitcoin Core and will need to be + re-activated before this functionality is useful.

      +
      +
    • +
    • +
      +

      estimateLockTime

      +
      public Date estimateLockTime(AbstractBlockChain chain)
      +
      Returns either the lock time as a date, if it was specified in seconds, or an estimate based on the time in + the current head block if it was specified as a block time.
      +
      +
    • +
    • +
      +

      getPurpose

      +
      public Transaction.Purpose getPurpose()
      +
      Returns the purpose for which this transaction was created. See the javadoc for Transaction.Purpose for more + information on the point of this field and what it can be.
      +
      +
    • +
    • +
      +

      setPurpose

      +
      public void setPurpose(Transaction.Purpose purpose)
      +
      Marks the transaction as being created for the given purpose. See the javadoc for Transaction.Purpose for more + information on the point of this field and what it can be.
      +
      +
    • +
    • +
      +

      getExchangeRate

      +
      @Nullable +public ExchangeRate getExchangeRate()
      +
      Getter for exchangeRate.
      +
      +
    • +
    • +
      +

      setExchangeRate

      +
      public void setExchangeRate(ExchangeRate exchangeRate)
      +
      Setter for exchangeRate.
      +
      +
    • +
    • +
      +

      getMemo

      +
      @Nullable +public String getMemo()
      +
      Returns the transaction memo.
      +
      +
    • +
    • +
      +

      setMemo

      +
      public void setMemo(String memo)
      +
      Set the transaction memo. It can be used to record the memo of the payment request that initiated the + transaction.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionBag.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionBag.html new file mode 100644 index 000000000..8e714713a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionBag.html @@ -0,0 +1,191 @@ + + + + +TransactionBag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionBag

+
+
+
+
All Known Implementing Classes:
+
Wallet
+
+
+
public interface TransactionBag
+
This interface is used to abstract the Wallet and the Transaction
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Returns transactions from a specific pool.
    +
    +
    boolean
    +
    isPayToScriptHashMine(byte[] payToScriptHash)
    +
    +
    Returns true if this wallet knows the script corresponding to the given hash.
    +
    +
    boolean
    +
    isPubKeyHashMine(byte[] pubKeyHash, + Script.ScriptType scriptType)
    +
    +
    Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.
    +
    +
    boolean
    +
    isPubKeyMine(byte[] pubKey)
    +
    +
    Returns true if this wallet contains a keypair with the given public key.
    +
    +
    boolean
    + +
    +
    Returns true if this wallet is watching transactions for outputs with the script.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isPubKeyHashMine

      +
      boolean isPubKeyHashMine(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.
      +
      +
      Parameters:
      +
      pubKeyHash - hash of the public key to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      true if hash was found
      +
      +
      +
    • +
    • +
      +

      isWatchedScript

      +
      boolean isWatchedScript(Script script)
      +
      Returns true if this wallet is watching transactions for outputs with the script.
      +
      +
    • +
    • +
      +

      isPubKeyMine

      +
      boolean isPubKeyMine(byte[] pubKey)
      +
      Returns true if this wallet contains a keypair with the given public key.
      +
      +
    • +
    • +
      +

      isPayToScriptHashMine

      +
      boolean isPayToScriptHashMine(byte[] payToScriptHash)
      +
      Returns true if this wallet knows the script corresponding to the given hash.
      +
      +
    • +
    • +
      +

      getTransactionPool

      +
      Map<Sha256Hash,Transaction> getTransactionPool(WalletTransaction.Pool pool)
      +
      Returns transactions from a specific pool.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.ProgressCallback.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.ProgressCallback.html new file mode 100644 index 000000000..4f4af0a5e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.ProgressCallback.html @@ -0,0 +1,138 @@ + + + + +TransactionBroadcast.ProgressCallback (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionBroadcast.ProgressCallback

+
+
+
+
Enclosing class:
+
TransactionBroadcast
+
+
+
public static interface TransactionBroadcast.ProgressCallback
+
An interface for receiving progress information on the propagation of the tx, from 0.0 to 1.0
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onBroadcastProgress(double progress)
    +
    +
    onBroadcastProgress will be invoked on the provided executor when the progress of the transaction + broadcast has changed, because the transaction has been announced by another peer or because the transaction + was found inside a mined block (in this case progress will go to 1.0 immediately).
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onBroadcastProgress

      +
      void onBroadcastProgress(double progress)
      +
      onBroadcastProgress will be invoked on the provided executor when the progress of the transaction + broadcast has changed, because the transaction has been announced by another peer or because the transaction + was found inside a mined block (in this case progress will go to 1.0 immediately). Any exceptions thrown + by this callback will be logged and ignored.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.html new file mode 100644 index 000000000..5e6fe75de --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcast.html @@ -0,0 +1,256 @@ + + + + +TransactionBroadcast (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionBroadcast

+
+
java.lang.Object +
org.bitcoinj.core.TransactionBroadcast
+
+
+
+
public class TransactionBroadcast +extends Object
+
Represents a single transaction broadcast that we are performing. A broadcast occurs after a new transaction is created + (typically by a Wallet) and needs to be sent to the network. A broadcast can succeed or fail. A success is + defined as seeing the transaction be announced by peers via inv messages, thus indicating their acceptance. A failure + is defined as not reaching acceptance within a timeout period, or getting an explicit reject message from a peer + indicating that the transaction was not acceptable.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      random

      +
      public static Random random
      +
      Used for shuffling the peers before broadcast: unit tests can replace this to make themselves deterministic.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createMockBroadcast

      +
      public static TransactionBroadcast createMockBroadcast(Transaction tx, + com.google.common.util.concurrent.SettableFuture<Transaction> future)
      +
      +
    • +
    • +
      +

      future

      +
      public com.google.common.util.concurrent.ListenableFuture<Transaction> future()
      +
      +
    • +
    • +
      +

      setMinConnections

      +
      public void setMinConnections(int minConnections)
      +
      +
    • +
    • +
      +

      setDropPeersAfterBroadcast

      +
      public void setDropPeersAfterBroadcast(boolean dropPeersAfterBroadcast)
      +
      +
    • +
    • +
      +

      broadcast

      +
      public com.google.common.util.concurrent.ListenableFuture<Transaction> broadcast()
      +
      +
    • +
    • +
      +

      setProgressCallback

      +
      public void setProgressCallback(TransactionBroadcast.ProgressCallback callback)
      +
      Sets the given callback for receiving progress values, which will run on the user thread. See + Threading for details. If the broadcast has already started then the callback will + be invoked immediately with the current progress.
      +
      +
    • +
    • +
      +

      setProgressCallback

      +
      public void setProgressCallback(TransactionBroadcast.ProgressCallback callback, + @Nullable + Executor executor)
      +
      Sets the given callback for receiving progress values, which will run on the given executor. If the executor + is null then the callback will run on a network thread and may be invoked multiple times in parallel. You + probably want to provide your UI thread or Threading.USER_THREAD for the second parameter. If the broadcast + has already started then the callback will be invoked immediately with the current progress.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcaster.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcaster.html new file mode 100644 index 000000000..a9109fd63 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionBroadcaster.html @@ -0,0 +1,134 @@ + + + + +TransactionBroadcaster (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionBroadcaster

+
+
+
+
All Known Implementing Classes:
+
PeerGroup
+
+
+
public interface TransactionBroadcaster
+
A general interface which declares the ability to broadcast transactions. This is implemented + by PeerGroup.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.ConfidenceType.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.ConfidenceType.html new file mode 100644 index 000000000..207b26a3e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.ConfidenceType.html @@ -0,0 +1,286 @@ + + + + +TransactionConfidence.ConfidenceType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class TransactionConfidence.ConfidenceType

+
+
java.lang.Object +
java.lang.Enum<TransactionConfidence.ConfidenceType> +
org.bitcoinj.core.TransactionConfidence.ConfidenceType
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<TransactionConfidence.ConfidenceType>, Constable
+
+
+
Enclosing class:
+
TransactionConfidence
+
+
+
public static enum TransactionConfidence.ConfidenceType +extends Enum<TransactionConfidence.ConfidenceType>
+
Describes the state of the transaction in general terms. Properties can be read to learn specifics.
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from class java.lang.Enum

    +Enum.EnumDesc<E extends Enum<E>>
    +
    +
  • + +
  • +
    +

    Enum Constant Summary

    +
    Enum Constants
    +
    +
    Enum Constant
    +
    Description
    + +
    +
    If BUILDING, then the transaction is included in the best chain and your confidence in it is increasing.
    +
    + +
    +
    If DEAD, then it means the transaction won't confirm unless there is another re-org, + because some other transaction is spending one of its inputs.
    +
    + +
    +
    If IN_CONFLICT, then it means there is another transaction (or several other transactions) spending one + (or several) of its inputs but nor this transaction nor the other/s transaction/s are included in the best chain.
    +
    + +
    +
    If PENDING, then the transaction is unconfirmed and should be included shortly, as long as it is being + announced and is considered valid by the network.
    +
    + +
    +
    If a transaction hasn't been broadcast yet, or there's no record of it, its confidence is UNKNOWN.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
     
    + + +
    +
    Returns the enum constant of this class with the specified name.
    +
    + + +
    +
    Returns an array containing the constants of this enum class, in +the order they are declared.
    +
    +
    +
    +
    + +
    +

    Methods inherited from class java.lang.Object

    +getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      BUILDING

      +
      public static final TransactionConfidence.ConfidenceType BUILDING
      +
      If BUILDING, then the transaction is included in the best chain and your confidence in it is increasing.
      +
      +
    • +
    • +
      +

      PENDING

      +
      public static final TransactionConfidence.ConfidenceType PENDING
      +
      If PENDING, then the transaction is unconfirmed and should be included shortly, as long as it is being + announced and is considered valid by the network. A pending transaction will be announced if the containing + wallet has been attached to a live PeerGroup using PeerGroup.addWallet(Wallet). + You can estimate how likely the transaction is to be included by connecting to a bunch of nodes then measuring + how many announce it, using TransactionConfidence.numBroadcastPeers(). + Or if you saw it from a trusted peer, you can assume it's valid and will get mined sooner or later as well.
      +
      +
    • +
    • +
      +

      DEAD

      +
      public static final TransactionConfidence.ConfidenceType DEAD
      +
      If DEAD, then it means the transaction won't confirm unless there is another re-org, + because some other transaction is spending one of its inputs. Such transactions should be alerted to the user + so they can take action, eg, suspending shipment of goods if they are a merchant. + It can also mean that a coinbase transaction has been made dead from it being moved onto a side chain.
      +
      +
    • +
    • +
      +

      IN_CONFLICT

      +
      public static final TransactionConfidence.ConfidenceType IN_CONFLICT
      +
      If IN_CONFLICT, then it means there is another transaction (or several other transactions) spending one + (or several) of its inputs but nor this transaction nor the other/s transaction/s are included in the best chain. + The other/s transaction/s should be IN_CONFLICT too. + IN_CONFLICT can be thought as an intermediary state between a) PENDING and BUILDING or b) PENDING and DEAD. + Another common name for this situation is "double spend".
      +
      +
    • +
    • +
      +

      UNKNOWN

      +
      public static final TransactionConfidence.ConfidenceType UNKNOWN
      +
      If a transaction hasn't been broadcast yet, or there's no record of it, its confidence is UNKNOWN.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static TransactionConfidence.ConfidenceType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static TransactionConfidence.ConfidenceType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public int getValue()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Factory.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Factory.html new file mode 100644 index 000000000..e87ff3b27 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Factory.html @@ -0,0 +1,163 @@ + + + + +TransactionConfidence.Factory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionConfidence.Factory

+
+
java.lang.Object +
org.bitcoinj.core.TransactionConfidence.Factory
+
+
+
+
Enclosing class:
+
TransactionConfidence
+
+
+
public static class TransactionConfidence.Factory +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Factory

      +
      public Factory()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.ChangeReason.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.ChangeReason.html new file mode 100644 index 000000000..c4d3732aa --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.ChangeReason.html @@ -0,0 +1,247 @@ + + + + +TransactionConfidence.Listener.ChangeReason (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class TransactionConfidence.Listener.ChangeReason

+
+
java.lang.Object +
java.lang.Enum<TransactionConfidence.Listener.ChangeReason> +
org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<TransactionConfidence.Listener.ChangeReason>, Constable
+
+
+
Enclosing interface:
+
TransactionConfidence.Listener
+
+
+
public static enum TransactionConfidence.Listener.ChangeReason +extends Enum<TransactionConfidence.Listener.ChangeReason>
+
An enum that describes why a transaction confidence listener is being invoked (i.e. the class of change).
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      TYPE

      + +
      Occurs when the type returned by TransactionConfidence.getConfidenceType() + has changed. For example, if a PENDING transaction changes to BUILDING or DEAD, then this reason will + be given. It's a high level summary.
      +
      +
    • +
    • +
      +

      DEPTH

      + +
      Occurs when a transaction that is in the best known block chain gets buried by another block. If you're + waiting for a certain number of confirmations, this is the reason to watch out for.
      +
      +
    • +
    • +
      +

      SEEN_PEERS

      +
      public static final TransactionConfidence.Listener.ChangeReason SEEN_PEERS
      +
      Occurs when a pending transaction (not in the chain) was announced by another connected peers. By + watching the number of peers that announced a transaction go up, you can see whether it's being + accepted by the network or not. If all your peers announce, it's a pretty good bet the transaction + is considered relayable and has thus reached the miners.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      + +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      + +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.html new file mode 100644 index 000000000..f95e03635 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Listener.html @@ -0,0 +1,159 @@ + + + + +TransactionConfidence.Listener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionConfidence.Listener

+
+
+
+
All Known Implementing Classes:
+
NativeTransactionConfidenceListener
+
+
+
Enclosing class:
+
TransactionConfidence
+
+
+
public static interface TransactionConfidence.Listener
+

A confidence listener is informed when the level of TransactionConfidence is updated by something, like + for example a Wallet. You can add listeners to update your user interface or manage your order tracking + system when confidence levels pass a certain threshold. Note that confidence can go down as well as up. + For example, this can happen if somebody is doing a double-spend attack against you. Whilst it's unlikely, your + code should be able to handle that in order to be correct.

+ +

During listener execution, it's safe to remove the current listener but not others.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Source.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Source.html new file mode 100644 index 000000000..9c60e6912 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.Source.html @@ -0,0 +1,242 @@ + + + + +TransactionConfidence.Source (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class TransactionConfidence.Source

+
+
java.lang.Object +
java.lang.Enum<TransactionConfidence.Source> +
org.bitcoinj.core.TransactionConfidence.Source
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<TransactionConfidence.Source>, Constable
+
+
+
Enclosing class:
+
TransactionConfidence
+
+
+
public static enum TransactionConfidence.Source +extends Enum<TransactionConfidence.Source>
+
Information about where the transaction was first seen (network, sent direct from peer, created by ourselves). + Useful for risk analyzing pending transactions. Probably not that useful after a tx is included in the chain, + unless re-org double spends start happening frequently.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static TransactionConfidence.Source[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static TransactionConfidence.Source valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.html new file mode 100644 index 000000000..10428d68f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionConfidence.html @@ -0,0 +1,589 @@ + + + + +TransactionConfidence (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionConfidence

+
+
java.lang.Object +
org.bitcoinj.core.TransactionConfidence
+
+
+
+
public class TransactionConfidence +extends Object
+

A TransactionConfidence object tracks data you can use to make a confidence decision about a transaction. + It also contains some pre-canned rules for common scenarios: if you aren't really sure what level of confidence + you need, these should prove useful. You can get a confidence object using Transaction.getConfidence(). + They cannot be constructed directly.

+ +

Confidence in a transaction can come in multiple ways:

+ +
    +
  • Because you created it yourself and only you have the necessary keys.
  • +
  • Receiving it from a fully validating peer you know is trustworthy, for instance, because it's run by yourself.
  • +
  • Receiving it from a peer on the network you randomly chose. If your network connection is not being + intercepted, you have a pretty good chance of connecting to a node that is following the rules.
  • +
  • Receiving it from multiple peers on the network. If your network connection is not being intercepted, + hearing about a transaction from multiple peers indicates the network has accepted the transaction and + thus miners likely have too (miners have the final say in whether a transaction becomes valid or not).
  • +
  • Seeing the transaction appear in a block on the best chain. Your confidence increases as the transaction + becomes further buried under work. Work can be measured either in blocks (roughly, units of time), or + amount of work done.
  • +
+ +

Alternatively, you may know that the transaction is "dead", that is, one or more of its inputs have + been double spent and will never confirm unless there is another re-org.

+ +

TransactionConfidence is updated via the incrementDepthInBlocks() + method to ensure the block depth is up to date.

+ To make a copy that won't be changed, use duplicate().
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionConfidence

      +
      public TransactionConfidence(Sha256Hash hash)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addEventListener

      +
      public void addEventListener(Executor executor, + TransactionConfidence.Listener listener)
      +

      Adds an event listener that will be run when this confidence object is updated. The listener will be locked and + is likely to be invoked on a peer thread.

      + +

      Note that this is NOT called when every block arrives. Instead it is called when the transaction + transitions between confidence states, ie, from not being seen in the chain to being seen (not necessarily in + the best chain). If you want to know when the transaction gets buried under another block, consider using + a future from getDepthFuture(int).

      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(TransactionConfidence.Listener listener)
      +

      Adds an event listener that will be run when this confidence object is updated. The listener will be locked and + is likely to be invoked on a peer thread.

      + +

      Note that this is NOT called when every block arrives. Instead it is called when the transaction + transitions between confidence states, ie, from not being seen in the chain to being seen (not necessarily in + the best chain). If you want to know when the transaction gets buried under another block, implement + NewBestBlockListener and related listeners, attach them to a + BlockChain and then use the getters on the confidence object to determine the new depth.

      +
      +
    • +
    • +
      +

      removeEventListener

      +
      public boolean removeEventListener(TransactionConfidence.Listener listener)
      +
      +
    • +
    • +
      +

      getAppearedAtChainHeight

      +
      public int getAppearedAtChainHeight()
      +
      Returns the chain height at which the transaction appeared if confidence type is BUILDING.
      +
      +
      Throws:
      +
      IllegalStateException - if the confidence type is not BUILDING.
      +
      +
      +
    • +
    • +
      +

      setAppearedAtChainHeight

      +
      public void setAppearedAtChainHeight(int appearedAtChainHeight)
      +
      The chain height at which the transaction appeared, if it has been seen in the best chain. Automatically sets + the current type to TransactionConfidence.ConfidenceType.BUILDING and depth to one.
      +
      +
    • +
    • +
      +

      getConfidenceType

      +
      public TransactionConfidence.ConfidenceType getConfidenceType()
      +
      Returns a general statement of the level of confidence you can have in this transaction.
      +
      +
    • +
    • +
      +

      setConfidenceType

      +
      public void setConfidenceType(TransactionConfidence.ConfidenceType confidenceType)
      +
      Called by other objects in the system, like a Wallet, when new information about the confidence of a + transaction becomes available.
      +
      +
    • +
    • +
      +

      markBroadcastBy

      +
      public boolean markBroadcastBy(PeerAddress address)
      +
      Called by a Peer when a transaction is pending and announced by a peer. The more peers announce the + transaction, the more peers have validated it (assuming your internet connection is not being intercepted). + If confidence is currently unknown, sets it to TransactionConfidence.ConfidenceType.PENDING. Does not run listeners.
      +
      +
      Parameters:
      +
      address - IP address of the peer, used as a proxy for identity.
      +
      Returns:
      +
      true if marked, false if this address was already seen
      +
      +
      +
    • +
    • +
      +

      numBroadcastPeers

      +
      public int numBroadcastPeers()
      +
      Returns how many peers have been passed to markBroadcastBy(org.bitcoinj.core.PeerAddress).
      +
      +
    • +
    • +
      +

      getBroadcastBy

      +
      public Set<PeerAddress> getBroadcastBy()
      +
      Returns a snapshot of PeerAddresses that announced the transaction.
      +
      +
    • +
    • +
      +

      wasBroadcastBy

      +
      public boolean wasBroadcastBy(PeerAddress address)
      +
      Returns true if the given address has been seen via markBroadcastBy()
      +
      +
    • +
    • +
      +

      getLastBroadcastedAt

      +
      public Date getLastBroadcastedAt()
      +
      Return the time the transaction was last announced to us.
      +
      +
    • +
    • +
      +

      setLastBroadcastedAt

      +
      public void setLastBroadcastedAt(Date lastBroadcastedAt)
      +
      Set the time the transaction was last announced to us.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      incrementDepthInBlocks

      +
      public int incrementDepthInBlocks()
      +
      Called by the wallet when the tx appears on the best chain and a new block is added to the top. Updates the + internal counter that tracks how deeply buried the block is.
      +
      +
      Returns:
      +
      the new depth
      +
      +
      +
    • +
    • +
      +

      getDepthInBlocks

      +
      public int getDepthInBlocks()
      +

      Depth in the chain is an approximation of how much time has elapsed since the transaction has been confirmed. + On average there is supposed to be a new block every 10 minutes, but the actual rate may vary. Bitcoin Core + considers a transaction impractical to reverse after 6 blocks, but as of EOY 2011 network + security is high enough that often only one block is considered enough even for high value transactions. For low + value transactions like songs, or other cheap items, no blocks at all may be necessary.

      + +

      If the transaction appears in the top block, the depth is one. If it's anything else (pending, dead, unknown) + the depth is zero.

      +
      +
    • +
    • +
      +

      setDepthInBlocks

      +
      public void setDepthInBlocks(int depth)
      +
      +
    • +
    • +
      +

      clearBroadcastBy

      +
      public void clearBroadcastBy()
      +
      Erases the set of broadcast/seen peers. This cannot be called whilst the confidence is PENDING. It is useful + for saving memory and wallet space once a tx is buried so deep it doesn't seem likely to go pending again.
      +
      +
    • +
    • +
      +

      getOverridingTransaction

      +
      public Transaction getOverridingTransaction()
      +
      If this transaction has been overridden by a double spend (is dead), this call returns the overriding transaction. + Note that this call can return null if you have migrated an old wallet, as pre-Jan 2012 wallets did not + store this information.
      +
      +
      Returns:
      +
      the transaction that double spent this one
      +
      Throws:
      +
      IllegalStateException - if confidence type is not DEAD.
      +
      +
      +
    • +
    • +
      +

      setOverridingTransaction

      +
      public void setOverridingTransaction(@Nullable + Transaction overridingTransaction)
      +
      Called when the transaction becomes newly dead, that is, we learn that one of its inputs has already been spent + in such a way that the double-spending transaction takes precedence over this one. It will not become valid now + unless there is a re-org. Automatically sets the confidence type to DEAD. The overriding transaction may not + directly double spend this one, but could also have double spent a dependency of this tx.
      +
      +
    • +
    • +
      +

      duplicate

      +
      public TransactionConfidence duplicate()
      +
      Returns a copy of this object. Event listeners are not duplicated.
      +
      +
    • +
    • +
      +

      queueListeners

      +
      public void queueListeners(TransactionConfidence.Listener.ChangeReason reason)
      +
      Call this after adjusting the confidence, for cases where listeners should be notified. This has to be done + explicitly rather than being done automatically because sometimes complex changes to transaction states can + result in a series of confidence changes that are not really useful to see separately. By invoking listeners + explicitly, more precise control is available. Note that this will run the listeners on the user code thread.
      +
      +
    • +
    • +
      +

      getSource

      +
      public TransactionConfidence.Source getSource()
      +
      The source of a transaction tries to identify where it came from originally. For instance, did we download it + from the peer to peer network, or make it ourselves, or receive it via Bluetooth, or import it from another app, + and so on. This information is useful for CoinSelector implementations to risk analyze + transactions and decide when to spend them.
      +
      +
    • +
    • +
      +

      setSource

      +
      public void setSource(TransactionConfidence.Source source)
      +
      The source of a transaction tries to identify where it came from originally. For instance, did we download it + from the peer to peer network, or make it ourselves, or receive it via Bluetooth, or import it from another app, + and so on. This information is useful for CoinSelector implementations to risk analyze + transactions and decide when to spend them.
      +
      +
    • +
    • +
      +

      getDepthFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<TransactionConfidence> getDepthFuture(int depth, + Executor executor)
      +
      Returns a future that completes when the transaction has been confirmed by "depth" blocks. For instance setting + depth to one will wait until it appears in a block on the best chain, and zero will wait until it has been seen + on the network.
      +
      +
    • +
    • +
      +

      getDepthFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<TransactionConfidence> getDepthFuture(int depth)
      +
      +
    • +
    • +
      +

      getTransactionHash

      +
      public Sha256Hash getTransactionHash()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectMode.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectMode.html new file mode 100644 index 000000000..9aaf35342 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectMode.html @@ -0,0 +1,222 @@ + + + + +TransactionInput.ConnectMode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class TransactionInput.ConnectMode

+
+
java.lang.Object +
java.lang.Enum<TransactionInput.ConnectMode> +
org.bitcoinj.core.TransactionInput.ConnectMode
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<TransactionInput.ConnectMode>, Constable
+
+
+
Enclosing class:
+
TransactionInput
+
+
+
public static enum TransactionInput.ConnectMode +extends Enum<TransactionInput.ConnectMode>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static TransactionInput.ConnectMode[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static TransactionInput.ConnectMode valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectionResult.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectionResult.html new file mode 100644 index 000000000..d9b4bf2b2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.ConnectionResult.html @@ -0,0 +1,230 @@ + + + + +TransactionInput.ConnectionResult (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class TransactionInput.ConnectionResult

+
+
java.lang.Object +
java.lang.Enum<TransactionInput.ConnectionResult> +
org.bitcoinj.core.TransactionInput.ConnectionResult
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<TransactionInput.ConnectionResult>, Constable
+
+
+
Enclosing class:
+
TransactionInput
+
+
+
public static enum TransactionInput.ConnectionResult +extends Enum<TransactionInput.ConnectionResult>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static TransactionInput.ConnectionResult[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static TransactionInput.ConnectionResult valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.html new file mode 100644 index 000000000..eab811a6f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionInput.html @@ -0,0 +1,908 @@ + + + + +TransactionInput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionInput

+
+ +
+
+
public class TransactionInput +extends ChildMessage
+

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. You can imagine a + transaction as being a module which is wired up to others, the inputs of one have to be wired + to the outputs of another. The exceptions are coinbase transactions, which create new coins.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      NO_SEQUENCE

      +
      public static final long NO_SEQUENCE
      +
      Magic sequence number that indicates there is no sequence number.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SEQUENCE_LOCKTIME_DISABLE_FLAG

      +
      public static final long SEQUENCE_LOCKTIME_DISABLE_FLAG
      +
      BIP68: If this flag set, sequence is NOT interpreted as a relative lock-time.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SEQUENCE_LOCKTIME_TYPE_FLAG

      +
      public static final long SEQUENCE_LOCKTIME_TYPE_FLAG
      +
      BIP68: If sequence encodes a relative lock-time and this flag is set, the relative lock-time has units of 512 + seconds, otherwise it specifies blocks with a granularity of 1.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SEQUENCE_LOCKTIME_MASK

      +
      public static final long SEQUENCE_LOCKTIME_MASK
      +
      BIP68: If sequence encodes a relative lock-time, this mask is applied to extract that lock-time from the sequence + field.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionInput

      +
      public TransactionInput(NetworkParameters params, + @Nullable + Transaction parentTransaction, + byte[] scriptBytes)
      +
      Creates an input that connects to nothing - used only in creation of coinbase transactions.
      +
      +
    • +
    • +
      +

      TransactionInput

      +
      public TransactionInput(NetworkParameters params, + @Nullable + Transaction parentTransaction, + byte[] scriptBytes, + TransactionOutPoint outpoint)
      +
      +
    • +
    • +
      +

      TransactionInput

      +
      public TransactionInput(NetworkParameters params, + @Nullable + Transaction parentTransaction, + byte[] scriptBytes, + TransactionOutPoint outpoint, + @Nullable + Coin value)
      +
      +
    • +
    • +
      +

      TransactionInput

      +
      public TransactionInput(NetworkParameters params, + @Nullable + Transaction parentTransaction, + byte[] payload, + int offset) + throws ProtocolException
      +
      Deserializes an input message. This is usually part of a transaction message.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      TransactionInput

      +
      public TransactionInput(NetworkParameters params, + Transaction parentTransaction, + byte[] payload, + int offset, + MessageSerializer serializer) + throws ProtocolException
      +
      Deserializes an input message. This is usually part of a transaction message.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getIndex

      +
      public int getIndex()
      +
      Gets the index of this input in the parent transaction, or throws if this input is free standing. Iterates + over the parents list to discover this.
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      isCoinBase

      +
      public boolean isCoinBase()
      +
      Coinbase transactions have special inputs with hashes of zero. If this is such an input, returns true.
      +
      +
    • +
    • +
      +

      getScriptSig

      +
      public Script getScriptSig() + throws ScriptException
      +
      Returns the script that is fed to the referenced output (scriptPubKey) script in order to satisfy it: usually + contains signatures and maybe keys, but can contain arbitrary data if the output script accepts it.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      setScriptSig

      +
      public void setScriptSig(Script scriptSig)
      +
      Set the given program as the scriptSig that is supposed to satisfy the connected output script.
      +
      +
    • +
    • +
      +

      getSequenceNumber

      +
      public long getSequenceNumber()
      +
      Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the + transaction independently of each other. Newer versions of a transaction can replace an existing version that's + in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for + examples of how you can use this feature to build contract protocols.
      +
      +
    • +
    • +
      +

      setSequenceNumber

      +
      public void setSequenceNumber(long sequence)
      +
      Sequence numbers allow participants in a multi-party transaction signing protocol to create new versions of the + transaction independently of each other. Newer versions of a transaction can replace an existing version that's + in nodes memory pools if the existing version is time locked. See the Contracts page on the Bitcoin wiki for + examples of how you can use this feature to build contract protocols.
      +
      +
    • +
    • +
      +

      getOutpoint

      +
      public TransactionOutPoint getOutpoint()
      +
      +
      Returns:
      +
      The previous output transaction reference, as an OutPoint structure. This contains the + data needed to connect to the output of the transaction we're gathering coins from.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public byte[] getScriptBytes()
      +
      The "script bytes" might not actually be a script. In coinbase transactions where new coins are minted there + is no input transaction, so instead the scriptBytes contains some extra stuff (like a rollover nonce) that we + don't care about much. The bytes are turned into a Script object (cached below) on demand via a getter.
      +
      +
      Returns:
      +
      the scriptBytes
      +
      +
      +
    • +
    • +
      +

      clearScriptBytes

      +
      public void clearScriptBytes()
      +
      Clear input scripts, e.g. in preparation for signing.
      +
      +
    • +
    • +
      +

      getParentTransaction

      +
      public Transaction getParentTransaction()
      +
      +
      Returns:
      +
      The Transaction that owns this input.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      @Nullable +public Coin getValue()
      +
      +
      Returns:
      +
      Value of the output connected to this input, if known. Null if unknown.
      +
      +
      +
    • +
    • +
      +

      getWitness

      +
      public TransactionWitness getWitness()
      +
      Get the transaction witness of this input.
      +
      +
      Returns:
      +
      the witness of the input
      +
      +
      +
    • +
    • +
      +

      setWitness

      +
      public void setWitness(TransactionWitness witness)
      +
      Set the transaction witness of an input.
      +
      +
    • +
    • +
      +

      hasWitness

      +
      public boolean hasWitness()
      +
      Determine if the transaction has witnesses.
      +
      +
      Returns:
      +
      true if the transaction has witnesses
      +
      +
      +
    • +
    • +
      +

      getConnectedRedeemData

      +
      @Nullable +public RedeemData getConnectedRedeemData(KeyBag keyBag) + throws ScriptException
      +
      Alias for getOutpoint().getConnectedRedeemData(keyBag)
      +
      +
      Throws:
      +
      ScriptException
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      connect

      + +
      Connects this input to the relevant output of the referenced transaction if it's in the given map. + Connecting means updating the internal pointers and spent flags. If the mode is to ABORT_ON_CONFLICT then + the spent output won't be changed, but the outpoint.fromTx pointer will still be updated.
      +
      +
      Parameters:
      +
      transactions - Map of txhash to transaction.
      +
      mode - Whether to abort if there's a pre-existing connection or not.
      +
      Returns:
      +
      NO_SUCH_TX if the prevtx wasn't found, ALREADY_SPENT if there was a conflict, SUCCESS if not.
      +
      +
      +
    • +
    • +
      +

      connect

      + +
      Connects this input to the relevant output of the referenced transaction. + Connecting means updating the internal pointers and spent flags. If the mode is to ABORT_ON_CONFLICT then + the spent output won't be changed, but the outpoint.fromTx pointer will still be updated.
      +
      +
      Parameters:
      +
      transaction - The transaction to try.
      +
      mode - Whether to abort if there's a pre-existing connection or not.
      +
      Returns:
      +
      NO_SUCH_TX if transaction is not the prevtx, ALREADY_SPENT if there was a conflict, SUCCESS if not.
      +
      +
      +
    • +
    • +
      +

      connect

      +
      public void connect(TransactionOutput out)
      +
      Internal use only: connects this TransactionInput to the given output (updates pointers and spent flags)
      +
      +
    • +
    • +
      +

      disconnect

      +
      public boolean disconnect()
      +
      If this input is connected, check the output is connected back to this input and release it if so, making + it spendable once again.
      +
      +
      Returns:
      +
      true if the disconnection took place, false if it was not connected.
      +
      +
      +
    • +
    • +
      +

      hasSequence

      +
      public boolean hasSequence()
      +
      +
      Returns:
      +
      true if this transaction's sequence number is set (ie it may be a part of a time-locked transaction)
      +
      +
      +
    • +
    • +
      +

      isOptInFullRBF

      +
      public boolean isOptInFullRBF()
      +
      Returns whether this input will cause a transaction to opt into the + full replace-by-fee semantics.
      +
      +
    • +
    • +
      +

      hasRelativeLockTime

      +
      public boolean hasRelativeLockTime()
      +
      Returns whether this input, if it belongs to a version 2 (or higher) transaction, has + relative lock-time enabled.
      +
      +
    • +
    • +
      +

      verify

      +
      public void verify() + throws VerificationException
      +
      For a connected transaction, runs the script against the connected pubkey and verifies they are correct.
      +
      +
      Throws:
      +
      ScriptException - if the script did not verify.
      +
      VerificationException - If the outpoint doesn't match the given output.
      +
      +
      +
    • +
    • +
      +

      verify

      +
      public void verify(TransactionOutput output) + throws VerificationException
      +
      Verifies that this input can spend the given output. Note that this input must be a part of a transaction. + Also note that the consistency of the outpoint will be checked, even if this input has not been connected.
      +
      +
      Parameters:
      +
      output - the output that this input is supposed to spend.
      +
      Throws:
      +
      ScriptException - If the script doesn't verify.
      +
      VerificationException - If the outpoint doesn't match the given output.
      +
      +
      +
    • +
    • +
      +

      getConnectedOutput

      +
      @Nullable +public TransactionOutput getConnectedOutput()
      +
      Returns the connected output, assuming the input was connected with + connect(TransactionOutput) or variants at some point. If it wasn't connected, then + this method returns null.
      +
      +
    • +
    • +
      +

      getConnectedTransaction

      +
      @Nullable +public Transaction getConnectedTransaction()
      +
      Returns the connected transaction, assuming the input was connected with + connect(TransactionOutput) or variants at some point. If it wasn't connected, then + this method returns null.
      +
      +
    • +
    • +
      +

      duplicateDetached

      +
      public TransactionInput duplicateDetached()
      +
      Returns a copy of the input detached from its containing transaction, if need be.
      +
      +
    • +
    • +
      +

      isStandard

      +
      public DefaultRiskAnalysis.RuleViolation isStandard()
      +

      Returns either RuleViolation.NONE if the input is standard, or which rule makes it non-standard if so. + The "IsStandard" rules control whether the default Bitcoin Core client blocks relay of a tx / refuses to mine it, + however, non-standard transactions can still be included in blocks and will be accepted as valid if so.

      + +

      This method simply calls DefaultRiskAnalysis.isInputStandard(this).

      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Returns a human readable debug string.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionOutPoint.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutPoint.html new file mode 100644 index 000000000..ffb1b6662 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutPoint.html @@ -0,0 +1,438 @@ + + + + +TransactionOutPoint (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionOutPoint

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.ChildMessage +
org.bitcoinj.core.TransactionOutPoint
+
+
+
+
+
+
public class TransactionOutPoint +extends ChildMessage
+

This message is a reference or pointer to an output of a different transaction.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionOutPoint

      +
      public TransactionOutPoint(NetworkParameters params, + long index, + @Nullable + Transaction fromTx)
      +
      +
    • +
    • +
      +

      TransactionOutPoint

      +
      public TransactionOutPoint(NetworkParameters params, + long index, + Sha256Hash hash)
      +
      +
    • +
    • +
      +

      TransactionOutPoint

      +
      public TransactionOutPoint(NetworkParameters params, + TransactionOutput connectedOutput)
      +
      +
    • +
    • +
      +

      TransactionOutPoint

      +
      public TransactionOutPoint(NetworkParameters params, + byte[] payload, + int offset) + throws ProtocolException
      +
      /** + Deserializes the message. This is usually part of a transaction message.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      TransactionOutPoint

      +
      public TransactionOutPoint(NetworkParameters params, + byte[] payload, + int offset, + Message parent, + MessageSerializer serializer) + throws ProtocolException
      +
      Deserializes the message. This is usually part of a transaction message.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getConnectedOutput

      +
      @Nullable +public TransactionOutput getConnectedOutput()
      +
      An outpoint is a part of a transaction input that points to the output of another transaction. If we have both + sides in memory, and they have been linked together, this returns a pointer to the connected output, or null + if there is no such connection.
      +
      +
    • +
    • +
      +

      getConnectedPubKeyScript

      +
      public byte[] getConnectedPubKeyScript()
      +
      Returns the pubkey script from the connected output.
      +
      +
      Throws:
      +
      NullPointerException - if there is no connected output.
      +
      +
      +
    • +
    • +
      +

      getConnectedKey

      +
      @Nullable +public ECKey getConnectedKey(KeyBag keyBag) + throws ScriptException
      +
      Returns the ECKey identified in the connected output, for either P2PKH, P2WPKH or P2PK scripts. + For P2SH scripts you can use getConnectedRedeemData(KeyBag) and then get the + key from RedeemData. + If the script form cannot be understood, throws ScriptException.
      +
      +
      Returns:
      +
      an ECKey or null if the connected key cannot be found in the wallet.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getConnectedRedeemData

      +
      @Nullable +public RedeemData getConnectedRedeemData(KeyBag keyBag) + throws ScriptException
      +
      Returns the RedeemData identified in the connected output, for either P2PKH, P2WPKH, P2PK + or P2SH scripts. + If the script forms cannot be understood, throws ScriptException.
      +
      +
      Returns:
      +
      a RedeemData or null if the connected data cannot be found in the wallet.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      Returns the hash of the transaction this outpoint references/spends/is connected to.
      +
      +
      Overrides:
      +
      getHash in class Message
      +
      +
      +
    • +
    • +
      +

      getIndex

      +
      public long getIndex()
      +
      +
    • +
    • +
      +

      setIndex

      +
      public void setIndex(long index)
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionOutput.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutput.html new file mode 100644 index 000000000..749c80c1f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutput.html @@ -0,0 +1,670 @@ + + + + +TransactionOutput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionOutput

+
+ +
+
+
public class TransactionOutput +extends ChildMessage
+

A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value. It is a sub-part + of the Transaction message.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionOutput

      +
      public TransactionOutput(NetworkParameters params, + @Nullable + Transaction parent, + byte[] payload, + int offset) + throws ProtocolException
      +
      Deserializes a transaction output message. This is usually part of a transaction message.
      +
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      TransactionOutput

      +
      public TransactionOutput(NetworkParameters params, + @Nullable + Transaction parent, + byte[] payload, + int offset, + MessageSerializer serializer) + throws ProtocolException
      +
      Deserializes a transaction output message. This is usually part of a transaction message.
      +
      +
      Parameters:
      +
      params - NetworkParameters object.
      +
      payload - Bitcoin protocol formatted byte array containing message content.
      +
      offset - The location of the first payload byte within the array.
      +
      serializer - the serializer to use for this message.
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      TransactionOutput

      +
      public TransactionOutput(NetworkParameters params, + @Nullable + Transaction parent, + Coin value, + Address to)
      +
      Creates an output that sends 'value' to the given address (public key hash). The amount should be created with + something like Coin.valueOf(int, int). Typically you would use + Transaction.addOutput(Coin, Address) instead of creating a TransactionOutput directly.
      +
      +
    • +
    • +
      +

      TransactionOutput

      +
      public TransactionOutput(NetworkParameters params, + @Nullable + Transaction parent, + Coin value, + ECKey to)
      +
      Creates an output that sends 'value' to the given public key using a simple CHECKSIG script (no addresses). The + amount should be created with something like Coin.valueOf(int, int). Typically you would use + Transaction.addOutput(Coin, ECKey) instead of creating an output directly.
      +
      +
    • +
    • +
      +

      TransactionOutput

      +
      public TransactionOutput(NetworkParameters params, + @Nullable + Transaction parent, + Coin value, + byte[] scriptBytes)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getScriptPubKey

      +
      public Script getScriptPubKey() + throws ScriptException
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getAddressFromP2PKHScript

      +
      @Nullable +@Deprecated +public LegacyAddress getAddressFromP2PKHScript(NetworkParameters params) + throws ScriptException
      +
      Deprecated.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getAddressFromP2SH

      +
      @Nullable +@Deprecated +public LegacyAddress getAddressFromP2SH(NetworkParameters params) + throws ScriptException
      +
      Deprecated.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public Coin getValue()
      +
      Returns the value of this output. This is the amount of currency that the destination address + receives.
      +
      +
    • +
    • +
      +

      setValue

      +
      public void setValue(Coin value)
      +
      Sets the value of this output.
      +
      +
    • +
    • +
      +

      getIndex

      +
      public int getIndex()
      +
      Gets the index of this output in the parent transaction, or throws if this output is free standing. Iterates + over the parents list to discover this.
      +
      +
    • +
    • +
      +

      isDust

      +
      public boolean isDust()
      +
      Will this transaction be relayable and mined by default miners?
      +
      +
    • +
    • +
      +

      getMinNonDustValue

      +
      public Coin getMinNonDustValue(Coin feePerKb)
      +

      Gets the minimum value for a txout of this size to be considered non-dust by Bitcoin Core + (and thus relayed). See: CTxOut::IsDust() in Bitcoin Core.

      + +

      You probably should use getMinNonDustValue() which uses + a safe fee-per-kb by default.

      +
      +
      Parameters:
      +
      feePerKb - The fee required per kilobyte. Note that this is the same as Bitcoin Core's -minrelaytxfee * 3
      +
      +
      +
    • +
    • +
      +

      getMinNonDustValue

      +
      public Coin getMinNonDustValue()
      +
      Returns the minimum value for this output to be considered "not dust", i.e. the transaction will be relayable + and mined by default miners.
      +
      +
    • +
    • +
      +

      markAsSpent

      +
      public void markAsSpent(TransactionInput input)
      +
      Sets this objects availableForSpending flag to false and the spentBy pointer to the given input. + If the input is null, it means this output was signed over to somebody else rather than one of our own keys.
      +
      +
      Throws:
      +
      IllegalStateException - if the transaction was already marked as spent.
      +
      +
      +
    • +
    • +
      +

      markAsUnspent

      +
      public void markAsUnspent()
      +
      Resets the spent pointer / availableForSpending flag to null.
      +
      +
    • +
    • +
      +

      isAvailableForSpending

      +
      public boolean isAvailableForSpending()
      +
      Returns whether markAsSpent(TransactionInput) has been called on this class. A + Wallet will mark a transaction output as spent once it sees a transaction input that is connected to it. + Note that this flag can be false when an output has in fact been spent according to the rest of the network if + the spending transaction wasn't downloaded yet, and it can be marked as spent when in reality the rest of the + network believes it to be unspent if the signature or script connecting to it was not actually valid.
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public byte[] getScriptBytes()
      +
      The backing script bytes which can be turned into a Script object.
      +
      +
      Returns:
      +
      the scriptBytes
      +
      +
      +
    • +
    • +
      +

      isMineOrWatched

      +
      public boolean isMineOrWatched(TransactionBag transactionBag)
      +
      Returns true if this output is to a key in the wallet or to an address/script we are watching.
      +
      +
    • +
    • +
      +

      isWatched

      +
      public boolean isWatched(TransactionBag transactionBag)
      +
      Returns true if this output is to a key, or an address we have the keys for, in the wallet.
      +
      +
    • +
    • +
      +

      isMine

      +
      public boolean isMine(TransactionBag transactionBag)
      +
      Returns true if this output is to a key, or an address we have the keys for, in the wallet.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Returns a human readable debug string.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      getSpentBy

      +
      @Nullable +public TransactionInput getSpentBy()
      +
      Returns the connected input.
      +
      +
    • +
    • +
      +

      getParentTransaction

      +
      @Nullable +public Transaction getParentTransaction()
      +
      Returns the transaction that owns this output.
      +
      +
    • +
    • +
      +

      getParentTransactionHash

      +
      @Nullable +public Sha256Hash getParentTransactionHash()
      +
      Returns the transaction hash that owns this output.
      +
      +
    • +
    • +
      +

      getParentTransactionDepthInBlocks

      +
      public int getParentTransactionDepthInBlocks()
      +
      Returns the depth in blocks of the parent tx. + +

      If the transaction appears in the top block, the depth is one. If it's anything else (pending, dead, unknown) + then -1.

      +
      +
      Returns:
      +
      The tx depth or -1.
      +
      +
      +
    • +
    • +
      +

      getOutPointFor

      +
      public TransactionOutPoint getOutPointFor()
      +
      Returns a new TransactionOutPoint, which is essentially a structure pointing to this output. + Requires that this output is not detached.
      +
      +
    • +
    • +
      +

      duplicateDetached

      +
      public TransactionOutput duplicateDetached()
      +
      Returns a copy of the output detached from its containing transaction, if need be.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionOutputChanges.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutputChanges.html new file mode 100644 index 000000000..39131ad42 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionOutputChanges.html @@ -0,0 +1,221 @@ + + + + +TransactionOutputChanges (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionOutputChanges

+
+
java.lang.Object +
org.bitcoinj.core.TransactionOutputChanges
+
+
+
+
public class TransactionOutputChanges +extends Object
+

TransactionOutputChanges represents a delta to the set of unspent outputs. It used as a return value for + AbstractBlockChain.connectTransactions(int, Block). It contains the full list of transaction outputs created + and spent in a block. It DOES contain outputs created that were spent later in the block, as those are needed for + BIP30 (no duplicate txid creation if the previous one was not fully spent prior to this block) verification.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      txOutsCreated

      +
      public final List<UTXO> txOutsCreated
      +
      +
    • +
    • +
      +

      txOutsSpent

      +
      public final List<UTXO> txOutsSpent
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionOutputChanges

      +
      public TransactionOutputChanges(List<UTXO> txOutsCreated, + List<UTXO> txOutsSpent)
      +
      +
    • +
    • +
      +

      TransactionOutputChanges

      +
      public TransactionOutputChanges(InputStream in) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TransactionWitness.html b/javadoc/0.16.3/org/bitcoinj/core/TransactionWitness.html new file mode 100644 index 000000000..8569e7ec3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TransactionWitness.html @@ -0,0 +1,291 @@ + + + + +TransactionWitness (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionWitness

+
+
java.lang.Object +
org.bitcoinj.core.TransactionWitness
+
+
+
+
public class TransactionWitness +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionWitness

      +
      public TransactionWitness(int pushCount)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      redeemP2WPKH

      +
      public static TransactionWitness redeemP2WPKH(@Nullable + TransactionSignature signature, + ECKey pubKey)
      +
      Creates the stack pushes necessary to redeem a P2WPKH output. If given signature is null, an empty push will be + used as a placeholder.
      +
      +
    • +
    • +
      +

      redeemP2WSH

      +
      public static TransactionWitness redeemP2WSH(Script witnessScript, + TransactionSignature... signatures)
      +
      Creates the stack pushes necessary to redeem a P2WSH output.
      +
      +
    • +
    • +
      +

      getPush

      +
      public byte[] getPush(int i)
      +
      +
    • +
    • +
      +

      getPushCount

      +
      public int getPushCount()
      +
      +
    • +
    • +
      +

      setPush

      +
      public void setPush(int i, + byte[] value)
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/TxConfidenceTable.html b/javadoc/0.16.3/org/bitcoinj/core/TxConfidenceTable.html new file mode 100644 index 000000000..2c8c0cbd6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/TxConfidenceTable.html @@ -0,0 +1,289 @@ + + + + +TxConfidenceTable (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TxConfidenceTable

+
+
java.lang.Object +
org.bitcoinj.core.TxConfidenceTable
+
+
+
+
public class TxConfidenceTable +extends Object
+

Tracks transactions that are being announced across the network. Typically one is created for you by a + PeerGroup and then given to each Peer to update. The current purpose is to let Peers update the confidence + (number of peers broadcasting). It helps address an attack scenario in which a malicious remote peer (or several) + feeds you invalid transactions, eg, ones that spend coins which don't exist. If you don't see most of the peers + announce the transaction within a reasonable time, it may be that the TX is not valid. Alternatively, an attacker + may control your entire internet connection: in this scenario counting broadcasting peers does not help you.

+ +

It is not at this time directly equivalent to the Bitcoin Core memory pool, which tracks + all transactions not currently included in the best chain - it's simply a cache.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      lock

      +
      protected final ReentrantLock lock
      +
      +
    • +
    • +
      +

      MAX_SIZE

      +
      public static final int MAX_SIZE
      +
      The max size of a table created with the no-args constructor.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TxConfidenceTable

      +
      public TxConfidenceTable(int size)
      +
      Creates a table that will track at most the given number of transactions (allowing you to bound memory + usage).
      +
      +
      Parameters:
      +
      size - Max number of transactions to track. The table will fill up to this size then stop growing.
      +
      +
      +
    • +
    • +
      +

      TxConfidenceTable

      +
      public TxConfidenceTable()
      +
      Creates a table that will track at most MAX_SIZE entries. You should normally use + this constructor.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      numBroadcastPeers

      +
      public int numBroadcastPeers(Sha256Hash txHash)
      +
      Returns the number of peers that have seen the given hash recently.
      +
      +
    • +
    • +
      +

      seen

      +
      public TransactionConfidence seen(Sha256Hash hash, + PeerAddress byPeer)
      +
      Called by peers when they see a transaction advertised in an "inv" message. It passes the data on to the relevant + TransactionConfidence object, creating it if needed.
      +
      +
      Returns:
      +
      the number of peers that have now announced this hash (including the caller)
      +
      +
      +
    • +
    • +
      +

      getOrCreate

      +
      public TransactionConfidence getOrCreate(Sha256Hash hash)
      +
      Returns the TransactionConfidence for the given hash if we have downloaded it, or null if that tx hash + is unknown to the system at this time.
      +
      +
    • +
    • +
      +

      get

      +
      @Nullable +public TransactionConfidence get(Sha256Hash hash)
      +
      Returns the TransactionConfidence for the given hash if we have downloaded it, or null if that tx hash + is unknown to the system at this time.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UTXO.html b/javadoc/0.16.3/org/bitcoinj/core/UTXO.html new file mode 100644 index 000000000..8e257fc83 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UTXO.html @@ -0,0 +1,357 @@ + + + + +UTXO (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UTXO

+
+
java.lang.Object +
org.bitcoinj.core.UTXO
+
+
+
+
public class UTXO +extends Object
+
A UTXO message contains the information necessary to check a spending transaction. + It avoids having to store the entire parentTransaction just to get the hash and index. + Useful when working with free standing outputs.
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    UTXO(Sha256Hash hash, + long index, + Coin value, + int height, + boolean coinbase, + Script script)
    +
    +
    Creates a stored transaction output.
    +
    +
    UTXO(Sha256Hash hash, + long index, + Coin value, + int height, + boolean coinbase, + Script script, + String address)
    +
    +
    Creates a stored transaction output.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    boolean
    + +
     
    +
    static UTXO
    + +
     
    + + +
    +
    The address of this output, can be the empty string if none was provided at construction time or was deserialized
    +
    + + +
    +
    The hash of the transaction which holds this output.
    +
    +
    int
    + +
    +
    Gets the height of the block that created this output.
    +
    +
    long
    + +
    +
    The index of this output in the transaction which holds it.
    +
    + + +
    +
    The Script object which you can use to get address, script bytes or script type.
    +
    + + +
    +
    The value which this Transaction output holds.
    +
    +
    int
    + +
     
    +
    boolean
    + +
    +
    Gets the flag of whether this was created by a coinbase tx.
    +
    +
    void
    + +
     
    + + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UTXO

      +
      public UTXO(Sha256Hash hash, + long index, + Coin value, + int height, + boolean coinbase, + Script script)
      +
      Creates a stored transaction output.
      +
      +
      Parameters:
      +
      hash - The hash of the containing transaction.
      +
      index - The outpoint.
      +
      value - The value available.
      +
      height - The height this output was created in.
      +
      coinbase - The coinbase flag.
      +
      +
      +
    • +
    • +
      +

      UTXO

      +
      public UTXO(Sha256Hash hash, + long index, + Coin value, + int height, + boolean coinbase, + Script script, + String address)
      +
      Creates a stored transaction output.
      +
      +
      Parameters:
      +
      hash - The hash of the containing transaction.
      +
      index - The outpoint.
      +
      value - The value available.
      +
      height - The height this output was created in.
      +
      coinbase - The coinbase flag.
      +
      address - The address.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getValue

      +
      public Coin getValue()
      +
      The value which this Transaction output holds.
      +
      +
    • +
    • +
      +

      getScript

      +
      public Script getScript()
      +
      The Script object which you can use to get address, script bytes or script type.
      +
      +
    • +
    • +
      +

      getHash

      +
      public Sha256Hash getHash()
      +
      The hash of the transaction which holds this output.
      +
      +
    • +
    • +
      +

      getIndex

      +
      public long getIndex()
      +
      The index of this output in the transaction which holds it.
      +
      +
    • +
    • +
      +

      getHeight

      +
      public int getHeight()
      +
      Gets the height of the block that created this output.
      +
      +
    • +
    • +
      +

      isCoinbase

      +
      public boolean isCoinbase()
      +
      Gets the flag of whether this was created by a coinbase tx.
      +
      +
    • +
    • +
      +

      getAddress

      +
      public String getAddress()
      +
      The address of this output, can be the empty string if none was provided at construction time or was deserialized
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      serializeToStream

      +
      public void serializeToStream(OutputStream bos) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      fromStream

      +
      public static UTXO fromStream(InputStream in) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UTXOProvider.html b/javadoc/0.16.3/org/bitcoinj/core/UTXOProvider.html new file mode 100644 index 000000000..07a006d81 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UTXOProvider.html @@ -0,0 +1,184 @@ + + + + +UTXOProvider (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface UTXOProvider

+
+
+
+
All Known Subinterfaces:
+
FullPrunedBlockStore
+
+
+
All Known Implementing Classes:
+
DatabaseFullPrunedBlockStore, H2FullPrunedBlockStore, LevelDBFullPrunedBlockStore, MemoryFullPrunedBlockStore, MySQLFullPrunedBlockStore, PostgresFullPrunedBlockStore
+
+
+
public interface UTXOProvider
+
A UTXOProvider encapsulates functionality for returning unspent transaction outputs, + for use by the wallet or other code that crafts spends. + +

A FullPrunedBlockStore is an internal implementation within bitcoinj.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UTXOProviderException.html b/javadoc/0.16.3/org/bitcoinj/core/UTXOProviderException.html new file mode 100644 index 000000000..4e4bdfb26 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UTXOProviderException.html @@ -0,0 +1,173 @@ + + + + +UTXOProviderException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UTXOProviderException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.core.UTXOProviderException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class UTXOProviderException +extends Exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UTXOProviderException

      +
      public UTXOProviderException()
      +
      +
    • +
    • +
      +

      UTXOProviderException

      +
      public UTXOProviderException(String message)
      +
      +
    • +
    • +
      +

      UTXOProviderException

      +
      public UTXOProviderException(String message, + Throwable cause)
      +
      +
    • +
    • +
      +

      UTXOProviderException

      +
      public UTXOProviderException(Throwable cause)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UTXOsMessage.html b/javadoc/0.16.3/org/bitcoinj/core/UTXOsMessage.html new file mode 100644 index 000000000..c639f8d68 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UTXOsMessage.html @@ -0,0 +1,339 @@ + + + + +UTXOsMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UTXOsMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.UTXOsMessage
+
+
+
+
+
public class UTXOsMessage +extends Message
+

Message representing a list of unspent transaction outputs ("utxos"), returned in response to sending a + GetUTXOsMessage ("getutxos"). Note that both this message and the query that generates it are not + supported by Bitcoin Core. An implementation is available in Bitcoin XT, + a patch set on top of Core. Thus if you want to use it, you must find some XT peers to connect to. This can be done + using a HttpDiscovery class combined with an HTTP/Cartographer seed.

+ +

The getutxos/utxos protocol is defined in BIP 65. + In that document you can find a discussion of the security of this protocol (briefly, there is none). Because the + data found in this message is not authenticated it should be used carefully. Places where it can be useful are if + you're querying your own trusted node, if you're comparing answers from multiple nodes simultaneously and don't + believe there is a MITM on your connection, or if you're only using the returned data as a UI hint and it's OK + if the data is occasionally wrong. Bear in mind that the answer can be wrong even in the absence of malicious intent + just through the nature of querying an ever changing data source: the UTXO set may be updated by a new transaction + immediately after this message is returned.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MEMPOOL_HEIGHT

      +
      public static long MEMPOOL_HEIGHT
      +
      This is a special sentinel value that can appear in the heights field if the given tx is in the mempool.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UTXOsMessage

      +
      public UTXOsMessage(NetworkParameters params, + byte[] payloadBytes)
      +
      +
    • +
    • +
      +

      UTXOsMessage

      +
      public UTXOsMessage(NetworkParameters params, + List<TransactionOutput> outputs, + long[] heights, + Sha256Hash chainHead, + long height)
      +
      Provide an array of output objects, with nulls indicating that the output was missing. The bitset will + be calculated from this.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      bitcoinSerializeToStream

      +
      protected void bitcoinSerializeToStream(OutputStream stream) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      getHitMap

      +
      public byte[] getHitMap()
      +
      Returns a bit map indicating which of the queried outputs were found in the UTXO set.
      +
      +
    • +
    • +
      +

      getOutputs

      +
      public List<TransactionOutput> getOutputs()
      +
      Returns the list of outputs that matched the query.
      +
      +
    • +
    • +
      +

      getHeights

      +
      public long[] getHeights()
      +
      Returns the block heights of each output returned in getOutputs(), or MEMPOOL_HEIGHT if not confirmed yet.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UnknownMessage.html b/javadoc/0.16.3/org/bitcoinj/core/UnknownMessage.html new file mode 100644 index 000000000..7e1d41216 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UnknownMessage.html @@ -0,0 +1,192 @@ + + + + +UnknownMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnknownMessage

+
+ +
+
+
public class UnknownMessage +extends EmptyMessage
+

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/UnsafeByteArrayOutputStream.html b/javadoc/0.16.3/org/bitcoinj/core/UnsafeByteArrayOutputStream.html new file mode 100644 index 000000000..2db4b990b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/UnsafeByteArrayOutputStream.html @@ -0,0 +1,334 @@ + + + + +UnsafeByteArrayOutputStream (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnsafeByteArrayOutputStream

+
+
java.lang.Object +
java.io.OutputStream +
java.io.ByteArrayOutputStream +
org.bitcoinj.core.UnsafeByteArrayOutputStream
+
+
+
+
+
+
All Implemented Interfaces:
+
Closeable, Flushable, AutoCloseable
+
+
+
public class UnsafeByteArrayOutputStream +extends ByteArrayOutputStream
+

An unsynchronized implementation of ByteArrayOutputStream that will return the backing byte array if its length == size(). + This avoids unneeded array copy where the BOS is simply being used to extract a byte array of known length from a + 'serialized to stream' method.

+ +

Unless the final length can be accurately predicted the only performance this will yield is due to unsynchronized + methods.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UnsafeByteArrayOutputStream

      +
      public UnsafeByteArrayOutputStream()
      +
      +
    • +
    • +
      +

      UnsafeByteArrayOutputStream

      +
      public UnsafeByteArrayOutputStream(int size)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      write

      +
      public void write(int b)
      +
      Writes the specified byte to this byte array output stream.
      +
      +
      Overrides:
      +
      write in class ByteArrayOutputStream
      +
      Parameters:
      +
      b - the byte to be written.
      +
      +
      +
    • +
    • +
      +

      write

      +
      public void write(byte[] b, + int off, + int len)
      +
      Writes len bytes from the specified byte array + starting at offset off to this byte array output stream.
      +
      +
      Overrides:
      +
      write in class ByteArrayOutputStream
      +
      Parameters:
      +
      b - the data.
      +
      off - the start offset in the data.
      +
      len - the number of bytes to write.
      +
      +
      +
    • +
    • +
      +

      writeTo

      +
      public void writeTo(OutputStream out) + throws IOException
      +
      Writes the complete contents of this byte array output stream to + the specified output stream argument, as if by calling the output + stream's write method using out.write(buf, 0, count).
      +
      +
      Overrides:
      +
      writeTo in class ByteArrayOutputStream
      +
      Parameters:
      +
      out - the output stream to which to write the data.
      +
      Throws:
      +
      IOException - if an I/O error occurs.
      +
      +
      +
    • +
    • +
      +

      reset

      +
      public void reset()
      +
      Resets the count field of this byte array output + stream to zero, so that all currently accumulated output in the + output stream is discarded. The output stream can be used again, + reusing the already allocated buffer space.
      +
      +
      Overrides:
      +
      reset in class ByteArrayOutputStream
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      toByteArray

      +
      public byte[] toByteArray()
      +
      Creates a newly allocated byte array. Its size is the current + size of this output stream and the valid contents of the buffer + have been copied into it.
      +
      +
      Overrides:
      +
      toByteArray in class ByteArrayOutputStream
      +
      Returns:
      +
      the current contents of this output stream, as a byte array.
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      size

      +
      public int size()
      +
      Returns the current size of the buffer.
      +
      +
      Overrides:
      +
      size in class ByteArrayOutputStream
      +
      Returns:
      +
      the value of the count field, which is the number + of valid bytes in this output stream.
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/Utils.html b/javadoc/0.16.3/org/bitcoinj/core/Utils.html new file mode 100644 index 000000000..27e83ac8c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/Utils.html @@ -0,0 +1,859 @@ + + + + +Utils (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Utils

+
+
java.lang.Object +
org.bitcoinj.core.Utils
+
+
+
+
public class Utils +extends Object
+
A collection of various utility methods that are helpful for working with the Bitcoin protocol. + To enable debug logging from the library, run with -Dbitcoinj.logging=true on your command line.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final com.google.common.io.BaseEncoding
    + +
    +
    Hex encoding used throughout the framework.
    +
    +
    static final int
    + +
    +
    Max initial size of variable length arrays and ArrayLists that could be attacked.
    +
    +
    static final com.google.common.base.Joiner
    + +
    +
    Joiner for concatenating words with a space inbetween.
    +
    +
    static final com.google.common.base.Splitter
    + +
    +
    Splitter for splitting words on whitespaces.
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static byte[]
    +
    bigIntegerToBytes(BigInteger b, + int numBytes)
    +
    +
    + The regular BigInteger.toByteArray() includes the sign bit of the number and + might result in an extra byte addition.
    +
    +
    static boolean
    +
    checkBitLE(byte[] data, + int index)
    +
    +
    Checks if the given bit is set in data, using little endian (not the same as Java native big endian)
    +
    +
    static long
    + +
    +
    Returns the current time in milliseconds since the epoch, or a mocked out equivalent.
    +
    +
    static long
    + +
    +
    Returns the current time in seconds since the epoch, or a mocked out equivalent.
    +
    +
    static String
    +
    dateTimeFormat(long dateTime)
    +
    +
    Formats a given date+time value to an ISO 8601 string.
    +
    +
    static String
    +
    dateTimeFormat(Date dateTime)
    +
    +
    Formats a given date+time value to an ISO 8601 string.
    +
    +
    static BigInteger
    +
    decodeCompactBits(long compact)
    +
    +
    The "compact" format is a representation of a whole number N using an unsigned 32 bit number similar to a + floating point format.
    +
    +
    static BigInteger
    +
    decodeMPI(byte[] mpi, + boolean hasLength)
    +
    +
    MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function.
    +
    +
    static long
    + +
     
    +
    static byte[]
    +
    encodeMPI(BigInteger value, + boolean includeLength)
    +
    +
    MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function.
    +
    +
    static void
    +
    int64ToByteArrayLE(long val, + byte[] out, + int offset)
    +
    +
    Write 8 bytes to the byte array (starting at the offset) as signed 64-bit integer in little endian format.
    +
    +
    static void
    +
    int64ToByteStreamLE(long val, + OutputStream stream)
    +
    +
    Write 8 bytes to the output stream as signed 64-bit integer in little endian format.
    +
    +
    static boolean
    + +
     
    +
    static boolean
    + +
     
    +
    static boolean
    + +
     
    +
    static boolean
    + +
     
    +
    static boolean
    + +
     
    +
    static boolean
    + +
     
    +
    static Date
    +
    now()
    +
    +
    Returns the current time, or a mocked out equivalent.
    +
    +
    static long
    +
    readInt64(byte[] bytes, + int offset)
    +
    +
    Parse 8 bytes from the byte array (starting at the offset) as signed 64-bit integer in little endian format.
    +
    +
    static int
    +
    readUint16(byte[] bytes, + int offset)
    +
    +
    Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
    +
    +
    static int
    +
    readUint16BE(byte[] bytes, + int offset)
    +
    +
    Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in big endian format.
    +
    +
    static int
    + +
    +
    Parse 2 bytes from the stream as unsigned 16-bit integer in little endian format.
    +
    +
    static long
    +
    readUint32(byte[] bytes, + int offset)
    +
    +
    Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
    +
    +
    static long
    +
    readUint32BE(byte[] bytes, + int offset)
    +
    +
    Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
    +
    +
    static long
    + +
    +
    Parse 4 bytes from the stream as unsigned 32-bit integer in little endian format.
    +
    +
    static void
    + +
    +
    Clears the mock clock and sleep
    +
    +
    static byte[]
    +
    reverseBytes(byte[] bytes)
    +
    +
    Returns a copy of the given byte array in reverse order.
    +
    +
    static Date
    +
    rollMockClock(int seconds)
    +
    +
    Advances (or rewinds) the mock clock by the given number of seconds.
    +
    +
    static Date
    +
    rollMockClockMillis(long millis)
    +
    +
    Advances (or rewinds) the mock clock by the given number of milliseconds.
    +
    +
    static void
    +
    setBitLE(byte[] data, + int index)
    +
    +
    Sets the given bit in data to one, using little endian (not the same as Java native big endian)
    +
    +
    static void
    + +
    +
    Sets the mock clock to the current time.
    +
    +
    static void
    +
    setMockClock(long mockClockSeconds)
    +
    +
    Sets the mock clock to the given time (in seconds).
    +
    +
    static byte[]
    +
    sha256hash160(byte[] input)
    +
    +
    Calculates RIPEMD160(SHA256(input)).
    +
    +
    static String
    +
    toString(List<byte[]> stack)
    +
     
    +
    static void
    +
    uint16ToByteArrayLE(int val, + byte[] out, + int offset)
    +
    +
    Write 2 bytes to the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
    +
    +
    static void
    +
    uint16ToByteStreamBE(int val, + OutputStream stream)
    +
    +
    Write 2 bytes to the output stream as unsigned 16-bit integer in big endian format.
    +
    +
    static void
    +
    uint16ToByteStreamLE(int val, + OutputStream stream)
    +
    +
    Write 2 bytes to the output stream as unsigned 16-bit integer in little endian format.
    +
    +
    static void
    +
    uint32ToByteArrayBE(long val, + byte[] out, + int offset)
    +
    +
    Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
    +
    +
    static void
    +
    uint32ToByteArrayLE(long val, + byte[] out, + int offset)
    +
    +
    Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
    +
    +
    static void
    +
    uint32ToByteStreamBE(long val, + OutputStream stream)
    +
    +
    Write 4 bytes to the output stream as unsigned 32-bit integer in big endian format.
    +
    +
    static void
    +
    uint32ToByteStreamLE(long val, + OutputStream stream)
    +
    +
    Write 4 bytes to the output stream as unsigned 32-bit integer in little endian format.
    +
    +
    static void
    + +
    +
    Write 8 bytes to the output stream as unsigned 64-bit integer in little endian format.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SPACE_JOINER

      +
      public static final com.google.common.base.Joiner SPACE_JOINER
      +
      Joiner for concatenating words with a space inbetween.
      +
      +
    • +
    • +
      +

      WHITESPACE_SPLITTER

      +
      public static final com.google.common.base.Splitter WHITESPACE_SPLITTER
      +
      Splitter for splitting words on whitespaces.
      +
      +
    • +
    • +
      +

      HEX

      +
      public static final com.google.common.io.BaseEncoding HEX
      +
      Hex encoding used throughout the framework. Use with HEX.encode(byte[]) or HEX.decode(CharSequence).
      +
      +
    • +
    • +
      +

      MAX_INITIAL_ARRAY_LENGTH

      +
      public static final int MAX_INITIAL_ARRAY_LENGTH
      +
      Max initial size of variable length arrays and ArrayLists that could be attacked. + Avoids this attack: Attacker sends a msg indicating it will contain a huge number (eg 2 billion) elements (eg transaction inputs) and + forces bitcoinj to try to allocate a huge piece of the memory resulting in OutOfMemoryError.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Utils

      +
      public Utils()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      bigIntegerToBytes

      +
      public static byte[] bigIntegerToBytes(BigInteger b, + int numBytes)
      +

      + The regular BigInteger.toByteArray() includes the sign bit of the number and + might result in an extra byte addition. This method removes this extra byte. +

      +

      + Assuming only positive numbers, it's possible to discriminate if an extra byte + is added by checking if the first element of the array is 0 (0000_0000). + Due to the minimal representation provided by BigInteger, it means that the bit sign + is the least significant bit 0000_0000 . + Otherwise the representation is not minimal. + For example, if the sign bit is 0000_0000, then the representation is not minimal due to the rightmost zero. +

      +
      +
      Parameters:
      +
      b - the integer to format into a byte array
      +
      numBytes - the desired size of the resulting byte array
      +
      Returns:
      +
      numBytes byte long array.
      +
      +
      +
    • +
    • +
      +

      uint16ToByteArrayLE

      +
      public static void uint16ToByteArrayLE(int val, + byte[] out, + int offset)
      +
      Write 2 bytes to the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      uint32ToByteArrayLE

      +
      public static void uint32ToByteArrayLE(long val, + byte[] out, + int offset)
      +
      Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      uint32ToByteArrayBE

      +
      public static void uint32ToByteArrayBE(long val, + byte[] out, + int offset)
      +
      Write 4 bytes to the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
      +
      +
    • +
    • +
      +

      int64ToByteArrayLE

      +
      public static void int64ToByteArrayLE(long val, + byte[] out, + int offset)
      +
      Write 8 bytes to the byte array (starting at the offset) as signed 64-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      uint16ToByteStreamLE

      +
      public static void uint16ToByteStreamLE(int val, + OutputStream stream) + throws IOException
      +
      Write 2 bytes to the output stream as unsigned 16-bit integer in little endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      uint16ToByteStreamBE

      +
      public static void uint16ToByteStreamBE(int val, + OutputStream stream) + throws IOException
      +
      Write 2 bytes to the output stream as unsigned 16-bit integer in big endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      uint32ToByteStreamLE

      +
      public static void uint32ToByteStreamLE(long val, + OutputStream stream) + throws IOException
      +
      Write 4 bytes to the output stream as unsigned 32-bit integer in little endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      uint32ToByteStreamBE

      +
      public static void uint32ToByteStreamBE(long val, + OutputStream stream) + throws IOException
      +
      Write 4 bytes to the output stream as unsigned 32-bit integer in big endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      int64ToByteStreamLE

      +
      public static void int64ToByteStreamLE(long val, + OutputStream stream) + throws IOException
      +
      Write 8 bytes to the output stream as signed 64-bit integer in little endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      uint64ToByteStreamLE

      +
      public static void uint64ToByteStreamLE(BigInteger val, + OutputStream stream) + throws IOException
      +
      Write 8 bytes to the output stream as unsigned 64-bit integer in little endian format.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      readUint16

      +
      public static int readUint16(byte[] bytes, + int offset)
      +
      Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      readUint32

      +
      public static long readUint32(byte[] bytes, + int offset)
      +
      Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      readInt64

      +
      public static long readInt64(byte[] bytes, + int offset)
      +
      Parse 8 bytes from the byte array (starting at the offset) as signed 64-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      readUint32BE

      +
      public static long readUint32BE(byte[] bytes, + int offset)
      +
      Parse 4 bytes from the byte array (starting at the offset) as unsigned 32-bit integer in big endian format.
      +
      +
    • +
    • +
      +

      readUint16BE

      +
      public static int readUint16BE(byte[] bytes, + int offset)
      +
      Parse 2 bytes from the byte array (starting at the offset) as unsigned 16-bit integer in big endian format.
      +
      +
    • +
    • +
      +

      readUint16FromStream

      +
      public static int readUint16FromStream(InputStream is)
      +
      Parse 2 bytes from the stream as unsigned 16-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      readUint32FromStream

      +
      public static long readUint32FromStream(InputStream is)
      +
      Parse 4 bytes from the stream as unsigned 32-bit integer in little endian format.
      +
      +
    • +
    • +
      +

      reverseBytes

      +
      public static byte[] reverseBytes(byte[] bytes)
      +
      Returns a copy of the given byte array in reverse order.
      +
      +
    • +
    • +
      +

      sha256hash160

      +
      public static byte[] sha256hash160(byte[] input)
      +
      Calculates RIPEMD160(SHA256(input)). This is used in Address calculations.
      +
      +
    • +
    • +
      +

      decodeMPI

      +
      public static BigInteger decodeMPI(byte[] mpi, + boolean hasLength)
      +
      MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function. They consist of + a 4 byte big endian length field, followed by the stated number of bytes representing + the number in big endian format (with a sign bit).
      +
      +
      Parameters:
      +
      hasLength - can be set to false if the given array is missing the 4 byte length field
      +
      +
      +
    • +
    • +
      +

      encodeMPI

      +
      public static byte[] encodeMPI(BigInteger value, + boolean includeLength)
      +
      MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function. They consist of + a 4 byte big endian length field, followed by the stated number of bytes representing + the number in big endian format (with a sign bit).
      +
      +
      Parameters:
      +
      includeLength - indicates whether the 4 byte length field should be included
      +
      +
      +
    • +
    • +
      +

      decodeCompactBits

      +
      public static BigInteger decodeCompactBits(long compact)
      +

      The "compact" format is a representation of a whole number N using an unsigned 32 bit number similar to a + floating point format. The most significant 8 bits are the unsigned exponent of base 256. This exponent can + be thought of as "number of bytes of N". The lower 23 bits are the mantissa. Bit number 24 (0x800000) represents + the sign of N. Therefore, N = (-1^sign) * mantissa * 256^(exponent-3).

      + +

      Satoshi's original implementation used BN_bn2mpi() and BN_mpi2bn(). MPI uses the most significant bit of the + first byte as sign. Thus 0x1234560000 is compact 0x05123456 and 0xc0de000000 is compact 0x0600c0de. Compact + 0x05c0de00 would be -0x40de000000.

      + +

      Bitcoin only uses this "compact" format for encoding difficulty targets, which are unsigned 256bit quantities. + Thus, all the complexities of the sign bit and using base 256 are probably an implementation accident.

      +
      +
    • +
    • +
      +

      encodeCompactBits

      +
      public static long encodeCompactBits(BigInteger value)
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      rollMockClock

      +
      public static Date rollMockClock(int seconds)
      +
      Advances (or rewinds) the mock clock by the given number of seconds.
      +
      +
    • +
    • +
      +

      rollMockClockMillis

      +
      public static Date rollMockClockMillis(long millis)
      +
      Advances (or rewinds) the mock clock by the given number of milliseconds.
      +
      +
    • +
    • +
      +

      setMockClock

      +
      public static void setMockClock()
      +
      Sets the mock clock to the current time.
      +
      +
    • +
    • +
      +

      setMockClock

      +
      public static void setMockClock(long mockClockSeconds)
      +
      Sets the mock clock to the given time (in seconds).
      +
      +
    • +
    • +
      +

      resetMocking

      +
      public static void resetMocking()
      +
      Clears the mock clock and sleep
      +
      +
    • +
    • +
      +

      now

      +
      public static Date now()
      +
      Returns the current time, or a mocked out equivalent.
      +
      +
    • +
    • +
      +

      currentTimeMillis

      +
      public static long currentTimeMillis()
      +
      Returns the current time in milliseconds since the epoch, or a mocked out equivalent.
      +
      +
    • +
    • +
      +

      currentTimeSeconds

      +
      public static long currentTimeSeconds()
      +
      Returns the current time in seconds since the epoch, or a mocked out equivalent.
      +
      +
    • +
    • +
      +

      dateTimeFormat

      +
      public static String dateTimeFormat(Date dateTime)
      +
      Formats a given date+time value to an ISO 8601 string.
      +
      +
      Parameters:
      +
      dateTime - value to format, as a Date
      +
      +
      +
    • +
    • +
      +

      dateTimeFormat

      +
      public static String dateTimeFormat(long dateTime)
      +
      Formats a given date+time value to an ISO 8601 string.
      +
      +
      Parameters:
      +
      dateTime - value to format, unix time (ms)
      +
      +
      +
    • +
    • +
      +

      checkBitLE

      +
      public static boolean checkBitLE(byte[] data, + int index)
      +
      Checks if the given bit is set in data, using little endian (not the same as Java native big endian)
      +
      +
    • +
    • +
      +

      setBitLE

      +
      public static void setBitLE(byte[] data, + int index)
      +
      Sets the given bit in data to one, using little endian (not the same as Java native big endian)
      +
      +
    • +
    • +
      +

      isAndroidRuntime

      +
      public static boolean isAndroidRuntime()
      +
      +
    • +
    • +
      +

      isOpenJDKRuntime

      +
      public static boolean isOpenJDKRuntime()
      +
      +
    • +
    • +
      +

      isOracleJavaRuntime

      +
      public static boolean isOracleJavaRuntime()
      +
      +
    • +
    • +
      +

      isLinux

      +
      public static boolean isLinux()
      +
      +
    • +
    • +
      +

      isWindows

      +
      public static boolean isWindows()
      +
      +
    • +
    • +
      +

      isMac

      +
      public static boolean isMac()
      +
      +
    • +
    • +
      +

      toString

      +
      public static String toString(List<byte[]> stack)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VarInt.html b/javadoc/0.16.3/org/bitcoinj/core/VarInt.html new file mode 100644 index 000000000..bbc79359d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VarInt.html @@ -0,0 +1,289 @@ + + + + +VarInt (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VarInt

+
+
java.lang.Object +
org.bitcoinj.core.VarInt
+
+
+
+
public class VarInt +extends Object
+
A variable-length encoded unsigned integer using Satoshi's encoding (a.k.a. "CompactSize").
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    final long
    + +
    +
    Deprecated. + +
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    VarInt(byte[] buf, + int offset)
    +
    +
    Constructs a new VarInt with the value parsed from the specified offset of the given buffer.
    +
    +
    VarInt(long value)
    +
    +
    Constructs a new VarInt with the given unsigned long value.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    byte[]
    + +
    +
    Encodes the value into its minimal representation.
    +
    +
    int
    + +
    +
    Returns the original number of bytes used to encode the value if it was + deserialized from a byte array, or the minimum encoded size if it was not.
    +
    +
    final int
    + +
    +
    Returns the minimum encoded size of the value.
    +
    +
    int
    + +
     
    +
    long
    + +
     
    +
    static int
    +
    sizeOf(long value)
    +
    +
    Returns the minimum encoded size of the given unsigned long value.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      VarInt

      +
      public VarInt(long value)
      +
      Constructs a new VarInt with the given unsigned long value.
      +
      +
      Parameters:
      +
      value - the unsigned long value (beware widening conversion of negatives!)
      +
      +
      +
    • +
    • +
      +

      VarInt

      +
      public VarInt(byte[] buf, + int offset)
      +
      Constructs a new VarInt with the value parsed from the specified offset of the given buffer.
      +
      +
      Parameters:
      +
      buf - the buffer containing the value
      +
      offset - the offset of the value
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      longValue

      +
      public long longValue()
      +
      +
    • +
    • +
      +

      intValue

      +
      public int intValue()
      +
      +
    • +
    • +
      +

      getOriginalSizeInBytes

      +
      public int getOriginalSizeInBytes()
      +
      Returns the original number of bytes used to encode the value if it was + deserialized from a byte array, or the minimum encoded size if it was not.
      +
      +
    • +
    • +
      +

      getSizeInBytes

      +
      public final int getSizeInBytes()
      +
      Returns the minimum encoded size of the value.
      +
      +
    • +
    • +
      +

      sizeOf

      +
      public static int sizeOf(long value)
      +
      Returns the minimum encoded size of the given unsigned long value.
      +
      +
      Parameters:
      +
      value - the unsigned long value (beware widening conversion of negatives!)
      +
      +
      +
    • +
    • +
      +

      encode

      +
      public byte[] encode()
      +
      Encodes the value into its minimal representation.
      +
      +
      Returns:
      +
      the minimal encoded bytes of the value
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.BlockVersionOutOfDate.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.BlockVersionOutOfDate.html new file mode 100644 index 000000000..3a33b1a16 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.BlockVersionOutOfDate.html @@ -0,0 +1,164 @@ + + + + +VerificationException.BlockVersionOutOfDate (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.BlockVersionOutOfDate

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.BlockVersionOutOfDate
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.BlockVersionOutOfDate +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BlockVersionOutOfDate

      +
      public BlockVersionOutOfDate(long version)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseHeightMismatch.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseHeightMismatch.html new file mode 100644 index 000000000..1a09c5d3f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseHeightMismatch.html @@ -0,0 +1,164 @@ + + + + +VerificationException.CoinbaseHeightMismatch (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.CoinbaseHeightMismatch

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.CoinbaseHeightMismatch
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.CoinbaseHeightMismatch +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CoinbaseHeightMismatch

      +
      public CoinbaseHeightMismatch(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseScriptSizeOutOfRange.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseScriptSizeOutOfRange.html new file mode 100644 index 000000000..43d3abf08 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.CoinbaseScriptSizeOutOfRange.html @@ -0,0 +1,164 @@ + + + + +VerificationException.CoinbaseScriptSizeOutOfRange (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.CoinbaseScriptSizeOutOfRange

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.CoinbaseScriptSizeOutOfRange
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.CoinbaseScriptSizeOutOfRange +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CoinbaseScriptSizeOutOfRange

      +
      public CoinbaseScriptSizeOutOfRange()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.DuplicatedOutPoint.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.DuplicatedOutPoint.html new file mode 100644 index 000000000..3ebb97221 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.DuplicatedOutPoint.html @@ -0,0 +1,164 @@ + + + + +VerificationException.DuplicatedOutPoint (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.DuplicatedOutPoint

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.DuplicatedOutPoint +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DuplicatedOutPoint

      +
      public DuplicatedOutPoint()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.EmptyInputsOrOutputs.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.EmptyInputsOrOutputs.html new file mode 100644 index 000000000..e6d3d24bc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.EmptyInputsOrOutputs.html @@ -0,0 +1,164 @@ + + + + +VerificationException.EmptyInputsOrOutputs (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.EmptyInputsOrOutputs

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.EmptyInputsOrOutputs
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.EmptyInputsOrOutputs +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      EmptyInputsOrOutputs

      +
      public EmptyInputsOrOutputs()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.ExcessiveValue.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.ExcessiveValue.html new file mode 100644 index 000000000..71b71f018 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.ExcessiveValue.html @@ -0,0 +1,164 @@ + + + + +VerificationException.ExcessiveValue (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.ExcessiveValue

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.ExcessiveValue +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ExcessiveValue

      +
      public ExcessiveValue()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.LargerThanMaxBlockSize.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.LargerThanMaxBlockSize.html new file mode 100644 index 000000000..680ce48f8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.LargerThanMaxBlockSize.html @@ -0,0 +1,164 @@ + + + + +VerificationException.LargerThanMaxBlockSize (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.LargerThanMaxBlockSize

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.LargerThanMaxBlockSize
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.LargerThanMaxBlockSize +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LargerThanMaxBlockSize

      +
      public LargerThanMaxBlockSize()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NegativeValueOutput.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NegativeValueOutput.html new file mode 100644 index 000000000..0d8899e0d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NegativeValueOutput.html @@ -0,0 +1,164 @@ + + + + +VerificationException.NegativeValueOutput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.NegativeValueOutput

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.NegativeValueOutput +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NegativeValueOutput

      +
      public NegativeValueOutput()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NoncanonicalSignature.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NoncanonicalSignature.html new file mode 100644 index 000000000..10746a0b1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.NoncanonicalSignature.html @@ -0,0 +1,164 @@ + + + + +VerificationException.NoncanonicalSignature (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.NoncanonicalSignature

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.NoncanonicalSignature
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.NoncanonicalSignature +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NoncanonicalSignature

      +
      public NoncanonicalSignature()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.UnexpectedCoinbaseInput.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.UnexpectedCoinbaseInput.html new file mode 100644 index 000000000..47572e3ab --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.UnexpectedCoinbaseInput.html @@ -0,0 +1,164 @@ + + + + +VerificationException.UnexpectedCoinbaseInput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException.UnexpectedCoinbaseInput

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException +
org.bitcoinj.core.VerificationException.UnexpectedCoinbaseInput
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
VerificationException
+
+
+
public static class VerificationException.UnexpectedCoinbaseInput +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UnexpectedCoinbaseInput

      +
      public UnexpectedCoinbaseInput()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VerificationException.html b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.html new file mode 100644 index 000000000..76ced7ed3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VerificationException.html @@ -0,0 +1,213 @@ + + + + +VerificationException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VerificationException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.core.VerificationException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
ProtocolException, ScriptException, VerificationException.BlockVersionOutOfDate, VerificationException.CoinbaseHeightMismatch, VerificationException.CoinbaseScriptSizeOutOfRange, VerificationException.DuplicatedOutPoint, VerificationException.EmptyInputsOrOutputs, VerificationException.ExcessiveValue, VerificationException.LargerThanMaxBlockSize, VerificationException.NegativeValueOutput, VerificationException.NoncanonicalSignature, VerificationException.UnexpectedCoinbaseInput
+
+
+
public class VerificationException +extends RuntimeException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      VerificationException

      +
      public VerificationException(String msg)
      +
      +
    • +
    • +
      +

      VerificationException

      +
      public VerificationException(Exception e)
      +
      +
    • +
    • +
      +

      VerificationException

      +
      public VerificationException(String msg, + Throwable t)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VersionAck.html b/javadoc/0.16.3/org/bitcoinj/core/VersionAck.html new file mode 100644 index 000000000..d200c46d9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VersionAck.html @@ -0,0 +1,161 @@ + + + + +VersionAck (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VersionAck

+
+ +
+
+
public class VersionAck +extends EmptyMessage
+

The verack message, sent by a client accepting the version message they + received from their peer.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      VersionAck

      +
      public VersionAck()
      +
      +
    • +
    • +
      +

      VersionAck

      +
      public VersionAck(NetworkParameters params, + byte[] payload)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/VersionMessage.html b/javadoc/0.16.3/org/bitcoinj/core/VersionMessage.html new file mode 100644 index 000000000..12802f4b2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/VersionMessage.html @@ -0,0 +1,667 @@ + + + + +VersionMessage (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VersionMessage

+
+
java.lang.Object +
org.bitcoinj.core.Message +
org.bitcoinj.core.VersionMessage
+
+
+
+
+
public class VersionMessage +extends Message
+

A VersionMessage holds information exchanged during connection setup with another peer. Most of the fields are not + particularly interesting. The subVer field, since BIP 14, acts as a User-Agent string would. You can and should + append to or change the subVer for your own software so other implementations can identify it, and you can look at + the subVer field received from other nodes to see what they are running.

+ +

After creating yourself a VersionMessage, you can pass it to PeerGroup.setVersionMessage(VersionMessage) + to ensure it will be used for each new connection.

+ +

Instances of this class are not safe for use by multiple threads.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      BITCOINJ_VERSION

      +
      public static final String BITCOINJ_VERSION
      +
      The version of this library release, as a string.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LIBRARY_SUBVER

      +
      public static final String LIBRARY_SUBVER
      +
      The value that is prepended to the subVer field of this application.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_NETWORK

      +
      public static final int NODE_NETWORK
      +
      A service bit that denotes whether the peer has a full copy of the block chain or not.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_GETUTXOS

      +
      public static final int NODE_GETUTXOS
      +
      A service bit that denotes whether the peer supports the getutxos message or not.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_BLOOM

      +
      public static final int NODE_BLOOM
      +
      A service bit that denotes whether the peer supports BIP37 bloom filters or not. The service bit is defined in BIP111.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_WITNESS

      +
      public static final int NODE_WITNESS
      +
      Indicates that a node can be asked for blocks and transactions including witness data.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_NETWORK_LIMITED

      +
      public static final int NODE_NETWORK_LIMITED
      +
      A service bit that denotes whether the peer has at least the last two days worth of blockchain (BIP159).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NODE_BITCOIN_CASH

      +
      public static final int NODE_BITCOIN_CASH
      +
      A service bit used by Bitcoin-ABC to announce Bitcoin Cash nodes.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      clientVersion

      +
      public int clientVersion
      +
      The version number of the protocol spoken.
      +
      +
    • +
    • +
      +

      localServices

      +
      public long localServices
      +
      Flags defining what optional services are supported.
      +
      +
    • +
    • +
      +

      time

      +
      public long time
      +
      What the other side believes the current time to be, in seconds.
      +
      +
    • +
    • +
      +

      receivingAddr

      +
      public PeerAddress receivingAddr
      +
      The network address of the node receiving this message.
      +
      +
    • +
    • +
      +

      fromAddr

      +
      public PeerAddress fromAddr
      +
      The network address of the node emitting this message. Not used.
      +
      +
    • +
    • +
      +

      subVer

      +
      public String subVer
      +
      User-Agent as defined in BIP 14. + Bitcoin Core sets it to something like "/Satoshi:0.9.1/".
      +
      +
    • +
    • +
      +

      bestHeight

      +
      public long bestHeight
      +
      How many blocks are in the chain, according to the other side.
      +
      +
    • +
    • +
      +

      relayTxesBeforeFilter

      +
      public boolean relayTxesBeforeFilter
      +
      Whether or not to relay tx invs before a filter is received. + See BIP 37.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      parse

      +
      protected void parse() + throws ProtocolException
      +
      +
      Specified by:
      +
      parse in class Message
      +
      Throws:
      +
      ProtocolException
      +
      +
      +
    • +
    • +
      +

      bitcoinSerializeToStream

      +
      public void bitcoinSerializeToStream(OutputStream buf) + throws IOException
      +
      Description copied from class: Message
      +
      Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
      +
      +
      Overrides:
      +
      bitcoinSerializeToStream in class Message
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      duplicate

      +
      public VersionMessage duplicate()
      +
      +
    • +
    • +
      +

      appendToSubVer

      +
      public void appendToSubVer(String name, + String version, + @Nullable + String comments)
      +

      Appends the given user-agent information to the subVer field. The subVer is composed of a series of + name:version pairs separated by slashes in the form of a path. For example a typical subVer field for bitcoinj + users might look like "/bitcoinj:0.13/MultiBit:1.2/" where libraries come further to the left.

      + +

      There can be as many components as you feel a need for, and the version string can be anything, but it is + recommended to use A.B.C where A = major, B = minor and C = revision for software releases, and dates for + auto-generated source repository snapshots. A valid subVer begins and ends with a slash, therefore name + and version are not allowed to contain such characters.

      + +

      Anything put in the "comments" field will appear in brackets and may be used for platform info, or anything + else. For example, calling appendToSubVer("MultiBit", "1.0", "Windows") will result in a subVer being + set of "/bitcoinj:1.0/MultiBit:1.0(Windows)/". Therefore the / ( and ) characters are reserved in all these + components. If you don't want to add a comment (recommended), pass null.

      + +

      See BIP 14 for more information.

      +
      +
      Parameters:
      +
      comments - Optional (can be null) platform or other node specific information.
      +
      Throws:
      +
      IllegalArgumentException - if name, version or comments contains invalid characters.
      +
      +
      +
    • +
    • +
      +

      isPingPongSupported

      +
      public boolean isPingPongSupported()
      +
      Returns true if the clientVersion field is NetworkParameters.ProtocolVersion.PONG or higher. + If it is then Peer.ping() is usable.
      +
      +
    • +
    • +
      +

      isBloomFilteringSupported

      +
      public boolean isBloomFilteringSupported()
      +
      Returns true if the peer supports bloom filtering according to BIP37 and BIP111.
      +
      +
    • +
    • +
      +

      isGetUTXOsSupported

      +
      public boolean isGetUTXOsSupported()
      +
      Returns true if the protocol version and service bits both indicate support for the getutxos message.
      +
      +
    • +
    • +
      +

      isWitnessSupported

      +
      public boolean isWitnessSupported()
      +
      Returns true if a peer can be asked for blocks and transactions including witness data.
      +
      +
    • +
    • +
      +

      hasBlockChain

      +
      public boolean hasBlockChain()
      +
      Returns true if the version message indicates the sender has a full copy of the block chain, or false if it's + running in client mode (only has the headers).
      +
      +
    • +
    • +
      +

      hasLimitedBlockChain

      +
      public boolean hasLimitedBlockChain()
      +
      Returns true if the peer has at least the last two days worth of blockchain (BIP159).
      +
      +
    • +
    • +
      +

      toStringServices

      +
      public static String toStringServices(long services)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.html new file mode 100644 index 000000000..8a86ac4d2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/AbstractPeerDataEventListener.html @@ -0,0 +1,275 @@ + + + + +AbstractPeerDataEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AbstractPeerDataEventListener

+
+
java.lang.Object +
org.bitcoinj.core.listeners.AbstractPeerDataEventListener
+
+
+
+
All Implemented Interfaces:
+
BlocksDownloadedEventListener, ChainDownloadStartedEventListener, GetDataEventListener, PeerDataEventListener, PreMessageReceivedEventListener
+
+
+
Direct Known Subclasses:
+
DownloadProgressTracker
+
+
+
@Deprecated +public abstract class AbstractPeerDataEventListener +extends Object +implements PeerDataEventListener
+
Deprecated.
+
Deprecated: implement the more specific event listener interfaces instead to fill out only what you need
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AbstractPeerDataEventListener

      +
      public AbstractPeerDataEventListener()
      +
      Deprecated.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onBlocksDownloaded

      +
      public void onBlocksDownloaded(Peer peer, + Block block, + @Nullable + FilteredBlock filteredBlock, + int blocksLeft)
      +
      Deprecated.
      +
      Description copied from interface: BlocksDownloadedEventListener
      +

      Called on a Peer thread when a block is received.

      + +

      The block may be a Block object that contains transactions, a Block object that is only a header when + fast catchup is being used. If set, filteredBlock can be used to retrieve the list of associated transactions.

      +
      +
      Specified by:
      +
      onBlocksDownloaded in interface BlocksDownloadedEventListener
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      block - the downloaded block
      +
      filteredBlock - if non-null, the object that wraps the block header passed as the block param.
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    • +
      +

      onChainDownloadStarted

      +
      public void onChainDownloadStarted(Peer peer, + int blocksLeft)
      +
      Deprecated.
      +
      Description copied from interface: ChainDownloadStartedEventListener
      +
      Called when a download is started with the initial number of blocks to be downloaded.
      +
      +
      Specified by:
      +
      onChainDownloadStarted in interface ChainDownloadStartedEventListener
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    • +
      +

      onPreMessageReceived

      +
      public Message onPreMessageReceived(Peer peer, + Message m)
      +
      Deprecated.
      +
      Description copied from interface: PreMessageReceivedEventListener
      +

      Called when a message is received by a peer, before the message is processed. The returned message is + processed instead. Returning null will cause the message to be ignored by the Peer returning the same message + object allows you to see the messages received but not change them. The result from one event listeners + callback is passed as "m" to the next, forming a chain.

      + +

      Note that this will never be called if registered with any executor other than + Threading.SAME_THREAD

      +
      +
      Specified by:
      +
      onPreMessageReceived in interface PreMessageReceivedEventListener
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public List<Message> getData(Peer peer, + GetDataMessage m)
      +
      Deprecated.
      +
      Description copied from interface: GetDataEventListener
      +

      Called when a peer receives a getdata message, usually in response to an "inv" being broadcast. Return as many + items as possible which appear in the GetDataMessage, or null if you're not interested in responding.

      + +

      Note that this will never be called if registered with any executor other than + Threading.SAME_THREAD

      +
      +
      Specified by:
      +
      getData in interface GetDataEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.html new file mode 100644 index 000000000..ec5e1102d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/BlocksDownloadedEventListener.html @@ -0,0 +1,156 @@ + + + + +BlocksDownloadedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface BlocksDownloadedEventListener

+
+
+
+
All Known Subinterfaces:
+
PeerDataEventListener
+
+
+
All Known Implementing Classes:
+
AbstractPeerDataEventListener, DownloadProgressTracker
+
+
+
public interface BlocksDownloadedEventListener
+

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onBlocksDownloaded(Peer peer, + Block block, + FilteredBlock filteredBlock, + int blocksLeft)
    +
    +
    Called on a Peer thread when a block is received.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onBlocksDownloaded

      +
      void onBlocksDownloaded(Peer peer, + Block block, + @Nullable + FilteredBlock filteredBlock, + int blocksLeft)
      +

      Called on a Peer thread when a block is received.

      + +

      The block may be a Block object that contains transactions, a Block object that is only a header when + fast catchup is being used. If set, filteredBlock can be used to retrieve the list of associated transactions.

      +
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      block - the downloaded block
      +
      filteredBlock - if non-null, the object that wraps the block header passed as the block param.
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.html new file mode 100644 index 000000000..f2f678a74 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/ChainDownloadStartedEventListener.html @@ -0,0 +1,146 @@ + + + + +ChainDownloadStartedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ChainDownloadStartedEventListener

+
+
+
+
All Known Subinterfaces:
+
PeerDataEventListener
+
+
+
All Known Implementing Classes:
+
AbstractPeerDataEventListener, DownloadProgressTracker
+
+
+
public interface ChainDownloadStartedEventListener
+

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onChainDownloadStarted(Peer peer, + int blocksLeft)
    +
    +
    Called when a download is started with the initial number of blocks to be downloaded.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onChainDownloadStarted

      +
      void onChainDownloadStarted(Peer peer, + int blocksLeft)
      +
      Called when a download is started with the initial number of blocks to be downloaded.
      +
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/DownloadProgressTracker.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/DownloadProgressTracker.html new file mode 100644 index 000000000..fe3364a37 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/DownloadProgressTracker.html @@ -0,0 +1,300 @@ + + + + +DownloadProgressTracker (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DownloadProgressTracker

+
+
java.lang.Object +
org.bitcoinj.core.listeners.AbstractPeerDataEventListener +
org.bitcoinj.core.listeners.DownloadProgressTracker
+
+
+
+
+
All Implemented Interfaces:
+
BlocksDownloadedEventListener, ChainDownloadStartedEventListener, GetDataEventListener, PeerDataEventListener, PreMessageReceivedEventListener
+
+
+
public class DownloadProgressTracker +extends AbstractPeerDataEventListener
+

An implementation of AbstractPeerDataEventListener that listens to chain download events and tracks progress + as a percentage. The default implementation prints progress to stdout, but you can subclass it and override the + progress method to update a GUI instead.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DownloadProgressTracker

      +
      public DownloadProgressTracker()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onChainDownloadStarted

      +
      public void onChainDownloadStarted(Peer peer, + int blocksLeft)
      +
      Description copied from interface: ChainDownloadStartedEventListener
      +
      Called when a download is started with the initial number of blocks to be downloaded.
      +
      +
      Specified by:
      +
      onChainDownloadStarted in interface ChainDownloadStartedEventListener
      +
      Overrides:
      +
      onChainDownloadStarted in class AbstractPeerDataEventListener
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    • +
      +

      onBlocksDownloaded

      +
      public void onBlocksDownloaded(Peer peer, + Block block, + @Nullable + FilteredBlock filteredBlock, + int blocksLeft)
      +
      Description copied from interface: BlocksDownloadedEventListener
      +

      Called on a Peer thread when a block is received.

      + +

      The block may be a Block object that contains transactions, a Block object that is only a header when + fast catchup is being used. If set, filteredBlock can be used to retrieve the list of associated transactions.

      +
      +
      Specified by:
      +
      onBlocksDownloaded in interface BlocksDownloadedEventListener
      +
      Overrides:
      +
      onBlocksDownloaded in class AbstractPeerDataEventListener
      +
      Parameters:
      +
      peer - the peer receiving the block
      +
      block - the downloaded block
      +
      filteredBlock - if non-null, the object that wraps the block header passed as the block param.
      +
      blocksLeft - the number of blocks left to download
      +
      +
      +
    • +
    • +
      +

      progress

      +
      protected void progress(double pct, + int blocksSoFar, + Date date)
      +
      Called when download progress is made.
      +
      +
      Parameters:
      +
      pct - the percentage of chain downloaded, estimated
      +
      date - the date of the last block downloaded
      +
      +
      +
    • +
    • +
      +

      startDownload

      +
      protected void startDownload(int blocks)
      +
      Called when download is initiated.
      +
      +
      Parameters:
      +
      blocks - the number of blocks to download, estimated
      +
      +
      +
    • +
    • +
      +

      doneDownload

      +
      protected void doneDownload()
      +
      Called when we are done downloading the block chain.
      +
      +
    • +
    • +
      +

      await

      +
      public void await() + throws InterruptedException
      +
      Wait for the chain to be downloaded.
      +
      +
      Throws:
      +
      InterruptedException
      +
      +
      +
    • +
    • +
      +

      getFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<Long> getFuture()
      +
      Returns a listenable future that completes with the height of the best chain (as reported by the peer) once chain + download seems to be finished.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/GetDataEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/GetDataEventListener.html new file mode 100644 index 000000000..42c485719 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/GetDataEventListener.html @@ -0,0 +1,146 @@ + + + + +GetDataEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface GetDataEventListener

+
+
+
+
All Known Subinterfaces:
+
PeerDataEventListener
+
+
+
All Known Implementing Classes:
+
AbstractPeerDataEventListener, DownloadProgressTracker
+
+
+
public interface GetDataEventListener
+

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Called when a peer receives a getdata message, usually in response to an "inv" being broadcast.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getData

      +
      @Nullable +List<Message> getData(Peer peer, + GetDataMessage m)
      +

      Called when a peer receives a getdata message, usually in response to an "inv" being broadcast. Return as many + items as possible which appear in the GetDataMessage, or null if you're not interested in responding.

      + +

      Note that this will never be called if registered with any executor other than + Threading.SAME_THREAD

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/NewBestBlockListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/NewBestBlockListener.html new file mode 100644 index 000000000..a8a8e5694 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/NewBestBlockListener.html @@ -0,0 +1,148 @@ + + + + +NewBestBlockListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface NewBestBlockListener

+
+
+
+
All Known Implementing Classes:
+
NativeBlockChainListener, Wallet
+
+
+
public interface NewBestBlockListener
+
Listener interface for when a new block on the best chain is seen.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.html new file mode 100644 index 000000000..1cd384c40 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/OnTransactionBroadcastListener.html @@ -0,0 +1,131 @@ + + + + +OnTransactionBroadcastListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface OnTransactionBroadcastListener

+
+
+
+
public interface OnTransactionBroadcastListener
+
Called when a new transaction is broadcast over the network.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called when a new transaction is broadcast over the network.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onTransaction

      +
      void onTransaction(Peer peer, + Transaction t)
      +
      Called when a new transaction is broadcast over the network.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerConnectedEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerConnectedEventListener.html new file mode 100644 index 000000000..4e7c29f5b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerConnectedEventListener.html @@ -0,0 +1,137 @@ + + + + +PeerConnectedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerConnectedEventListener

+
+
+
+
public interface PeerConnectedEventListener
+

Implementors can listen to events indicating a new peer connecting.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onPeerConnected(Peer peer, + int peerCount)
    +
    +
    Called when a peer is connected.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onPeerConnected

      +
      void onPeerConnected(Peer peer, + int peerCount)
      +
      Called when a peer is connected. If this listener is registered to a Peer instead of a PeerGroup, + peerCount will always be 1.
      +
      +
      Parameters:
      +
      peer -
      +
      peerCount - the total number of connected peers
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDataEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDataEventListener.html new file mode 100644 index 000000000..f81270e50 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDataEventListener.html @@ -0,0 +1,114 @@ + + + + +PeerDataEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerDataEventListener

+
+
+
+
All Superinterfaces:
+
BlocksDownloadedEventListener, ChainDownloadStartedEventListener, GetDataEventListener, PreMessageReceivedEventListener
+
+
+
All Known Implementing Classes:
+
AbstractPeerDataEventListener, DownloadProgressTracker
+
+
+ +

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.

+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.html new file mode 100644 index 000000000..3ae595092 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDisconnectedEventListener.html @@ -0,0 +1,139 @@ + + + + +PeerDisconnectedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerDisconnectedEventListener

+
+
+
+
public interface PeerDisconnectedEventListener
+

Implementors can listen to events indicating a peer disconnecting.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onPeerDisconnected(Peer peer, + int peerCount)
    +
    +
    Called when a peer is disconnected.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onPeerDisconnected

      +
      void onPeerDisconnected(Peer peer, + int peerCount)
      +
      Called when a peer is disconnected. Note that this won't be called if the listener is registered on a + PeerGroup and the group is in the process of shutting down. If this listener is registered to a + Peer instead of a PeerGroup, peerCount will always be 0. This handler can be called without + a corresponding invocation of onPeerConnected if the initial connection is never successful.
      +
      +
      Parameters:
      +
      peer -
      +
      peerCount - the total number of connected peers
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.html new file mode 100644 index 000000000..7c062ad96 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/PeerDiscoveredEventListener.html @@ -0,0 +1,135 @@ + + + + +PeerDiscoveredEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerDiscoveredEventListener

+
+
+
+
public interface PeerDiscoveredEventListener
+

Implementors can listen to events for peers being discovered.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called when peers are discovered, this happens at startup of PeerGroup or if we run out of + suitable Peers to connect to.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onPeersDiscovered

      +
      void onPeersDiscovered(Set<PeerAddress> peerAddresses)
      +

      Called when peers are discovered, this happens at startup of PeerGroup or if we run out of + suitable Peers to connect to.

      +
      +
      Parameters:
      +
      peerAddresses - the set of discovered PeerAddresses
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.html new file mode 100644 index 000000000..929c7a2f4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/PreMessageReceivedEventListener.html @@ -0,0 +1,147 @@ + + + + +PreMessageReceivedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PreMessageReceivedEventListener

+
+
+
+
All Known Subinterfaces:
+
PeerDataEventListener
+
+
+
All Known Implementing Classes:
+
AbstractPeerDataEventListener, DownloadProgressTracker
+
+
+
public interface PreMessageReceivedEventListener
+

Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Called when a message is received by a peer, before the message is processed.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onPreMessageReceived

      +
      Message onPreMessageReceived(Peer peer, + Message m)
      +

      Called when a message is received by a peer, before the message is processed. The returned message is + processed instead. Returning null will cause the message to be ignored by the Peer returning the same message + object allows you to see the messages received but not change them. The result from one event listeners + callback is passed as "m" to the next, forming a chain.

      + +

      Note that this will never be called if registered with any executor other than + Threading.SAME_THREAD

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/ReorganizeListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/ReorganizeListener.html new file mode 100644 index 000000000..69641ec23 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/ReorganizeListener.html @@ -0,0 +1,149 @@ + + + + +ReorganizeListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ReorganizeListener

+
+
+
+
All Known Implementing Classes:
+
NativeBlockChainListener, Wallet
+
+
+
public interface ReorganizeListener
+
Listener interface for when the best chain has changed.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    reorganize(StoredBlock splitPoint, + List<StoredBlock> oldBlocks, + List<StoredBlock> newBlocks)
    +
    +
    Called by the BlockChain when the best chain + (representing total work done) has changed.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      reorganize

      +
      void reorganize(StoredBlock splitPoint, + List<StoredBlock> oldBlocks, + List<StoredBlock> newBlocks) + throws VerificationException
      +
      Called by the BlockChain when the best chain + (representing total work done) has changed. In this case, + we need to go through our transactions and find out if any have become invalid. It's possible for our balance + to go down in this case: money we thought we had can suddenly vanish if the rest of the network agrees it + should be so.

      + + The oldBlocks/newBlocks lists are ordered height-wise from top first to bottom last (i.e. newest blocks first).

      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.html new file mode 100644 index 000000000..4c1743444 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionConfidenceEventListener.html @@ -0,0 +1,154 @@ + + + + +TransactionConfidenceEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionConfidenceEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeTransactionConfidenceEventListener
+
+
+
public interface TransactionConfidenceEventListener
+

Implementors are called when confidence of a transaction changes.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called when a transaction changes its confidence level.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onTransactionConfidenceChanged

      +
      void onTransactionConfidenceChanged(Wallet wallet, + Transaction tx)
      +

      Called when a transaction changes its confidence level. You can also attach event listeners to + the individual transactions, if you don't care about all of them. Usually you would save the wallet to disk after + receiving this callback unless you already set up autosaving.

      + +

      You should pay attention to this callback in case a transaction becomes dead, that is, a transaction + you believed to be active (send or receive) becomes overridden by the network. This can happen if

      + +
        +
      1. You are sharing keys between wallets and accidentally create/broadcast a double spend.
      2. +
      3. Somebody is attacking the network and reversing transactions, ie, the user is a victim of fraud.
      4. +
      5. A bug: for example you create a transaction, broadcast it but fail to commit it. The Wallet + will then re-use the same outputs when creating the next spend.
      6. +

      + +

      To find if the transaction is dead, you can use tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.DEAD. + If it is, you should notify the user in some way so they know the thing they bought may not arrive/the thing they sold should not be dispatched.

      + +

      Note that this callback will be invoked for every transaction in the wallet, for every new block that is + received (because the depth has changed). If you want to update a UI view from the contents of the wallet + it is more efficient to use onWalletChanged instead.

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.html new file mode 100644 index 000000000..cb7aaba8c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/TransactionReceivedInBlockListener.html @@ -0,0 +1,194 @@ + + + + +TransactionReceivedInBlockListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionReceivedInBlockListener

+
+
+
+
All Known Implementing Classes:
+
NativeBlockChainListener, Wallet
+
+
+
public interface TransactionReceivedInBlockListener
+
Listener interface for when we receive a new block that contains a relevant + transaction.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      receiveFromBlock

      +
      void receiveFromBlock(Transaction tx, + StoredBlock block, + AbstractBlockChain.NewBlockType blockType, + int relativityOffset) + throws VerificationException
      +

      Called by the BlockChain when we receive a new block that contains a relevant transaction.

      + +

      A transaction may be received multiple times if is included into blocks in parallel chains. The blockType + parameter describes whether the containing block is on the main/best chain or whether it's on a presently + inactive side chain.

      + +

      The relativityOffset parameter is an arbitrary number used to establish an ordering between transactions + within the same block. In the case where full blocks are being downloaded, it is simply the index of the + transaction within that block. When Bloom filtering is in use, we don't find out the exact offset into a block + that a transaction occurred at, so the relativity count is not reflective of anything in an absolute sense but + rather exists only to order the transaction relative to the others.

      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      notifyTransactionIsInBlock

      +
      boolean notifyTransactionIsInBlock(Sha256Hash txHash, + StoredBlock block, + AbstractBlockChain.NewBlockType blockType, + int relativityOffset) + throws VerificationException
      +

      Called by the BlockChain when we receive a new FilteredBlock that contains the given + transaction hash in its merkle tree.

      + +

      A transaction may be received multiple times if is included into blocks in parallel chains. The blockType + parameter describes whether the containing block is on the main/best chain or whether it's on a presently + inactive side chain.

      + +

      The relativityOffset parameter in this case is an arbitrary (meaningless) number, that is useful only when + compared to the relativity count of another transaction received inside the same block. It is used to establish + an ordering of transactions relative to one another.

      + +

      This method should return false if the given tx hash isn't known about, e.g. because the the transaction was + a Bloom false positive. If it was known about and stored, it should return true. The caller may need to know + this to calculate the effective FP rate.

      +
      +
      Returns:
      +
      whether the transaction is known about i.e. was considered relevant previously.
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/package-summary.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/package-summary.html new file mode 100644 index 000000000..795972fc5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/package-summary.html @@ -0,0 +1,172 @@ + + + + +org.bitcoinj.core.listeners (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.core.listeners

+
+
+
package org.bitcoinj.core.listeners
+
+
    +
  • + +
  • +
  • +
    +
    +
    +
    +
    Class
    +
    Description
    + +
    Deprecated.
    + +
    +
    Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
    +
    + +
    +
    Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
    +
    + +
    +
    An implementation of AbstractPeerDataEventListener that listens to chain download events and tracks progress + as a percentage.
    +
    + +
    +
    Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
    +
    + +
    +
    Listener interface for when a new block on the best chain is seen.
    +
    + +
    +
    Called when a new transaction is broadcast over the network.
    +
    + +
    +
    Implementors can listen to events indicating a new peer connecting.
    +
    + +
    +
    Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
    +
    + +
    +
    Implementors can listen to events indicating a peer disconnecting.
    +
    + +
    +
    Implementors can listen to events for peers being discovered.
    +
    + +
    +
    Implementors can listen to events like blocks being downloaded/transactions being broadcast/connect/disconnects, + they can pre-filter messages before they are processed by a Peer or PeerGroup, and they can + provide transactions to remote peers when they ask for them.
    +
    + +
    +
    Listener interface for when the best chain has changed.
    +
    + +
    +
    Implementors are called when confidence of a transaction changes.
    +
    + +
    +
    Listener interface for when we receive a new block that contains a relevant + transaction.
    +
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/listeners/package-tree.html b/javadoc/0.16.3/org/bitcoinj/core/listeners/package-tree.html new file mode 100644 index 000000000..494bb839a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/listeners/package-tree.html @@ -0,0 +1,109 @@ + + + + +org.bitcoinj.core.listeners Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.core.listeners

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/package-summary.html b/javadoc/0.16.3/org/bitcoinj/core/package-summary.html new file mode 100644 index 000000000..31c9fe622 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/package-summary.html @@ -0,0 +1,574 @@ + + + + +org.bitcoinj.core (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.core

+
+
+
package org.bitcoinj.core
+
+
The core package contains classes for network messages like Block and + Transaction, peer connectivity via PeerGroup, + and block chain management. + If what you're doing can be described as basic bitcoin tasks, the code is probably found here. + To learn more please consult the documentation on the website.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/core/package-tree.html b/javadoc/0.16.3/org/bitcoinj/core/package-tree.html new file mode 100644 index 000000000..e31ff2afe --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/core/package-tree.html @@ -0,0 +1,291 @@ + + + + +org.bitcoinj.core Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.core

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.BadPassphraseException.html b/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.BadPassphraseException.html new file mode 100644 index 000000000..7846acb18 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.BadPassphraseException.html @@ -0,0 +1,151 @@ + + + + +BIP38PrivateKey.BadPassphraseException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BIP38PrivateKey.BadPassphraseException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.crypto.BIP38PrivateKey.BadPassphraseException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
BIP38PrivateKey
+
+
+
public static final class BIP38PrivateKey.BadPassphraseException +extends Exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BadPassphraseException

      +
      public BadPassphraseException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.html b/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.html new file mode 100644 index 000000000..f7b9e25aa --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/BIP38PrivateKey.html @@ -0,0 +1,290 @@ + + + + +BIP38PrivateKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BIP38PrivateKey

+
+
java.lang.Object +
org.bitcoinj.core.PrefixedChecksummedBytes +
org.bitcoinj.crypto.BIP38PrivateKey
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
public class BIP38PrivateKey +extends PrefixedChecksummedBytes
+
Implementation of BIP 38 + passphrase-protected private keys. Currently, only decryption is supported.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ecMultiply

      +
      public final boolean ecMultiply
      +
      +
    • +
    • +
      +

      compressed

      +
      public final boolean compressed
      +
      +
    • +
    • +
      +

      hasLotAndSequence

      +
      public final boolean hasLotAndSequence
      +
      +
    • +
    • +
      +

      addressHash

      +
      public final byte[] addressHash
      +
      +
    • +
    • +
      +

      content

      +
      public final byte[] content
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/ChildNumber.html b/javadoc/0.16.3/org/bitcoinj/crypto/ChildNumber.html new file mode 100644 index 000000000..a95ff81db --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/ChildNumber.html @@ -0,0 +1,345 @@ + + + + +ChildNumber (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ChildNumber

+
+
java.lang.Object +
org.bitcoinj.crypto.ChildNumber
+
+
+
+
All Implemented Interfaces:
+
Comparable<ChildNumber>
+
+
+
public class ChildNumber +extends Object +implements Comparable<ChildNumber>
+

This is just a wrapper for the i (child number) as per BIP 32 with a boolean getter for the most significant bit + and a getter for the actual 0-based child number. A List of these forms a path through a + DeterministicHierarchy. This class is immutable.

+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
    +
    The bit that's set in the child number to indicate whether this key is "hardened".
    +
    +
    static final ChildNumber
    + +
     
    +
    static final ChildNumber
    + +
     
    +
    static final ChildNumber
    + +
     
    +
    static final ChildNumber
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    ChildNumber(int i)
    +
     
    +
    ChildNumber(int childNumber, + boolean isHardened)
    +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
     
    +
    boolean
    + +
     
    +
    int
    + +
    +
    Returns the uint32 encoded form of the path element, including the most significant bit.
    +
    +
    int
    + +
     
    +
    int
    +
    i()
    +
    +
    Returns the uint32 encoded form of the path element, including the most significant bit.
    +
    +
    boolean
    + +
     
    +
    int
    +
    num()
    +
    +
    Returns the child number without the hardening bit set (i.e.
    +
    + + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      HARDENED_BIT

      +
      public static final int HARDENED_BIT
      +
      The bit that's set in the child number to indicate whether this key is "hardened". Given a hardened key, it is + not possible to derive a child public key if you know only the hardened public key. With a non-hardened key this + is possible, so you can derive trees of public keys given only a public parent, but the downside is that it's + possible to leak private keys if you disclose a parent public key and a child private key (elliptic curve maths + allows you to work upwards).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ZERO

      +
      public static final ChildNumber ZERO
      +
      +
    • +
    • +
      +

      ZERO_HARDENED

      +
      public static final ChildNumber ZERO_HARDENED
      +
      +
    • +
    • +
      +

      ONE

      +
      public static final ChildNumber ONE
      +
      +
    • +
    • +
      +

      ONE_HARDENED

      +
      public static final ChildNumber ONE_HARDENED
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ChildNumber

      +
      public ChildNumber(int childNumber, + boolean isHardened)
      +
      +
    • +
    • +
      +

      ChildNumber

      +
      public ChildNumber(int i)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getI

      +
      public int getI()
      +
      Returns the uint32 encoded form of the path element, including the most significant bit.
      +
      +
    • +
    • +
      +

      i

      +
      public int i()
      +
      Returns the uint32 encoded form of the path element, including the most significant bit.
      +
      +
    • +
    • +
      +

      isHardened

      +
      public boolean isHardened()
      +
      +
    • +
    • +
      +

      num

      +
      public int num()
      +
      Returns the child number without the hardening bit set (i.e. index in that part of the tree).
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(ChildNumber other)
      +
      +
      Specified by:
      +
      compareTo in interface Comparable<ChildNumber>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/DRMWorkaround.html b/javadoc/0.16.3/org/bitcoinj/crypto/DRMWorkaround.html new file mode 100644 index 000000000..49e472c70 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/DRMWorkaround.html @@ -0,0 +1,159 @@ + + + + +DRMWorkaround (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DRMWorkaround

+
+
java.lang.Object +
org.bitcoinj.crypto.DRMWorkaround
+
+
+
+
public class DRMWorkaround +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DRMWorkaround

      +
      public DRMWorkaround()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      maybeDisableExportControls

      +
      public static void maybeDisableExportControls()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicHierarchy.html b/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicHierarchy.html new file mode 100644 index 000000000..49639f56d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicHierarchy.html @@ -0,0 +1,320 @@ + + + + +DeterministicHierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicHierarchy

+
+
java.lang.Object +
org.bitcoinj.crypto.DeterministicHierarchy
+
+
+
+
public class DeterministicHierarchy +extends Object
+

A DeterministicHierarchy calculates and keeps a whole tree (hierarchy) of keys originating from a single + root key. This implements part of the BIP 32 specification. A deterministic key tree is useful because + Bitcoin's privacy system require new keys to be created for each transaction, but managing all these + keys quickly becomes unwieldy. In particular it becomes hard to back up and distribute them. By having + a way to derive random-looking but deterministic keys we can make wallet backup simpler and gain the + ability to hand out DeterministicKeys to other people who can then create new addresses + on the fly, without having to contact us.

+ +

The hierarchy is started from a single root key, and a location in the tree is given by a path which + is a list of ChildNumbers.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      BIP32_STANDARDISATION_TIME_SECS

      +
      public static final int BIP32_STANDARDISATION_TIME_SECS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicHierarchy

      +
      public DeterministicHierarchy(DeterministicKey rootKey)
      +
      Constructs a new hierarchy rooted at the given key. Note that this does not have to be the top of the tree. + You can construct a DeterministicHierarchy for a subtree of a larger tree that you may not own.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      putKey

      +
      public final void putKey(DeterministicKey key)
      +
      Inserts a key into the hierarchy. Used during deserialization: you normally don't need this. Keys must be + inserted in order.
      +
      +
    • +
    • +
      +

      get

      +
      public DeterministicKey get(List<ChildNumber> path, + boolean relativePath, + boolean create)
      +
      Returns a key for the given path, optionally creating it.
      +
      +
      Parameters:
      +
      path - the path to the key
      +
      relativePath - whether the path is relative to the root path
      +
      create - whether the key corresponding to path should be created (with any necessary ancestors) if it doesn't exist already
      +
      Returns:
      +
      next newly created key using the child derivation function
      +
      Throws:
      +
      IllegalArgumentException - if create is false and the path was not found.
      +
      +
      +
    • +
    • +
      +

      deriveNextChild

      +
      public DeterministicKey deriveNextChild(List<ChildNumber> parentPath, + boolean relative, + boolean createParent, + boolean privateDerivation)
      +
      Extends the tree by calculating the next key that hangs off the given parent path. For example, if you pass a + path of 1/2 here and there are already keys 1/2/1 and 1/2/2 then it will derive 1/2/3.
      +
      +
      Parameters:
      +
      parentPath - the path to the parent
      +
      relative - whether the path is relative to the root path
      +
      createParent - whether the parent corresponding to path should be created (with any necessary ancestors) if it doesn't exist already
      +
      privateDerivation - whether to use private or public derivation
      +
      Returns:
      +
      next newly created key using the child derivation function
      +
      Throws:
      +
      IllegalArgumentException - if the parent doesn't exist and createParent is false.
      +
      +
      +
    • +
    • +
      +

      getNumChildren

      +
      public int getNumChildren(HDPath path)
      +
      +
    • +
    • +
      +

      deriveChild

      +
      public DeterministicKey deriveChild(List<ChildNumber> parentPath, + boolean relative, + boolean createParent, + ChildNumber createChildNumber)
      +
      Extends the tree by calculating the requested child for the given path. For example, to get the key at position + 1/2/3 you would pass 1/2 as the parent path and 3 as the child number.
      +
      +
      Parameters:
      +
      parentPath - the path to the parent
      +
      relative - whether the path is relative to the root path
      +
      createParent - whether the parent corresponding to path should be created (with any necessary ancestors) if it doesn't exist already
      +
      Returns:
      +
      the requested key.
      +
      Throws:
      +
      IllegalArgumentException - if the parent doesn't exist and createParent is false.
      +
      +
      +
    • +
    • +
      +

      getRootKey

      +
      public DeterministicKey getRootKey()
      +
      Returns the root key that the DeterministicHierarchy was created with.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicKey.html b/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicKey.html new file mode 100644 index 000000000..5fc76055f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/DeterministicKey.html @@ -0,0 +1,1002 @@ + + + + +DeterministicKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicKey

+
+
java.lang.Object +
org.bitcoinj.core.ECKey +
org.bitcoinj.crypto.DeterministicKey
+
+
+
+
+
All Implemented Interfaces:
+
EncryptableItem
+
+
+
public class DeterministicKey +extends ECKey
+
A deterministic key is a node in a DeterministicHierarchy. As per + the BIP 32 specification it is a pair + (key, chaincode). If you know its path in the tree and its chain code you can derive more keys from this. To obtain + one of these, you can call HDKeyDerivation.createMasterPrivateKey(byte[]).
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      CHILDNUM_ORDER

      +
      public static final Comparator<ECKey> CHILDNUM_ORDER
      +
      Sorts deterministic keys in the order of their child number. That's usually the order used to derive them.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(List<ChildNumber> childNumberPath, + byte[] chainCode, + LazyECPoint publicAsPoint, + @Nullable + BigInteger priv, + @Nullable + DeterministicKey parent)
      +
      Constructs a key from its components. This is not normally something you should use.
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(List<ChildNumber> childNumberPath, + byte[] chainCode, + org.bouncycastle.math.ec.ECPoint publicAsPoint, + boolean compressed, + @Nullable + BigInteger priv, + @Nullable + DeterministicKey parent)
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(HDPath hdPath, + byte[] chainCode, + BigInteger priv, + @Nullable + DeterministicKey parent)
      +
      Constructs a key from its components. This is not normally something you should use.
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(List<ChildNumber> childNumberPath, + byte[] chainCode, + KeyCrypter crypter, + LazyECPoint pub, + EncryptedData priv, + @Nullable + DeterministicKey parent)
      +
      Constructs a key from its components. This is not normally something you should use.
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(List<ChildNumber> childNumberPath, + byte[] chainCode, + LazyECPoint publicAsPoint, + @Nullable + DeterministicKey parent, + int depth, + int parentFingerprint)
      +
      Constructs a key from its components, including its public key data and possibly-redundant + information about its parent key. Invoked when deserializing, but otherwise not something that + you normally should use.
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(List<ChildNumber> childNumberPath, + byte[] chainCode, + BigInteger priv, + @Nullable + DeterministicKey parent, + int depth, + int parentFingerprint)
      +
      Constructs a key from its components, including its private key data and possibly-redundant + information about its parent key. Invoked when deserializing, but otherwise not something that + you normally should use.
      +
      +
    • +
    • +
      +

      DeterministicKey

      +
      public DeterministicKey(DeterministicKey keyToClone, + DeterministicKey newParent)
      +
      Clones the key
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getPath

      +
      public HDPath getPath()
      +
      Returns the path through some DeterministicHierarchy which reaches this keys position in the tree. + A path can be written as 0/1/0 which means the first child of the root, the second child of that node, then + the first child of that node.
      +
      +
    • +
    • +
      +

      getPathAsString

      +
      public String getPathAsString()
      +
      Returns the path of this key as a human readable string starting with M or m to indicate the master key.
      +
      +
    • +
    • +
      +

      getDepth

      +
      public int getDepth()
      +
      Return this key's depth in the hierarchy, where the root node is at depth zero. + This may be different than the number of segments in the path if this key was + deserialized without access to its parent.
      +
      +
    • +
    • +
      +

      getChildNumber

      +
      public ChildNumber getChildNumber()
      +
      Returns the last element of the path returned by getPath()
      +
      +
    • +
    • +
      +

      getChainCode

      +
      public byte[] getChainCode()
      +
      Returns the chain code associated with this key. See the specification to learn more about chain codes.
      +
      +
    • +
    • +
      +

      getIdentifier

      +
      public byte[] getIdentifier()
      +
      Returns RIPE-MD160(SHA256(pub key bytes)).
      +
      +
    • +
    • +
      +

      getFingerprint

      +
      public int getFingerprint()
      +
      Returns the first 32 bits of the result of getIdentifier().
      +
      +
    • +
    • +
      +

      getParent

      +
      @Nullable +public DeterministicKey getParent()
      +
      +
    • +
    • +
      +

      getParentFingerprint

      +
      public int getParentFingerprint()
      +
      Return the fingerprint of the key from which this key was derived, if this is a + child key, or else an array of four zero-value bytes.
      +
      +
    • +
    • +
      +

      getPrivKeyBytes33

      +
      public byte[] getPrivKeyBytes33()
      +
      Returns private key bytes, padded with zeros to 33 bytes.
      +
      +
      Throws:
      +
      IllegalStateException - if the private key bytes are missing.
      +
      +
      +
    • +
    • +
      +

      dropPrivateBytes

      +
      public DeterministicKey dropPrivateBytes()
      +
      Returns the same key with the private bytes removed. May return the same instance. The purpose of this is to save + memory: the private key can always be very efficiently rederived from a parent that a private key, so storing + all the private keys in RAM is a poor tradeoff especially on constrained devices. This means that the returned + key may still be usable for signing and so on, so don't expect it to be a true pubkey-only object! If you want + that then you should follow this call with a call to dropParent().
      +
      +
    • +
    • +
      +

      dropParent

      +
      public DeterministicKey dropParent()
      +

      Returns the same key with the parent pointer removed (it still knows its own path and the parent fingerprint).

      + +

      If this key doesn't have private key bytes stored/cached itself, but could rederive them from the parent, then + the new key returned by this method won't be able to do that. Thus, using dropPrivateBytes().dropParent() on a + regular DeterministicKey will yield a new DeterministicKey that cannot sign or do other things involving the + private key at all.

      +
      +
    • +
    • +
      +

      encrypt

      +
      public DeterministicKey encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Description copied from class: ECKey
      +
      Create an encrypted private key with the keyCrypter and the AES key supplied. + This method returns a new encrypted key and leaves the original unchanged.
      +
      +
      Overrides:
      +
      encrypt in class ECKey
      +
      Parameters:
      +
      keyCrypter - The keyCrypter that specifies exactly how the encrypted bytes are created.
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached as it is slow to create).
      +
      Returns:
      +
      encryptedKey
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      encrypt

      +
      public DeterministicKey encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey, + @Nullable + DeterministicKey newParent) + throws KeyCrypterException
      +
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      isPubKeyOnly

      +
      public boolean isPubKeyOnly()
      +
      A deterministic key is considered to be 'public key only' if it hasn't got a private key part and it cannot be + rederived. If the hierarchy is encrypted this returns true.
      +
      +
      Overrides:
      +
      isPubKeyOnly in class ECKey
      +
      +
      +
    • +
    • +
      +

      hasPrivKey

      +
      public boolean hasPrivKey()
      +
      Description copied from class: ECKey
      +
      Returns true if this key has unencrypted access to private key bytes. Does the opposite of + ECKey.isPubKeyOnly().
      +
      +
      Overrides:
      +
      hasPrivKey in class ECKey
      +
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      @Nullable +public byte[] getSecretBytes()
      +
      Description copied from class: ECKey
      +
      A wrapper for ECKey.getPrivKeyBytes() that returns null if the private key bytes are missing or would have + to be derived (for the HD key case).
      +
      +
      Specified by:
      +
      getSecretBytes in interface EncryptableItem
      +
      Overrides:
      +
      getSecretBytes in class ECKey
      +
      +
      +
    • +
    • +
      +

      isEncrypted

      +
      public boolean isEncrypted()
      +
      A deterministic key is considered to be encrypted if it has access to encrypted private key bytes, OR if its + parent does. The reason is because the parent would be encrypted under the same key and this key knows how to + rederive its own private key bytes from the parent, if needed.
      +
      +
      Specified by:
      +
      isEncrypted in interface EncryptableItem
      +
      Overrides:
      +
      isEncrypted in class ECKey
      +
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Returns this keys KeyCrypter or the keycrypter of its parent key.
      +
      +
      Overrides:
      +
      getKeyCrypter in class ECKey
      +
      +
      +
    • +
    • +
      +

      sign

      +
      public ECKey.ECDSASignature sign(Sha256Hash input, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Description copied from class: ECKey
      +
      Signs the given hash and returns the R and S components as BigIntegers. In the Bitcoin protocol, they are + usually encoded using DER format, so you want ECKey.ECDSASignature.encodeToDER() + instead. However sometimes the independent components can be useful, for instance, if you're doing to do further + EC maths on them.
      +
      +
      Overrides:
      +
      sign in class ECKey
      +
      aesKey - The AES key to use for decryption of the private key. If null then no decryption is required.
      +
      Throws:
      +
      KeyCrypterException - if there's something wrong with aesKey.
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public DeterministicKey decrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Description copied from class: ECKey
      +
      Create a decrypted private key with the keyCrypter and AES key supplied. Note that if the aesKey is wrong, this + has some chance of throwing KeyCrypterException due to the corrupted padding that will result, but it can also + just yield a garbage key.
      +
      +
      Overrides:
      +
      decrypt in class ECKey
      +
      Parameters:
      +
      keyCrypter - The keyCrypter that specifies exactly how the decrypted bytes are created.
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached).
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public DeterministicKey decrypt(org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Description copied from class: ECKey
      +
      Create a decrypted private key with AES key. Note that if the AES key is wrong, this + has some chance of throwing KeyCrypterException due to the corrupted padding that will result, but it can also + just yield a garbage key.
      +
      +
      Overrides:
      +
      decrypt in class ECKey
      +
      Parameters:
      +
      aesKey - The KeyParameter with the AES encryption key (usually constructed with keyCrypter#deriveKey and cached).
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      derive

      +
      public DeterministicKey derive(int child)
      +
      Derives a child at the given index using hardened derivation. Note: index is + not the "i" value. If you want the softened derivation, then use instead + HDKeyDerivation.deriveChildKey(this, new ChildNumber(child, false)).
      +
      +
    • +
    • +
      +

      getPrivKey

      +
      public BigInteger getPrivKey()
      +
      Returns the private key of this deterministic key. Even if this object isn't storing the private key, + it can be re-derived by walking up to the parents if necessary and this is what will happen.
      +
      +
      Overrides:
      +
      getPrivKey in class ECKey
      +
      Throws:
      +
      IllegalStateException - if the parents are encrypted or a watching chain.
      +
      +
      +
    • +
    • +
      +

      serializePublic

      +
      @Deprecated +public byte[] serializePublic(NetworkParameters params)
      +
      Deprecated.
      +
      +
    • +
    • +
      +

      serializePrivate

      +
      @Deprecated +public byte[] serializePrivate(NetworkParameters params)
      +
      Deprecated.
      +
      +
    • +
    • +
      +

      serializePubB58

      +
      public String serializePubB58(NetworkParameters params, + Script.ScriptType outputScriptType)
      +
      +
    • +
    • +
      +

      serializePrivB58

      +
      public String serializePrivB58(NetworkParameters params, + Script.ScriptType outputScriptType)
      +
      +
    • +
    • +
      +

      serializePubB58

      +
      public String serializePubB58(NetworkParameters params)
      +
      +
    • +
    • +
      +

      serializePrivB58

      +
      public String serializePrivB58(NetworkParameters params)
      +
      +
    • +
    • +
      +

      deserializeB58

      +
      public static DeterministicKey deserializeB58(String base58, + NetworkParameters params)
      +
      Deserialize a base-58-encoded HD Key with no parent
      +
      +
    • +
    • +
      +

      deserializeB58

      +
      public static DeterministicKey deserializeB58(@Nullable + DeterministicKey parent, + String base58, + NetworkParameters params)
      +
      Deserialize a base-58-encoded HD Key.
      +
      +
      Parameters:
      +
      parent - The parent node in the given key's deterministic hierarchy.
      +
      Throws:
      +
      IllegalArgumentException - if the base58 encoded key could not be parsed.
      +
      +
      +
    • +
    • +
      +

      deserialize

      +
      public static DeterministicKey deserialize(NetworkParameters params, + byte[] serializedKey)
      +
      Deserialize an HD Key with no parent
      +
      +
    • +
    • +
      +

      deserialize

      +
      public static DeterministicKey deserialize(NetworkParameters params, + byte[] serializedKey, + @Nullable + DeterministicKey parent)
      +
      Deserialize an HD Key.
      +
      +
      Parameters:
      +
      parent - The parent node in the given key's deterministic hierarchy.
      +
      +
      +
    • +
    • +
      +

      getCreationTimeSeconds

      +
      public long getCreationTimeSeconds()
      +
      The creation time of a deterministic key is equal to that of its parent, unless this key is the root of a tree + in which case the time is stored alongside the key as per normal, see ECKey.getCreationTimeSeconds().
      +
      +
      Specified by:
      +
      getCreationTimeSeconds in interface EncryptableItem
      +
      Overrides:
      +
      getCreationTimeSeconds in class ECKey
      +
      +
      +
    • +
    • +
      +

      setCreationTimeSeconds

      +
      public void setCreationTimeSeconds(long newCreationTimeSeconds)
      +
      The creation time of a deterministic key is equal to that of its parent, unless this key is the root of a tree. + Thus, setting the creation time on a leaf is forbidden.
      +
      +
      Overrides:
      +
      setCreationTimeSeconds in class ECKey
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      Verifies equality of all fields but NOT the parent pointer (thus the same key derived in two separate hierarchy + objects will equal each other.
      +
      +
      Overrides:
      +
      equals in class ECKey
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class ECKey
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class ECKey
      +
      +
      +
    • +
    • +
      +

      formatKeyWithAddress

      +
      public void formatKeyWithAddress(boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + StringBuilder builder, + NetworkParameters params, + Script.ScriptType outputScriptType, + @Nullable + String comment)
      +
      +
      Overrides:
      +
      formatKeyWithAddress in class ECKey
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/EncryptableItem.html b/javadoc/0.16.3/org/bitcoinj/crypto/EncryptableItem.html new file mode 100644 index 000000000..6eba64f81 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/EncryptableItem.html @@ -0,0 +1,185 @@ + + + + +EncryptableItem (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface EncryptableItem

+
+
+
+
All Known Implementing Classes:
+
DeterministicKey, DeterministicSeed, ECKey
+
+
+
public interface EncryptableItem
+
Provides a uniform way to access something that can be optionally encrypted with a + KeyCrypter, yielding an EncryptedData, and + which can have a creation time associated with it.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    Returns the time in seconds since the UNIX epoch at which this encryptable item was first created/derived.
    +
    + + +
    +
    Returns the initialization vector and encrypted secret bytes, or null if not encrypted.
    +
    + + +
    +
    Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
    +
    +
    byte[]
    + +
    +
    Returns the raw bytes of the item, if not encrypted, or null if encrypted or the secret is missing.
    +
    +
    boolean
    + +
    +
    Returns whether the item is encrypted or not.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEncrypted

      +
      boolean isEncrypted()
      +
      Returns whether the item is encrypted or not. If it is, then getSecretBytes() will return null.
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      @Nullable +byte[] getSecretBytes()
      +
      Returns the raw bytes of the item, if not encrypted, or null if encrypted or the secret is missing.
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      @Nullable +EncryptedData getEncryptedData()
      +
      Returns the initialization vector and encrypted secret bytes, or null if not encrypted.
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      Protos.Wallet.EncryptionType getEncryptionType()
      +
      Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
      +
      +
    • +
    • +
      +

      getCreationTimeSeconds

      +
      long getCreationTimeSeconds()
      +
      Returns the time in seconds since the UNIX epoch at which this encryptable item was first created/derived.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/EncryptedData.html b/javadoc/0.16.3/org/bitcoinj/crypto/EncryptedData.html new file mode 100644 index 000000000..169580786 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/EncryptedData.html @@ -0,0 +1,234 @@ + + + + +EncryptedData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EncryptedData

+
+
java.lang.Object +
org.bitcoinj.crypto.EncryptedData
+
+
+
+
public final class EncryptedData +extends Object
+

An instance of EncryptedData is a holder for an initialization vector and encrypted bytes. It is typically + used to hold encrypted private key bytes.

+ +

The initialisation vector is random data that is used to initialise the AES block cipher when the + private key bytes were encrypted. You need these for decryption.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      initialisationVector

      +
      public final byte[] initialisationVector
      +
      +
    • +
    • +
      +

      encryptedBytes

      +
      public final byte[] encryptedBytes
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      EncryptedData

      +
      public EncryptedData(byte[] initialisationVector, + byte[] encryptedBytes)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDDerivationException.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDDerivationException.html new file mode 100644 index 000000000..633652c32 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDDerivationException.html @@ -0,0 +1,149 @@ + + + + +HDDerivationException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HDDerivationException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.crypto.HDDerivationException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class HDDerivationException +extends RuntimeException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      HDDerivationException

      +
      public HDDerivationException(String message)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.PublicDeriveMode.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.PublicDeriveMode.html new file mode 100644 index 000000000..c6626673d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.PublicDeriveMode.html @@ -0,0 +1,222 @@ + + + + +HDKeyDerivation.PublicDeriveMode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class HDKeyDerivation.PublicDeriveMode

+
+
java.lang.Object +
java.lang.Enum<HDKeyDerivation.PublicDeriveMode> +
org.bitcoinj.crypto.HDKeyDerivation.PublicDeriveMode
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<HDKeyDerivation.PublicDeriveMode>, Constable
+
+
+
Enclosing class:
+
HDKeyDerivation
+
+
+
public static enum HDKeyDerivation.PublicDeriveMode +extends Enum<HDKeyDerivation.PublicDeriveMode>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static HDKeyDerivation.PublicDeriveMode[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static HDKeyDerivation.PublicDeriveMode valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.RawKeyBytes.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.RawKeyBytes.html new file mode 100644 index 000000000..056254629 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.RawKeyBytes.html @@ -0,0 +1,172 @@ + + + + +HDKeyDerivation.RawKeyBytes (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HDKeyDerivation.RawKeyBytes

+
+
java.lang.Object +
org.bitcoinj.crypto.HDKeyDerivation.RawKeyBytes
+
+
+
+
Enclosing class:
+
HDKeyDerivation
+
+
+
public static class HDKeyDerivation.RawKeyBytes +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      keyBytes

      +
      public final byte[] keyBytes
      +
      +
    • +
    • +
      +

      chainCode

      +
      public final byte[] chainCode
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      RawKeyBytes

      +
      public RawKeyBytes(byte[] keyBytes, + byte[] chainCode)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.html new file mode 100644 index 000000000..c386dfb95 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDKeyDerivation.html @@ -0,0 +1,351 @@ + + + + +HDKeyDerivation (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HDKeyDerivation

+
+
java.lang.Object +
org.bitcoinj.crypto.HDKeyDerivation
+
+
+
+
public final class HDKeyDerivation +extends Object
+
Implementation of the BIP 32 + deterministic wallet child key generation algorithm.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDPath.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDPath.html new file mode 100644 index 000000000..c2811f959 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDPath.html @@ -0,0 +1,507 @@ + + + + +HDPath (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HDPath

+
+ +
+
+
All Implemented Interfaces:
+
Iterable<ChildNumber>, Collection<ChildNumber>, List<ChildNumber>
+
+
+
public class HDPath +extends AbstractList<ChildNumber>
+
HD Key derivation path. HDPath can be used to represent a full path or a relative path. + The hasPrivateKey boolean is used for rendering to String + but (at present) not much else. It defaults to false which is the preferred setting for a relative path. +

+ HDPath is immutable and uses the Collections.UnmodifiableList type internally. +

+ It implements java.util.List<ChildNumber> to ease migration + from the previous Guava ImmutableList<ChildNumber>. It should be a minor breaking change + to replace ImmutableList<ChildNumber> with List<ChildNumber> where necessary in your code. Although + it is recommended to use the HDPath type for clarity and for access to HDPath-specific functionality. +

+ Take note of the overloaded factory methods M() and m(). These can be used to very + concisely create HDPath objects (especially when statically imported.)

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      hasPrivateKey

      +
      protected final boolean hasPrivateKey
      +
      +
    • +
    • +
      +

      unmodifiableList

      +
      protected final List<ChildNumber> unmodifiableList
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      HDPath

      +
      public HDPath(boolean hasPrivateKey, + List<ChildNumber> list)
      +
      Constructs a path for a public or private key.
      +
      +
      Parameters:
      +
      hasPrivateKey - Whether it is a path to a private key or not
      +
      list - List of children in the path
      +
      +
      +
    • +
    • +
      +

      HDPath

      +
      public HDPath(List<ChildNumber> list)
      +
      Constructs a path for a public key.
      +
      +
      Parameters:
      +
      list - List of children in the path
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      M

      +
      public static HDPath M(List<ChildNumber> list)
      +
      Returns a path for a public key.
      +
      +
      Parameters:
      +
      list - List of children in the path
      +
      +
      +
    • +
    • +
      +

      M

      +
      public static HDPath M()
      +
      Returns an empty path for a public key.
      +
      +
    • +
    • +
      +

      M

      +
      public static HDPath M(ChildNumber childNumber)
      +
      Returns a path for a public key.
      +
      +
      Parameters:
      +
      childNumber - Single child in path
      +
      +
      +
    • +
    • +
      +

      M

      +
      public static HDPath M(ChildNumber... children)
      +
      Returns a path for a public key.
      +
      +
      Parameters:
      +
      children - Children in the path
      +
      +
      +
    • +
    • +
      +

      m

      +
      public static HDPath m(List<ChildNumber> list)
      +
      Returns a path for a private key.
      +
      +
      Parameters:
      +
      list - List of children in the path
      +
      +
      +
    • +
    • +
      +

      m

      +
      public static HDPath m()
      +
      Returns an empty path for a private key.
      +
      +
    • +
    • +
      +

      m

      +
      public static HDPath m(ChildNumber childNumber)
      +
      Returns a path for a private key.
      +
      +
      Parameters:
      +
      childNumber - Single child in path
      +
      +
      +
    • +
    • +
      +

      m

      +
      public static HDPath m(ChildNumber... children)
      +
      Returns a path for a private key.
      +
      +
      Parameters:
      +
      children - Children in the path
      +
      +
      +
    • +
    • +
      +

      parsePath

      +
      public static HDPath parsePath(@Nonnull + String path)
      +
      Create an HDPath from a path string. The path string is a human-friendly representation of the deterministic path. For example: + + "44H / 0H / 0H / 1 / 1" + + Where a letter "H" means hardened key. Spaces are ignored.
      +
      +
    • +
    • +
      +

      hasPrivateKey

      +
      public boolean hasPrivateKey()
      +
      Is this a path to a private key?
      +
      +
      Returns:
      +
      true if yes, false if no or a partial path
      +
      +
      +
    • +
    • +
      +

      extend

      +
      public HDPath extend(ChildNumber child1, + ChildNumber... children)
      +
      Extend the path by appending additional ChildNumber objects.
      +
      +
      Parameters:
      +
      child1 - the first child to append
      +
      children - zero or more additional children to append
      +
      Returns:
      +
      A new immutable path
      +
      +
      +
    • +
    • +
      +

      extend

      +
      public HDPath extend(HDPath path2)
      +
      Extend the path by appending a relative path.
      +
      +
      Parameters:
      +
      path2 - the relative path to append
      +
      Returns:
      +
      A new immutable path
      +
      +
      +
    • +
    • +
      +

      extend

      +
      public HDPath extend(List<ChildNumber> path2)
      +
      Extend the path by appending a relative path.
      +
      +
      Parameters:
      +
      path2 - the relative path to append
      +
      Returns:
      +
      A new immutable path
      +
      +
      +
    • +
    • +
      +

      get

      +
      public ChildNumber get(int index)
      +
      +
      Specified by:
      +
      get in interface List<ChildNumber>
      +
      Specified by:
      +
      get in class AbstractList<ChildNumber>
      +
      +
      +
    • +
    • +
      +

      size

      +
      public int size()
      +
      +
      Specified by:
      +
      size in interface Collection<ChildNumber>
      +
      Specified by:
      +
      size in interface List<ChildNumber>
      +
      Specified by:
      +
      size in class AbstractCollection<ChildNumber>
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class AbstractCollection<ChildNumber>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/HDUtils.html b/javadoc/0.16.3/org/bitcoinj/crypto/HDUtils.html new file mode 100644 index 000000000..890e90c7e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/HDUtils.html @@ -0,0 +1,239 @@ + + + + +HDUtils (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HDUtils

+
+
java.lang.Object +
org.bitcoinj.crypto.HDUtils
+
+
+
+
public final class HDUtils +extends Object
+
Static utilities used in BIP 32 Hierarchical Deterministic Wallets (HDW).
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      HDUtils

      +
      public HDUtils()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hmacSha512

      +
      public static byte[] hmacSha512(byte[] key, + byte[] data)
      +
      +
    • +
    • +
      +

      append

      +
      @Deprecated +public static HDPath append(List<ChildNumber> path, + ChildNumber childNumber)
      +
      Deprecated. +
      Use HDPath#extend
      +
      +
      Append a derivation level to an existing path
      +
      +
    • +
    • +
      +

      concat

      +
      @Deprecated +public static HDPath concat(List<ChildNumber> path, + List<ChildNumber> path2)
      +
      Deprecated. +
      Use HDPath#extend
      +
      +
      Concatenate two derivation paths
      +
      +
    • +
    • +
      +

      formatPath

      +
      @Deprecated +public static String formatPath(List<ChildNumber> path)
      +
      Deprecated. +
      Use HDPath#toString
      +
      +
      Convert to a string path, starting with "M/"
      +
      +
    • +
    • +
      +

      parsePath

      +
      @Deprecated +public static HDPath parsePath(@Nonnull + String path)
      +
      Deprecated. +
      Use HDPath.parsePath
      +
      +
      Create an HDPath from a path string.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypter.html b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypter.html new file mode 100644 index 000000000..25843a552 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypter.html @@ -0,0 +1,211 @@ + + + + +KeyCrypter (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyCrypter

+
+
+
+
All Superinterfaces:
+
Serializable
+
+
+
All Known Implementing Classes:
+
KeyCrypterScrypt
+
+
+
public interface KeyCrypter +extends Serializable
+

A KeyCrypter can be used to encrypt and decrypt a message. The sequence of events to encrypt and then decrypt + a message are as follows:

+ +

(1) Ask the user for a password. deriveKey() is then called to create an KeyParameter. This contains the AES + key that will be used for encryption.

+

(2) Encrypt the message using encrypt(), providing the message bytes and the KeyParameter from (1). This returns + an EncryptedData which contains the encryptedPrivateKey bytes and an initialisation vector.

+

(3) To decrypt an EncryptedData, repeat step (1) to get a KeyParameter, then call decrypt().

+ +

There can be different algorithms used for encryption/ decryption so the getUnderstoodEncryptionType is used + to determine whether any given KeyCrypter can understand the type of encrypted data you have.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    byte[]
    +
    decrypt(EncryptedData encryptedBytesToDecode, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Decrypt the provided encrypted bytes, converting them into unencrypted bytes.
    +
    +
    org.bouncycastle.crypto.params.KeyParameter
    + +
    +
    Create a KeyParameter (which typically contains an AES key)
    +
    + +
    encrypt(byte[] plainBytes, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
    +
    Encrypt the supplied bytes, converting them into ciphertext.
    +
    + + +
    +
    Return the EncryptionType enum value which denotes the type of encryption/ decryption that this KeyCrypter + can understand.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getUnderstoodEncryptionType

      +
      Protos.Wallet.EncryptionType getUnderstoodEncryptionType()
      +
      Return the EncryptionType enum value which denotes the type of encryption/ decryption that this KeyCrypter + can understand.
      +
      +
    • +
    • +
      +

      deriveKey

      +
      org.bouncycastle.crypto.params.KeyParameter deriveKey(CharSequence password) + throws KeyCrypterException
      +
      Create a KeyParameter (which typically contains an AES key)
      +
      +
      Parameters:
      +
      password -
      +
      Returns:
      +
      KeyParameter The KeyParameter which typically contains the AES key to use for encrypting and decrypting
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      byte[] decrypt(EncryptedData encryptedBytesToDecode, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Decrypt the provided encrypted bytes, converting them into unencrypted bytes.
      +
      +
      Throws:
      +
      KeyCrypterException - if decryption was unsuccessful.
      +
      +
      +
    • +
    • +
      +

      encrypt

      +
      EncryptedData encrypt(byte[] plainBytes, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Encrypt the supplied bytes, converting them into ciphertext.
      +
      +
      Returns:
      +
      encryptedPrivateKey An encryptedPrivateKey containing the encrypted bytes and an initialisation vector.
      +
      Throws:
      +
      KeyCrypterException - if encryption was unsuccessful
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.InvalidCipherText.html b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.InvalidCipherText.html new file mode 100644 index 000000000..d8bd8ec4e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.InvalidCipherText.html @@ -0,0 +1,176 @@ + + + + +KeyCrypterException.InvalidCipherText (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyCrypterException.InvalidCipherText

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
KeyCrypterException
+
+
+
public static class KeyCrypterException.InvalidCipherText +extends KeyCrypterException
+
This exception is thrown when a private key or seed is decrypted, the decrypted message is damaged + (e.g. the padding is damaged). This likely means the wrong decryption key has been used.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidCipherText

      +
      public InvalidCipherText(String message)
      +
      +
    • +
    • +
      +

      InvalidCipherText

      +
      public InvalidCipherText(String message, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.PublicPrivateMismatch.html b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.PublicPrivateMismatch.html new file mode 100644 index 000000000..1aef3cf3c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.PublicPrivateMismatch.html @@ -0,0 +1,176 @@ + + + + +KeyCrypterException.PublicPrivateMismatch (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyCrypterException.PublicPrivateMismatch

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.crypto.KeyCrypterException +
org.bitcoinj.crypto.KeyCrypterException.PublicPrivateMismatch
+
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
KeyCrypterException
+
+
+
public static class KeyCrypterException.PublicPrivateMismatch +extends KeyCrypterException
+
This exception is thrown when a private key or seed is decrypted, it doesn't match its public key any + more. This likely means the wrong decryption key has been used.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PublicPrivateMismatch

      +
      public PublicPrivateMismatch(String message)
      +
      +
    • +
    • +
      +

      PublicPrivateMismatch

      +
      public PublicPrivateMismatch(String message, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.html b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.html new file mode 100644 index 000000000..bdac72b58 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterException.html @@ -0,0 +1,194 @@ + + + + +KeyCrypterException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyCrypterException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.crypto.KeyCrypterException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
KeyCrypterException.InvalidCipherText, KeyCrypterException.PublicPrivateMismatch
+
+
+
public class KeyCrypterException +extends RuntimeException
+

Exception to provide the following:

+
    +
  • Provision of encryption / decryption exception
  • +
+

This base exception acts as a general failure mode not attributable to a specific cause (other than + that reported in the exception message). Since this is in English, it may not be worth reporting directly + to the user other than as part of a "general failure to parse" response.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      KeyCrypterException

      +
      public KeyCrypterException(String message)
      +
      +
    • +
    • +
      +

      KeyCrypterException

      +
      public KeyCrypterException(String message, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterScrypt.html b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterScrypt.html new file mode 100644 index 000000000..f093c8fa2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/KeyCrypterScrypt.html @@ -0,0 +1,444 @@ + + + + +KeyCrypterScrypt (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyCrypterScrypt

+
+
java.lang.Object +
org.bitcoinj.crypto.KeyCrypterScrypt
+
+
+
+
All Implemented Interfaces:
+
Serializable, KeyCrypter
+
+
+
public class KeyCrypterScrypt +extends Object +implements KeyCrypter
+

This class encrypts and decrypts byte arrays and strings using scrypt as the + key derivation function and AES for the encryption.

+ +

You can use this class to:

+ +

1) Using a user password, create an AES key that can encrypt and decrypt your private keys. + To convert the password to the AES key, scrypt is used. This is an algorithm resistant + to brute force attacks. You can use the ScryptParameters to tune how difficult you + want this to be generation to be.

+ +

2) Using the AES Key generated above, you then can encrypt and decrypt any bytes using + the AES symmetric cipher. Eight bytes of salt is used to prevent dictionary attacks.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      KEY_LENGTH

      +
      public static final int KEY_LENGTH
      +
      Key length in bytes.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_LENGTH

      +
      public static final int BLOCK_LENGTH
      +
      The size of an AES block in bytes. + This is also the length of the initialisation vector.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SALT_LENGTH

      +
      public static final int SALT_LENGTH
      +
      The length of the salt used.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      KeyCrypterScrypt

      +
      public KeyCrypterScrypt()
      +
      Encryption/Decryption using default parameters and a random salt.
      +
      +
    • +
    • +
      +

      KeyCrypterScrypt

      +
      public KeyCrypterScrypt(int iterations)
      +
      Encryption/Decryption using custom number of iterations parameters and a random salt. + As of August 2016, a useful value for mobile devices is 4096 (derivation takes about 1 second).
      +
      +
      Parameters:
      +
      iterations - number of scrypt iterations
      +
      +
      +
    • +
    • +
      +

      KeyCrypterScrypt

      +
      public KeyCrypterScrypt(Protos.ScryptParameters scryptParameters)
      +
      Encryption/ Decryption using specified Scrypt parameters.
      +
      +
      Parameters:
      +
      scryptParameters - ScryptParameters to use
      +
      Throws:
      +
      NullPointerException - if the scryptParameters or any of its N, R or P is null.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      randomSalt

      +
      public static byte[] randomSalt()
      +
      Returns SALT_LENGTH (8) bytes of random data
      +
      +
    • +
    • +
      +

      deriveKey

      +
      public org.bouncycastle.crypto.params.KeyParameter deriveKey(CharSequence password) + throws KeyCrypterException
      +
      Generate AES key. + + This is a very slow operation compared to encrypt/ decrypt so it is normally worth caching the result.
      +
      +
      Specified by:
      +
      deriveKey in interface KeyCrypter
      +
      Parameters:
      +
      password - The password to use in key generation
      +
      Returns:
      +
      The KeyParameter containing the created AES key
      +
      Throws:
      +
      KeyCrypterException
      +
      +
      +
    • +
    • +
      +

      encrypt

      +
      public EncryptedData encrypt(byte[] plainBytes, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Password based encryption using AES - CBC 256 bits.
      +
      +
      Specified by:
      +
      encrypt in interface KeyCrypter
      +
      Returns:
      +
      encryptedPrivateKey An encryptedPrivateKey containing the encrypted bytes and an initialisation vector.
      +
      Throws:
      +
      KeyCrypterException - if encryption was unsuccessful
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public byte[] decrypt(EncryptedData dataToDecrypt, + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws KeyCrypterException
      +
      Decrypt bytes previously encrypted with this class.
      +
      +
      Specified by:
      +
      decrypt in interface KeyCrypter
      +
      Parameters:
      +
      dataToDecrypt - The data to decrypt
      +
      aesKey - The AES key to use for decryption
      +
      Returns:
      +
      The decrypted bytes
      +
      Throws:
      +
      KeyCrypterException - if bytes could not be decrypted
      +
      +
      +
    • +
    • +
      +

      getScryptParameters

      +
      public Protos.ScryptParameters getScryptParameters()
      +
      +
    • +
    • +
      +

      getUnderstoodEncryptionType

      +
      public Protos.Wallet.EncryptionType getUnderstoodEncryptionType()
      +
      Return the EncryptionType enum value which denotes the type of encryption/ decryption that this KeyCrypter + can understand.
      +
      +
      Specified by:
      +
      getUnderstoodEncryptionType in interface KeyCrypter
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/LazyECPoint.html b/javadoc/0.16.3/org/bitcoinj/crypto/LazyECPoint.html new file mode 100644 index 000000000..af9e18176 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/LazyECPoint.html @@ -0,0 +1,494 @@ + + + + +LazyECPoint (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LazyECPoint

+
+
java.lang.Object +
org.bitcoinj.crypto.LazyECPoint
+
+
+
+
public class LazyECPoint +extends Object
+
A wrapper around ECPoint that delays decoding of the point for as long as possible. This is useful because point + encode/decode in Bouncy Castle is quite slow especially on Dalvik, as it often involves decompression/recompression.
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    LazyECPoint(org.bouncycastle.math.ec.ECCurve curve, + byte[] bits)
    +
    +
    Construct a LazyECPoint from a public key.
    +
    +
    LazyECPoint(org.bouncycastle.math.ec.ECPoint point, + boolean compressed)
    +
    +
    Construct a LazyECPoint from an already decoded point.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    org.bouncycastle.math.ec.ECPoint
    +
    add(org.bouncycastle.math.ec.ECPoint b)
    +
     
    + + +
    +
    Returns a compressed version of this elliptic curve point.
    +
    + + +
    +
    Returns a decompressed version of this elliptic curve point.
    +
    +
    boolean
    + +
     
    +
    boolean
    +
    equals(org.bouncycastle.math.ec.ECPoint other)
    +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    get()
    +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECCurve
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    byte[]
    + +
     
    +
    byte[]
    +
    getEncoded(boolean compressed)
    +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    + +
     
    +
    org.bouncycastle.math.ec.ECFieldElement
    +
    getZCoord(int index)
    +
     
    +
    org.bouncycastle.math.ec.ECFieldElement[]
    + +
     
    +
    int
    + +
     
    +
    boolean
    + +
     
    +
    boolean
    + +
     
    +
    boolean
    + +
     
    +
    boolean
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    scaleX(org.bouncycastle.math.ec.ECFieldElement scale)
    +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    scaleY(org.bouncycastle.math.ec.ECFieldElement scale)
    +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    subtract(org.bouncycastle.math.ec.ECPoint b)
    +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    timesPow2(int e)
    +
     
    +
    org.bouncycastle.math.ec.ECPoint
    + +
     
    +
    org.bouncycastle.math.ec.ECPoint
    +
    twicePlus(org.bouncycastle.math.ec.ECPoint b)
    +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LazyECPoint

      +
      public LazyECPoint(org.bouncycastle.math.ec.ECCurve curve, + byte[] bits)
      +
      Construct a LazyECPoint from a public key. Due to the delayed decoding of the point the validation of the + public key is delayed too, e.g. until a getter is called.
      +
      +
      Parameters:
      +
      curve - a curve the point is on
      +
      bits - public key bytes
      +
      +
      +
    • +
    • +
      +

      LazyECPoint

      +
      public LazyECPoint(org.bouncycastle.math.ec.ECPoint point, + boolean compressed)
      +
      Construct a LazyECPoint from an already decoded point.
      +
      +
      Parameters:
      +
      point - the wrapped point
      +
      compressed - true if the represented public key is compressed
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      compress

      +
      public LazyECPoint compress()
      +
      Returns a compressed version of this elliptic curve point. Returns the same point if it's already compressed. + See the ECKey class docs for a discussion of point compression.
      +
      +
    • +
    • +
      +

      decompress

      +
      public LazyECPoint decompress()
      +
      Returns a decompressed version of this elliptic curve point. Returns the same point if it's already compressed. + See the ECKey class docs for a discussion of point compression.
      +
      +
    • +
    • +
      +

      get

      +
      public org.bouncycastle.math.ec.ECPoint get()
      +
      +
    • +
    • +
      +

      getEncoded

      +
      public byte[] getEncoded()
      +
      +
    • +
    • +
      +

      getDetachedPoint

      +
      public org.bouncycastle.math.ec.ECPoint getDetachedPoint()
      +
      +
    • +
    • +
      +

      isInfinity

      +
      public boolean isInfinity()
      +
      +
    • +
    • +
      +

      timesPow2

      +
      public org.bouncycastle.math.ec.ECPoint timesPow2(int e)
      +
      +
    • +
    • +
      +

      getYCoord

      +
      public org.bouncycastle.math.ec.ECFieldElement getYCoord()
      +
      +
    • +
    • +
      +

      getZCoords

      +
      public org.bouncycastle.math.ec.ECFieldElement[] getZCoords()
      +
      +
    • +
    • +
      +

      isNormalized

      +
      public boolean isNormalized()
      +
      +
    • +
    • +
      +

      isCompressed

      +
      public boolean isCompressed()
      +
      +
    • +
    • +
      +

      multiply

      +
      public org.bouncycastle.math.ec.ECPoint multiply(BigInteger k)
      +
      +
    • +
    • +
      +

      subtract

      +
      public org.bouncycastle.math.ec.ECPoint subtract(org.bouncycastle.math.ec.ECPoint b)
      +
      +
    • +
    • +
      +

      isValid

      +
      public boolean isValid()
      +
      +
    • +
    • +
      +

      scaleY

      +
      public org.bouncycastle.math.ec.ECPoint scaleY(org.bouncycastle.math.ec.ECFieldElement scale)
      +
      +
    • +
    • +
      +

      getXCoord

      +
      public org.bouncycastle.math.ec.ECFieldElement getXCoord()
      +
      +
    • +
    • +
      +

      scaleX

      +
      public org.bouncycastle.math.ec.ECPoint scaleX(org.bouncycastle.math.ec.ECFieldElement scale)
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(org.bouncycastle.math.ec.ECPoint other)
      +
      +
    • +
    • +
      +

      negate

      +
      public org.bouncycastle.math.ec.ECPoint negate()
      +
      +
    • +
    • +
      +

      threeTimes

      +
      public org.bouncycastle.math.ec.ECPoint threeTimes()
      +
      +
    • +
    • +
      +

      getZCoord

      +
      public org.bouncycastle.math.ec.ECFieldElement getZCoord(int index)
      +
      +
    • +
    • +
      +

      getEncoded

      +
      public byte[] getEncoded(boolean compressed)
      +
      +
    • +
    • +
      +

      add

      +
      public org.bouncycastle.math.ec.ECPoint add(org.bouncycastle.math.ec.ECPoint b)
      +
      +
    • +
    • +
      +

      twicePlus

      +
      public org.bouncycastle.math.ec.ECPoint twicePlus(org.bouncycastle.math.ec.ECPoint b)
      +
      +
    • +
    • +
      +

      getCurve

      +
      public org.bouncycastle.math.ec.ECCurve getCurve()
      +
      +
    • +
    • +
      +

      normalize

      +
      public org.bouncycastle.math.ec.ECPoint normalize()
      +
      +
    • +
    • +
      +

      getY

      +
      public org.bouncycastle.math.ec.ECFieldElement getY()
      +
      +
    • +
    • +
      +

      twice

      +
      public org.bouncycastle.math.ec.ECPoint twice()
      +
      +
    • +
    • +
      +

      getAffineYCoord

      +
      public org.bouncycastle.math.ec.ECFieldElement getAffineYCoord()
      +
      +
    • +
    • +
      +

      getAffineXCoord

      +
      public org.bouncycastle.math.ec.ECFieldElement getAffineXCoord()
      +
      +
    • +
    • +
      +

      getX

      +
      public org.bouncycastle.math.ec.ECFieldElement getX()
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/LinuxSecureRandom.html b/javadoc/0.16.3/org/bitcoinj/crypto/LinuxSecureRandom.html new file mode 100644 index 000000000..ae077dc97 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/LinuxSecureRandom.html @@ -0,0 +1,210 @@ + + + + +LinuxSecureRandom (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LinuxSecureRandom

+
+
java.lang.Object +
java.security.SecureRandomSpi +
org.bitcoinj.crypto.LinuxSecureRandom
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class LinuxSecureRandom +extends SecureRandomSpi
+
A SecureRandom implementation that is able to override the standard JVM provided implementation, and which simply + serves random numbers by reading /dev/urandom. That is, it delegates to the kernel on UNIX systems and is unusable on + other platforms. Attempts to manually set the seed are ignored. There is no difference between seed bytes and + non-seed bytes, they are all from the same source.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LinuxSecureRandom

      +
      public LinuxSecureRandom()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicCode.html b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicCode.html new file mode 100644 index 000000000..a9aa358f0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicCode.html @@ -0,0 +1,304 @@ + + + + +MnemonicCode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MnemonicCode

+
+
java.lang.Object +
org.bitcoinj.crypto.MnemonicCode
+
+
+
+
public class MnemonicCode +extends Object
+
A MnemonicCode object may be used to convert between binary seed values and + lists of words per the BIP 39 + specification
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicChecksumException.html b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicChecksumException.html new file mode 100644 index 000000000..6cf289dd4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicChecksumException.html @@ -0,0 +1,163 @@ + + + + +MnemonicException.MnemonicChecksumException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MnemonicException.MnemonicChecksumException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.crypto.MnemonicException +
org.bitcoinj.crypto.MnemonicException.MnemonicChecksumException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
MnemonicException
+
+
+
public static class MnemonicException.MnemonicChecksumException +extends MnemonicException
+
Thrown when a list of MnemonicCode words fails the checksum check.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MnemonicChecksumException

      +
      public MnemonicChecksumException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicLengthException.html b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicLengthException.html new file mode 100644 index 000000000..7b4e02e1d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicLengthException.html @@ -0,0 +1,163 @@ + + + + +MnemonicException.MnemonicLengthException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MnemonicException.MnemonicLengthException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.crypto.MnemonicException +
org.bitcoinj.crypto.MnemonicException.MnemonicLengthException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
MnemonicException
+
+
+
public static class MnemonicException.MnemonicLengthException +extends MnemonicException
+
Thrown when an argument to MnemonicCode is the wrong length.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MnemonicLengthException

      +
      public MnemonicLengthException(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicWordException.html b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicWordException.html new file mode 100644 index 000000000..abeddfe30 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.MnemonicWordException.html @@ -0,0 +1,195 @@ + + + + +MnemonicException.MnemonicWordException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MnemonicException.MnemonicWordException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.crypto.MnemonicException +
org.bitcoinj.crypto.MnemonicException.MnemonicWordException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
MnemonicException
+
+
+
public static class MnemonicException.MnemonicWordException +extends MnemonicException
+
Thrown when a word is encountered which is not in the MnemonicCode's word list.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      badWord

      +
      public final String badWord
      +
      Contains the word that was not found in the word list.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MnemonicWordException

      +
      public MnemonicWordException(String badWord)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.html b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.html new file mode 100644 index 000000000..800d277ab --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/MnemonicException.html @@ -0,0 +1,187 @@ + + + + +MnemonicException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MnemonicException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.crypto.MnemonicException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
MnemonicException.MnemonicChecksumException, MnemonicException.MnemonicLengthException, MnemonicException.MnemonicWordException
+
+
+
public class MnemonicException +extends Exception
+
Exceptions thrown by the MnemonicCode module.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MnemonicException

      +
      public MnemonicException()
      +
      +
    • +
    • +
      +

      MnemonicException

      +
      public MnemonicException(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/PBKDF2SHA512.html b/javadoc/0.16.3/org/bitcoinj/crypto/PBKDF2SHA512.html new file mode 100644 index 000000000..1433509b4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/PBKDF2SHA512.html @@ -0,0 +1,173 @@ + + + + +PBKDF2SHA512 (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PBKDF2SHA512

+
+
java.lang.Object +
org.bitcoinj.crypto.PBKDF2SHA512
+
+
+
+
public class PBKDF2SHA512 +extends Object
+

This is a clean-room implementation of PBKDF2 using RFC 2898 as a reference.

+ +

RFC 2898: http://tools.ietf.org/html/rfc2898#section-5.2

+ +

This code passes all RFC 6070 test vectors: http://tools.ietf.org/html/rfc6070

+ +

http://cryptofreek.org/2012/11/29/pbkdf2-pure-java-implementation/
+ Modified to use SHA-512 - Ken Sedgwick ken@bonsai.com

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PBKDF2SHA512

      +
      public PBKDF2SHA512()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      derive

      +
      public static byte[] derive(String P, + String S, + int c, + int dkLen)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/TransactionSignature.html b/javadoc/0.16.3/org/bitcoinj/crypto/TransactionSignature.html new file mode 100644 index 000000000..940e4d48d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/TransactionSignature.html @@ -0,0 +1,359 @@ + + + + +TransactionSignature (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionSignature

+
+
java.lang.Object +
org.bitcoinj.core.ECKey.ECDSASignature +
org.bitcoinj.crypto.TransactionSignature
+
+
+
+
+
public class TransactionSignature +extends ECKey.ECDSASignature
+
A TransactionSignature wraps an ECKey.ECDSASignature and adds methods for handling + the additional SIGHASH mode byte that is used.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      sighashFlags

      +
      public final int sighashFlags
      +
      A byte that controls which parts of a transaction are signed. This is exposed because signatures + parsed off the wire may have sighash flags that aren't "normal" serializations of the enum values. + Because Bitcoin Core works via bit testing, we must not lose the exact value when round-tripping + otherwise we'll fail to verify signature hashes.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TransactionSignature

      +
      public TransactionSignature(BigInteger r, + BigInteger s)
      +
      Constructs a signature with the given components and SIGHASH_ALL.
      +
      +
    • +
    • +
      +

      TransactionSignature

      +
      public TransactionSignature(BigInteger r, + BigInteger s, + int sighashFlags)
      +
      Constructs a signature with the given components and raw sighash flag bytes (needed for rule compatibility).
      +
      +
    • +
    • +
      +

      TransactionSignature

      +
      public TransactionSignature(ECKey.ECDSASignature signature, + Transaction.SigHash mode, + boolean anyoneCanPay)
      +
      Constructs a transaction signature based on the ECDSA signature.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      dummy

      +
      public static TransactionSignature dummy()
      +
      Returns a dummy invalid signature whose R/S values are set such that they will take up the same number of + encoded bytes as a real signature. This can be useful when you want to fill out a transaction to be of the + right size (e.g. for fee calculations) but don't have the requisite signing key yet and will fill out the + real signature later.
      +
      +
    • +
    • +
      +

      calcSigHashValue

      +
      public static int calcSigHashValue(Transaction.SigHash mode, + boolean anyoneCanPay)
      +
      Calculates the byte used in the protocol to represent the combination of mode and anyoneCanPay.
      +
      +
    • +
    • +
      +

      isEncodingCanonical

      +
      public static boolean isEncodingCanonical(byte[] signature)
      +
      Returns true if the given signature is has canonical encoding, and will thus be accepted as standard by + Bitcoin Core. DER and the SIGHASH encoding allow for quite some flexibility in how the same structures + are encoded, and this can open up novel attacks in which a man in the middle takes a transaction and then + changes its signature such that the transaction hash is different but it's still valid. This can confuse wallets + and generally violates people's mental model of how Bitcoin should work, thus, non-canonical signatures are now + not relayed by default.
      +
      +
    • +
    • +
      +

      anyoneCanPay

      +
      public boolean anyoneCanPay()
      +
      +
    • +
    • +
      +

      sigHashMode

      +
      public Transaction.SigHash sigHashMode()
      +
      +
    • +
    • +
      +

      encodeToBitcoin

      +
      public byte[] encodeToBitcoin()
      +
      What we get back from the signer are the two components of a signature, r and s. To get a flat byte stream + of the type used by Bitcoin we have to encode them using DER encoding, which is just a way to pack the two + components into a structure, and then we append a byte to the end for the sighash flags.
      +
      +
    • +
    • +
      +

      toCanonicalised

      +
      public ECKey.ECDSASignature toCanonicalised()
      +
      Description copied from class: ECKey.ECDSASignature
      +
      Will automatically adjust the S component to be less than or equal to half the curve order, if necessary. + This is required because for every signature (r,s) the signature (r, -s (mod N)) is a valid signature of + the same message. However, we dislike the ability to modify the bits of a Bitcoin transaction after it's + been signed, as that violates various assumed invariants. Thus in future only one of those forms will be + considered legal and the other will be banned.
      +
      +
      Overrides:
      +
      toCanonicalised in class ECKey.ECDSASignature
      +
      +
      +
    • +
    • +
      +

      decodeFromBitcoin

      +
      public static TransactionSignature decodeFromBitcoin(byte[] bytes, + boolean requireCanonicalEncoding, + boolean requireCanonicalSValue) + throws SignatureDecodeException, +VerificationException
      +
      Returns a decoded signature.
      +
      +
      Parameters:
      +
      requireCanonicalEncoding - if the encoding of the signature must + be canonical.
      +
      requireCanonicalSValue - if the S-value must be canonical (below half + the order of the curve).
      +
      Throws:
      +
      SignatureDecodeException - if the signature is unparseable in some way.
      +
      VerificationException - if the signature is invalid.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.DefaultTrustStoreLoader.html b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.DefaultTrustStoreLoader.html new file mode 100644 index 000000000..ac324a047 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.DefaultTrustStoreLoader.html @@ -0,0 +1,195 @@ + + + + +TrustStoreLoader.DefaultTrustStoreLoader (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TrustStoreLoader.DefaultTrustStoreLoader

+
+
java.lang.Object +
org.bitcoinj.crypto.TrustStoreLoader.DefaultTrustStoreLoader
+
+
+
+
All Implemented Interfaces:
+
TrustStoreLoader
+
+
+
Enclosing interface:
+
TrustStoreLoader
+
+
+
public static class TrustStoreLoader.DefaultTrustStoreLoader +extends Object +implements TrustStoreLoader
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.FileTrustStoreLoader.html b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.FileTrustStoreLoader.html new file mode 100644 index 000000000..10a704723 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.FileTrustStoreLoader.html @@ -0,0 +1,201 @@ + + + + +TrustStoreLoader.FileTrustStoreLoader (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TrustStoreLoader.FileTrustStoreLoader

+
+
java.lang.Object +
org.bitcoinj.crypto.TrustStoreLoader.FileTrustStoreLoader
+
+
+
+
All Implemented Interfaces:
+
TrustStoreLoader
+
+
+
Enclosing interface:
+
TrustStoreLoader
+
+
+
public static class TrustStoreLoader.FileTrustStoreLoader +extends Object +implements TrustStoreLoader
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.html b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.html new file mode 100644 index 000000000..d43664176 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/TrustStoreLoader.html @@ -0,0 +1,204 @@ + + + + +TrustStoreLoader (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TrustStoreLoader

+
+
+
+
All Known Implementing Classes:
+
TrustStoreLoader.DefaultTrustStoreLoader, TrustStoreLoader.FileTrustStoreLoader
+
+
+
public interface TrustStoreLoader
+
An implementation of TrustStoreLoader handles fetching a KeyStore from the operating system, a file, etc. It's + necessary because the Java KeyStore abstraction is not completely seamless and for example + we sometimes need slightly different techniques to load the key store on different versions of Android, MacOS, + Windows, etc.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/X509Utils.html b/javadoc/0.16.3/org/bitcoinj/crypto/X509Utils.html new file mode 100644 index 000000000..a4315ac19 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/X509Utils.html @@ -0,0 +1,200 @@ + + + + +X509Utils (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class X509Utils

+
+
java.lang.Object +
org.bitcoinj.crypto.X509Utils
+
+
+
+
public class X509Utils +extends Object
+
X509Utils provides tools for working with X.509 certificates and keystores, as used in the BIP 70 payment protocol. + For more details on this, see PaymentSession, the article "Working with + the payment protocol" on the bitcoinj website, or the Bitcoin developer guide.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      X509Utils

      +
      public X509Utils()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDisplayNameFromCertificate

      +
      @Nullable +public static String getDisplayNameFromCertificate(@Nonnull + X509Certificate certificate, + boolean withLocation) + throws CertificateParsingException
      +
      Returns either a string that "sums up" the certificate for humans, in a similar manner to what you might see + in a web browser, or null if one cannot be extracted. This will typically be the common name (CN) field, but + can also be the org (O) field, org+location+country if withLocation is set, or the email + address for S/MIME certificates.
      +
      +
      Throws:
      +
      CertificateParsingException
      +
      +
      +
    • +
    • +
      +

      loadKeyStore

      +
      public static KeyStore loadKeyStore(String keystoreType, + @Nullable + String keystorePassword, + InputStream is) + throws KeyStoreException
      +
      Returns a key store loaded from the given stream. Just a convenience around the Java APIs.
      +
      +
      Throws:
      +
      KeyStoreException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/package-summary.html b/javadoc/0.16.3/org/bitcoinj/crypto/package-summary.html new file mode 100644 index 000000000..b240d87e5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/package-summary.html @@ -0,0 +1,221 @@ + + + + +org.bitcoinj.crypto (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.crypto

+
+
+
package 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. It also contains a class that can disable the (long since obsolete) DRM Java/US Govt imposes + on strong crypto. This is legal because Oracle got permission to ship strong AES to everyone years ago but hasn't + bothered to actually remove the logic barriers.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/crypto/package-tree.html b/javadoc/0.16.3/org/bitcoinj/crypto/package-tree.html new file mode 100644 index 000000000..af95c490f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/crypto/package-tree.html @@ -0,0 +1,167 @@ + + + + +org.bitcoinj.crypto Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.crypto

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeBlockChainListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeBlockChainListener.html new file mode 100644 index 000000000..9096ad6d9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeBlockChainListener.html @@ -0,0 +1,326 @@ + + + + +NativeBlockChainListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeBlockChainListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeBlockChainListener
+
+
+
+
All Implemented Interfaces:
+
NewBestBlockListener, ReorganizeListener, TransactionReceivedInBlockListener
+
+
+
public class NativeBlockChainListener +extends Object +implements NewBestBlockListener, ReorganizeListener, TransactionReceivedInBlockListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeBlockChainListener

      +
      public NativeBlockChainListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeFutureCallback.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeFutureCallback.html new file mode 100644 index 000000000..ae7a3d45c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeFutureCallback.html @@ -0,0 +1,213 @@ + + + + +NativeFutureCallback (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeFutureCallback

+
+
java.lang.Object +
org.bitcoinj.jni.NativeFutureCallback
+
+
+
+
All Implemented Interfaces:
+
com.google.common.util.concurrent.FutureCallback
+
+
+
public class NativeFutureCallback +extends Object +implements com.google.common.util.concurrent.FutureCallback
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeFutureCallback

      +
      public NativeFutureCallback()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onSuccess

      +
      public void onSuccess(Object o)
      +
      +
      Specified by:
      +
      onSuccess in interface com.google.common.util.concurrent.FutureCallback
      +
      +
      +
    • +
    • +
      +

      onFailure

      +
      public void onFailure(Throwable throwable)
      +
      +
      Specified by:
      +
      onFailure in interface com.google.common.util.concurrent.FutureCallback
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeKeyChainEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeKeyChainEventListener.html new file mode 100644 index 000000000..37b677708 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeKeyChainEventListener.html @@ -0,0 +1,207 @@ + + + + +NativeKeyChainEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeKeyChainEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeKeyChainEventListener
+
+
+
+
All Implemented Interfaces:
+
KeyChainEventListener
+
+
+
public class NativeKeyChainEventListener +extends Object +implements KeyChainEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    long
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeKeyChainEventListener

      +
      public NativeKeyChainEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onKeysAdded

      +
      public void onKeysAdded(List<ECKey> keys)
      +
      Description copied from interface: KeyChainEventListener
      +
      Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation. See the documentation for your KeyChain implementation for details on what + can trigger this event.
      +
      +
      Specified by:
      +
      onKeysAdded in interface KeyChainEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeScriptsChangeEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeScriptsChangeEventListener.html new file mode 100644 index 000000000..0c64afbc1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeScriptsChangeEventListener.html @@ -0,0 +1,209 @@ + + + + +NativeScriptsChangeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeScriptsChangeEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeScriptsChangeEventListener
+
+
+
+
All Implemented Interfaces:
+
ScriptsChangeEventListener
+
+
+
public class NativeScriptsChangeEventListener +extends Object +implements ScriptsChangeEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeScriptsChangeEventListener

      +
      public NativeScriptsChangeEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.html new file mode 100644 index 000000000..8d79f7565 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceEventListener.html @@ -0,0 +1,225 @@ + + + + +NativeTransactionConfidenceEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeTransactionConfidenceEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeTransactionConfidenceEventListener
+
+
+
+
All Implemented Interfaces:
+
TransactionConfidenceEventListener
+
+
+
public class NativeTransactionConfidenceEventListener +extends Object +implements TransactionConfidenceEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeTransactionConfidenceEventListener

      +
      public NativeTransactionConfidenceEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onTransactionConfidenceChanged

      +
      public void onTransactionConfidenceChanged(Wallet wallet, + Transaction tx)
      +
      Description copied from interface: TransactionConfidenceEventListener
      +

      Called when a transaction changes its confidence level. You can also attach event listeners to + the individual transactions, if you don't care about all of them. Usually you would save the wallet to disk after + receiving this callback unless you already set up autosaving.

      + +

      You should pay attention to this callback in case a transaction becomes dead, that is, a transaction + you believed to be active (send or receive) becomes overridden by the network. This can happen if

      + +
        +
      1. You are sharing keys between wallets and accidentally create/broadcast a double spend.
      2. +
      3. Somebody is attacking the network and reversing transactions, ie, the user is a victim of fraud.
      4. +
      5. A bug: for example you create a transaction, broadcast it but fail to commit it. The Wallet + will then re-use the same outputs when creating the next spend.
      6. +

      + +

      To find if the transaction is dead, you can use tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.DEAD. + If it is, you should notify the user in some way so they know the thing they bought may not arrive/the thing they sold should not be dispatched.

      + +

      Note that this callback will be invoked for every transaction in the wallet, for every new block that is + received (because the depth has changed). If you want to update a UI view from the contents of the wallet + it is more efficient to use onWalletChanged instead.

      +
      +
      Specified by:
      +
      onTransactionConfidenceChanged in interface TransactionConfidenceEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceListener.html new file mode 100644 index 000000000..38c70b9be --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeTransactionConfidenceListener.html @@ -0,0 +1,211 @@ + + + + +NativeTransactionConfidenceListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeTransactionConfidenceListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeTransactionConfidenceListener
+
+
+
+
All Implemented Interfaces:
+
TransactionConfidence.Listener
+
+
+
public class NativeTransactionConfidenceListener +extends Object +implements TransactionConfidence.Listener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletChangeEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletChangeEventListener.html new file mode 100644 index 000000000..b7d075ffc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletChangeEventListener.html @@ -0,0 +1,219 @@ + + + + +NativeWalletChangeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeWalletChangeEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeWalletChangeEventListener
+
+
+
+
All Implemented Interfaces:
+
WalletChangeEventListener
+
+
+
public class NativeWalletChangeEventListener +extends Object +implements WalletChangeEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeWalletChangeEventListener

      +
      public NativeWalletChangeEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onWalletChanged

      +
      public void onWalletChanged(Wallet wallet)
      +
      Description copied from interface: WalletChangeEventListener
      +

      Designed for GUI applications to refresh their transaction lists. This callback is invoked in the following + situations:

      + +
        +
      1. A new block is received (and thus building transactions got more confidence)
      2. +
      3. A pending transaction is received
      4. +
      5. A pending transaction changes confidence due to some non-new-block related event, such as being + announced by more peers or by a double-spend conflict being observed.
      6. +
      7. A re-organize occurs. Call occurs only if the re-org modified any of our transactions.
      8. +
      9. A new spend is committed to the wallet.
      10. +
      11. The wallet is reset and all transactions removed.
      12. +
      + +

      When this is called you can refresh the UI contents from the wallet contents. It's more efficient to use + this rather than onTransactionConfidenceChanged() + onReorganize() because you only get one callback per block + rather than one per transaction per block. Note that this is not called when a key is added.

      +
      +
      Specified by:
      +
      onWalletChanged in interface WalletChangeEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.html new file mode 100644 index 000000000..0ac6815e7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsReceivedEventListener.html @@ -0,0 +1,221 @@ + + + + +NativeWalletCoinsReceivedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeWalletCoinsReceivedEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeWalletCoinsReceivedEventListener
+
+
+
+
All Implemented Interfaces:
+
WalletCoinsReceivedEventListener
+
+
+
public class NativeWalletCoinsReceivedEventListener +extends Object +implements WalletCoinsReceivedEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeWalletCoinsReceivedEventListener

      +
      public NativeWalletCoinsReceivedEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onCoinsReceived

      +
      public void onCoinsReceived(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
      +
      Description copied from interface: WalletCoinsReceivedEventListener
      +
      This is called when a transaction is seen that sends coins to this wallet, either because it + was broadcast across the network or because a block was received. If a transaction is seen when it was broadcast, + onCoinsReceived won't be called again when a block containing it is received. If you want to know when such a + transaction receives its first confirmation, register a TransactionConfidence event listener using + the object retrieved via Transaction.getConfidence(). It's safe to modify the + wallet in this callback, for example, by spending the transaction just received.
      +
      +
      Specified by:
      +
      onCoinsReceived in interface WalletCoinsReceivedEventListener
      +
      Parameters:
      +
      wallet - The wallet object that received the coins
      +
      tx - The transaction which sent us the coins.
      +
      prevBalance - Balance before the coins were received.
      +
      newBalance - Current balance of the wallet. This is the 'estimated' balance.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.html new file mode 100644 index 000000000..6e2b93733 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletCoinsSentEventListener.html @@ -0,0 +1,224 @@ + + + + +NativeWalletCoinsSentEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeWalletCoinsSentEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeWalletCoinsSentEventListener
+
+
+
+
All Implemented Interfaces:
+
WalletCoinsSentEventListener
+
+
+
public class NativeWalletCoinsSentEventListener +extends Object +implements WalletCoinsSentEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeWalletCoinsSentEventListener

      +
      public NativeWalletCoinsSentEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onCoinsSent

      +
      public void onCoinsSent(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
      +
      Description copied from interface: WalletCoinsSentEventListener
      +
      This is called when a transaction is seen that sends coins from this wallet, either + because it was broadcast across the network or because a block was received. This may at first glance seem + useless, because in the common case you already know about such transactions because you created them with + the Wallets createSend/sendCoins methods. However when you have a wallet containing only keys, and you wish + to replay the block chain to fill it with transactions, it's useful to find out when a transaction is discovered + that sends coins from the wallet.

      + + It's safe to modify the wallet from inside this callback, but if you're replaying the block chain you should + be careful to avoid such modifications. Otherwise your changes may be overridden by new data from the chain.

      +
      +
      Specified by:
      +
      onCoinsSent in interface WalletCoinsSentEventListener
      +
      Parameters:
      +
      wallet - The wallet object that this callback relates to (that sent the coins).
      +
      tx - The transaction that sent the coins to someone else.
      +
      prevBalance - The wallets balance before this transaction was seen.
      +
      newBalance - The wallets balance after this transaction was seen. This is the 'estimated' balance.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletReorganizeEventListener.html b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletReorganizeEventListener.html new file mode 100644 index 000000000..dbcc33350 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/NativeWalletReorganizeEventListener.html @@ -0,0 +1,211 @@ + + + + +NativeWalletReorganizeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NativeWalletReorganizeEventListener

+
+
java.lang.Object +
org.bitcoinj.jni.NativeWalletReorganizeEventListener
+
+
+
+
All Implemented Interfaces:
+
WalletReorganizeEventListener
+
+
+
public class NativeWalletReorganizeEventListener +extends Object +implements WalletReorganizeEventListener
+
An event listener that relays events to a native C++ object. A pointer to that object is stored in + this class using JNI on the native side, thus several instances of this can point to different actual + native implementations.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ptr

      +
      public long ptr
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NativeWalletReorganizeEventListener

      +
      public NativeWalletReorganizeEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onReorganize

      +
      public void onReorganize(Wallet wallet)
      +
      Description copied from interface: WalletReorganizeEventListener
      +

      This is called when a block is received that triggers a block chain re-organization.

      + +

      A re-organize means that the consensus (chain) of the network has diverged and now changed from what we + believed it was previously. Usually this won't matter because the new consensus will include all our old + transactions assuming we are playing by the rules. However it's theoretically possible for our balance to + change in arbitrary ways, most likely, we could lose some money we thought we had.

      + +

      It is safe to use methods of wallet whilst inside this callback.

      +
      +
      Specified by:
      +
      onReorganize in interface WalletReorganizeEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/package-summary.html b/javadoc/0.16.3/org/bitcoinj/jni/package-summary.html new file mode 100644 index 000000000..b0c4d59d1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/package-summary.html @@ -0,0 +1,121 @@ + + + + +org.bitcoinj.jni (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.jni

+
+
+
package org.bitcoinj.jni
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/jni/package-tree.html b/javadoc/0.16.3/org/bitcoinj/jni/package-tree.html new file mode 100644 index 000000000..02ff6cc48 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/jni/package-tree.html @@ -0,0 +1,81 @@ + + + + +org.bitcoinj.jni Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.jni

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/kits/WalletAppKit.html b/javadoc/0.16.3/org/bitcoinj/kits/WalletAppKit.html new file mode 100644 index 000000000..074651f87 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/kits/WalletAppKit.html @@ -0,0 +1,814 @@ + + + + +WalletAppKit (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class WalletAppKit

+
+
java.lang.Object +
com.google.common.util.concurrent.AbstractIdleService +
org.bitcoinj.kits.WalletAppKit
+
+
+
+
+
All Implemented Interfaces:
+
com.google.common.util.concurrent.Service
+
+
+
public class WalletAppKit +extends com.google.common.util.concurrent.AbstractIdleService
+

Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj app. Instantiate it with a directory + and file prefix, optionally configure a few things, then use startAsync and optionally awaitRunning. The object will + construct and configure a BlockChain, SPVBlockStore, Wallet and PeerGroup. Depending + on the value of the blockingStartup property, startup will be considered complete once the block chain has fully + synchronized, so it can take a while.

+ +

To add listeners and modify the objects that are constructed, you can either do that by overriding the + onSetupCompleted() method (which will run on a background thread) and make your changes there, + or by waiting for the service to start and then accessing the objects from wherever you want. However, you cannot + access the objects this class creates until startup is complete.

+ +

The asynchronous design of this class may seem puzzling (just use AbstractIdleService.awaitRunning() if you don't want that). + It is to make it easier to fit bitcoinj into GUI apps, which require a high degree of responsiveness on their main + thread which handles all the animation and user interaction. Even when blockingStart is false, initializing bitcoinj + means doing potentially blocking file IO, generating keys and other potentially intensive operations. By running it + on a background thread, there's no risk of accidentally causing UI lag.

+ +

Note that AbstractIdleService.awaitRunning() can throw an unchecked IllegalStateException + if anything goes wrong during startup - you should probably handle it and use Throwable.getCause() to figure + out what went wrong more precisely. Same thing if you just use the AbstractIdleService.startAsync() method.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      log

      +
      protected static final org.slf4j.Logger log
      +
      +
    • +
    • +
      +

      params

      +
      protected final NetworkParameters params
      +
      +
    • +
    • +
      +

      preferredOutputScriptType

      +
      protected final Script.ScriptType preferredOutputScriptType
      +
      +
    • +
    • +
      +

      structure

      +
      protected final KeyChainGroupStructure structure
      +
      +
    • +
    • +
      +

      filePrefix

      +
      protected final String filePrefix
      +
      +
    • +
    • +
      +

      vChain

      +
      protected volatile BlockChain vChain
      +
      +
    • +
    • +
      +

      vStore

      +
      protected volatile SPVBlockStore vStore
      +
      +
    • +
    • +
      +

      vWallet

      +
      protected volatile Wallet vWallet
      +
      +
    • +
    • +
      +

      vPeerGroup

      +
      protected volatile PeerGroup vPeerGroup
      +
      +
    • +
    • +
      +

      directory

      +
      protected final File directory
      +
      +
    • +
    • +
      +

      vWalletFile

      +
      protected volatile File vWalletFile
      +
      +
    • +
    • +
      +

      useAutoSave

      +
      protected boolean useAutoSave
      +
      +
    • +
    • +
      +

      peerAddresses

      +
      protected PeerAddress[] peerAddresses
      +
      +
    • +
    • +
      +

      downloadListener

      +
      protected DownloadProgressTracker downloadListener
      +
      +
    • +
    • +
      +

      autoStop

      +
      protected boolean autoStop
      +
      +
    • +
    • +
      +

      checkpoints

      +
      protected InputStream checkpoints
      +
      +
    • +
    • +
      +

      blockingStartup

      +
      protected boolean blockingStartup
      +
      +
    • +
    • +
      +

      userAgent

      +
      protected String userAgent
      +
      +
    • +
    • +
      +

      version

      +
      protected String version
      +
      +
    • +
    • +
      +

      walletFactory

      +
      protected WalletProtobufSerializer.WalletFactory walletFactory
      +
      +
    • +
    • +
      +

      restoreFromSeed

      +
      @Nullable +protected DeterministicSeed restoreFromSeed
      +
      +
    • +
    • +
      +

      restoreFromKey

      +
      @Nullable +protected DeterministicKey restoreFromKey
      +
      +
    • +
    • +
      +

      discovery

      +
      @Nullable +protected PeerDiscovery discovery
      +
      +
    • +
    • +
      +

      context

      +
      protected volatile Context context
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setPeerNodes

      +
      public WalletAppKit setPeerNodes(PeerAddress... addresses)
      +
      Will only connect to the given addresses. Cannot be called after startup.
      +
      +
    • +
    • +
      +

      connectToLocalHost

      +
      public WalletAppKit connectToLocalHost()
      +
      Will only connect to localhost. Cannot be called after startup.
      +
      +
    • +
    • +
      +

      setAutoSave

      +
      public WalletAppKit setAutoSave(boolean value)
      +
      If true, the wallet will save itself to disk automatically whenever it changes.
      +
      +
    • +
    • +
      +

      setDownloadListener

      +
      public WalletAppKit setDownloadListener(DownloadProgressTracker listener)
      +
      If you want to learn about the sync process, you can provide a listener here. For instance, a + DownloadProgressTracker is a good choice. This has no effect unless setBlockingStartup(false) has been called + too, due to some missing implementation code.
      +
      +
    • +
    • +
      +

      setAutoStop

      +
      public WalletAppKit setAutoStop(boolean autoStop)
      +
      If true, will register a shutdown hook to stop the library. Defaults to true.
      +
      +
    • +
    • +
      +

      setCheckpoints

      +
      public WalletAppKit setCheckpoints(InputStream checkpoints)
      +
      If set, the file is expected to contain a checkpoints file calculated with BuildCheckpoints. It makes initial + block sync faster for new users - please refer to the documentation on the bitcoinj website + (https://bitcoinj.github.io/speeding-up-chain-sync) for further details.
      +
      +
    • +
    • +
      +

      setBlockingStartup

      +
      public WalletAppKit setBlockingStartup(boolean blockingStartup)
      +
      If true (the default) then the startup of this service won't be considered complete until the network has been + brought up, peer connections established and the block chain synchronised. Therefore AbstractIdleService.awaitRunning() can + potentially take a very long time. If false, then startup is considered complete once the network activity + begins and peer connections/block chain sync will continue in the background.
      +
      +
    • +
    • +
      +

      setUserAgent

      +
      public WalletAppKit setUserAgent(String userAgent, + String version)
      +
      Sets the string that will appear in the subver field of the version message.
      +
      +
      Parameters:
      +
      userAgent - A short string that should be the name of your app, e.g. "My Wallet"
      +
      version - A short string that contains the version number, e.g. "1.0-BETA"
      +
      +
      +
    • +
    • +
      +

      setWalletFactory

      +
      public WalletAppKit setWalletFactory(WalletProtobufSerializer.WalletFactory walletFactory)
      +
      Sets a wallet factory which will be used when the kit creates a new wallet.
      +
      +
    • +
    • +
      +

      restoreWalletFromSeed

      +
      public WalletAppKit restoreWalletFromSeed(DeterministicSeed seed)
      +
      If a seed is set here then any existing wallet that matches the file name will be renamed to a backup name, + the chain file will be deleted, and the wallet object will be instantiated with the given seed instead of + a fresh one being created. This is intended for restoring a wallet from the original seed. To implement restore + you would shut down the existing appkit, if any, then recreate it with the seed given by the user, then start + up the new kit. The next time your app starts it should work as normal (that is, don't keep calling this each + time).
      +
      +
    • +
    • +
      +

      restoreWalletFromKey

      +
      public WalletAppKit restoreWalletFromKey(DeterministicKey accountKey)
      +
      If an account key is set here then any existing wallet that matches the file name will be renamed to a backup name, + the chain file will be deleted, and the wallet object will be instantiated with the given key instead of + a fresh seed being created. This is intended for restoring a wallet from an account key. To implement restore + you would shut down the existing appkit, if any, then recreate it with the key given by the user, then start + up the new kit. The next time your app starts it should work as normal (that is, don't keep calling this each + time).
      +
      +
    • +
    • +
      +

      setDiscovery

      +
      public WalletAppKit setDiscovery(@Nullable + PeerDiscovery discovery)
      +
      Sets the peer discovery class to use. If none is provided then DNS is used, which is a reasonable default.
      +
      +
    • +
    • +
      +

      provideWalletExtensions

      +
      protected List<WalletExtension> provideWalletExtensions() + throws Exception
      +

      Override this to return wallet extensions if any are necessary.

      + +

      When this is called, chain(), store(), and peerGroup() will return the created objects, however they are not + initialized/started.

      +
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      onSetupCompleted

      +
      protected void onSetupCompleted()
      +
      This method is invoked on a background thread after all objects are initialised, but before the peer group + or block chain download is started. You can tweak the objects configuration here.
      +
      +
    • +
    • +
      +

      isChainFileLocked

      +
      public boolean isChainFileLocked() + throws IOException
      +
      Tests to see if the spvchain file has an operating system file lock on it. Useful for checking if your app + is already running. If another copy of your app is running and you start the appkit anyway, an exception will + be thrown during the startup process. Returns false if the chain file does not exist or is a directory.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      startUp

      +
      protected void startUp() + throws Exception
      +
      +
      Specified by:
      +
      startUp in class com.google.common.util.concurrent.AbstractIdleService
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      setupAutoSave

      +
      protected void setupAutoSave(Wallet wallet)
      +
      +
    • +
    • +
      +

      createWallet

      +
      protected Wallet createWallet()
      +
      +
    • +
    • +
      +

      createPeerGroup

      +
      protected PeerGroup createPeerGroup()
      +
      +
    • +
    • +
      +

      shutDown

      +
      protected void shutDown() + throws Exception
      +
      +
      Specified by:
      +
      shutDown in class com.google.common.util.concurrent.AbstractIdleService
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      params

      +
      public NetworkParameters params()
      +
      +
    • +
    • +
      +

      chain

      +
      public BlockChain chain()
      +
      +
    • +
    • +
      +

      store

      +
      public BlockStore store()
      +
      +
    • +
    • +
      +

      wallet

      +
      public Wallet wallet()
      +
      +
    • +
    • +
      +

      peerGroup

      +
      public PeerGroup peerGroup()
      +
      +
    • +
    • +
      +

      directory

      +
      public File directory()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/kits/package-summary.html b/javadoc/0.16.3/org/bitcoinj/kits/package-summary.html new file mode 100644 index 000000000..292b35f9c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/kits/package-summary.html @@ -0,0 +1,89 @@ + + + + +org.bitcoinj.kits (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.kits

+
+
+
package org.bitcoinj.kits
+
+
High level wrapper APIs around the bitcoinj building blocks. WalletAppKit is suitable for many different types of + apps that require an SPV wallet.
+
+
+
    +
  • +
    +
    Classes
    +
    +
    Class
    +
    Description
    + +
    +
    Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj app.
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/kits/package-tree.html b/javadoc/0.16.3/org/bitcoinj/kits/package-tree.html new file mode 100644 index 000000000..e83d809c3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/kits/package-tree.html @@ -0,0 +1,76 @@ + + + + +org.bitcoinj.kits Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.kits

+Package Hierarchies: + +
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.google.common.util.concurrent.AbstractIdleService (implements com.google.common.util.concurrent.Service) + +
    • +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/AbstractTimeoutHandler.html b/javadoc/0.16.3/org/bitcoinj/net/AbstractTimeoutHandler.html new file mode 100644 index 000000000..189402a6f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/AbstractTimeoutHandler.html @@ -0,0 +1,215 @@ + + + + +AbstractTimeoutHandler (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AbstractTimeoutHandler

+
+
java.lang.Object +
org.bitcoinj.net.AbstractTimeoutHandler
+
+
+
+
Direct Known Subclasses:
+
PeerSocketHandler
+
+
+
public abstract class AbstractTimeoutHandler +extends Object
+

A base class which provides basic support for socket timeouts. It is used instead of integrating timeouts into the + NIO select thread both for simplicity and to keep code shared between NIO and blocking sockets as much as possible. +

+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected void
    + +
    +
    Resets the current progress towards timeout to 0.
    +
    +
    final void
    +
    setSocketTimeout(int timeoutMillis)
    +
    +
    Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no + messages are received for this long
    +
    +
    final void
    +
    setTimeoutEnabled(boolean timeoutEnabled)
    +
    +
    Enables or disables the timeout entirely.
    +
    +
    protected abstract void
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AbstractTimeoutHandler

      +
      public AbstractTimeoutHandler()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setTimeoutEnabled

      +
      public final void setTimeoutEnabled(boolean timeoutEnabled)
      +

      Enables or disables the timeout entirely. This may be useful if you want to store the timeout value but wish + to temporarily disable/enable timeouts.

      + +

      The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).

      + +

      This call will reset the current progress towards the timeout.

      +
      +
    • +
    • +
      +

      setSocketTimeout

      +
      public final void setSocketTimeout(int timeoutMillis)
      +

      Sets the receive timeout to the given number of milliseconds, automatically killing the connection if no + messages are received for this long

      + +

      A timeout of 0 is interpreted as no timeout.

      + +

      The default is for timeoutEnabled to be true but timeoutMillis to be set to 0 (ie disabled).

      + +

      This call will reset the current progress towards the timeout.

      +
      +
    • +
    • +
      +

      resetTimeout

      +
      protected void resetTimeout()
      +
      Resets the current progress towards timeout to 0.
      +
      +
    • +
    • +
      +

      timeoutOccurred

      +
      protected abstract void timeoutOccurred()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/BlockingClient.html b/javadoc/0.16.3/org/bitcoinj/net/BlockingClient.html new file mode 100644 index 000000000..9333ef7ed --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/BlockingClient.html @@ -0,0 +1,257 @@ + + + + +BlockingClient (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockingClient

+
+
java.lang.Object +
org.bitcoinj.net.BlockingClient
+
+
+
+
All Implemented Interfaces:
+
MessageWriteTarget
+
+
+
public class BlockingClient +extends Object +implements MessageWriteTarget
+

Creates a simple connection to a server using a StreamConnection to process data.

+ +

Generally, using NioClient and NioClientManager should be preferred over BlockingClient + and BlockingClientManager, unless you wish to connect over a proxy or use some other network settings that + cannot be set using NIO.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BlockingClient

      +
      public BlockingClient(SocketAddress serverAddress, + StreamConnection connection, + int connectTimeoutMillis, + SocketFactory socketFactory, + @Nullable + Set<BlockingClient> clientSet) + throws IOException
      +

      Creates a new client to the given server address using the given StreamConnection to decode the data. + The given connection MUST be unique to this object. This does not block while waiting for the connection to + open, but will call either the StreamConnection.connectionOpened() or + StreamConnection.connectionClosed() callback on the created network event processing thread.

      +
      +
      Parameters:
      +
      connectTimeoutMillis - The connect timeout set on the connection (in milliseconds). 0 is interpreted as no + timeout.
      +
      socketFactory - An object that creates Socket objects on demand, which may be customised to control + how this client connects to the internet. If not sure, use SocketFactory.getDefault()
      +
      clientSet - A set which this object will add itself to after initialization, and then remove itself from
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      runReadLoop

      +
      public static void runReadLoop(InputStream stream, + StreamConnection connection) + throws Exception
      +
      A blocking call that never returns, except by throwing an exception. It reads bytes from the input stream + and feeds them to the provided StreamConnection, for example, a Peer.
      +
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      closeConnection

      +
      public void closeConnection()
      +
      Closes the connection to the server, triggering the StreamConnection.connectionClosed() + event on the network-handling thread where all callbacks occur.
      +
      +
      Specified by:
      +
      closeConnection in interface MessageWriteTarget
      +
      +
      +
    • +
    • +
      +

      writeBytes

      +
      public com.google.common.util.concurrent.ListenableFuture writeBytes(byte[] message) + throws IOException
      +
      Description copied from interface: MessageWriteTarget
      +
      Writes the given bytes to the remote server. The returned future will complete when all bytes + have been written to the OS network buffer.
      +
      +
      Specified by:
      +
      writeBytes in interface MessageWriteTarget
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getConnectFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<SocketAddress> getConnectFuture()
      +
      Returns a future that completes once connection has occurred at the socket level or with an exception if failed to connect.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/BlockingClientManager.html b/javadoc/0.16.3/org/bitcoinj/net/BlockingClientManager.html new file mode 100644 index 000000000..fbc3779c9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/BlockingClientManager.html @@ -0,0 +1,287 @@ + + + + +BlockingClientManager (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockingClientManager

+
+
java.lang.Object +
com.google.common.util.concurrent.AbstractIdleService +
org.bitcoinj.net.BlockingClientManager
+
+
+
+
+
All Implemented Interfaces:
+
com.google.common.util.concurrent.Service, ClientConnectionManager
+
+
+
public class BlockingClientManager +extends com.google.common.util.concurrent.AbstractIdleService +implements ClientConnectionManager
+

A thin wrapper around a set of BlockingClients.

+ +

Generally, using NioClient and NioClientManager should be preferred over BlockingClient + and BlockingClientManager as they scale significantly better, unless you wish to connect over a proxy or use + some other network settings that cannot be set using NIO.

+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    +com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    + +
    +
    Creates a blocking client manager that will obtain sockets from the given factory.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Closes n peer connections
    +
    +
    int
    + +
    +
    Gets the number of connected peers
    +
    +
    com.google.common.util.concurrent.ListenableFuture<SocketAddress>
    +
    openConnection(SocketAddress serverAddress, + StreamConnection connection)
    +
    +
    Creates a new connection to the given address, with the given connection used to handle incoming data.
    +
    +
    void
    +
    setConnectTimeoutMillis(int connectTimeoutMillis)
    +
    +
    Sets the number of milliseconds to wait before giving up on a connect attempt
    +
    +
    protected void
    + +
     
    +
    protected void
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.common.util.concurrent.Service

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BlockingClientManager

      +
      public BlockingClientManager()
      +
      +
    • +
    • +
      +

      BlockingClientManager

      +
      public BlockingClientManager(SocketFactory socketFactory)
      +
      Creates a blocking client manager that will obtain sockets from the given factory. Useful for customising how + bitcoinj connects to the P2P network.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      openConnection

      +
      public com.google.common.util.concurrent.ListenableFuture<SocketAddress> openConnection(SocketAddress serverAddress, + StreamConnection connection)
      +
      Description copied from interface: ClientConnectionManager
      +
      Creates a new connection to the given address, with the given connection used to handle incoming data. Any errors + that occur during connection will be returned in the given future, including errors that can occur immediately.
      +
      +
      Specified by:
      +
      openConnection in interface ClientConnectionManager
      +
      +
      +
    • +
    • +
      +

      setConnectTimeoutMillis

      +
      public void setConnectTimeoutMillis(int connectTimeoutMillis)
      +
      Sets the number of milliseconds to wait before giving up on a connect attempt
      +
      +
    • +
    • +
      +

      startUp

      +
      protected void startUp() + throws Exception
      +
      +
      Specified by:
      +
      startUp in class com.google.common.util.concurrent.AbstractIdleService
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      shutDown

      +
      protected void shutDown() + throws Exception
      +
      +
      Specified by:
      +
      shutDown in class com.google.common.util.concurrent.AbstractIdleService
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      getConnectedClientCount

      +
      public int getConnectedClientCount()
      +
      Description copied from interface: ClientConnectionManager
      +
      Gets the number of connected peers
      +
      +
      Specified by:
      +
      getConnectedClientCount in interface ClientConnectionManager
      +
      +
      +
    • +
    • +
      +

      closeConnections

      +
      public void closeConnections(int n)
      +
      Description copied from interface: ClientConnectionManager
      +
      Closes n peer connections
      +
      +
      Specified by:
      +
      closeConnections in interface ClientConnectionManager
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/ClientConnectionManager.html b/javadoc/0.16.3/org/bitcoinj/net/ClientConnectionManager.html new file mode 100644 index 000000000..c71944d73 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/ClientConnectionManager.html @@ -0,0 +1,181 @@ + + + + +ClientConnectionManager (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ClientConnectionManager

+
+
+
+
All Superinterfaces:
+
com.google.common.util.concurrent.Service
+
+
+
All Known Implementing Classes:
+
BlockingClientManager, NioClientManager
+
+
+
public interface ClientConnectionManager +extends com.google.common.util.concurrent.Service
+

A generic interface for an object which keeps track of a set of open client connections, creates new ones and + ensures they are serviced properly.

+ +

When the service is stopped via Service.stopAsync(), all connections will be closed and + the appropriate connectionClosed() calls must be made.

+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    +com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Closes n peer connections
    +
    +
    int
    + +
    +
    Gets the number of connected peers
    +
    +
    com.google.common.util.concurrent.ListenableFuture<SocketAddress>
    +
    openConnection(SocketAddress serverAddress, + StreamConnection connection)
    +
    +
    Creates a new connection to the given address, with the given connection used to handle incoming data.
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.common.util.concurrent.Service

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      openConnection

      +
      com.google.common.util.concurrent.ListenableFuture<SocketAddress> openConnection(SocketAddress serverAddress, + StreamConnection connection)
      +
      Creates a new connection to the given address, with the given connection used to handle incoming data. Any errors + that occur during connection will be returned in the given future, including errors that can occur immediately.
      +
      +
    • +
    • +
      +

      getConnectedClientCount

      +
      int getConnectedClientCount()
      +
      Gets the number of connected peers
      +
      +
    • +
    • +
      +

      closeConnections

      +
      void closeConnections(int n)
      +
      Closes n peer connections
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.Result.html b/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.Result.html new file mode 100644 index 000000000..115a53749 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.Result.html @@ -0,0 +1,179 @@ + + + + +FilterMerger.Result (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FilterMerger.Result

+
+
java.lang.Object +
org.bitcoinj.net.FilterMerger.Result
+
+
+
+
Enclosing class:
+
FilterMerger
+
+
+
public static class FilterMerger.Result +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      filter

      +
      public BloomFilter filter
      +
      +
    • +
    • +
      +

      earliestKeyTimeSecs

      +
      public long earliestKeyTimeSecs
      +
      +
    • +
    • +
      +

      changed

      +
      public boolean changed
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Result

      +
      public Result()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.html b/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.html new file mode 100644 index 000000000..744699ba4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/FilterMerger.html @@ -0,0 +1,211 @@ + + + + +FilterMerger (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FilterMerger

+
+
java.lang.Object +
org.bitcoinj.net.FilterMerger
+
+
+
+
public class FilterMerger +extends Object
+

A reusable object that will calculate, given a list of PeerFilterProviders, a merged + BloomFilter and earliest key time for all of them. + Used by the PeerGroup class internally.

+ +

Thread safety: threading here can be complicated. Each filter provider is given a begin event, which may acquire + a lock (and is guaranteed to receive an end event). This class is mostly thread unsafe and is meant to be used from a + single thread only, PeerGroup ensures this by only accessing it from the dedicated PeerGroup thread. PeerGroup does + not hold any locks whilst this object is used, relying on the single thread to prevent multiple filters being + calculated in parallel, thus a filter provider can do things like make blocking calls into PeerGroup from a separate + thread. However the bloomFilterFPRate property IS thread safe, for convenience.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      FilterMerger

      +
      public FilterMerger(double bloomFilterFPRate)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      calculate

      +
      public FilterMerger.Result calculate(com.google.common.collect.ImmutableList<PeerFilterProvider> providers)
      +
      +
    • +
    • +
      +

      setBloomFilterFPRate

      +
      public void setBloomFilterFPRate(double bloomFilterFPRate)
      +
      +
    • +
    • +
      +

      getBloomFilterFPRate

      +
      public double getBloomFilterFPRate()
      +
      +
    • +
    • +
      +

      getLastFilter

      +
      public BloomFilter getLastFilter()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/MessageWriteTarget.html b/javadoc/0.16.3/org/bitcoinj/net/MessageWriteTarget.html new file mode 100644 index 000000000..381293658 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/MessageWriteTarget.html @@ -0,0 +1,153 @@ + + + + +MessageWriteTarget (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface MessageWriteTarget

+
+
+
+
All Known Implementing Classes:
+
BlockingClient, NioClient
+
+
+
public interface MessageWriteTarget
+
A target to which messages can be written/connection can be closed
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Closes the connection to the server, triggering the StreamConnection.connectionClosed() + event on the network-handling thread where all callbacks occur.
    +
    +
    com.google.common.util.concurrent.ListenableFuture
    +
    writeBytes(byte[] message)
    +
    +
    Writes the given bytes to the remote server.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      writeBytes

      +
      com.google.common.util.concurrent.ListenableFuture writeBytes(byte[] message) + throws IOException
      +
      Writes the given bytes to the remote server. The returned future will complete when all bytes + have been written to the OS network buffer.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      closeConnection

      +
      void closeConnection()
      +
      Closes the connection to the server, triggering the StreamConnection.connectionClosed() + event on the network-handling thread where all callbacks occur.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/NioClient.html b/javadoc/0.16.3/org/bitcoinj/net/NioClient.html new file mode 100644 index 000000000..0374ef48b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/NioClient.html @@ -0,0 +1,214 @@ + + + + +NioClient (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NioClient

+
+
java.lang.Object +
org.bitcoinj.net.NioClient
+
+
+
+
All Implemented Interfaces:
+
MessageWriteTarget
+
+
+
public class NioClient +extends Object +implements MessageWriteTarget
+
Creates a simple connection to a server using a StreamConnection to process data.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NioClient

      +
      public NioClient(SocketAddress serverAddress, + StreamConnection parser, + int connectTimeoutMillis) + throws IOException
      +

      Creates a new client to the given server address using the given StreamConnection to decode the data. + The given connection MUST be unique to this object. This does not block while waiting for the connection to + open, but will call either the StreamConnection.connectionOpened() or + StreamConnection.connectionClosed() callback on the created network event processing thread.

      +
      +
      Parameters:
      +
      connectTimeoutMillis - The connect timeout set on the connection (in milliseconds). 0 is interpreted as no + timeout.
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/NioClientManager.html b/javadoc/0.16.3/org/bitcoinj/net/NioClientManager.html new file mode 100644 index 000000000..4b40036ba --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/NioClientManager.html @@ -0,0 +1,271 @@ + + + + +NioClientManager (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NioClientManager

+
+
java.lang.Object +
com.google.common.util.concurrent.AbstractExecutionThreadService +
org.bitcoinj.net.NioClientManager
+
+
+
+
+
All Implemented Interfaces:
+
com.google.common.util.concurrent.Service, ClientConnectionManager
+
+
+
public class NioClientManager +extends com.google.common.util.concurrent.AbstractExecutionThreadService +implements ClientConnectionManager
+
A class which manages a set of client connections. Uses Java NIO to select network events and processes them in a + single network processing thread.
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    +com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
    +
    Creates a new client manager which uses Java NIO for socket management.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Closes n peer connections
    +
    +
    protected Executor
    + +
     
    +
    int
    + +
    +
    Gets the number of connected peers
    +
    +
    com.google.common.util.concurrent.ListenableFuture<SocketAddress>
    +
    openConnection(SocketAddress serverAddress, + StreamConnection connection)
    +
    +
    Creates a new connection to the given address, with the given connection used to handle incoming data.
    +
    +
    void
    +
    run()
    +
     
    +
    void
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.common.util.concurrent.Service

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      NioClientManager

      +
      public NioClientManager()
      +
      Creates a new client manager which uses Java NIO for socket management. Uses a single thread to handle all select + calls.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      run

      +
      public void run()
      +
      +
      Specified by:
      +
      run in class com.google.common.util.concurrent.AbstractExecutionThreadService
      +
      +
      +
    • +
    • +
      +

      openConnection

      +
      public com.google.common.util.concurrent.ListenableFuture<SocketAddress> openConnection(SocketAddress serverAddress, + StreamConnection connection)
      +
      Description copied from interface: ClientConnectionManager
      +
      Creates a new connection to the given address, with the given connection used to handle incoming data. Any errors + that occur during connection will be returned in the given future, including errors that can occur immediately.
      +
      +
      Specified by:
      +
      openConnection in interface ClientConnectionManager
      +
      +
      +
    • +
    • +
      +

      triggerShutdown

      +
      public void triggerShutdown()
      +
      +
      Overrides:
      +
      triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadService
      +
      +
      +
    • +
    • +
      +

      getConnectedClientCount

      +
      public int getConnectedClientCount()
      +
      Description copied from interface: ClientConnectionManager
      +
      Gets the number of connected peers
      +
      +
      Specified by:
      +
      getConnectedClientCount in interface ClientConnectionManager
      +
      +
      +
    • +
    • +
      +

      closeConnections

      +
      public void closeConnections(int n)
      +
      Description copied from interface: ClientConnectionManager
      +
      Closes n peer connections
      +
      +
      Specified by:
      +
      closeConnections in interface ClientConnectionManager
      +
      +
      +
    • +
    • +
      +

      executor

      +
      protected Executor executor()
      +
      +
      Overrides:
      +
      executor in class com.google.common.util.concurrent.AbstractExecutionThreadService
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/NioServer.html b/javadoc/0.16.3/org/bitcoinj/net/NioServer.html new file mode 100644 index 000000000..e91a1690b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/NioServer.html @@ -0,0 +1,216 @@ + + + + +NioServer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class NioServer

+
+
java.lang.Object +
com.google.common.util.concurrent.AbstractExecutionThreadService +
org.bitcoinj.net.NioServer
+
+
+
+
+
All Implemented Interfaces:
+
com.google.common.util.concurrent.Service
+
+
+
public class NioServer +extends com.google.common.util.concurrent.AbstractExecutionThreadService
+
Creates a simple server listener which listens for incoming client connections and uses a StreamConnection to + process data.
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    +

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    +com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    NioServer(StreamConnectionFactory connectionFactory, + InetSocketAddress bindAddress)
    +
    +
    Creates a new server which is capable of listening for incoming connections and processing client provided data + using StreamConnections created by the given StreamConnectionFactory
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected void
    +
    run()
    +
     
    +
    void
    + +
    +
    Invoked by the Execution service when it's time to stop.
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.common.util.concurrent.AbstractExecutionThreadService

    +addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      run

      +
      protected void run() + throws Exception
      +
      +
      Specified by:
      +
      run in class com.google.common.util.concurrent.AbstractExecutionThreadService
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      triggerShutdown

      +
      public void triggerShutdown()
      +
      Invoked by the Execution service when it's time to stop. + Calling this method directly will NOT stop the service, call + AbstractExecutionThreadService.stopAsync() instead.
      +
      +
      Overrides:
      +
      triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadService
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/StreamConnection.html b/javadoc/0.16.3/org/bitcoinj/net/StreamConnection.html new file mode 100644 index 000000000..22b201c4a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/StreamConnection.html @@ -0,0 +1,207 @@ + + + + +StreamConnection (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface StreamConnection

+
+
+
+
All Known Implementing Classes:
+
Peer, PeerSocketHandler
+
+
+
public interface StreamConnection
+
A generic handler which is used in NioServer, NioClient and BlockingClient to handle incoming + data streams. + + Used to be called StreamParser.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called when the connection socket is closed
    +
    +
    void
    + +
    +
    Called when the connection socket is first opened
    +
    +
    int
    + +
    +
    Returns the maximum message size of a message on the socket.
    +
    +
    int
    + +
    +
    Called when new bytes are available from the remote end.
    +
    +
    void
    + +
    +
    Called when this connection is attached to an upstream write target (ie a low-level connection handler).
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      connectionClosed

      +
      void connectionClosed()
      +
      Called when the connection socket is closed
      +
      +
    • +
    • +
      +

      connectionOpened

      +
      void connectionOpened()
      +
      Called when the connection socket is first opened
      +
      +
    • +
    • +
      +

      receiveBytes

      +
      int receiveBytes(ByteBuffer buff) + throws Exception
      +

      Called when new bytes are available from the remote end. This should only ever be called by the single + writeTarget associated with any given StreamConnection, multiple callers will likely confuse implementations.

      + + Implementers/callers must follow the following conventions exactly: +
        +
      • buff will start with its limit set to the position we can read to and its position set to the location we + will start reading at (always 0)
      • +
      • May read more than one message (recursively) if there are enough bytes available
      • +
      • Uses some internal buffering to store message which are larger (incl their length prefix) than buff's + capacity(), ie it is up to this method to ensure we don't run out of buffer space to decode the next message. +
      • +
      • buff will end with its limit the same as it was previously, and its position set to the position up to which + bytes have been read (the same as its return value)
      • +
      • buff must be at least the size of a Bitcoin header (incl magic bytes).
      • +
      +
      +
      Returns:
      +
      The amount of bytes consumed which should not be provided again
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      setWriteTarget

      +
      void setWriteTarget(MessageWriteTarget writeTarget)
      +
      Called when this connection is attached to an upstream write target (ie a low-level connection handler). This + writeTarget should be stored and used to close the connection or write data to the socket.
      +
      +
    • +
    • +
      +

      getMaxMessageSize

      +
      int getMaxMessageSize()
      +
      Returns the maximum message size of a message on the socket. This is used in calculating size of buffers to + allocate.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/StreamConnectionFactory.html b/javadoc/0.16.3/org/bitcoinj/net/StreamConnectionFactory.html new file mode 100644 index 000000000..b0d21fce2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/StreamConnectionFactory.html @@ -0,0 +1,137 @@ + + + + +StreamConnectionFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface StreamConnectionFactory

+
+
+
+
public interface StreamConnectionFactory
+
A factory which generates new StreamConnections when a new connection is opened.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    getNewConnection(InetAddress inetAddress, + int port)
    +
    +
    Returns a new handler or null to have the connection close.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getNewConnection

      +
      @Nullable +StreamConnection getNewConnection(InetAddress inetAddress, + int port)
      +
      Returns a new handler or null to have the connection close.
      +
      +
      Parameters:
      +
      inetAddress - The client's (IP) address
      +
      port - The remote port on the client side
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.DnsSeedDiscovery.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.DnsSeedDiscovery.html new file mode 100644 index 000000000..a66386c73 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.DnsSeedDiscovery.html @@ -0,0 +1,218 @@ + + + + +DnsDiscovery.DnsSeedDiscovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DnsDiscovery.DnsSeedDiscovery

+
+
java.lang.Object +
org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
+
+
+
+
All Implemented Interfaces:
+
PeerDiscovery
+
+
+
Enclosing class:
+
DnsDiscovery
+
+
+
public static class DnsDiscovery.DnsSeedDiscovery +extends Object +implements PeerDiscovery
+
Implements discovery from a single DNS host.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.html new file mode 100644 index 000000000..d664d8c43 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/DnsDiscovery.html @@ -0,0 +1,232 @@ + + + + +DnsDiscovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DnsDiscovery

+
+
java.lang.Object +
org.bitcoinj.net.discovery.MultiplexingDiscovery +
org.bitcoinj.net.discovery.DnsDiscovery
+
+
+
+
+
All Implemented Interfaces:
+
PeerDiscovery
+
+
+
public class DnsDiscovery +extends MultiplexingDiscovery
+

Supports peer discovery through DNS.

+ +

Failure to resolve individual host names will not cause an Exception to be thrown. + However, if all hosts passed fail to resolve a PeerDiscoveryException will be thrown during getPeers(). +

+ +

DNS seeds do not attempt to enumerate every peer on the network. MultiplexingDiscovery.getPeers(long, long, TimeUnit) + will return up to 30 random peers from the set of those returned within the timeout period. If you want more peers + to connect to, you need to discover them via other means (like addr broadcasts).

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DnsDiscovery

      +
      public DnsDiscovery(NetworkParameters netParams)
      +
      Supports finding peers through DNS A records. Community run DNS entry points will be used.
      +
      +
      Parameters:
      +
      netParams - Network parameters to be used for port information.
      +
      +
      +
    • +
    • +
      +

      DnsDiscovery

      +
      public DnsDiscovery(String[] dnsSeeds, + NetworkParameters params)
      +
      Supports finding peers through DNS A records.
      +
      +
      Parameters:
      +
      dnsSeeds - Host names to be examined for seed addresses.
      +
      params - Network parameters to be used for port information.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.Details.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.Details.html new file mode 100644 index 000000000..d48c040c2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.Details.html @@ -0,0 +1,174 @@ + + + + +HttpDiscovery.Details (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HttpDiscovery.Details

+
+
java.lang.Object +
org.bitcoinj.net.discovery.HttpDiscovery.Details
+
+
+
+
Enclosing class:
+
HttpDiscovery
+
+
+
public static class HttpDiscovery.Details +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      pubkey

      +
      @Nullable +public final ECKey pubkey
      +
      +
    • +
    • +
      +

      uri

      +
      public final URI uri
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Details

      +
      public Details(@Nullable + ECKey pubkey, + URI uri)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.html new file mode 100644 index 000000000..b6bc737c3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/HttpDiscovery.html @@ -0,0 +1,273 @@ + + + + +HttpDiscovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class HttpDiscovery

+
+
java.lang.Object +
org.bitcoinj.net.discovery.HttpDiscovery
+
+
+
+
All Implemented Interfaces:
+
PeerDiscovery
+
+
+
public class HttpDiscovery +extends Object +implements PeerDiscovery
+
A class that knows how to read signed sets of seeds over HTTP, using a simple protobuf based protocol. See the + peerseeds.proto file for the definition, with a gzipped delimited SignedPeerSeeds being the root of the data. + This is not currently in use by the Bitcoin community, but rather, is here for experimentation.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/MultiplexingDiscovery.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/MultiplexingDiscovery.html new file mode 100644 index 000000000..1a39803c1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/MultiplexingDiscovery.html @@ -0,0 +1,303 @@ + + + + +MultiplexingDiscovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MultiplexingDiscovery

+
+
java.lang.Object +
org.bitcoinj.net.discovery.MultiplexingDiscovery
+
+
+
+
All Implemented Interfaces:
+
PeerDiscovery
+
+
+
Direct Known Subclasses:
+
DnsDiscovery
+
+
+
public class MultiplexingDiscovery +extends Object +implements PeerDiscovery
+
MultiplexingDiscovery queries multiple PeerDiscovery objects, optionally shuffles their responses and then returns the results, + thus selecting randomly between them and reducing the influence of any particular seed. Any that don't respond + within the timeout are ignored. Backends are queried in parallel or serially. Backends may block.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MultiplexingDiscovery

      +
      public MultiplexingDiscovery(NetworkParameters params, + List<PeerDiscovery> seeds)
      +
      Will query the given seeds in parallel before producing a merged response.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      forServices

      +
      public static MultiplexingDiscovery forServices(NetworkParameters params, + long services)
      +
      Builds a suitable set of peer discoveries. Will query them in parallel before producing a merged response. + If specific services are required, DNS is not used as the protocol can't handle it.
      +
      +
      Parameters:
      +
      params - Network to use.
      +
      services - Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK.
      +
      +
      +
    • +
    • +
      +

      forServices

      +
      public static MultiplexingDiscovery forServices(NetworkParameters params, + long services, + boolean parallelQueries, + boolean shufflePeers)
      +
      Builds a suitable set of peer discoveries. + If specific services are required, DNS is not used as the protocol can't handle it.
      +
      +
      Parameters:
      +
      params - Network to use.
      +
      services - Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK.
      +
      parallelQueries - When true, seeds are queried in parallel
      +
      shufflePeers - When true, queried peers are shuffled
      +
      +
      +
    • +
    • +
      +

      getPeers

      +
      public List<InetSocketAddress> getPeers(long services, + long timeoutValue, + TimeUnit timeoutUnit) + throws PeerDiscoveryException
      +
      Description copied from interface: PeerDiscovery
      +
      Queries the addresses. This method may block.
      +
      +
      Specified by:
      +
      getPeers in interface PeerDiscovery
      +
      Parameters:
      +
      services - Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK.
      +
      Throws:
      +
      PeerDiscoveryException
      +
      +
      +
    • +
    • +
      +

      createExecutor

      +
      protected ExecutorService createExecutor()
      +
      +
    • +
    • +
      +

      shutdown

      +
      public void shutdown()
      +
      Description copied from interface: PeerDiscovery
      +
      Stops any discovery in progress when we want to shut down quickly.
      +
      +
      Specified by:
      +
      shutdown in interface PeerDiscovery
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscovery.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscovery.html new file mode 100644 index 000000000..6403af747 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscovery.html @@ -0,0 +1,157 @@ + + + + +PeerDiscovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface PeerDiscovery

+
+
+
+
All Known Implementing Classes:
+
DnsDiscovery, DnsDiscovery.DnsSeedDiscovery, HttpDiscovery, MultiplexingDiscovery, SeedPeers
+
+
+
public interface PeerDiscovery
+
A PeerDiscovery object is responsible for finding addresses of other nodes in the Bitcoin P2P network. Note that + the addresses returned may or may not be accepting connections.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    getPeers(long services, + long timeoutValue, + TimeUnit timeoutUnit)
    +
    +
    Queries the addresses.
    +
    +
    void
    + +
    +
    Stops any discovery in progress when we want to shut down quickly.
    +
    +
    +
    +
    +
    +
  • +
+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscoveryException.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscoveryException.html new file mode 100644 index 000000000..760fa51a7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/PeerDiscoveryException.html @@ -0,0 +1,173 @@ + + + + +PeerDiscoveryException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PeerDiscoveryException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.net.discovery.PeerDiscoveryException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class PeerDiscoveryException +extends Exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PeerDiscoveryException

      +
      public PeerDiscoveryException()
      +
      +
    • +
    • +
      +

      PeerDiscoveryException

      +
      public PeerDiscoveryException(String message)
      +
      +
    • +
    • +
      +

      PeerDiscoveryException

      +
      public PeerDiscoveryException(Throwable arg0)
      +
      +
    • +
    • +
      +

      PeerDiscoveryException

      +
      public PeerDiscoveryException(String message, + Throwable arg0)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/SeedPeers.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/SeedPeers.html new file mode 100644 index 000000000..136fe9afb --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/SeedPeers.html @@ -0,0 +1,246 @@ + + + + +SeedPeers (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SeedPeers

+
+
java.lang.Object +
org.bitcoinj.net.discovery.SeedPeers
+
+
+
+
All Implemented Interfaces:
+
PeerDiscovery
+
+
+
public class SeedPeers +extends Object +implements PeerDiscovery
+
SeedPeers stores a pre-determined list of Bitcoin node addresses. These nodes are selected based on being + active on the network for a long period of time. The intention is to be a last resort way of finding a connection + to the network, in case IRC and DNS fail. The list comes from the Bitcoin C++ source code.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      SeedPeers

      +
      public SeedPeers(NetworkParameters params)
      +
      Supports finding peers by IP addresses
      +
      +
      Parameters:
      +
      params - Network parameters to be used for port information.
      +
      +
      +
    • +
    • +
      +

      SeedPeers

      +
      public SeedPeers(int[] seedAddrs, + NetworkParameters params)
      +
      Supports finding peers by IP addresses
      +
      +
      Parameters:
      +
      seedAddrs - IP addresses for seed addresses.
      +
      params - Network parameters to be used for port information.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/package-summary.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/package-summary.html new file mode 100644 index 000000000..43be47e3d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/package-summary.html @@ -0,0 +1,133 @@ + + + + +org.bitcoinj.net.discovery (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.net.discovery

+
+
+
package org.bitcoinj.net.discovery
+
+
Classes that know how to discover peers in the P2P network using DNS or HTTP.
+
+
+
    +
  • + +
  • +
  • +
    +
    +
    +
    +
    Class
    +
    Description
    + +
    +
    Supports peer discovery through DNS.
    +
    + +
    +
    Implements discovery from a single DNS host.
    +
    + +
    +
    A class that knows how to read signed sets of seeds over HTTP, using a simple protobuf based protocol.
    +
    + +
     
    + +
    +
    MultiplexingDiscovery queries multiple PeerDiscovery objects, optionally shuffles their responses and then returns the results, + thus selecting randomly between them and reducing the influence of any particular seed.
    +
    + +
    +
    A PeerDiscovery object is responsible for finding addresses of other nodes in the Bitcoin P2P network.
    +
    + +
     
    + +
    +
    SeedPeers stores a pre-determined list of Bitcoin node addresses.
    +
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/discovery/package-tree.html b/javadoc/0.16.3/org/bitcoinj/net/discovery/package-tree.html new file mode 100644 index 000000000..ae2e5c27b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/discovery/package-tree.html @@ -0,0 +1,95 @@ + + + + +org.bitcoinj.net.discovery Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.net.discovery

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/package-summary.html b/javadoc/0.16.3/org/bitcoinj/net/package-summary.html new file mode 100644 index 000000000..c6a1677ce --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/package-summary.html @@ -0,0 +1,155 @@ + + + + +org.bitcoinj.net (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.net

+
+
+
package org.bitcoinj.net
+
+
Classes handling low level network management using either NIO (async io) or older style blocking sockets (useful for + using SOCKS proxies, Tor, SSL etc). The code in this package implements a simple network abstraction a little like + what the Netty library provides, but with only what bitcoinj needs.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/net/package-tree.html b/javadoc/0.16.3/org/bitcoinj/net/package-tree.html new file mode 100644 index 000000000..d8ec19885 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/net/package-tree.html @@ -0,0 +1,100 @@ + + + + +org.bitcoinj.net Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.net

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/AbstractBitcoinNetParams.html b/javadoc/0.16.3/org/bitcoinj/params/AbstractBitcoinNetParams.html new file mode 100644 index 000000000..32ae99b73 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/AbstractBitcoinNetParams.html @@ -0,0 +1,449 @@ + + + + +AbstractBitcoinNetParams (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AbstractBitcoinNetParams

+
+
java.lang.Object +
org.bitcoinj.core.NetworkParameters +
org.bitcoinj.params.AbstractBitcoinNetParams
+
+
+
+
+
Direct Known Subclasses:
+
MainNetParams, RegTestParams, TestNet3Params, UnitTestParams
+
+
+
public abstract class AbstractBitcoinNetParams +extends NetworkParameters
+
Parameters for Bitcoin-like networks.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AbstractBitcoinNetParams

      +
      public AbstractBitcoinNetParams()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isRewardHalvingPoint

      +
      public final boolean isRewardHalvingPoint(int previousHeight)
      +
      Checks if we are at a reward halving point.
      +
      +
      Parameters:
      +
      previousHeight - The height of the previous stored block
      +
      Returns:
      +
      If this is a reward halving point
      +
      +
      +
    • +
    • +
      +

      getBlockInflation

      +
      public Coin getBlockInflation(int height)
      +

      A utility method that calculates how much new Bitcoin would be created by the block at the given height. + The inflation of Bitcoin is predictable and drops roughly every 4 years (210,000 blocks). At the dawn of + the system it was 50 coins per block, in late 2012 it went to 25 coins per block, and so on. The size of + a coinbase transaction is inflation plus fees.

      + +

      The half-life is controlled by NetworkParameters.getSubsidyDecreaseBlockCount().

      +
      +
      Parameters:
      +
      height - the height of the block to calculate inflation for
      +
      +
      +
    • +
    • +
      +

      isDifficultyTransitionPoint

      +
      public final boolean isDifficultyTransitionPoint(int previousHeight)
      +
      Checks if we are at a difficulty transition point.
      +
      +
      Parameters:
      +
      previousHeight - The height of the previous stored block
      +
      Returns:
      +
      If this is a difficulty transition point
      +
      +
      +
    • +
    • +
      +

      checkDifficultyTransitions

      +
      public void checkDifficultyTransitions(StoredBlock storedPrev, + Block nextBlock, + BlockStore blockStore) + throws VerificationException, +BlockStoreException
      +
      Description copied from class: NetworkParameters
      +
      Throws an exception if the block's difficulty is not correct.
      +
      +
      Specified by:
      +
      checkDifficultyTransitions in class NetworkParameters
      +
      Throws:
      +
      VerificationException - if the block's difficulty is not correct.
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getMaxMoney

      +
      public Coin getMaxMoney()
      +
      Description copied from class: NetworkParameters
      +
      Returns the number of coins that will be produced in total, on this + network. Where not applicable, a very large number of coins is returned + instead (i.e. the main coin issue for Dogecoin).
      +
      +
      Specified by:
      +
      getMaxMoney in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getMinNonDustOutput

      +
      @Deprecated +public Coin getMinNonDustOutput()
      + +
      +
      Specified by:
      +
      getMinNonDustOutput in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getMonetaryFormat

      +
      public MonetaryFormat getMonetaryFormat()
      +
      Description copied from class: NetworkParameters
      +
      The monetary object for this currency.
      +
      +
      Specified by:
      +
      getMonetaryFormat in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getProtocolVersionNum

      +
      public int getProtocolVersionNum(NetworkParameters.ProtocolVersion version)
      +
      +
      Specified by:
      +
      getProtocolVersionNum in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getSerializer

      +
      public BitcoinSerializer getSerializer(boolean parseRetain)
      +
      Description copied from class: NetworkParameters
      +
      Construct and return a custom serializer.
      +
      +
      Specified by:
      +
      getSerializer in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getUriScheme

      +
      public String getUriScheme()
      +
      Description copied from class: NetworkParameters
      +
      Scheme part for URIs, for example "bitcoin".
      +
      +
      Specified by:
      +
      getUriScheme in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      hasMaxMoney

      +
      public boolean hasMaxMoney()
      +
      Description copied from class: NetworkParameters
      +
      Returns whether this network has a maximum number of coins (finite supply) or + not. Always returns true for Bitcoin, but exists to be overridden for other + networks.
      +
      +
      Specified by:
      +
      hasMaxMoney in class NetworkParameters
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/MainNetParams.html b/javadoc/0.16.3/org/bitcoinj/params/MainNetParams.html new file mode 100644 index 000000000..b77c225f4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/MainNetParams.html @@ -0,0 +1,294 @@ + + + + +MainNetParams (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MainNetParams

+
+ +
+
+
public class MainNetParams +extends AbstractBitcoinNetParams
+
Parameters for the main production network on which people trade goods and services.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      MAINNET_MAJORITY_WINDOW

      +
      public static final int MAINNET_MAJORITY_WINDOW
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAINNET_MAJORITY_REJECT_BLOCK_OUTDATED

      +
      public static final int MAINNET_MAJORITY_REJECT_BLOCK_OUTDATED
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAINNET_MAJORITY_ENFORCE_BLOCK_UPGRADE

      +
      public static final int MAINNET_MAJORITY_ENFORCE_BLOCK_UPGRADE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MainNetParams

      +
      public MainNetParams()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public static MainNetParams get()
      +
      +
    • +
    • +
      +

      getGenesisBlock

      +
      public Block getGenesisBlock()
      +
      Description copied from class: NetworkParameters
      +

      Genesis block for this chain.

      + +

      The first block in every chain is a well known constant shared between all Bitcoin implementations. For a + block to be valid, it must be eventually possible to work backwards to the genesis block by following the + prevBlockHash pointers in the block headers.

      + +

      The genesis blocks for both test and main networks contain the timestamp of when they were created, + and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second + bailout for banks".

      +
      +
      Specified by:
      +
      getGenesisBlock in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getPaymentProtocolId

      +
      public String getPaymentProtocolId()
      +
      +
      Specified by:
      +
      getPaymentProtocolId in class NetworkParameters
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/Networks.html b/javadoc/0.16.3/org/bitcoinj/params/Networks.html new file mode 100644 index 000000000..dd768f81a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/Networks.html @@ -0,0 +1,214 @@ + + + + +Networks (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Networks

+
+
java.lang.Object +
org.bitcoinj.params.Networks
+
+
+
+
public class Networks +extends Object
+
Utility class that holds all the registered NetworkParameters types used for address auto discovery. + By default only MainNetParams and TestNet3Params are used. If you want to use RegTestParams + or UnitTestParams use register and then unregister the TestNet3Params as they don't + have their own Base58 version/type code (although for SegwitAddress the human readable + parts for RegTest and TestNet are different.)
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Networks

      +
      public Networks()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public static Set<NetworkParameters> get()
      +
      +
    • +
    • +
      +

      register

      +
      public static void register(NetworkParameters network)
      +
      Register a single network type by adding it to the Set.
      +
      +
      Parameters:
      +
      network - Network to register/add.
      +
      +
      +
    • +
    • +
      +

      register

      +
      public static void register(Collection<NetworkParameters> networks)
      +
      Register a collection of additional network types by adding them + to the Set.
      +
      +
      Parameters:
      +
      networks - Networks to register/add.
      +
      +
      +
    • +
    • +
      +

      unregister

      +
      public static void unregister(NetworkParameters network)
      +
      Unregister a network type.
      +
      +
      Parameters:
      +
      network - Network type to unregister/remove.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/RegTestParams.html b/javadoc/0.16.3/org/bitcoinj/params/RegTestParams.html new file mode 100644 index 000000000..27ea6b3e7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/RegTestParams.html @@ -0,0 +1,246 @@ + + + + +RegTestParams (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RegTestParams

+
+ +
+
+
public class RegTestParams +extends AbstractBitcoinNetParams
+
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      RegTestParams

      +
      public RegTestParams()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      allowEmptyPeerChain

      +
      public boolean allowEmptyPeerChain()
      +
      Description copied from class: NetworkParameters
      +
      If we are running in testnet-in-a-box mode, we allow connections to nodes with 0 non-genesis blocks.
      +
      +
      Overrides:
      +
      allowEmptyPeerChain in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      get

      +
      public static RegTestParams get()
      +
      +
    • +
    • +
      +

      getGenesisBlock

      +
      public Block getGenesisBlock()
      +
      Description copied from class: NetworkParameters
      +

      Genesis block for this chain.

      + +

      The first block in every chain is a well known constant shared between all Bitcoin implementations. For a + block to be valid, it must be eventually possible to work backwards to the genesis block by following the + prevBlockHash pointers in the block headers.

      + +

      The genesis blocks for both test and main networks contain the timestamp of when they were created, + and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second + bailout for banks".

      +
      +
      Specified by:
      +
      getGenesisBlock in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getPaymentProtocolId

      +
      public String getPaymentProtocolId()
      +
      +
      Specified by:
      +
      getPaymentProtocolId in class NetworkParameters
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/TestNet3Params.html b/javadoc/0.16.3/org/bitcoinj/params/TestNet3Params.html new file mode 100644 index 000000000..3c39236e2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/TestNet3Params.html @@ -0,0 +1,321 @@ + + + + +TestNet3Params (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TestNet3Params

+
+ +
+
+
public class TestNet3Params +extends AbstractBitcoinNetParams
+
Parameters for the testnet, a separate public instance of Bitcoin that has relaxed rules suitable for development + and testing of applications and new Bitcoin versions.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      TESTNET_MAJORITY_WINDOW

      +
      public static final int TESTNET_MAJORITY_WINDOW
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED

      +
      public static final int TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE

      +
      public static final int TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      TestNet3Params

      +
      public TestNet3Params()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/UnitTestParams.html b/javadoc/0.16.3/org/bitcoinj/params/UnitTestParams.html new file mode 100644 index 000000000..10d45fba9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/UnitTestParams.html @@ -0,0 +1,295 @@ + + + + +UnitTestParams (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnitTestParams

+
+ +
+
+
public class UnitTestParams +extends AbstractBitcoinNetParams
+
Network parameters used by the bitcoinj unit tests (and potentially your own). This lets you solve a block using + Block.solve() by setting difficulty to the easiest possible.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      UNITNET_MAJORITY_WINDOW

      +
      public static final int UNITNET_MAJORITY_WINDOW
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED

      +
      public static final int TESTNET_MAJORITY_REJECT_BLOCK_OUTDATED
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE

      +
      public static final int TESTNET_MAJORITY_ENFORCE_BLOCK_UPGRADE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UnitTestParams

      +
      public UnitTestParams()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public static UnitTestParams get()
      +
      +
    • +
    • +
      +

      getGenesisBlock

      +
      public Block getGenesisBlock()
      +
      Description copied from class: NetworkParameters
      +

      Genesis block for this chain.

      + +

      The first block in every chain is a well known constant shared between all Bitcoin implementations. For a + block to be valid, it must be eventually possible to work backwards to the genesis block by following the + prevBlockHash pointers in the block headers.

      + +

      The genesis blocks for both test and main networks contain the timestamp of when they were created, + and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second + bailout for banks".

      +
      +
      Specified by:
      +
      getGenesisBlock in class NetworkParameters
      +
      +
      +
    • +
    • +
      +

      getPaymentProtocolId

      +
      public String getPaymentProtocolId()
      +
      +
      Specified by:
      +
      getPaymentProtocolId in class NetworkParameters
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/package-summary.html b/javadoc/0.16.3/org/bitcoinj/params/package-summary.html new file mode 100644 index 000000000..00bcdb66f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/package-summary.html @@ -0,0 +1,110 @@ + + + + +org.bitcoinj.params (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.params

+
+
+
package org.bitcoinj.params
+
+
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main + network, the testnet, regtest mode, unit testing params and so on.
+
+
+
    +
  • +
    +
    Classes
    +
    +
    Class
    +
    Description
    + +
    +
    Parameters for Bitcoin-like networks.
    +
    + +
    +
    Parameters for the main production network on which people trade goods and services.
    +
    + +
    +
    Utility class that holds all the registered NetworkParameters types used for address auto discovery.
    +
    + +
    +
    Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
    +
    + +
    +
    Parameters for the testnet, a separate public instance of Bitcoin that has relaxed rules suitable for development + and testing of applications and new Bitcoin versions.
    +
    + +
    +
    Network parameters used by the bitcoinj unit tests (and potentially your own).
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/params/package-tree.html b/javadoc/0.16.3/org/bitcoinj/params/package-tree.html new file mode 100644 index 000000000..f5e7ef514 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/params/package-tree.html @@ -0,0 +1,84 @@ + + + + +org.bitcoinj.params Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.params

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Ack.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Ack.html new file mode 100644 index 000000000..63f0d6167 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Ack.html @@ -0,0 +1,143 @@ + + + + +PaymentProtocol.Ack (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocol.Ack

+
+
java.lang.Object +
org.bitcoinj.protocols.payments.PaymentProtocol.Ack
+
+
+
+
Enclosing class:
+
PaymentProtocol
+
+
+
public static class PaymentProtocol.Ack +extends Object
+
Message returned by the merchant in response to a Payment message.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getMemo

      +
      @Nullable +public String getMemo()
      +
      Returns the memo included by the merchant in the payment ack. This message is typically displayed to the user + as a notification (e.g. "Your payment was received and is being processed"). If none was provided, returns + null.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Output.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Output.html new file mode 100644 index 000000000..c4fe9f52c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.Output.html @@ -0,0 +1,188 @@ + + + + +PaymentProtocol.Output (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocol.Output

+
+
java.lang.Object +
org.bitcoinj.protocols.payments.PaymentProtocol.Output
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocol
+
+
+
public static class PaymentProtocol.Output +extends Object +implements Serializable
+
Value object to hold amount/script pairs.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      amount

      +
      @Nullable +public final Coin amount
      +
      +
    • +
    • +
      +

      scriptData

      +
      public final byte[] scriptData
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Output

      +
      public Output(@Nullable + Coin amount, + byte[] scriptData)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.PkiVerificationData.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.PkiVerificationData.html new file mode 100644 index 000000000..2fdd7d001 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.PkiVerificationData.html @@ -0,0 +1,209 @@ + + + + +PaymentProtocol.PkiVerificationData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocol.PkiVerificationData

+
+
java.lang.Object +
org.bitcoinj.protocols.payments.PaymentProtocol.PkiVerificationData
+
+
+
+
Enclosing class:
+
PaymentProtocol
+
+
+
public static class PaymentProtocol.PkiVerificationData +extends Object
+
Information about the X.509 signature's issuer and subject.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      displayName

      +
      public final String displayName
      +
      Display name of the payment requestor, could be a domain name, email address, legal name, etc
      +
      +
    • +
    • +
      +

      merchantSigningKey

      +
      public final PublicKey merchantSigningKey
      +
      SSL public key that was used to sign.
      +
      +
    • +
    • +
      +

      rootAuthority

      +
      public final TrustAnchor rootAuthority
      +
      Object representing the CA that verified the merchant's ID
      +
      +
    • +
    • +
      +

      rootAuthorityName

      +
      public final String rootAuthorityName
      +
      String representing the display name of the CA that verified the merchant's ID
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.html new file mode 100644 index 000000000..716de9243 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocol.html @@ -0,0 +1,540 @@ + + + + +PaymentProtocol (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocol

+
+
java.lang.Object +
org.bitcoinj.protocols.payments.PaymentProtocol
+
+
+
+
public class PaymentProtocol +extends Object
+

Utility methods and constants for working with + BIP 70 aka the payment protocol. These are low level wrappers around the protocol buffers. If you're implementing + a wallet app, look at PaymentSession for a higher level API that should simplify working with the protocol.

+ +

BIP 70 defines a binary, protobuf based protocol that runs directly between sender and receiver of funds. Payment + protocol data does not flow over the Bitcoin P2P network or enter the block chain. It's instead for data that is only + of interest to the parties involved but isn't otherwise needed for consensus.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.Expired.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.Expired.html new file mode 100644 index 000000000..3c725d434 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.Expired.html @@ -0,0 +1,162 @@ + + + + +PaymentProtocolException.Expired (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.Expired

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.Expired
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.Expired +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Expired

      +
      public Expired(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidNetwork.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidNetwork.html new file mode 100644 index 000000000..258ebbe1e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidNetwork.html @@ -0,0 +1,162 @@ + + + + +PaymentProtocolException.InvalidNetwork (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidNetwork

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidNetwork
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidNetwork +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidNetwork

      +
      public InvalidNetwork(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidOutputs.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidOutputs.html new file mode 100644 index 000000000..369b37b0c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidOutputs.html @@ -0,0 +1,162 @@ + + + + +PaymentProtocolException.InvalidOutputs (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidOutputs

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidOutputs
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidOutputs +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidOutputs

      +
      public InvalidOutputs(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentRequestURL.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentRequestURL.html new file mode 100644 index 000000000..3dde63005 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentRequestURL.html @@ -0,0 +1,170 @@ + + + + +PaymentProtocolException.InvalidPaymentRequestURL (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidPaymentRequestURL

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentRequestURL
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidPaymentRequestURL +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidPaymentRequestURL

      +
      public InvalidPaymentRequestURL(String msg)
      +
      +
    • +
    • +
      +

      InvalidPaymentRequestURL

      +
      public InvalidPaymentRequestURL(Exception e)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentURL.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentURL.html new file mode 100644 index 000000000..70f145434 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPaymentURL.html @@ -0,0 +1,170 @@ + + + + +PaymentProtocolException.InvalidPaymentURL (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidPaymentURL

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPaymentURL
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidPaymentURL +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidPaymentURL

      +
      public InvalidPaymentURL(Exception e)
      +
      +
    • +
    • +
      +

      InvalidPaymentURL

      +
      public InvalidPaymentURL(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiData.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiData.html new file mode 100644 index 000000000..e84895d0c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiData.html @@ -0,0 +1,170 @@ + + + + +PaymentProtocolException.InvalidPkiData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidPkiData

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPkiData
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidPkiData +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidPkiData

      +
      public InvalidPkiData(String msg)
      +
      +
    • +
    • +
      +

      InvalidPkiData

      +
      public InvalidPkiData(Exception e)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiType.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiType.html new file mode 100644 index 000000000..bd5fe4fd5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidPkiType.html @@ -0,0 +1,162 @@ + + + + +PaymentProtocolException.InvalidPkiType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidPkiType

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidPkiType
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidPkiType +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidPkiType

      +
      public InvalidPkiType(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidVersion.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidVersion.html new file mode 100644 index 000000000..543b26bb9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.InvalidVersion.html @@ -0,0 +1,162 @@ + + + + +PaymentProtocolException.InvalidVersion (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.InvalidVersion

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.InvalidVersion
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.InvalidVersion +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      InvalidVersion

      +
      public InvalidVersion(String msg)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.PkiVerificationException.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.PkiVerificationException.html new file mode 100644 index 000000000..46d32ee74 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.PkiVerificationException.html @@ -0,0 +1,209 @@ + + + + +PaymentProtocolException.PkiVerificationException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException.PkiVerificationException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException +
org.bitcoinj.protocols.payments.PaymentProtocolException.PkiVerificationException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
PaymentProtocolException
+
+
+
public static class PaymentProtocolException.PkiVerificationException +extends PaymentProtocolException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PkiVerificationException

      +
      public PkiVerificationException(String msg)
      +
      +
    • +
    • +
      +

      PkiVerificationException

      +
      public PkiVerificationException(Exception e)
      +
      +
    • +
    • +
      +

      PkiVerificationException

      +
      public PkiVerificationException(Exception e, + List<X509Certificate> certificates)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.html new file mode 100644 index 000000000..880bfb724 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentProtocolException.html @@ -0,0 +1,198 @@ + + + + +PaymentProtocolException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentProtocolException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.protocols.payments.PaymentProtocolException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
PaymentProtocolException.Expired, PaymentProtocolException.InvalidNetwork, PaymentProtocolException.InvalidOutputs, PaymentProtocolException.InvalidPaymentRequestURL, PaymentProtocolException.InvalidPaymentURL, PaymentProtocolException.InvalidPkiData, PaymentProtocolException.InvalidPkiType, PaymentProtocolException.InvalidVersion, PaymentProtocolException.PkiVerificationException
+
+
+
public class PaymentProtocolException +extends Exception
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PaymentProtocolException

      +
      public PaymentProtocolException(String msg)
      +
      +
    • +
    • +
      +

      PaymentProtocolException

      +
      public PaymentProtocolException(Exception e)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentSession.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentSession.html new file mode 100644 index 000000000..d107315ff --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/PaymentSession.html @@ -0,0 +1,654 @@ + + + + +PaymentSession (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PaymentSession

+
+
java.lang.Object +
org.bitcoinj.protocols.payments.PaymentSession
+
+
+
+
public class PaymentSession +extends Object
+

Provides a standard implementation of the Payment Protocol (BIP 0070)

+ +

A PaymentSession can be initialized from one of the following:

+ + + +

If initialized with a BitcoinURI or a url, a network request is made for the payment request object and a + ListenableFuture is returned that will be notified with the PaymentSession object after it is downloaded.

+ +

Once the PaymentSession is initialized, typically a wallet application will prompt the user to confirm that the + amount and recipient are correct, perform any additional steps, and then construct a list of transactions to pass to + the sendPayment method.

+ +

Call sendPayment with a list of transactions that will be broadcast. A Protos.Payment message will be sent + to the merchant if a payment url is provided in the PaymentRequest. NOTE: sendPayment does NOT broadcast the + transactions to the bitcoin network. Instead it returns a ListenableFuture that will be notified when a + Protos.PaymentACK is received from the merchant. Typically a wallet will show the message to the user + as a confirmation message that the payment is now "processing" or that an error occurred, and then broadcast the + tx itself later if needed.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      pkiVerificationData

      +
      @Nullable +public final PaymentProtocol.PkiVerificationData pkiVerificationData
      +
      Stores the calculated PKI verification data, or null if none is available. + Only valid after the session is created with the verifyPki parameter set to true.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createFromBitcoinUri

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromBitcoinUri(BitcoinURI uri) + throws PaymentProtocolException
      +

      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri. + uri is a BIP-72-style BitcoinURI object that specifies where the Protos.PaymentRequest object may + be fetched in the r= parameter.

      + +

      If the payment request object specifies a PKI method, then the system trust store will be used to verify + the signature provided by the payment request. An exception is thrown by the future if the signature cannot + be verified.

      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      createFromBitcoinUri

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromBitcoinUri(BitcoinURI uri, + boolean verifyPki) + throws PaymentProtocolException
      +
      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri. + uri is a BIP-72-style BitcoinURI object that specifies where the Protos.PaymentRequest object may + be fetched in the r= parameter. + If verifyPki is specified and the payment request object specifies a PKI method, then the system trust store will + be used to verify the signature provided by the payment request. An exception is thrown by the future if the + signature cannot be verified.
      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      createFromBitcoinUri

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromBitcoinUri(BitcoinURI uri, + boolean verifyPki, + @Nullable + TrustStoreLoader trustStoreLoader) + throws PaymentProtocolException
      +
      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided uri. + uri is a BIP-72-style BitcoinURI object that specifies where the Protos.PaymentRequest object may + be fetched in the r= parameter. + If verifyPki is specified and the payment request object specifies a PKI method, then the system trust store will + be used to verify the signature provided by the payment request. An exception is thrown by the future if the + signature cannot be verified. + If trustStoreLoader is null, the system default trust store is used.
      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      createFromUrl

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromUrl(String url) + throws PaymentProtocolException
      +
      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url. + url is an address where the Protos.PaymentRequest object may be fetched. + If verifyPki is specified and the payment request object specifies a PKI method, then the system trust store will + be used to verify the signature provided by the payment request. An exception is thrown by the future if the + signature cannot be verified.
      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      createFromUrl

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromUrl(String url, + boolean verifyPki) + throws PaymentProtocolException
      +
      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url. + url is an address where the Protos.PaymentRequest object may be fetched. + If the payment request object specifies a PKI method, then the system trust store will + be used to verify the signature provided by the payment request. An exception is thrown by the future if the + signature cannot be verified.
      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      createFromUrl

      +
      public static com.google.common.util.concurrent.ListenableFuture<PaymentSession> createFromUrl(String url, + boolean verifyPki, + @Nullable + TrustStoreLoader trustStoreLoader) + throws PaymentProtocolException
      +
      Returns a future that will be notified with a PaymentSession object after it is fetched using the provided url. + url is an address where the Protos.PaymentRequest object may be fetched. + If the payment request object specifies a PKI method, then the system trust store will + be used to verify the signature provided by the payment request. An exception is thrown by the future if the + signature cannot be verified. + If trustStoreLoader is null, the system default trust store is used.
      +
      +
      Throws:
      +
      PaymentProtocolException
      +
      +
      +
    • +
    • +
      +

      getOutputs

      +
      public List<PaymentProtocol.Output> getOutputs()
      +
      Returns the outputs of the payment request.
      +
      +
    • +
    • +
      +

      getMemo

      +
      @Nullable +public String getMemo()
      +
      Returns the memo included by the merchant in the payment request, or null if not found.
      +
      +
    • +
    • +
      +

      getValue

      +
      public Coin getValue()
      +
      Returns the total amount of bitcoins requested.
      +
      +
    • +
    • +
      +

      getDate

      +
      public Date getDate()
      +
      Returns the date that the payment request was generated.
      +
      +
    • +
    • +
      +

      getExpires

      +
      @Nullable +public Date getExpires()
      +
      Returns the expires time of the payment request, or null if none.
      +
      +
    • +
    • +
      +

      isExpired

      +
      public boolean isExpired()
      +
      This should always be called before attempting to call sendPayment.
      +
      +
    • +
    • +
      +

      getPaymentUrl

      +
      @Nullable +public String getPaymentUrl()
      +
      Returns the payment url where the Payment message should be sent. + Returns null if no payment url was provided in the PaymentRequest.
      +
      +
    • +
    • +
      +

      getMerchantData

      +
      @Nullable +public byte[] getMerchantData()
      +
      Returns the merchant data included by the merchant in the payment request, or null if none.
      +
      +
    • +
    • +
      +

      getSendRequest

      +
      public SendRequest getSendRequest()
      +
      Returns a SendRequest suitable for broadcasting to the network.
      +
      +
    • +
    • +
      +

      sendPayment

      +
      @Nullable +public com.google.common.util.concurrent.ListenableFuture<PaymentProtocol.Ack> sendPayment(List<Transaction> txns, + @Nullable + Address refundAddr, + @Nullable + String memo) + throws PaymentProtocolException, +VerificationException, +IOException
      +
      Generates a Payment message and sends the payment to the merchant who sent the PaymentRequest. + Provide transactions built by the wallet. + NOTE: This does not broadcast the transactions to the bitcoin network, it merely sends a Payment message to the + merchant confirming the payment. + Returns an object wrapping PaymentACK once received. + If the PaymentRequest did not specify a payment_url, returns null and does nothing.
      +
      +
      Parameters:
      +
      txns - list of transactions to be included with the Payment message.
      +
      refundAddr - will be used by the merchant to send money back if there was a problem.
      +
      memo - is a message to include in the payment message sent to the merchant.
      +
      Throws:
      +
      PaymentProtocolException
      +
      VerificationException
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getPayment

      +
      @Nullable +public Protos.Payment getPayment(List<Transaction> txns, + @Nullable + Address refundAddr, + @Nullable + String memo) + throws IOException, +PaymentProtocolException.InvalidNetwork
      +
      Generates a Payment message based on the information in the PaymentRequest. + Provide transactions built by the wallet. + If the PaymentRequest did not specify a payment_url, returns null.
      +
      +
      Parameters:
      +
      txns - list of transactions to be included with the Payment message.
      +
      refundAddr - will be used by the merchant to send money back if there was a problem.
      +
      memo - is a message to include in the payment message sent to the merchant.
      +
      Throws:
      +
      IOException
      +
      PaymentProtocolException.InvalidNetwork
      +
      +
      +
    • +
    • +
      +

      sendPayment

      +
      protected com.google.common.util.concurrent.ListenableFuture<PaymentProtocol.Ack> sendPayment(URL url, + Protos.Payment payment)
      +
      +
    • +
    • +
      +

      verifyPki

      +
      @Nullable +public PaymentProtocol.PkiVerificationData verifyPki()
      +
      Returns the value of pkiVerificationData or null if it wasn't verified at construction time.
      +
      +
    • +
    • +
      +

      getNetworkParameters

      +
      public NetworkParameters getNetworkParameters()
      +
      Gets the params as read from the PaymentRequest.network field: main is the default if missing.
      +
      +
    • +
    • +
      +

      getPaymentRequest

      +
      public Protos.PaymentRequest getPaymentRequest()
      +
      Returns the protobuf that this object was instantiated with.
      +
      +
    • +
    • +
      +

      getPaymentDetails

      +
      public Protos.PaymentDetails getPaymentDetails()
      +
      Returns the protobuf that describes the payment to be made.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-summary.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-summary.html new file mode 100644 index 000000000..618a3b55e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-summary.html @@ -0,0 +1,132 @@ + + + + +org.bitcoinj.protocols.payments (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.protocols.payments

+
+
+
package org.bitcoinj.protocols.payments
+
+
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses + and authentication.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-tree.html b/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-tree.html new file mode 100644 index 000000000..e4ece205b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/protocols/payments/package-tree.html @@ -0,0 +1,97 @@ + + + + +org.bitcoinj.protocols.payments Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.protocols.payments

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/Script.ScriptType.html b/javadoc/0.16.3/org/bitcoinj/script/Script.ScriptType.html new file mode 100644 index 000000000..e8beac1f0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/Script.ScriptType.html @@ -0,0 +1,284 @@ + + + + +Script.ScriptType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Script.ScriptType

+
+
java.lang.Object +
java.lang.Enum<Script.ScriptType> +
org.bitcoinj.script.Script.ScriptType
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Script.ScriptType>, Constable
+
+
+
Enclosing class:
+
Script
+
+
+
public static enum Script.ScriptType +extends Enum<Script.ScriptType>
+
Enumeration to encapsulate the type of this script.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      id

      +
      public final int id
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Script.ScriptType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Script.ScriptType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/Script.VerifyFlag.html b/javadoc/0.16.3/org/bitcoinj/script/Script.VerifyFlag.html new file mode 100644 index 000000000..e01f4d724 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/Script.VerifyFlag.html @@ -0,0 +1,296 @@ + + + + +Script.VerifyFlag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Script.VerifyFlag

+
+
java.lang.Object +
java.lang.Enum<Script.VerifyFlag> +
org.bitcoinj.script.Script.VerifyFlag
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Script.VerifyFlag>, Constable
+
+
+
Enclosing class:
+
Script
+
+
+
public static enum Script.VerifyFlag +extends Enum<Script.VerifyFlag>
+
Flags to pass to Script.correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set). + Note currently only P2SH, DERSIG and NULLDUMMY are actually supported.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Script.VerifyFlag[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Script.VerifyFlag valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/Script.html b/javadoc/0.16.3/org/bitcoinj/script/Script.html new file mode 100644 index 000000000..08c396142 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/Script.html @@ -0,0 +1,931 @@ + + + + +Script (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Script

+
+
java.lang.Object +
org.bitcoinj.script.Script
+
+
+
+
public class Script +extends Object
+

Programs embedded inside transactions that control redemption of payments.

+ +

Bitcoin transactions don't specify what they do directly. Instead a + small binary stack language is used to define programs that when evaluated return whether the transaction + "accepts" or rejects the other transactions connected to it.

+ +

In SPV mode, scripts are not run, because that would require all transactions to be available and lightweight + clients don't have that data. In full mode, this class is used to run the interpreted language. It also has + static methods for building scripts.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ALL_VERIFY_FLAGS

      +
      public static final EnumSet<Script.VerifyFlag> ALL_VERIFY_FLAGS
      +
      +
    • +
    • +
      +

      MAX_SCRIPT_ELEMENT_SIZE

      +
      public static final long MAX_SCRIPT_ELEMENT_SIZE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SIG_SIZE

      +
      public static final int SIG_SIZE
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_P2SH_SIGOPS

      +
      public static final int MAX_P2SH_SIGOPS
      +
      Max number of sigops allowed in a standard p2sh redeem script
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      chunks

      +
      protected List<ScriptChunk> chunks
      +
      +
    • +
    • +
      +

      program

      +
      protected byte[] program
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Script

      +
      public Script(byte[] programBytes) + throws ScriptException
      +
      Construct a Script that copies and wraps the programBytes array. The array is parsed and checked for syntactic + validity.
      +
      +
      Parameters:
      +
      programBytes - Array of program bytes from a transaction.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      Script

      +
      public Script(byte[] programBytes, + long creationTimeSeconds) + throws ScriptException
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getCreationTimeSeconds

      +
      public long getCreationTimeSeconds()
      +
      +
    • +
    • +
      +

      setCreationTimeSeconds

      +
      public void setCreationTimeSeconds(long creationTimeSeconds)
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Returns the program opcodes as a string, for example "[1234] DUP HASH160", or "<empty>".
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      getProgram

      +
      public byte[] getProgram()
      +
      Returns the serialized program as a newly created byte array.
      +
      +
    • +
    • +
      +

      getChunks

      +
      public List<ScriptChunk> getChunks()
      +
      Returns an immutable list of the scripts parsed form. Each chunk is either an opcode or data element.
      +
      +
    • +
    • +
      +

      isSentToRawPubKey

      +
      @Deprecated +public boolean isSentToRawPubKey()
      +
      Deprecated. + +
      +
      +
    • +
    • +
      +

      isSentToAddress

      +
      @Deprecated +public boolean isSentToAddress()
      + +
      +
    • +
    • +
      +

      getPubKeyHash

      +
      public byte[] getPubKeyHash() + throws ScriptException
      +

      If the program somehow pays to a hash, returns the hash.

      + +

      Otherwise this method throws a ScriptException.

      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getToAddress

      +
      public Address getToAddress(NetworkParameters params) + throws ScriptException
      +
      Gets the destination address from this script, if it's in the required form.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getToAddress

      +
      public Address getToAddress(NetworkParameters params, + boolean forcePayToPubKey) + throws ScriptException
      +
      Gets the destination address from this script, if it's in the required form.
      +
      +
      Parameters:
      +
      forcePayToPubKey - If true, allow payToPubKey to be casted to the corresponding address. This is useful if you prefer + showing addresses rather than pubkeys.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      writeBytes

      +
      public static void writeBytes(OutputStream os, + byte[] buf) + throws IOException
      +
      Writes out the given byte buffer to the output stream with the correct opcode prefix + To write an integer call writeBytes(out, Utils.reverseBytes(Utils.encodeMPI(val, false)));
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      createMultiSigOutputScript

      +
      public static byte[] createMultiSigOutputScript(int threshold, + List<ECKey> pubkeys)
      +
      Creates a program that requires at least N of the given keys to sign, using OP_CHECKMULTISIG.
      +
      +
    • +
    • +
      +

      createInputScript

      +
      public static byte[] createInputScript(byte[] signature, + byte[] pubkey)
      +
      +
    • +
    • +
      +

      createInputScript

      +
      public static byte[] createInputScript(byte[] signature)
      +
      +
    • +
    • +
      +

      createEmptyInputScript

      +
      public Script createEmptyInputScript(@Nullable + ECKey key, + @Nullable + Script redeemScript)
      +
      Creates an incomplete scriptSig that, once filled with signatures, can redeem output containing this scriptPubKey. + Instead of the signatures resulting script has OP_0. + Having incomplete input script allows to pass around partially signed tx. + It is expected that this program later on will be updated with proper signatures.
      +
      +
    • +
    • +
      +

      createEmptyWitness

      +
      public TransactionWitness createEmptyWitness(ECKey key)
      +
      +
    • +
    • +
      +

      getScriptSigWithSignature

      +
      public Script getScriptSigWithSignature(Script scriptSig, + byte[] sigBytes, + int index)
      +
      Returns a copy of the given scriptSig with the signature inserted in the given position.
      +
      +
    • +
    • +
      +

      getSigInsertionIndex

      +
      public int getSigInsertionIndex(Sha256Hash hash, + ECKey signingKey)
      +
      Returns the index where a signature by the key should be inserted. Only applicable to + a P2SH scriptSig.
      +
      +
    • +
    • +
      +

      getPubKeys

      +
      public List<ECKey> getPubKeys()
      +
      Returns a list of the keys required by this script, assuming a multi-sig script.
      +
      +
      Throws:
      +
      ScriptException - if the script type is not understood or is pay to address or is P2SH (run this method on the "Redeem script" instead).
      +
      +
      +
    • +
    • +
      +

      decodeFromOpN

      +
      public static int decodeFromOpN(int opcode)
      +
      +
    • +
    • +
      +

      encodeToOpN

      +
      public static int encodeToOpN(int value)
      +
      +
    • +
    • +
      +

      getSigOpCount

      +
      public static int getSigOpCount(byte[] program) + throws ScriptException
      +
      Gets the count of regular SigOps in the script program (counting multisig ops as 20)
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getP2SHSigOpCount

      +
      public static long getP2SHSigOpCount(byte[] scriptSig) + throws ScriptException
      +
      Gets the count of P2SH Sig Ops in the Script scriptSig
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getNumberOfSignaturesRequiredToSpend

      +
      public int getNumberOfSignaturesRequiredToSpend()
      +
      Returns number of signatures required to satisfy this script.
      +
      +
    • +
    • +
      +

      getNumberOfBytesRequiredToSpend

      +
      public int getNumberOfBytesRequiredToSpend(@Nullable + ECKey pubKey, + @Nullable + Script redeemScript)
      +
      Returns number of bytes required to spend this script. It accepts optional ECKey and redeemScript that may + be required for certain types of script to estimate target size.
      +
      +
    • +
    • +
      +

      isPayToScriptHash

      +
      @Deprecated +public boolean isPayToScriptHash()
      +
      Deprecated. + +
      +
      +
    • +
    • +
      +

      isSentToMultiSig

      +
      @Deprecated +public boolean isSentToMultiSig()
      + +
      +
    • +
    • +
      +

      removeAllInstancesOf

      +
      public static byte[] removeAllInstancesOf(byte[] inputScript, + byte[] chunkToRemove)
      +
      Returns the script bytes of inputScript with all instances of the specified script object removed
      +
      +
    • +
    • +
      +

      removeAllInstancesOfOp

      +
      public static byte[] removeAllInstancesOfOp(byte[] inputScript, + int opCode)
      +
      Returns the script bytes of inputScript with all instances of the given op code removed
      +
      +
    • +
    • +
      +

      isOpReturn

      +
      @Deprecated +public boolean isOpReturn()
      + +
      +
    • +
    • +
      +

      executeScript

      +
      @Deprecated +public static void executeScript(@Nullable + Transaction txContainingThis, + long index, + Script script, + LinkedList<byte[]> stack, + boolean enforceNullDummy) + throws ScriptException
      + +
      Exposes the script interpreter. Normally you should not use this directly, instead use + TransactionInput.verify(TransactionOutput) or + correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set). This method + is useful if you need more precise control or access to the final state of the stack. This interface is very + likely to change in future.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      executeScript

      +
      public static void executeScript(@Nullable + Transaction txContainingThis, + long index, + Script script, + LinkedList<byte[]> stack, + Set<Script.VerifyFlag> verifyFlags) + throws ScriptException
      +
      Exposes the script interpreter. Normally you should not use this directly, instead use + TransactionInput.verify(TransactionOutput) or + correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set). This method + is useful if you need more precise control or access to the final state of the stack. This interface is very + likely to change in future.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      correctlySpends

      +
      public void correctlySpends(Transaction txContainingThis, + int scriptSigIndex, + @Nullable + TransactionWitness witness, + @Nullable + Coin value, + Script scriptPubKey, + Set<Script.VerifyFlag> verifyFlags) + throws ScriptException
      +
      Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
      +
      +
      Parameters:
      +
      txContainingThis - The transaction in which this input scriptSig resides. + Accessing txContainingThis from another thread while this method runs results in undefined behavior.
      +
      scriptSigIndex - The index in txContainingThis of the scriptSig (note: NOT the index of the scriptPubKey).
      +
      scriptPubKey - The connected scriptPubKey containing the conditions needed to claim the value.
      +
      witness - Transaction witness belonging to the transaction input containing this script. Needed for SegWit.
      +
      value - Value of the output. Needed for SegWit scripts.
      +
      verifyFlags - Each flag enables one validation rule.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      correctlySpends

      +
      @Deprecated +public void correctlySpends(Transaction txContainingThis, + long scriptSigIndex, + Script scriptPubKey, + Set<Script.VerifyFlag> verifyFlags) + throws ScriptException
      + +
      Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
      +
      +
      Parameters:
      +
      txContainingThis - The transaction in which this input scriptSig resides. + Accessing txContainingThis from another thread while this method runs results in undefined behavior.
      +
      scriptSigIndex - The index in txContainingThis of the scriptSig (note: NOT the index of the scriptPubKey).
      +
      scriptPubKey - The connected scriptPubKey containing the conditions needed to claim the value.
      +
      verifyFlags - Each flag enables one validation rule.
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      getScriptType

      +
      @Nullable +public Script.ScriptType getScriptType()
      + +
      +
      Returns:
      +
      The script type, or null if the script is of unknown type
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptBuilder.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptBuilder.html new file mode 100644 index 000000000..730874fdf --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptBuilder.html @@ -0,0 +1,802 @@ + + + + +ScriptBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ScriptBuilder

+
+
java.lang.Object +
org.bitcoinj.script.ScriptBuilder
+
+
+
+
public class ScriptBuilder +extends Object
+

Tools for the construction of commonly used script types. You don't normally need this as it's hidden behind + convenience methods on Transaction, but they are useful when working with the + protocol at a lower level.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ScriptBuilder

      +
      public ScriptBuilder()
      +
      Creates a fresh ScriptBuilder with an empty program.
      +
      +
    • +
    • +
      +

      ScriptBuilder

      +
      public ScriptBuilder(Script template)
      +
      Creates a fresh ScriptBuilder with the given program as the starting point.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      addChunk

      +
      public ScriptBuilder addChunk(ScriptChunk chunk)
      +
      Adds the given chunk to the end of the program
      +
      +
    • +
    • +
      +

      addChunk

      +
      public ScriptBuilder addChunk(int index, + ScriptChunk chunk)
      +
      Adds the given chunk at the given index in the program
      +
      +
    • +
    • +
      +

      op

      +
      public ScriptBuilder op(int opcode)
      +
      Adds the given opcode to the end of the program.
      +
      +
    • +
    • +
      +

      op

      +
      public ScriptBuilder op(int index, + int opcode)
      +
      Adds the given opcode to the given index in the program
      +
      +
    • +
    • +
      +

      data

      +
      public ScriptBuilder data(byte[] data)
      +
      Adds a copy of the given byte array as a data element (i.e. PUSHDATA) at the end of the program.
      +
      +
    • +
    • +
      +

      data

      +
      public ScriptBuilder data(int index, + byte[] data)
      +
      Adds a copy of the given byte array as a data element (i.e. PUSHDATA) at the given index in the program.
      +
      +
    • +
    • +
      +

      number

      +
      public ScriptBuilder number(long num)
      +
      Adds the given number to the end of the program. Automatically uses + shortest encoding possible.
      +
      +
    • +
    • +
      +

      number

      +
      public ScriptBuilder number(int index, + long num)
      +
      Adds the given number to the given index in the program. Automatically + uses shortest encoding possible.
      +
      +
    • +
    • +
      +

      smallNum

      +
      public ScriptBuilder smallNum(int num)
      +
      Adds the given number as a OP_N opcode to the end of the program. + Only handles values 0-16 inclusive.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      bigNum

      +
      protected ScriptBuilder bigNum(long num)
      +
      Adds the given number as a push data chunk. + This is intended to use for negative numbers or values greater than 16, and although + it will accept numbers in the range 0-16 inclusive, the encoding would be + considered non-standard.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      smallNum

      +
      public ScriptBuilder smallNum(int index, + int num)
      +
      Adds the given number as a OP_N opcode to the given index in the program. + Only handles values 0-16 inclusive.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      bigNum

      +
      protected ScriptBuilder bigNum(int index, + long num)
      +
      Adds the given number as a push data chunk to the given index in the program. + This is intended to use for negative numbers or values greater than 16, and although + it will accept numbers in the range 0-16 inclusive, the encoding would be + considered non-standard.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      opTrue

      +
      public ScriptBuilder opTrue()
      +
      Adds true to the end of the program.
      +
      +
      Returns:
      +
      this
      +
      +
      +
    • +
    • +
      +

      opTrue

      +
      public ScriptBuilder opTrue(int index)
      +
      Adds true to the given index in the program.
      +
      +
      Parameters:
      +
      index - at which insert true
      +
      Returns:
      +
      this
      +
      +
      +
    • +
    • +
      +

      opFalse

      +
      public ScriptBuilder opFalse()
      +
      Adds false to the end of the program.
      +
      +
      Returns:
      +
      this
      +
      +
      +
    • +
    • +
      +

      opFalse

      +
      public ScriptBuilder opFalse(int index)
      +
      Adds false to the given index in the program.
      +
      +
      Parameters:
      +
      index - at which insert true
      +
      Returns:
      +
      this
      +
      +
      +
    • +
    • +
      +

      build

      +
      public Script build()
      +
      Creates a new immutable Script based on the state of the builder.
      +
      +
    • +
    • +
      +

      createEmpty

      +
      public static Script createEmpty()
      +
      Creates an empty script.
      +
      +
    • +
    • +
      +

      createOutputScript

      +
      public static Script createOutputScript(Address to)
      +
      Creates a scriptPubKey that encodes payment to the given address.
      +
      +
    • +
    • +
      +

      createInputScript

      +
      public static Script createInputScript(@Nullable + TransactionSignature signature, + ECKey pubKey)
      +
      Creates a scriptSig that can redeem a P2PKH output. + If given signature is null, incomplete scriptSig will be created with OP_0 instead of signature
      +
      +
    • +
    • +
      +

      createInputScript

      +
      public static Script createInputScript(@Nullable + TransactionSignature signature)
      +
      Creates a scriptSig that can redeem a P2PK output. + If given signature is null, incomplete scriptSig will be created with OP_0 instead of signature
      +
      +
    • +
    • +
      +

      createMultiSigOutputScript

      +
      public static Script createMultiSigOutputScript(int threshold, + List<ECKey> pubkeys)
      +
      Creates a program that requires at least N of the given keys to sign, using OP_CHECKMULTISIG.
      +
      +
    • +
    • +
      +

      createMultiSigInputScript

      +
      public static Script createMultiSigInputScript(List<TransactionSignature> signatures)
      +
      Create a program that satisfies an OP_CHECKMULTISIG program.
      +
      +
    • +
    • +
      +

      createMultiSigInputScript

      +
      public static Script createMultiSigInputScript(TransactionSignature... signatures)
      +
      Create a program that satisfies an OP_CHECKMULTISIG program.
      +
      +
    • +
    • +
      +

      createMultiSigInputScriptBytes

      +
      public static Script createMultiSigInputScriptBytes(List<byte[]> signatures)
      +
      Create a program that satisfies an OP_CHECKMULTISIG program, using pre-encoded signatures.
      +
      +
    • +
    • +
      +

      createP2SHMultiSigInputScript

      +
      public static Script createP2SHMultiSigInputScript(@Nullable + List<TransactionSignature> signatures, + Script multisigProgram)
      +
      Create a program that satisfies a P2SH OP_CHECKMULTISIG program. + If given signature list is null, incomplete scriptSig will be created with OP_0 instead of signatures
      +
      +
    • +
    • +
      +

      createMultiSigInputScriptBytes

      +
      public static Script createMultiSigInputScriptBytes(List<byte[]> signatures, + @Nullable + byte[] multisigProgramBytes)
      +
      Create a program that satisfies an OP_CHECKMULTISIG program, using pre-encoded signatures. + Optionally, appends the script program bytes if spending a P2SH output.
      +
      +
    • +
    • +
      +

      updateScriptWithSignature

      +
      public static Script updateScriptWithSignature(Script scriptSig, + byte[] signature, + int targetIndex, + int sigsPrefixCount, + int sigsSuffixCount)
      +
      Returns a copy of the given scriptSig with the signature inserted in the given position. + + This function assumes that any missing sigs have OP_0 placeholders. If given scriptSig already has all the signatures + in place, IllegalArgumentException will be thrown.
      +
      +
      Parameters:
      +
      targetIndex - where to insert the signature
      +
      sigsPrefixCount - how many items to copy verbatim (e.g. initial OP_0 for multisig)
      +
      sigsSuffixCount - how many items to copy verbatim at end (e.g. redeemScript for P2SH)
      +
      +
      +
    • +
    • +
      +

      createP2PKOutputScript

      +
      public static Script createP2PKOutputScript(byte[] pubKey)
      +
      Creates a scriptPubKey that encodes payment to the given raw public key.
      +
      +
    • +
    • +
      +

      createP2PKOutputScript

      +
      public static Script createP2PKOutputScript(ECKey pubKey)
      +
      Creates a scriptPubKey that encodes payment to the given raw public key.
      +
      +
    • +
    • +
      +

      createP2PKHOutputScript

      +
      public static Script createP2PKHOutputScript(byte[] hash)
      +
      Creates a scriptPubKey that sends to the given public key hash.
      +
      +
    • +
    • +
      +

      createP2PKHOutputScript

      +
      public static Script createP2PKHOutputScript(ECKey key)
      +
      Creates a scriptPubKey that sends to the given public key.
      +
      +
    • +
    • +
      +

      createP2WPKHOutputScript

      +
      public static Script createP2WPKHOutputScript(byte[] hash)
      +
      Creates a segwit scriptPubKey that sends to the given public key hash.
      +
      +
    • +
    • +
      +

      createP2WPKHOutputScript

      +
      public static Script createP2WPKHOutputScript(ECKey key)
      +
      Creates a segwit scriptPubKey that sends to the given public key.
      +
      +
    • +
    • +
      +

      createP2SHOutputScript

      +
      public static Script createP2SHOutputScript(byte[] hash)
      +
      Creates a scriptPubKey that sends to the given script hash. Read + BIP 16 to learn more about this + kind of script.
      +
      +
      Parameters:
      +
      hash - The hash of the redeem script
      +
      Returns:
      +
      an output script that sends to the redeem script
      +
      +
      +
    • +
    • +
      +

      createP2SHOutputScript

      +
      public static Script createP2SHOutputScript(Script redeemScript)
      +
      Creates a scriptPubKey for a given redeem script.
      +
      +
      Parameters:
      +
      redeemScript - The redeem script
      +
      Returns:
      +
      an output script that sends to the redeem script
      +
      +
      +
    • +
    • +
      +

      createP2WSHOutputScript

      +
      public static Script createP2WSHOutputScript(byte[] hash)
      +
      Creates a segwit scriptPubKey that sends to the given script hash.
      +
      +
    • +
    • +
      +

      createP2WSHOutputScript

      +
      public static Script createP2WSHOutputScript(Script redeemScript)
      +
      Creates a segwit scriptPubKey for the given redeem script.
      +
      +
    • +
    • +
      +

      createP2SHOutputScript

      +
      public static Script createP2SHOutputScript(int threshold, + List<ECKey> pubkeys)
      +
      Creates a P2SH output script for n-of-m multisig with given public keys and threshold. Given public keys will + be placed in redeem script in the lexicographical sorting order.
      +
      +
      Parameters:
      +
      threshold - The threshold number of keys that must sign (n)
      +
      pubkeys - A list of m public keys
      +
      Returns:
      +
      The P2SH multisig output script
      +
      +
      +
    • +
    • +
      +

      createRedeemScript

      +
      public static Script createRedeemScript(int threshold, + List<ECKey> pubkeys)
      +
      Creates an n-of-m multisig redeem script with given public keys and threshold. Given public keys will be placed in + redeem script in the lexicographical sorting order.
      +
      +
      Parameters:
      +
      threshold - The threshold number of keys that must sign (n)
      +
      pubkeys - A list of m public keys
      +
      Returns:
      +
      The P2SH multisig redeem script
      +
      +
      +
    • +
    • +
      +

      createOpReturnScript

      +
      public static Script createOpReturnScript(byte[] data)
      +
      Creates a script of the form OP_RETURN [data]. This feature allows you to attach a small piece of data (like + a hash of something stored elsewhere) to a zero valued output which can never be spent and thus does not pollute + the ledger.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptChunk.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptChunk.html new file mode 100644 index 000000000..c9158e994 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptChunk.html @@ -0,0 +1,328 @@ + + + + +ScriptChunk (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ScriptChunk

+
+
java.lang.Object +
org.bitcoinj.script.ScriptChunk
+
+
+
+
public class ScriptChunk +extends Object
+
A script element that is either a data push (signature, pubkey, etc) or a non-push (logic, numeric, etc) operation.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    final byte[]
    + +
    +
    For push operations, this is the vector to be pushed on the stack.
    +
    +
    final int
    + +
    +
    Operation to be executed.
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    ScriptChunk(int opcode, + byte[] data)
    +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
    +
    If this chunk is an OP_N opcode returns the equivalent integer value.
    +
    +
    boolean
    + +
     
    +
    boolean
    +
    equalsOpCode(int opcode)
    +
     
    +
    int
    + +
     
    +
    boolean
    + +
    +
    If this chunk is a single byte of non-pushdata content (could be OP_RESERVED or some invalid Opcode)
    +
    +
    boolean
    + +
    +
    Returns true if this chunk is pushdata content, including the single-byte pushdatas.
    +
    +
    boolean
    + +
    +
    Called on a pushdata chunk, returns true if it uses the smallest possible way (according to BIP62) to push the data.
    +
    +
    int
    + +
     
    +
    byte[]
    + +
     
    + + +
     
    +
    void
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      opcode

      +
      public final int opcode
      +
      Operation to be executed. Opcodes are defined in ScriptOpCodes.
      +
      +
    • +
    • +
      +

      data

      +
      @Nullable +public final byte[] data
      +
      For push operations, this is the vector to be pushed on the stack. For ScriptOpCodes.OP_0, the vector is + empty. Null for non-push operations.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ScriptChunk

      +
      public ScriptChunk(int opcode, + @Nullable + byte[] data)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      equalsOpCode

      +
      public boolean equalsOpCode(int opcode)
      +
      +
    • +
    • +
      +

      isOpCode

      +
      public boolean isOpCode()
      +
      If this chunk is a single byte of non-pushdata content (could be OP_RESERVED or some invalid Opcode)
      +
      +
    • +
    • +
      +

      isPushData

      +
      public boolean isPushData()
      +
      Returns true if this chunk is pushdata content, including the single-byte pushdatas.
      +
      +
    • +
    • +
      +

      decodeOpN

      +
      public int decodeOpN()
      +
      If this chunk is an OP_N opcode returns the equivalent integer value.
      +
      +
    • +
    • +
      +

      isShortestPossiblePushData

      +
      public boolean isShortestPossiblePushData()
      +
      Called on a pushdata chunk, returns true if it uses the smallest possible way (according to BIP62) to push the data.
      +
      +
    • +
    • +
      +

      write

      +
      public void write(OutputStream stream) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      toByteArray

      +
      public byte[] toByteArray()
      +
      +
    • +
    • +
      +

      size

      +
      public int size()
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptError.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptError.html new file mode 100644 index 000000000..5d54ed67a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptError.html @@ -0,0 +1,556 @@ + + + + +ScriptError (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class ScriptError

+
+
java.lang.Object +
java.lang.Enum<ScriptError> +
org.bitcoinj.script.ScriptError
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<ScriptError>, Constable
+
+
+
public enum ScriptError +extends Enum<ScriptError>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      SCRIPT_ERR_OK

      +
      public static final ScriptError SCRIPT_ERR_OK
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_UNKNOWN_ERROR

      +
      public static final ScriptError SCRIPT_ERR_UNKNOWN_ERROR
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_EVAL_FALSE

      +
      public static final ScriptError SCRIPT_ERR_EVAL_FALSE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_OP_RETURN

      +
      public static final ScriptError SCRIPT_ERR_OP_RETURN
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SCRIPT_SIZE

      +
      public static final ScriptError SCRIPT_ERR_SCRIPT_SIZE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_PUSH_SIZE

      +
      public static final ScriptError SCRIPT_ERR_PUSH_SIZE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_OP_COUNT

      +
      public static final ScriptError SCRIPT_ERR_OP_COUNT
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_STACK_SIZE

      +
      public static final ScriptError SCRIPT_ERR_STACK_SIZE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_COUNT

      +
      public static final ScriptError SCRIPT_ERR_SIG_COUNT
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_PUBKEY_COUNT

      +
      public static final ScriptError SCRIPT_ERR_PUBKEY_COUNT
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_VERIFY

      +
      public static final ScriptError SCRIPT_ERR_VERIFY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_EQUALVERIFY

      +
      public static final ScriptError SCRIPT_ERR_EQUALVERIFY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_CHECKMULTISIGVERIFY

      +
      public static final ScriptError SCRIPT_ERR_CHECKMULTISIGVERIFY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_CHECKSIGVERIFY

      +
      public static final ScriptError SCRIPT_ERR_CHECKSIGVERIFY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_NUMEQUALVERIFY

      +
      public static final ScriptError SCRIPT_ERR_NUMEQUALVERIFY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_BAD_OPCODE

      +
      public static final ScriptError SCRIPT_ERR_BAD_OPCODE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_DISABLED_OPCODE

      +
      public static final ScriptError SCRIPT_ERR_DISABLED_OPCODE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_INVALID_STACK_OPERATION

      +
      public static final ScriptError SCRIPT_ERR_INVALID_STACK_OPERATION
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_INVALID_ALTSTACK_OPERATION

      +
      public static final ScriptError SCRIPT_ERR_INVALID_ALTSTACK_OPERATION
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_UNBALANCED_CONDITIONAL

      +
      public static final ScriptError SCRIPT_ERR_UNBALANCED_CONDITIONAL
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_NEGATIVE_LOCKTIME

      +
      public static final ScriptError SCRIPT_ERR_NEGATIVE_LOCKTIME
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_UNSATISFIED_LOCKTIME

      +
      public static final ScriptError SCRIPT_ERR_UNSATISFIED_LOCKTIME
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_HASHTYPE

      +
      public static final ScriptError SCRIPT_ERR_SIG_HASHTYPE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_DER

      +
      public static final ScriptError SCRIPT_ERR_SIG_DER
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_MINIMALDATA

      +
      public static final ScriptError SCRIPT_ERR_MINIMALDATA
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_PUSHONLY

      +
      public static final ScriptError SCRIPT_ERR_SIG_PUSHONLY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_HIGH_S

      +
      public static final ScriptError SCRIPT_ERR_SIG_HIGH_S
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_NULLDUMMY

      +
      public static final ScriptError SCRIPT_ERR_SIG_NULLDUMMY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_PUBKEYTYPE

      +
      public static final ScriptError SCRIPT_ERR_PUBKEYTYPE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_CLEANSTACK

      +
      public static final ScriptError SCRIPT_ERR_CLEANSTACK
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_MINIMALIF

      +
      public static final ScriptError SCRIPT_ERR_MINIMALIF
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_SIG_NULLFAIL

      +
      public static final ScriptError SCRIPT_ERR_SIG_NULLFAIL
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS

      +
      public static final ScriptError SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM

      +
      public static final ScriptError SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_MALLEATED

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_MALLEATED
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_MALLEATED_P2SH

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_MALLEATED_P2SH
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_UNEXPECTED

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_UNEXPECTED
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_WITNESS_PUBKEYTYPE

      +
      public static final ScriptError SCRIPT_ERR_WITNESS_PUBKEYTYPE
      +
      +
    • +
    • +
      +

      SCRIPT_ERR_ERROR_COUNT

      +
      public static final ScriptError SCRIPT_ERR_ERROR_COUNT
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static ScriptError[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static ScriptError valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getMnemonic

      +
      public String getMnemonic()
      +
      +
    • +
    • +
      +

      fromMnemonic

      +
      public static ScriptError fromMnemonic(String name)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptException.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptException.html new file mode 100644 index 000000000..35f91af33 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptException.html @@ -0,0 +1,205 @@ + + + + +ScriptException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ScriptException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class ScriptException +extends VerificationException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptOpCodes.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptOpCodes.html new file mode 100644 index 000000000..7a1eea175 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptOpCodes.html @@ -0,0 +1,2193 @@ + + + + +ScriptOpCodes (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ScriptOpCodes

+
+
java.lang.Object +
org.bitcoinj.script.ScriptOpCodes
+
+
+
+
public class ScriptOpCodes +extends Object
+
Various constants that define the assembly-like scripting language that forms part of the Bitcoin protocol. + See Script for details. Also provides a method to convert them to a string.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ScriptOpCodes

      +
      public ScriptOpCodes()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getOpCodeName

      +
      public static String getOpCodeName(int opcode)
      +
      Converts the given OpCode into a string (eg "0", "PUSHDATA", or "NON_OP(10)")
      +
      +
    • +
    • +
      +

      getPushDataName

      +
      public static String getPushDataName(int opcode)
      +
      Converts the given pushdata OpCode into a string (eg "PUSHDATA2", or "PUSHDATA(23)")
      +
      +
    • +
    • +
      +

      getOpCode

      +
      public static int getOpCode(String opCodeName)
      +
      Converts the given OpCodeName into an int
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/ScriptPattern.html b/javadoc/0.16.3/org/bitcoinj/script/ScriptPattern.html new file mode 100644 index 000000000..01afd9272 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/ScriptPattern.html @@ -0,0 +1,372 @@ + + + + +ScriptPattern (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ScriptPattern

+
+
java.lang.Object +
org.bitcoinj.script.ScriptPattern
+
+
+
+
public class ScriptPattern +extends Object
+
This is a Script pattern matcher with some typical script patterns
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static byte[]
    + +
    +
    Extract the pubkey hash from a P2PKH scriptPubKey.
    +
    +
    static byte[]
    + +
    +
    Extract the script hash from a P2SH scriptPubKey.
    +
    +
    static byte[]
    + +
    +
    Extract the pubkey hash from a P2WPKH or the script hash from a P2WSH scriptPubKey.
    +
    +
    static byte[]
    + +
    +
    Extract the pubkey from a P2SH scriptPubKey.
    +
    +
    static byte[]
    + +
    +
    Extract the taproot output key from a P2TR scriptPubKey.
    +
    +
    static Sha256Hash
    + +
    +
    Retrieves the hash from a segwit commitment (in an output of the coinbase transaction).
    +
    +
    static boolean
    + +
    +
    Returns whether this script is using OP_RETURN to store arbitrary data.
    +
    +
    static boolean
    +
    isP2PK(Script script)
    +
    +
    Returns true if this script is of the form <pubkey> OP_CHECKSIG.
    +
    +
    static boolean
    +
    isP2PKH(Script script)
    +
    +
    Returns true if this script is of the form DUP HASH160 <pubkey hash> EQUALVERIFY CHECKSIG, ie, payment to an + address like 1VayNert3x1KzbpzMGt2qdqrAThiRovi8.
    +
    +
    static boolean
    +
    isP2SH(Script script)
    +
    +
    + Whether or not this is a scriptPubKey representing a P2SH output.
    +
    +
    static boolean
    +
    isP2TR(Script script)
    +
    +
    Returns true if this script is of the form OP_1 <pubkey>.
    +
    +
    static boolean
    +
    isP2WH(Script script)
    +
    +
    Returns true if this script is of the form OP_0 <hash>.
    +
    +
    static boolean
    +
    isP2WPKH(Script script)
    +
    +
    Returns true if this script is of the form OP_0 <hash> and hash is 20 bytes long.
    +
    +
    static boolean
    +
    isP2WSH(Script script)
    +
    +
    Returns true if this script is of the form OP_0 <hash> and hash is 32 bytes long.
    +
    +
    static boolean
    + +
    +
    Returns whether this script matches the format used for m-of-n multisig outputs: + [m] [keys...] [n] CHECKMULTISIG
    +
    +
    static boolean
    + +
    +
    Returns whether this script matches the pattern for a segwit commitment (in an output of the coinbase + transaction).
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ScriptPattern

      +
      public ScriptPattern()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isP2PKH

      +
      public static boolean isP2PKH(Script script)
      +
      Returns true if this script is of the form DUP HASH160 <pubkey hash> EQUALVERIFY CHECKSIG, ie, payment to an + address like 1VayNert3x1KzbpzMGt2qdqrAThiRovi8. This form was originally intended for the case where you wish + to send somebody money with a written code because their node is offline, but over time has become the standard + way to make payments due to the short and recognizable base58 form addresses come in.
      +
      +
    • +
    • +
      +

      extractHashFromP2PKH

      +
      public static byte[] extractHashFromP2PKH(Script script)
      +
      Extract the pubkey hash from a P2PKH scriptPubKey. It's important that the script is in the correct form, so you + will want to guard calls to this method with isP2PKH(Script).
      +
      +
    • +
    • +
      +

      isP2SH

      +
      public static boolean isP2SH(Script script)
      +

      + Whether or not this is a scriptPubKey representing a P2SH output. In such outputs, the logic that + controls reclamation is not actually in the output at all. Instead there's just a hash, and it's up to the + spending input to provide a program matching that hash. +

      +

      + P2SH is described by BIP16. +

      +
      +
    • +
    • +
      +

      extractHashFromP2SH

      +
      public static byte[] extractHashFromP2SH(Script script)
      +
      Extract the script hash from a P2SH scriptPubKey. It's important that the script is in the correct form, so you + will want to guard calls to this method with isP2SH(Script).
      +
      +
    • +
    • +
      +

      isP2PK

      +
      public static boolean isP2PK(Script script)
      +
      Returns true if this script is of the form <pubkey> OP_CHECKSIG. This form was originally intended for transactions + where the peers talked to each other directly via TCP/IP, but has fallen out of favor with time due to that mode + of operation being susceptible to man-in-the-middle attacks. It is still used in coinbase outputs and can be + useful more exotic types of transaction, but today most payments are to addresses.
      +
      +
    • +
    • +
      +

      extractKeyFromP2PK

      +
      public static byte[] extractKeyFromP2PK(Script script)
      +
      Extract the pubkey from a P2SH scriptPubKey. It's important that the script is in the correct form, so you will + want to guard calls to this method with isP2PK(Script).
      +
      +
    • +
    • +
      +

      isP2WH

      +
      public static boolean isP2WH(Script script)
      +
      Returns true if this script is of the form OP_0 <hash>. This can either be a P2WPKH or P2WSH scriptPubKey. These + two script types were introduced with segwit.
      +
      +
    • +
    • +
      +

      isP2WPKH

      +
      public static boolean isP2WPKH(Script script)
      +
      Returns true if this script is of the form OP_0 <hash> and hash is 20 bytes long. This can only be a P2WPKH + scriptPubKey. This script type was introduced with segwit.
      +
      +
    • +
    • +
      +

      isP2WSH

      +
      public static boolean isP2WSH(Script script)
      +
      Returns true if this script is of the form OP_0 <hash> and hash is 32 bytes long. This can only be a P2WSH + scriptPubKey. This script type was introduced with segwit.
      +
      +
    • +
    • +
      +

      extractHashFromP2WH

      +
      public static byte[] extractHashFromP2WH(Script script)
      +
      Extract the pubkey hash from a P2WPKH or the script hash from a P2WSH scriptPubKey. It's important that the + script is in the correct form, so you will want to guard calls to this method with + isP2WH(Script).
      +
      +
    • +
    • +
      +

      isP2TR

      +
      public static boolean isP2TR(Script script)
      +
      Returns true if this script is of the form OP_1 <pubkey>. This is a P2TR scriptPubKey. This + script type was introduced with taproot.
      +
      +
    • +
    • +
      +

      extractOutputKeyFromP2TR

      +
      public static byte[] extractOutputKeyFromP2TR(Script script)
      +
      Extract the taproot output key from a P2TR scriptPubKey. It's important that the script is in the correct + form, so you will want to guard calls to this method with isP2TR(Script).
      +
      +
    • +
    • +
      +

      isSentToMultisig

      +
      public static boolean isSentToMultisig(Script script)
      +
      Returns whether this script matches the format used for m-of-n multisig outputs: + [m] [keys...] [n] CHECKMULTISIG
      +
      +
    • +
    • +
      +

      isOpReturn

      +
      public static boolean isOpReturn(Script script)
      +
      Returns whether this script is using OP_RETURN to store arbitrary data.
      +
      +
    • +
    • +
      +

      isWitnessCommitment

      +
      public static boolean isWitnessCommitment(Script script)
      +
      Returns whether this script matches the pattern for a segwit commitment (in an output of the coinbase + transaction).
      +
      +
    • +
    • +
      +

      extractWitnessCommitmentHash

      +
      public static Sha256Hash extractWitnessCommitmentHash(Script script)
      +
      Retrieves the hash from a segwit commitment (in an output of the coinbase transaction).
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/package-summary.html b/javadoc/0.16.3/org/bitcoinj/script/package-summary.html new file mode 100644 index 000000000..ee4b382a0 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/package-summary.html @@ -0,0 +1,122 @@ + + + + +org.bitcoinj.script (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.script

+
+
+
package org.bitcoinj.script
+
+
Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/script/package-tree.html b/javadoc/0.16.3/org/bitcoinj/script/package-tree.html new file mode 100644 index 000000000..b0469008f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/script/package-tree.html @@ -0,0 +1,109 @@ + + + + +org.bitcoinj.script Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.script

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.SignatureAndKey.html b/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.SignatureAndKey.html new file mode 100644 index 000000000..8dcefc4aa --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.SignatureAndKey.html @@ -0,0 +1,172 @@ + + + + +CustomTransactionSigner.SignatureAndKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CustomTransactionSigner.SignatureAndKey

+
+
java.lang.Object +
org.bitcoinj.signers.CustomTransactionSigner.SignatureAndKey
+
+
+
+
Enclosing class:
+
CustomTransactionSigner
+
+
+
public class CustomTransactionSigner.SignatureAndKey +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.html b/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.html new file mode 100644 index 000000000..14b572ef8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/CustomTransactionSigner.html @@ -0,0 +1,229 @@ + + + + +CustomTransactionSigner (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CustomTransactionSigner

+
+
java.lang.Object +
org.bitcoinj.signers.CustomTransactionSigner
+
+
+
+
All Implemented Interfaces:
+
TransactionSigner
+
+
+
public abstract class CustomTransactionSigner +extends Object +implements TransactionSigner
+

This signer may be used as a template for creating custom multisig transaction signers.

+

+ Concrete implementations have to implement getSignature(Sha256Hash, List) + method returning a signature and a public key of the keypair used to created that signature. + It's up to custom implementation where to locate signatures: it may be a network connection, + some local API or something else. +

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/LocalTransactionSigner.html b/javadoc/0.16.3/org/bitcoinj/signers/LocalTransactionSigner.html new file mode 100644 index 000000000..1bb7a7845 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/LocalTransactionSigner.html @@ -0,0 +1,212 @@ + + + + +LocalTransactionSigner (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LocalTransactionSigner

+
+
java.lang.Object +
org.bitcoinj.signers.LocalTransactionSigner
+
+
+
+
All Implemented Interfaces:
+
TransactionSigner
+
+
+
public class LocalTransactionSigner +extends Object +implements TransactionSigner
+

TransactionSigner implementation for signing inputs using keys from provided KeyBag.

+

This signer doesn't create input scripts for tx inputs. Instead it expects inputs to contain scripts with + empty sigs and replaces one of the empty sigs with calculated signature. +

+

This signer is always implicitly added into every wallet and it is the first signer to be executed during tx + completion. As the first signer to create a signature, it stores derivation path of the signing key in a given + TransactionSigner.ProposedTransaction object that will be also passed then to the next signer in chain. This allows other + signers to use correct signing key for P2SH inputs, because all the keys involved in a single P2SH address have + the same derivation path.

+

This signer always uses Transaction.SigHash.ALL signing mode.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      LocalTransactionSigner

      +
      public LocalTransactionSigner()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/MissingSigResolutionSigner.html b/javadoc/0.16.3/org/bitcoinj/signers/MissingSigResolutionSigner.html new file mode 100644 index 000000000..a9f7c609f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/MissingSigResolutionSigner.html @@ -0,0 +1,215 @@ + + + + +MissingSigResolutionSigner (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MissingSigResolutionSigner

+
+
java.lang.Object +
org.bitcoinj.signers.MissingSigResolutionSigner
+
+
+
+
All Implemented Interfaces:
+
TransactionSigner
+
+
+
public class MissingSigResolutionSigner +extends Object +implements TransactionSigner
+
This transaction signer resolves missing signatures in accordance with the given Wallet.MissingSigsMode. + If missingSigsMode is USE_OP_ZERO this signer does nothing assuming missing signatures are already presented in + scriptSigs as OP_0. + In MissingSigsMode.THROW mode this signer will throw an exception. It would be MissingSignatureException + for P2SH or MissingPrivateKeyException for other transaction types.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MissingSigResolutionSigner

      +
      public MissingSigResolutionSigner()
      +
      +
    • +
    • +
      +

      MissingSigResolutionSigner

      +
      public MissingSigResolutionSigner(Wallet.MissingSigsMode missingSigsMode)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.MissingSignatureException.html b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.MissingSignatureException.html new file mode 100644 index 000000000..40a10e342 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.MissingSignatureException.html @@ -0,0 +1,153 @@ + + + + +TransactionSigner.MissingSignatureException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionSigner.MissingSignatureException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.signers.TransactionSigner.MissingSignatureException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing interface:
+
TransactionSigner
+
+
+
public static class TransactionSigner.MissingSignatureException +extends RuntimeException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MissingSignatureException

      +
      public MissingSignatureException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.ProposedTransaction.html b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.ProposedTransaction.html new file mode 100644 index 000000000..9225832d8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.ProposedTransaction.html @@ -0,0 +1,179 @@ + + + + +TransactionSigner.ProposedTransaction (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TransactionSigner.ProposedTransaction

+
+
java.lang.Object +
org.bitcoinj.signers.TransactionSigner.ProposedTransaction
+
+
+
+
Enclosing interface:
+
TransactionSigner
+
+
+
public static class TransactionSigner.ProposedTransaction +extends Object
+
This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively + shared by transaction signers.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      partialTx

      +
      public final Transaction partialTx
      +
      +
    • +
    • +
      +

      keyPaths

      +
      public final Map<Script,List<ChildNumber>> keyPaths
      +
      HD key paths used for each input to derive a signing key. It's useful for multisig inputs only. + The keys used to create a single P2SH address have the same derivation path, so to use a correct key each signer + has to know a derivation path of signing keys used by previous signers. For each input signers will use the + same derivation path and we need to store only one key path per input. As TransactionInput is mutable, inputs + are identified by their scriptPubKeys (keys in this map).
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ProposedTransaction

      +
      public ProposedTransaction(Transaction partialTx)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.html b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.html new file mode 100644 index 000000000..5290f17c7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/TransactionSigner.html @@ -0,0 +1,175 @@ + + + + +TransactionSigner (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TransactionSigner

+
+
+
+
All Known Implementing Classes:
+
CustomTransactionSigner, LocalTransactionSigner, MissingSigResolutionSigner
+
+
+
public interface TransactionSigner
+

Implementations of this interface are intended to sign inputs of the given transaction. Given transaction may already + be partially signed or somehow altered by other signers.

+

To make use of the signer, you need to add it into the wallet by + calling Wallet.addTransactionSigner(TransactionSigner). Signer will be serialized + along with the wallet data. In order for a wallet to recreate signer after deserialization, each signer + should have no-args constructor

+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isReady

      +
      boolean isReady()
      +
      Returns true if this signer is ready to be used.
      +
      +
    • +
    • +
      +

      signInputs

      +
      boolean signInputs(TransactionSigner.ProposedTransaction propTx, + KeyBag keyBag)
      +
      Signs given transaction's inputs. + Returns true if signer is compatible with given transaction (can do something meaningful with it). + Otherwise this method returns false
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/package-summary.html b/javadoc/0.16.3/org/bitcoinj/signers/package-summary.html new file mode 100644 index 000000000..f9c52c7f6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/package-summary.html @@ -0,0 +1,115 @@ + + + + +org.bitcoinj.signers (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.signers

+
+
+
package 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. The Wallet class uses these + when sending money.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/signers/package-tree.html b/javadoc/0.16.3/org/bitcoinj/signers/package-tree.html new file mode 100644 index 000000000..731bee208 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/signers/package-tree.html @@ -0,0 +1,95 @@ + + + + +org.bitcoinj.signers Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.signers

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/BlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/BlockStore.html new file mode 100644 index 000000000..ae840b3d6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/BlockStore.html @@ -0,0 +1,239 @@ + + + + +BlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface BlockStore

+
+
+
+
All Known Subinterfaces:
+
FullPrunedBlockStore
+
+
+
All Known Implementing Classes:
+
DatabaseFullPrunedBlockStore, H2FullPrunedBlockStore, LevelDBBlockStore, LevelDBFullPrunedBlockStore, MemoryBlockStore, MemoryFullPrunedBlockStore, MySQLFullPrunedBlockStore, PostgresFullPrunedBlockStore, SPVBlockStore
+
+
+
public interface BlockStore
+
An implementor of BlockStore saves StoredBlock objects to disk. Different implementations store them in + different ways. An in-memory implementation (MemoryBlockStore) exists for unit testing but real apps will want to + use implementations that save to disk.

+ + A BlockStore is a map of hashes to StoredBlock. The hash is the double digest of the Bitcoin serialization + of the block header, not the header with the extra data as well.

+ + BlockStores are thread safe.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/BlockStoreException.html b/javadoc/0.16.3/org/bitcoinj/store/BlockStoreException.html new file mode 100644 index 000000000..88598eb86 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/BlockStoreException.html @@ -0,0 +1,170 @@ + + + + +BlockStoreException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockStoreException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.store.BlockStoreException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
ChainFileLockedException
+
+
+
public class BlockStoreException +extends Exception
+
Thrown when something goes wrong with storing a block. Examples: out of disk space.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BlockStoreException

      +
      public BlockStoreException(String message)
      +
      +
    • +
    • +
      +

      BlockStoreException

      +
      public BlockStoreException(Throwable t)
      +
      +
    • +
    • +
      +

      BlockStoreException

      +
      public BlockStoreException(String message, + Throwable t)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/ChainFileLockedException.html b/javadoc/0.16.3/org/bitcoinj/store/ChainFileLockedException.html new file mode 100644 index 000000000..9ffefd0eb --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/ChainFileLockedException.html @@ -0,0 +1,158 @@ + + + + +ChainFileLockedException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ChainFileLockedException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class ChainFileLockedException +extends BlockStoreException
+
Thrown by SPVBlockStore when the process cannot gain exclusive access to the chain file.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ChainFileLockedException

      +
      public ChainFileLockedException(String message)
      +
      +
    • +
    • +
      +

      ChainFileLockedException

      +
      public ChainFileLockedException(Throwable t)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/DatabaseFullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/DatabaseFullPrunedBlockStore.html new file mode 100644 index 000000000..d322e029e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/DatabaseFullPrunedBlockStore.html @@ -0,0 +1,1383 @@ + + + + +DatabaseFullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DatabaseFullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.DatabaseFullPrunedBlockStore
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
Direct Known Subclasses:
+
H2FullPrunedBlockStore, MySQLFullPrunedBlockStore, PostgresFullPrunedBlockStore
+
+
+
public abstract class DatabaseFullPrunedBlockStore +extends Object +implements FullPrunedBlockStore
+

A generic full pruned block store for a relational database. This generic class requires + certain table structures for the block store.

+ +

The following are the tables and field names/types that are assumed:

+ + + + + + +
setting table
Field NameType (generic)
namestring
valuebinary
+ + + + + + + + + +
headers table
Field NameType (generic)
hashbinary
chainworkbinary
heightinteger
headerbinary
wasundoableboolean
+ + + + + + + + +
undoableblocks table
Field NameType (generic)
hashbinary
heightinteger
txoutchangesbinary
transactionsbinary
+ + + + + + + + + + + + +
openoutputs table
Field NameType (generic)
hashbinary
indexinteger
heightinteger
valueinteger
scriptbytesbinary
toaddressstring
addresstargetableinteger
coinbaseboolean
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      chainHeadHash

      +
      protected Sha256Hash chainHeadHash
      +
      +
    • +
    • +
      +

      chainHeadBlock

      +
      protected StoredBlock chainHeadBlock
      +
      +
    • +
    • +
      +

      verifiedChainHeadHash

      +
      protected Sha256Hash verifiedChainHeadHash
      +
      +
    • +
    • +
      +

      verifiedChainHeadBlock

      +
      protected StoredBlock verifiedChainHeadBlock
      +
      +
    • +
    • +
      +

      params

      +
      protected NetworkParameters params
      +
      +
    • +
    • +
      +

      conn

      +
      protected ThreadLocal<Connection> conn
      +
      +
    • +
    • +
      +

      allConnections

      +
      protected List<Connection> allConnections
      +
      +
    • +
    • +
      +

      connectionURL

      +
      protected String connectionURL
      +
      +
    • +
    • +
      +

      fullStoreDepth

      +
      protected int fullStoreDepth
      +
      +
    • +
    • +
      +

      username

      +
      protected String username
      +
      +
    • +
    • +
      +

      password

      +
      protected String password
      +
      +
    • +
    • +
      +

      schemaName

      +
      protected String schemaName
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DatabaseFullPrunedBlockStore

      +
      public DatabaseFullPrunedBlockStore(NetworkParameters params, + String connectionURL, + int fullStoreDepth, + @Nullable + String username, + @Nullable + String password, + @Nullable + String schemaName) + throws BlockStoreException
      +

      Create a new DatabaseFullPrunedBlockStore, using the full connection URL instead of a hostname and password, + and optionally allowing a schema to be specified.

      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used.
      +
      connectionURL - The jdbc url to connect to the database.
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe).
      +
      username - The database username.
      +
      password - The password to the database.
      +
      schemaName - The name of the schema to put the tables in. May be null if no schema is being used.
      +
      Throws:
      +
      BlockStoreException - If there is a failure to connect and/or initialise the database.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDatabaseDriverClass

      +
      protected abstract String getDatabaseDriverClass()
      +
      Get the database driver class, +

      i.e org.postgresql.Driver.

      +
      +
      Returns:
      +
      The fully qualified database driver class.
      +
      +
      +
    • +
    • +
      +

      getCreateSchemeSQL

      +
      protected abstract List<String> getCreateSchemeSQL()
      +
      Get the SQL statements that create the schema (DDL).
      +
      +
      Returns:
      +
      The list of SQL statements.
      +
      +
      +
    • +
    • +
      +

      getCreateTablesSQL

      +
      protected abstract List<String> getCreateTablesSQL()
      +
      Get the SQL statements that create the tables (DDL).
      +
      +
      Returns:
      +
      The list of SQL statements.
      +
      +
      +
    • +
    • +
      +

      getCreateIndexesSQL

      +
      protected abstract List<String> getCreateIndexesSQL()
      +
      Get the SQL statements that create the indexes (DDL).
      +
      +
      Returns:
      +
      The list of SQL statements.
      +
      +
      +
    • +
    • +
      +

      getDuplicateKeyErrorCode

      +
      protected abstract String getDuplicateKeyErrorCode()
      +
      Get the database specific error code that indicated a duplicate key error when inserting a record. +

      This is the code returned by SQLException.getSQLState()

      +
      +
      Returns:
      +
      The database duplicate error code.
      +
      +
      +
    • +
    • +
      +

      getBalanceSelectSQL

      +
      protected String getBalanceSelectSQL()
      +
      Get the SQL to select the total balance for a given address.
      +
      +
      Returns:
      +
      The SQL prepared statement.
      +
      +
      +
    • +
    • +
      +

      getTablesExistSQL

      +
      protected String getTablesExistSQL()
      +
      Get the SQL statement that checks if tables exist.
      +
      +
      Returns:
      +
      The SQL prepared statement.
      +
      +
      +
    • +
    • +
      +

      getCompatibilitySQL

      +
      protected List<String> getCompatibilitySQL()
      +
      Get the SQL statements to check if the database is compatible.
      +
      +
      Returns:
      +
      The SQL prepared statements.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutputSelectSQL

      +
      protected String getTransactionOutputSelectSQL()
      +
      Get the SQL to select the transaction outputs for a given address.
      +
      +
      Returns:
      +
      The SQL prepared statement.
      +
      +
      +
    • +
    • +
      +

      getDropTablesSQL

      +
      protected List<String> getDropTablesSQL()
      +
      Get the SQL to drop all the tables (DDL).
      +
      +
      Returns:
      +
      The SQL drop statements.
      +
      +
      +
    • +
    • +
      +

      getSelectSettingsSQL

      +
      protected String getSelectSettingsSQL()
      +
      Get the SQL to select a setting value.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getInsertSettingsSQL

      +
      protected String getInsertSettingsSQL()
      +
      Get the SQL to insert a settings record.
      +
      +
      Returns:
      +
      The SQL insert statement.
      +
      +
      +
    • +
    • +
      +

      getUpdateSettingsSLQ

      +
      protected String getUpdateSettingsSLQ()
      +
      Get the SQL to update a setting value.
      +
      +
      Returns:
      +
      The SQL update statement.
      +
      +
      +
    • +
    • +
      +

      getSelectHeadersSQL

      +
      protected String getSelectHeadersSQL()
      +
      Get the SQL to select a headers record.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getInsertHeadersSQL

      +
      protected String getInsertHeadersSQL()
      +
      Get the SQL to insert a headers record.
      +
      +
      Returns:
      +
      The SQL insert statement.
      +
      +
      +
    • +
    • +
      +

      getUpdateHeadersSQL

      +
      protected String getUpdateHeadersSQL()
      +
      Get the SQL to update a headers record.
      +
      +
      Returns:
      +
      The SQL update statement.
      +
      +
      +
    • +
    • +
      +

      getSelectUndoableBlocksSQL

      +
      protected String getSelectUndoableBlocksSQL()
      +
      Get the SQL to select an undoableblocks record.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getInsertUndoableBlocksSQL

      +
      protected String getInsertUndoableBlocksSQL()
      +
      Get the SQL to insert a undoableblocks record.
      +
      +
      Returns:
      +
      The SQL insert statement.
      +
      +
      +
    • +
    • +
      +

      getUpdateUndoableBlocksSQL

      +
      protected String getUpdateUndoableBlocksSQL()
      +
      Get the SQL to update a undoableblocks record.
      +
      +
      Returns:
      +
      The SQL update statement.
      +
      +
      +
    • +
    • +
      +

      getDeleteUndoableBlocksSQL

      +
      protected String getDeleteUndoableBlocksSQL()
      +
      Get the SQL to delete a undoableblocks record.
      +
      +
      Returns:
      +
      The SQL delete statement.
      +
      +
      +
    • +
    • +
      +

      getSelectOpenoutputsSQL

      +
      protected String getSelectOpenoutputsSQL()
      +
      Get the SQL to select a openoutputs record.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getSelectOpenoutputsCountSQL

      +
      protected String getSelectOpenoutputsCountSQL()
      +
      Get the SQL to select count of openoutputs.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getInsertOpenoutputsSQL

      +
      protected String getInsertOpenoutputsSQL()
      +
      Get the SQL to insert a openoutputs record.
      +
      +
      Returns:
      +
      The SQL insert statement.
      +
      +
      +
    • +
    • +
      +

      getDeleteOpenoutputsSQL

      +
      protected String getDeleteOpenoutputsSQL()
      +
      Get the SQL to delete a openoutputs record.
      +
      +
      Returns:
      +
      The SQL delete statement.
      +
      +
      +
    • +
    • +
      +

      getSelectSettingsDumpSQL

      +
      protected String getSelectSettingsDumpSQL()
      +
      Get the SQL to select the setting dump fields for sizing/statistics.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getSelectHeadersDumpSQL

      +
      protected String getSelectHeadersDumpSQL()
      +
      Get the SQL to select the headers dump fields for sizing/statistics.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getSelectUndoableblocksDumpSQL

      +
      protected String getSelectUndoableblocksDumpSQL()
      +
      Get the SQL to select the undoableblocks dump fields for sizing/statistics.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      getSelectopenoutputsDumpSQL

      +
      protected String getSelectopenoutputsDumpSQL()
      +
      Get the SQL to select the openoutouts dump fields for sizing/statistics.
      +
      +
      Returns:
      +
      The SQL select statement.
      +
      +
      +
    • +
    • +
      +

      maybeConnect

      +
      protected final void maybeConnect() + throws BlockStoreException
      +

      If there isn't a connection on the ThreadLocal then create and store it.

      +

      This will also automatically set up the schema if it does not exist within the DB.

      +
      +
      Throws:
      +
      BlockStoreException - if successful connection to the DB couldn't be made.
      +
      +
      +
    • +
    • +
      +

      close

      +
      public void close()
      +
      Description copied from interface: BlockStore
      +
      Closes the store.
      +
      +
      Specified by:
      +
      close in interface BlockStore
      +
      +
      +
    • +
    • +
      +

      putUpdateStoredBlock

      +
      protected void putUpdateStoredBlock(StoredBlock storedBlock, + boolean wasUndoable) + throws SQLException
      +
      +
      Throws:
      +
      SQLException
      +
      +
      +
    • +
    • +
      +

      put

      +
      public void put(StoredBlock storedBlock) + throws BlockStoreException
      +
      Description copied from interface: BlockStore
      +
      Saves the given block header+extra data. The key isn't specified explicitly as it can be calculated from the + StoredBlock directly. Can throw if there is a problem with the underlying storage layer such as running out of + disk space.
      +
      +
      Specified by:
      +
      put in interface BlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      put

      +
      public void put(StoredBlock storedBlock, + StoredUndoableBlock undoableBlock) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +

      Saves the given StoredUndoableBlock and StoredBlock. Calculates keys from the StoredBlock

      + +

      Though not required for proper function of a FullPrunedBlockStore, any user of a FullPrunedBlockStore should ensure + that a StoredUndoableBlock for each block up to the fully verified chain head has been added to this block store using + this function (not put(StoredBlock)), so that the ability to perform reorgs is maintained.

      +
      +
      Specified by:
      +
      put in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException - if there is a problem with the underlying storage layer, such as running out of disk space.
      +
      +
      +
    • +
    • +
      +

      get

      +
      public StoredBlock get(Sha256Hash hash, + boolean wasUndoableOnly) + throws BlockStoreException
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      get

      +
      public StoredBlock get(Sha256Hash hash) + throws BlockStoreException
      +
      Description copied from interface: BlockStore
      +
      Returns the StoredBlock given a hash. The returned values block.getHash() method will be equal to the + parameter. If no such block is found, returns null.
      +
      +
      Specified by:
      +
      get in interface BlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getOnceUndoableStoredBlock

      +
      public StoredBlock getOnceUndoableStoredBlock(Sha256Hash hash) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Returns the StoredBlock that was added as a StoredUndoableBlock given a hash. The returned values block.getHash() + method will be equal to the parameter. If no such block is found, returns null.
      +
      +
      Specified by:
      +
      getOnceUndoableStoredBlock in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getUndoBlock

      +
      public StoredUndoableBlock getUndoBlock(Sha256Hash hash) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Returns a StoredUndoableBlock whose block.getHash() method will be equal to the parameter. If no such + block is found, returns null. Note that this may return null more often than get(Sha256Hash hash) as not all + StoredBlocks have a StoredUndoableBlock copy stored as well.
      +
      +
      Specified by:
      +
      getUndoBlock in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getChainHead

      +
      public StoredBlock getChainHead() + throws BlockStoreException
      +
      Description copied from interface: BlockStore
      +
      Returns the StoredBlock that represents the top of the chain of greatest total work. Note that this + can be arbitrarily expensive, you probably should use AbstractBlockChain.getChainHead() + or perhaps AbstractBlockChain.getBestChainHeight() which will run in constant time and + not take any heavyweight locks.
      +
      +
      Specified by:
      +
      getChainHead in interface BlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      setChainHead

      +
      public void setChainHead(StoredBlock chainHead) + throws BlockStoreException
      +
      Description copied from interface: BlockStore
      +
      Sets the StoredBlock that represents the top of the chain of greatest total work.
      +
      +
      Specified by:
      +
      setChainHead in interface BlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getVerifiedChainHead

      +
      public StoredBlock getVerifiedChainHead() + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Returns the StoredBlock that represents the top of the chain of greatest total work that has + been fully verified and the point in the chain at which the unspent transaction output set in this + store represents.
      +
      +
      Specified by:
      +
      getVerifiedChainHead in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      setVerifiedChainHead

      +
      public void setVerifiedChainHead(StoredBlock chainHead) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Sets the StoredBlock that represents the top of the chain of greatest total work that has been + fully verified. It should generally be set after a batch of updates to the transaction unspent output set, + before a call to commitDatabaseBatchWrite. + + If chainHead has a greater height than the non-verified chain head (ie that set with + BlockStore.setChainHead(org.bitcoinj.core.StoredBlock)) the non-verified chain head should be set to the one set here. + In this way a class using a FullPrunedBlockStore only in full-verification mode can ignore the regular + BlockStore functions implemented as a part of a FullPrunedBlockStore.
      +
      +
      Specified by:
      +
      setVerifiedChainHead in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getTransactionOutput

      +
      public UTXO getTransactionOutput(Sha256Hash hash, + long index) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Gets a UTXO with the given hash and index, or null if none is found
      +
      +
      Specified by:
      +
      getTransactionOutput in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      addUnspentTransactionOutput

      +
      public void addUnspentTransactionOutput(UTXO out) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Adds a UTXO to the list of unspent TransactionOutputs
      +
      +
      Specified by:
      +
      addUnspentTransactionOutput in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      removeUnspentTransactionOutput

      +
      public void removeUnspentTransactionOutput(UTXO out) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      Removes a UTXO from the list of unspent TransactionOutputs + Note that the coinbase of the genesis block should NEVER be spendable and thus never in the list.
      +
      +
      Specified by:
      +
      removeUnspentTransactionOutput in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException - if there is an underlying storage issue, or out was not in the list.
      +
      +
      +
    • +
    • +
      +

      beginDatabaseBatchWrite

      +
      public void beginDatabaseBatchWrite() + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +

      Begins/Commits/Aborts a database transaction.

      + +

      If abortDatabaseBatchWrite() is called by the same thread that called beginDatabaseBatchWrite(), + any data writes between this call and abortDatabaseBatchWrite() made by the same thread + should be discarded.

      + +

      Furthermore, any data written after a call to beginDatabaseBatchWrite() should not be readable + by any other threads until commitDatabaseBatchWrite() has been called by this thread. + Multiple calls to beginDatabaseBatchWrite() in any given thread should be ignored and treated as one call.

      +
      +
      Specified by:
      +
      beginDatabaseBatchWrite in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      commitDatabaseBatchWrite

      +
      public void commitDatabaseBatchWrite() + throws BlockStoreException
      +
      +
      Specified by:
      +
      commitDatabaseBatchWrite in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      abortDatabaseBatchWrite

      +
      public void abortDatabaseBatchWrite() + throws BlockStoreException
      +
      +
      Specified by:
      +
      abortDatabaseBatchWrite in interface FullPrunedBlockStore
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      hasUnspentOutputs

      +
      public boolean hasUnspentOutputs(Sha256Hash hash, + int numOutputs) + throws BlockStoreException
      +
      Description copied from interface: FullPrunedBlockStore
      +
      True if this store has any unspent outputs from a transaction with a hash equal to the first parameter
      +
      +
      Specified by:
      +
      hasUnspentOutputs in interface FullPrunedBlockStore
      +
      numOutputs - the number of outputs the given transaction has
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getParams

      +
      public NetworkParameters getParams()
      +
      Description copied from interface: BlockStore
      +
      Get the NetworkParameters of this store.
      +
      +
      Specified by:
      +
      getParams in interface BlockStore
      +
      Specified by:
      +
      getParams in interface UTXOProvider
      +
      Returns:
      +
      The network params.
      +
      +
      +
    • +
    • +
      +

      getChainHeadHeight

      +
      public int getChainHeadHeight() + throws UTXOProviderException
      +
      Description copied from interface: UTXOProvider
      +
      Get the height of the chain head.
      +
      +
      Specified by:
      +
      getChainHeadHeight in interface UTXOProvider
      +
      Returns:
      +
      The chain head height.
      +
      Throws:
      +
      UTXOProviderException - If there is an error.
      +
      +
      +
    • +
    • +
      +

      resetStore

      +
      public void resetStore() + throws BlockStoreException
      +
      Resets the store by deleting the contents of the tables and reinitialising them.
      +
      +
      Throws:
      +
      BlockStoreException - If the tables couldn't be cleared and initialised.
      +
      +
      +
    • +
    • +
      +

      deleteStore

      +
      public void deleteStore() + throws BlockStoreException
      +
      Deletes the store by deleting the tables within the database.
      +
      +
      Throws:
      +
      BlockStoreException - If tables couldn't be deleted.
      +
      +
      +
    • +
    • +
      +

      calculateBalanceForAddress

      +
      public BigInteger calculateBalanceForAddress(Address address) + throws BlockStoreException
      +
      Calculate the balance for a coinbase, to-address, or p2sh address. + +

      The balance getBalanceSelectSQL() returns + the balance (summed) as an number, then use calculateClientSide=false

      + +

      The balance getBalanceSelectSQL() returns + the all the openoutputs as stored in the DB (binary), then use calculateClientSide=true

      +
      +
      Parameters:
      +
      address - The address to calculate the balance of
      +
      Returns:
      +
      The balance of the address supplied. If the address has not been seen, or there are no outputs open for this + address, the return value is 0.
      +
      Throws:
      +
      BlockStoreException - If there is an error getting the balance.
      +
      +
      +
    • +
    • +
      +

      getOpenTransactionOutputs

      +
      public List<UTXO> getOpenTransactionOutputs(List<ECKey> keys) + throws UTXOProviderException
      +
      Description copied from interface: UTXOProvider
      +
      Get the list of UTXO's for given keys.
      +
      +
      Specified by:
      +
      getOpenTransactionOutputs in interface UTXOProvider
      +
      Parameters:
      +
      keys - List of keys.
      +
      Returns:
      +
      The list of transaction outputs.
      +
      Throws:
      +
      UTXOProviderException - If there is an error.
      +
      +
      +
    • +
    • +
      +

      dumpSizes

      +
      public void dumpSizes() + throws SQLException, +BlockStoreException
      +
      Dumps information about the size of actual data in the database to standard output + The only truly useless data counted is printed in the form "N in id indexes" + This does not take database indexes into account.
      +
      +
      Throws:
      +
      SQLException
      +
      BlockStoreException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/FullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/FullPrunedBlockStore.html new file mode 100644 index 000000000..1d3a1f51f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/FullPrunedBlockStore.html @@ -0,0 +1,391 @@ + + + + +FullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface FullPrunedBlockStore

+
+
+
+
All Superinterfaces:
+
BlockStore, UTXOProvider
+
+
+
All Known Implementing Classes:
+
DatabaseFullPrunedBlockStore, H2FullPrunedBlockStore, LevelDBFullPrunedBlockStore, MemoryFullPrunedBlockStore, MySQLFullPrunedBlockStore, PostgresFullPrunedBlockStore
+
+
+
public interface FullPrunedBlockStore +extends BlockStore, UTXOProvider
+

An implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism.

+ +

In addition to keeping track of a chain using StoredBlocks, it should also keep track of a second + copy of the chain which holds StoredUndoableBlocks. In this way, an application can perform a + headers-only initial sync and then use that information to more efficiently download a locally verified + full copy of the block chain.

+ +

A FullPrunedBlockStore should function well as a standard BlockStore and then be able to + trivially switch to being used as a FullPrunedBlockStore.

+ +

It should store the StoredUndoableBlocks of a number of recent blocks before verifiedHead.height and + all those after verifiedHead.height. + It is advisable to store any StoredUndoableBlock which has a height > verifiedHead.height - N. + Because N determines the memory usage, it is recommended that N be customizable. N should be chosen such that + re-orgs beyond that point are vanishingly unlikely, for example, a few thousand blocks is a reasonable choice.

+ +

It must store the StoredBlock of all blocks.

+ +

A FullPrunedBlockStore contains a map of hashes to [Full]StoredBlock. The hash is the double digest of the + Bitcoin serialization of the block header, not the header with the extra data as well.

+ +

A FullPrunedBlockStore also contains a map of hash+index to UTXO. Again, the hash is + a standard Bitcoin double-SHA256 hash of the transaction.

+ +

FullPrunedBlockStores are thread safe.

+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      put

      +
      void put(StoredBlock storedBlock, + StoredUndoableBlock undoableBlock) + throws BlockStoreException
      +

      Saves the given StoredUndoableBlock and StoredBlock. Calculates keys from the StoredBlock

      + +

      Though not required for proper function of a FullPrunedBlockStore, any user of a FullPrunedBlockStore should ensure + that a StoredUndoableBlock for each block up to the fully verified chain head has been added to this block store using + this function (not put(StoredBlock)), so that the ability to perform reorgs is maintained.

      +
      +
      Throws:
      +
      BlockStoreException - if there is a problem with the underlying storage layer, such as running out of disk space.
      +
      +
      +
    • +
    • +
      +

      getOnceUndoableStoredBlock

      +
      StoredBlock getOnceUndoableStoredBlock(Sha256Hash hash) + throws BlockStoreException
      +
      Returns the StoredBlock that was added as a StoredUndoableBlock given a hash. The returned values block.getHash() + method will be equal to the parameter. If no such block is found, returns null.
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getUndoBlock

      +
      StoredUndoableBlock getUndoBlock(Sha256Hash hash) + throws BlockStoreException
      +
      Returns a StoredUndoableBlock whose block.getHash() method will be equal to the parameter. If no such + block is found, returns null. Note that this may return null more often than get(Sha256Hash hash) as not all + StoredBlocks have a StoredUndoableBlock copy stored as well.
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getTransactionOutput

      +
      UTXO getTransactionOutput(Sha256Hash hash, + long index) + throws BlockStoreException
      +
      Gets a UTXO with the given hash and index, or null if none is found
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      addUnspentTransactionOutput

      +
      void addUnspentTransactionOutput(UTXO out) + throws BlockStoreException
      +
      Adds a UTXO to the list of unspent TransactionOutputs
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      removeUnspentTransactionOutput

      +
      void removeUnspentTransactionOutput(UTXO out) + throws BlockStoreException
      +
      Removes a UTXO from the list of unspent TransactionOutputs + Note that the coinbase of the genesis block should NEVER be spendable and thus never in the list.
      +
      +
      Throws:
      +
      BlockStoreException - if there is an underlying storage issue, or out was not in the list.
      +
      +
      +
    • +
    • +
      +

      hasUnspentOutputs

      +
      boolean hasUnspentOutputs(Sha256Hash hash, + int numOutputs) + throws BlockStoreException
      +
      True if this store has any unspent outputs from a transaction with a hash equal to the first parameter
      +
      +
      Parameters:
      +
      numOutputs - the number of outputs the given transaction has
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      getVerifiedChainHead

      +
      StoredBlock getVerifiedChainHead() + throws BlockStoreException
      +
      Returns the StoredBlock that represents the top of the chain of greatest total work that has + been fully verified and the point in the chain at which the unspent transaction output set in this + store represents.
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      setVerifiedChainHead

      +
      void setVerifiedChainHead(StoredBlock chainHead) + throws BlockStoreException
      +
      Sets the StoredBlock that represents the top of the chain of greatest total work that has been + fully verified. It should generally be set after a batch of updates to the transaction unspent output set, + before a call to commitDatabaseBatchWrite. + + If chainHead has a greater height than the non-verified chain head (ie that set with + BlockStore.setChainHead(org.bitcoinj.core.StoredBlock)) the non-verified chain head should be set to the one set here. + In this way a class using a FullPrunedBlockStore only in full-verification mode can ignore the regular + BlockStore functions implemented as a part of a FullPrunedBlockStore.
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      beginDatabaseBatchWrite

      +
      void beginDatabaseBatchWrite() + throws BlockStoreException
      +

      Begins/Commits/Aborts a database transaction.

      + +

      If abortDatabaseBatchWrite() is called by the same thread that called beginDatabaseBatchWrite(), + any data writes between this call and abortDatabaseBatchWrite() made by the same thread + should be discarded.

      + +

      Furthermore, any data written after a call to beginDatabaseBatchWrite() should not be readable + by any other threads until commitDatabaseBatchWrite() has been called by this thread. + Multiple calls to beginDatabaseBatchWrite() in any given thread should be ignored and treated as one call.

      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      commitDatabaseBatchWrite

      +
      void commitDatabaseBatchWrite() + throws BlockStoreException
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      abortDatabaseBatchWrite

      +
      void abortDatabaseBatchWrite() + throws BlockStoreException
      +
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/H2FullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/H2FullPrunedBlockStore.html new file mode 100644 index 000000000..e58876644 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/H2FullPrunedBlockStore.html @@ -0,0 +1,346 @@ + + + + +H2FullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class H2FullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.DatabaseFullPrunedBlockStore +
org.bitcoinj.store.H2FullPrunedBlockStore
+
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
public class H2FullPrunedBlockStore +extends DatabaseFullPrunedBlockStore
+
A full pruned block store using the H2 pure-java embedded database. + + Note that because of the heavy delete load on the database, during IBD, + you may see the database files grow quite large (around 1.5G). + H2 automatically frees some space at shutdown, so close()ing the database + decreases the space usage somewhat (to only around 1.3G).
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      H2FullPrunedBlockStore

      +
      public H2FullPrunedBlockStore(NetworkParameters params, + String dbName, + String username, + String password, + int fullStoreDepth) + throws BlockStoreException
      +
      Creates a new H2FullPrunedBlockStore, with given credentials for H2 database
      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used
      +
      dbName - The path to the database on disk
      +
      username - The username to use in the database
      +
      password - The username's password to use in the database
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe)
      +
      Throws:
      +
      BlockStoreException - if the database fails to open for any reason
      +
      +
      +
    • +
    • +
      +

      H2FullPrunedBlockStore

      +
      public H2FullPrunedBlockStore(NetworkParameters params, + String dbName, + int fullStoreDepth) + throws BlockStoreException
      +
      Creates a new H2FullPrunedBlockStore
      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used
      +
      dbName - The path to the database on disk
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe)
      +
      Throws:
      +
      BlockStoreException - if the database fails to open for any reason
      +
      +
      +
    • +
    • +
      +

      H2FullPrunedBlockStore

      +
      public H2FullPrunedBlockStore(NetworkParameters params, + String dbName, + int fullStoreDepth, + int cacheSize) + throws BlockStoreException
      +
      Creates a new H2FullPrunedBlockStore with the given cache size
      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used
      +
      dbName - The path to the database on disk
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe)
      +
      cacheSize - The number of kilobytes to dedicate to H2 Cache (the default value of 16MB (16384) is a safe bet + to achieve good performance/cost when importing blocks from disk, past 32MB makes little sense, + and below 4MB sees a sharp drop in performance)
      +
      Throws:
      +
      BlockStoreException - if the database fails to open for any reason
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/LevelDBBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/LevelDBBlockStore.html new file mode 100644 index 000000000..03190e174 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/LevelDBBlockStore.html @@ -0,0 +1,346 @@ + + + + +LevelDBBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LevelDBBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.LevelDBBlockStore
+
+
+
+
All Implemented Interfaces:
+
BlockStore
+
+
+
public class LevelDBBlockStore +extends Object +implements BlockStore
+
An SPV block store that writes every header it sees to a LevelDB. + This allows for fast lookup of block headers by block hash at the expense of more costly inserts and higher disk + usage than the SPVBlockStore. If all you want is a regular wallet you don't need this class: it exists for + specialised applications where you need to quickly verify a standalone SPV proof.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.LRUCache.html b/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.LRUCache.html new file mode 100644 index 000000000..2bf5e443a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.LRUCache.html @@ -0,0 +1,208 @@ + + + + +LevelDBFullPrunedBlockStore.LRUCache (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LevelDBFullPrunedBlockStore.LRUCache

+
+
java.lang.Object +
java.util.AbstractMap<K,V> +
java.util.HashMap<K,V> +
java.util.LinkedHashMap<ByteBuffer,UTXO> +
org.bitcoinj.store.LevelDBFullPrunedBlockStore.LRUCache
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable, Map<ByteBuffer,UTXO>
+
+
+
Enclosing class:
+
LevelDBFullPrunedBlockStore
+
+
+
public class LevelDBFullPrunedBlockStore.LRUCache +extends LinkedHashMap<ByteBuffer,UTXO>
+
+
See Also:
+
+ +
+
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.html new file mode 100644 index 000000000..75f4d2c94 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/LevelDBFullPrunedBlockStore.html @@ -0,0 +1,853 @@ + + + + +LevelDBFullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LevelDBFullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.LevelDBFullPrunedBlockStore
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
public class LevelDBFullPrunedBlockStore +extends Object +implements FullPrunedBlockStore
+

+ An implementation of a Fully Pruned Block Store using a leveldb implementation as the backing data store. +

+ +

+ Includes number of caches to optimise the initial blockchain download. +

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/MemoryBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/MemoryBlockStore.html new file mode 100644 index 000000000..4f9e8d79f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/MemoryBlockStore.html @@ -0,0 +1,278 @@ + + + + +MemoryBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MemoryBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.MemoryBlockStore
+
+
+
+
All Implemented Interfaces:
+
BlockStore
+
+
+
public class MemoryBlockStore +extends Object +implements BlockStore
+
Keeps StoredBlocks in memory. Used primarily for unit testing.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag.html b/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag.html new file mode 100644 index 000000000..a66f9f678 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag.html @@ -0,0 +1,172 @@ + + + + +MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag

+
+
java.lang.Object +
org.bitcoinj.store.MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag
+
+
+
+
Enclosing class:
+
MemoryFullPrunedBlockStore
+
+
+
protected static class MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      block

      +
      public StoredBlock block
      +
      +
    • +
    • +
      +

      wasUndoable

      +
      public boolean wasUndoable
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      StoredBlockAndWasUndoableFlag

      +
      public StoredBlockAndWasUndoableFlag(StoredBlock block, + boolean wasUndoable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.html new file mode 100644 index 000000000..454598d1b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/MemoryFullPrunedBlockStore.html @@ -0,0 +1,624 @@ + + + + +MemoryFullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MemoryFullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.MemoryFullPrunedBlockStore
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
public class MemoryFullPrunedBlockStore +extends Object +implements FullPrunedBlockStore
+
Keeps StoredBlocks, StoredUndoableBlocks and UTXOs in memory. + Used primarily for unit testing.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/MySQLFullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/MySQLFullPrunedBlockStore.html new file mode 100644 index 000000000..faa19cb61 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/MySQLFullPrunedBlockStore.html @@ -0,0 +1,369 @@ + + + + +MySQLFullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MySQLFullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.DatabaseFullPrunedBlockStore +
org.bitcoinj.store.MySQLFullPrunedBlockStore
+
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
public class MySQLFullPrunedBlockStore +extends DatabaseFullPrunedBlockStore
+

A full pruned block store using the MySQL database engine. As an added bonus an address index is calculated, + so you can use DatabaseFullPrunedBlockStore.calculateBalanceForAddress(Address) to quickly look up + the quantity of bitcoins controlled by that address.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/PostgresFullPrunedBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/PostgresFullPrunedBlockStore.html new file mode 100644 index 000000000..42626a1df --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/PostgresFullPrunedBlockStore.html @@ -0,0 +1,362 @@ + + + + +PostgresFullPrunedBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class PostgresFullPrunedBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.DatabaseFullPrunedBlockStore +
org.bitcoinj.store.PostgresFullPrunedBlockStore
+
+
+
+
+
All Implemented Interfaces:
+
UTXOProvider, BlockStore, FullPrunedBlockStore
+
+
+
public class PostgresFullPrunedBlockStore +extends DatabaseFullPrunedBlockStore
+

A full pruned block store using the Postgres database engine. As an added bonus an address index is calculated, + so you can use DatabaseFullPrunedBlockStore.calculateBalanceForAddress(Address) to quickly look up + the quantity of bitcoins controlled by that address.

+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      PostgresFullPrunedBlockStore

      +
      public PostgresFullPrunedBlockStore(NetworkParameters params, + int fullStoreDepth, + String hostname, + String dbName, + String username, + String password) + throws BlockStoreException
      +
      Creates a new PostgresFullPrunedBlockStore.
      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe)
      +
      hostname - The hostname of the database to connect to
      +
      dbName - The database to connect to
      +
      username - The database username
      +
      password - The password to the database
      +
      Throws:
      +
      BlockStoreException - if the database fails to open for any reason
      +
      +
      +
    • +
    • +
      +

      PostgresFullPrunedBlockStore

      +
      public PostgresFullPrunedBlockStore(NetworkParameters params, + int fullStoreDepth, + String hostname, + String dbName, + String username, + String password, + @Nullable + String schemaName) + throws BlockStoreException
      +

      Create a new PostgresFullPrunedBlockStore, storing the tables in the schema specified. You may want to + specify a schema to avoid name collisions, or just to keep the database better organized. The schema is not + required, and if one is not provided than the default schema for the username will be used. See + the postgres schema docs for more on + schemas.

      +
      +
      Parameters:
      +
      params - A copy of the NetworkParameters used.
      +
      fullStoreDepth - The number of blocks of history stored in full (something like 1000 is pretty safe).
      +
      hostname - The hostname of the database to connect to.
      +
      dbName - The database to connect to.
      +
      username - The database username.
      +
      password - The password to the database.
      +
      schemaName - The name of the schema to put the tables in. May be null if no schema is being used.
      +
      Throws:
      +
      BlockStoreException - If the database fails to open for any reason.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/SPVBlockStore.html b/javadoc/0.16.3/org/bitcoinj/store/SPVBlockStore.html new file mode 100644 index 000000000..aec292473 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/SPVBlockStore.html @@ -0,0 +1,513 @@ + + + + +SPVBlockStore (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SPVBlockStore

+
+
java.lang.Object +
org.bitcoinj.store.SPVBlockStore
+
+
+
+
All Implemented Interfaces:
+
BlockStore
+
+
+
public class SPVBlockStore +extends Object +implements BlockStore
+
An SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer. With such a store, you + may not be able to process very deep re-orgs and could be disconnected from the chain (requiring a replay), + but as they are virtually unheard of this is not a significant risk.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/package-summary.html b/javadoc/0.16.3/org/bitcoinj/store/package-summary.html new file mode 100644 index 000000000..2c8b18199 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/package-summary.html @@ -0,0 +1,148 @@ + + + + +org.bitcoinj.store (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.store

+
+
+
package org.bitcoinj.store
+
+
Block stores persist blockchain data downloaded from remote peers. There is an SPV block store which preserves a ring + buffer of headers on disk and is suitable for lightweight user wallets, a store that's backed by Postgres and which + can calculate a full indexed UTXO set (i.e. it can query address balances), a store that's backed by the embedded H2 + database, and a memory only store useful for unit tests.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/store/package-tree.html b/javadoc/0.16.3/org/bitcoinj/store/package-tree.html new file mode 100644 index 000000000..b747d00db --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/store/package-tree.html @@ -0,0 +1,125 @@ + + + + +org.bitcoinj.store Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.store

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURI.html b/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURI.html new file mode 100644 index 000000000..082799d1d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURI.html @@ -0,0 +1,523 @@ + + + + +BitcoinURI (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BitcoinURI

+
+
java.lang.Object +
org.bitcoinj.uri.BitcoinURI
+
+
+
+
public class BitcoinURI +extends Object
+

Provides a standard implementation of a Bitcoin URI with support for the following:

+ +
    +
  • URLEncoded URIs (as passed in by IE on the command line)
  • +
  • BIP21 names (including the "req-" prefix handling requirements)
  • +
+ +

Accepted formats

+ +

The following input forms are accepted:

+ +
    +
  • bitcoin:<address>
  • +
  • bitcoin:<address>?<name1>=<value1>&<name2>=<value2> with multiple + additional name/value pairs
  • +
+ +

The name/value pairs are processed as follows.

+
    +
  1. URL encoding is stripped and treated as UTF-8
  2. +
  3. names prefixed with req- are treated as required and if unknown or conflicting cause a parse exception
  4. +
  5. Unknown names not prefixed with req- are added to a Map, accessible by parameter name
  6. +
  7. Known names not prefixed with req- are processed unless they are malformed
  8. +
+ +

The following names are known and have the following formats:

+
    +
  • amount decimal value to 8 dp (e.g. 0.12345678) Note that the + exponent notation is not supported any more
  • +
  • label any URL encoded alphanumeric
  • +
  • message any URL encoded alphanumeric
  • +
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BitcoinURI

      +
      public BitcoinURI(String uri) + throws BitcoinURIParseException
      +
      Constructs a new BitcoinURI from the given string. Can be for any network.
      +
      +
      Parameters:
      +
      uri - The raw URI data to be parsed (see class comments for accepted formats)
      +
      Throws:
      +
      BitcoinURIParseException - if the URI is not syntactically or semantically valid.
      +
      +
      +
    • +
    • +
      +

      BitcoinURI

      +
      public BitcoinURI(@Nullable + NetworkParameters params, + String input) + throws BitcoinURIParseException
      +
      Constructs a new object by trying to parse the input as a valid Bitcoin URI.
      +
      +
      Parameters:
      +
      params - The network parameters that determine which network the URI is from, or null if you don't have + any expectation about what network the URI is for and wish to check yourself.
      +
      input - The raw URI data to be parsed (see class comments for accepted formats)
      +
      Throws:
      +
      BitcoinURIParseException - If the input fails Bitcoin URI syntax and semantic checks.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getAddress

      +
      @Nullable +public Address getAddress()
      +
      The Bitcoin address from the URI, if one was present. It's possible to have Bitcoin URI's with no address if a + r= payment protocol parameter is specified, though this form is not recommended as older wallets can't understand + it.
      +
      +
    • +
    • +
      +

      getAmount

      +
      public Coin getAmount()
      +
      +
      Returns:
      +
      The amount name encoded using a pure integer value based at + 10,000,000 units is 1 BTC. May be null if no amount is specified
      +
      +
      +
    • +
    • +
      +

      getLabel

      +
      public String getLabel()
      +
      +
      Returns:
      +
      The label from the URI.
      +
      +
      +
    • +
    • +
      +

      getMessage

      +
      public String getMessage()
      +
      +
      Returns:
      +
      The message from the URI.
      +
      +
      +
    • +
    • +
      +

      getPaymentRequestUrl

      +
      public final String getPaymentRequestUrl()
      +
      +
      Returns:
      +
      The URL where a payment request (as specified in BIP 70) may + be fetched.
      +
      +
      +
    • +
    • +
      +

      getPaymentRequestUrls

      +
      public List<String> getPaymentRequestUrls()
      +
      Returns the URLs where a payment request (as specified in BIP 70) may be fetched. The first URL is the main URL, + all subsequent URLs are fallbacks.
      +
      +
    • +
    • +
      +

      getParameterByName

      +
      public Object getParameterByName(String name)
      +
      +
      Parameters:
      +
      name - The name of the parameter
      +
      Returns:
      +
      The parameter value, or null if not present
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      convertToBitcoinURI

      +
      public static String convertToBitcoinURI(Address address, + Coin amount, + String label, + String message)
      +
      Simple Bitcoin URI builder using known good fields.
      +
      +
      Parameters:
      +
      address - The Bitcoin address
      +
      amount - The amount
      +
      label - A label
      +
      message - A message
      +
      Returns:
      +
      A String containing the Bitcoin URI
      +
      +
      +
    • +
    • +
      +

      convertToBitcoinURI

      +
      public static String convertToBitcoinURI(NetworkParameters params, + String address, + @Nullable + Coin amount, + @Nullable + String label, + @Nullable + String message)
      +
      Simple Bitcoin URI builder using known good fields.
      +
      +
      Parameters:
      +
      params - The network parameters that determine which network the URI + is for.
      +
      address - The Bitcoin address
      +
      amount - The amount
      +
      label - A label
      +
      message - A message
      +
      Returns:
      +
      A String containing the Bitcoin URI
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURIParseException.html b/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURIParseException.html new file mode 100644 index 000000000..07dab11bc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/BitcoinURIParseException.html @@ -0,0 +1,168 @@ + + + + +BitcoinURIParseException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BitcoinURIParseException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.uri.BitcoinURIParseException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
OptionalFieldValidationException, RequiredFieldValidationException
+
+
+
public class BitcoinURIParseException +extends Exception
+

Exception to provide the following to BitcoinURI:

+
    +
  • Provision of parsing error messages
  • +
+

This base exception acts as a general failure mode not attributable to a specific cause (other than + that reported in the exception message). Since this is in English, it may not be worth reporting directly + to the user other than as part of a "general failure to parse" response.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BitcoinURIParseException

      +
      public BitcoinURIParseException(String s)
      +
      +
    • +
    • +
      +

      BitcoinURIParseException

      +
      public BitcoinURIParseException(String s, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/OptionalFieldValidationException.html b/javadoc/0.16.3/org/bitcoinj/uri/OptionalFieldValidationException.html new file mode 100644 index 000000000..b1777a840 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/OptionalFieldValidationException.html @@ -0,0 +1,168 @@ + + + + +OptionalFieldValidationException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class OptionalFieldValidationException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.uri.BitcoinURIParseException +
org.bitcoinj.uri.OptionalFieldValidationException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class OptionalFieldValidationException +extends BitcoinURIParseException
+

Exception to provide the following to BitcoinURI:

+
    +
  • Provision of parsing error messages
  • +
+

This exception occurs when an optional field is detected (under the Bitcoin URI scheme) and fails + to pass the associated test (such as amount not being a valid number).

+
+
Since:
+
0.3.0 +  
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      OptionalFieldValidationException

      +
      public OptionalFieldValidationException(String s)
      +
      +
    • +
    • +
      +

      OptionalFieldValidationException

      +
      public OptionalFieldValidationException(String s, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/RequiredFieldValidationException.html b/javadoc/0.16.3/org/bitcoinj/uri/RequiredFieldValidationException.html new file mode 100644 index 000000000..2a18a4a25 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/RequiredFieldValidationException.html @@ -0,0 +1,169 @@ + + + + +RequiredFieldValidationException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RequiredFieldValidationException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.uri.BitcoinURIParseException +
org.bitcoinj.uri.RequiredFieldValidationException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class RequiredFieldValidationException +extends BitcoinURIParseException
+

Exception to provide the following to BitcoinURI:

+
    +
  • Provision of parsing error messages
  • +
+

This exception occurs when a required field is detected (under the BIP21 rules) and fails + to pass the associated test (such as req-expires being out of date), or the required field is unknown + to this version of the client in which case it should fail for security reasons.

+
+
Since:
+
0.3.0 +  
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      RequiredFieldValidationException

      +
      public RequiredFieldValidationException(String s)
      +
      +
    • +
    • +
      +

      RequiredFieldValidationException

      +
      public RequiredFieldValidationException(String s, + Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/package-summary.html b/javadoc/0.16.3/org/bitcoinj/uri/package-summary.html new file mode 100644 index 000000000..dc2d1dfea --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/package-summary.html @@ -0,0 +1,106 @@ + + + + +org.bitcoinj.uri (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.uri

+
+
+
package org.bitcoinj.uri
+
+
Parsing and handling of bitcoin: textual URIs as found in qr codes and web links.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/uri/package-tree.html b/javadoc/0.16.3/org/bitcoinj/uri/package-tree.html new file mode 100644 index 000000000..5e97e70bc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/uri/package-tree.html @@ -0,0 +1,86 @@ + + + + +org.bitcoinj.uri Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.uri

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/AppDataDirectory.html b/javadoc/0.16.3/org/bitcoinj/utils/AppDataDirectory.html new file mode 100644 index 000000000..411f1448f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/AppDataDirectory.html @@ -0,0 +1,197 @@ + + + + +AppDataDirectory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AppDataDirectory

+
+
java.lang.Object +
org.bitcoinj.utils.AppDataDirectory
+
+
+
+
public class AppDataDirectory +extends Object
+
Find/create App Data Directory in correct platform-specific location. + This class is based on the conventions used in Bitcoin Core which + uses the following locations: +
+
Windows
${APPDATA}/.bitcoin
+
macOS
${HOME}/Library/Application Support/Bitcoin
+
Linux
${HOME}/.bitcoin
+
+ Note that appName is converted to lower-case on Windows and Linux/Unix.
+
+
+
    + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static Path
    +
    get(String appName)
    +
    +
    Get and create if necessary the Path to the application data directory.
    +
    +
    static Path
    +
    getPath(String appName)
    +
    +
    Return the Path to the application data directory without making + sure it exists or creating it.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AppDataDirectory

      +
      public AppDataDirectory()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      get

      +
      public static Path get(String appName)
      +
      Get and create if necessary the Path to the application data directory.
      +
      +
      Parameters:
      +
      appName - The name of the current application
      +
      Returns:
      +
      Path to the application data directory
      +
      +
      +
    • +
    • +
      +

      getPath

      +
      public static Path getPath(String appName)
      +
      Return the Path to the application data directory without making + sure it exists or creating it. (No disk I/O)
      +
      +
      Parameters:
      +
      appName - The name of the current application
      +
      Returns:
      +
      Path to the application data directory
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BaseTaggableObject.html b/javadoc/0.16.3/org/bitcoinj/utils/BaseTaggableObject.html new file mode 100644 index 000000000..810c5a9bc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BaseTaggableObject.html @@ -0,0 +1,263 @@ + + + + +BaseTaggableObject (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BaseTaggableObject

+
+
java.lang.Object +
org.bitcoinj.utils.BaseTaggableObject
+
+
+
+
All Implemented Interfaces:
+
TaggableObject
+
+
+
Direct Known Subclasses:
+
Wallet
+
+
+
public class BaseTaggableObject +extends Object +implements TaggableObject
+
A simple implementation of TaggableObject that uses a hashmap that is + synchronized on this object's Java monitor.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    protected final Map<String,com.google.protobuf.ByteString>
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    Returns the immutable byte array associated with the given tag name, or throws IllegalArgumentException + if that tag wasn't set yet.
    +
    +
    Map<String,com.google.protobuf.ByteString>
    + +
    +
    Returns a copy of all the tags held by this object.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    Returns the immutable byte array associated with the given tag name, or null if there is none.
    +
    +
    void
    +
    setTag(String tag, + com.google.protobuf.ByteString value)
    +
    +
    Associates the given immutable byte array with the string tag.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      tags

      +
      protected final Map<String,com.google.protobuf.ByteString> tags
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BaseTaggableObject

      +
      public BaseTaggableObject()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      maybeGetTag

      +
      @Nullable +public com.google.protobuf.ByteString maybeGetTag(String tag)
      +
      Description copied from interface: TaggableObject
      +
      Returns the immutable byte array associated with the given tag name, or null if there is none.
      +
      +
      Specified by:
      +
      maybeGetTag in interface TaggableObject
      +
      +
      +
    • +
    • +
      +

      getTag

      +
      public com.google.protobuf.ByteString getTag(String tag)
      +
      Description copied from interface: TaggableObject
      +
      Returns the immutable byte array associated with the given tag name, or throws IllegalArgumentException + if that tag wasn't set yet.
      +
      +
      Specified by:
      +
      getTag in interface TaggableObject
      +
      +
      +
    • +
    • +
      +

      setTag

      +
      public void setTag(String tag, + com.google.protobuf.ByteString value)
      +
      Description copied from interface: TaggableObject
      +
      Associates the given immutable byte array with the string tag. See the docs for TaggableObject to learn more.
      +
      +
      Specified by:
      +
      setTag in interface TaggableObject
      +
      +
      +
    • +
    • +
      +

      getTags

      +
      public Map<String,com.google.protobuf.ByteString> getTags()
      +
      Description copied from interface: TaggableObject
      +
      Returns a copy of all the tags held by this object.
      +
      +
      Specified by:
      +
      getTags in interface TaggableObject
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BlockFileLoader.html b/javadoc/0.16.3/org/bitcoinj/utils/BlockFileLoader.html new file mode 100644 index 000000000..271078f33 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BlockFileLoader.html @@ -0,0 +1,276 @@ + + + + +BlockFileLoader (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BlockFileLoader

+
+
java.lang.Object +
org.bitcoinj.utils.BlockFileLoader
+
+
+
+
All Implemented Interfaces:
+
Iterable<Block>, Iterator<Block>
+
+
+
public class BlockFileLoader +extends Object +implements Iterable<Block>, Iterator<Block>
+

This class reads block files stored in the Bitcoin Core format. This is simply a way to concatenate + blocks together. Importing block data with this tool can be a lot faster than syncing over the network, if you + have the files available.

+ +

In order to comply with Iterator, this class swallows a lot of IOExceptions, which may result in a few + blocks being missed followed by a huge set of orphan blocks.

+ +

To blindly import all files which can be found in Bitcoin Core (version 0.8 or higher) datadir automatically, + try this code fragment: + + BlockFileLoader loader = new BlockFileLoader(BlockFileLoader.getReferenceClientBlockFileList()); + for (Block block : loader) { + try { chain.add(block); } catch (Exception e) { } + } +

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BriefLogFormatter.html b/javadoc/0.16.3/org/bitcoinj/utils/BriefLogFormatter.html new file mode 100644 index 000000000..17fd9ce81 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BriefLogFormatter.html @@ -0,0 +1,199 @@ + + + + +BriefLogFormatter (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BriefLogFormatter

+
+
java.lang.Object +
java.util.logging.Formatter +
org.bitcoinj.utils.BriefLogFormatter
+
+
+
+
+
public class BriefLogFormatter +extends Formatter
+
A Java logging formatter that writes more compact output than the default.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BriefLogFormatter

      +
      public BriefLogFormatter()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      init

      +
      public static void init()
      +
      Configures JDK logging to use this class for everything.
      +
      +
    • +
    • +
      +

      initVerbose

      +
      public static void initVerbose()
      +
      +
    • +
    • +
      +

      initWithSilentBitcoinJ

      +
      public static void initWithSilentBitcoinJ()
      +
      +
    • +
    • +
      +

      format

      +
      public String format(LogRecord logRecord)
      +
      +
      Specified by:
      +
      format in class Formatter
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.Style.html b/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.Style.html new file mode 100644 index 000000000..f58646e6b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.Style.html @@ -0,0 +1,230 @@ + + + + +BtcAutoFormat.Style (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class BtcAutoFormat.Style

+
+
java.lang.Object +
java.lang.Enum<BtcAutoFormat.Style> +
org.bitcoinj.utils.BtcAutoFormat.Style
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<BtcAutoFormat.Style>, Constable
+
+
+
Enclosing class:
+
BtcAutoFormat
+
+
+
public static enum BtcAutoFormat.Style +extends Enum<BtcAutoFormat.Style>
+
Enum for specifying the style of currency indicators that are used + when formatting, either codes or symbols.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      CODE

      +
      public static final BtcAutoFormat.Style CODE
      +
      Constant for the formatting style that uses a currency code, e.g., "BTC".
      +
      +
    • +
    • +
      +

      SYMBOL

      +
      public static final BtcAutoFormat.Style SYMBOL
      +
      Constant for the formatting style that uses a currency symbol, e.g., "฿".
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static BtcAutoFormat.Style[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static BtcAutoFormat.Style valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.html b/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.html new file mode 100644 index 000000000..c36c4967a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BtcAutoFormat.html @@ -0,0 +1,335 @@ + + + + +BtcAutoFormat (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BtcAutoFormat

+
+
java.lang.Object +
java.text.Format +
org.bitcoinj.utils.BtcFormat +
org.bitcoinj.utils.BtcAutoFormat
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
public final class BtcAutoFormat +extends BtcFormat
+

This class, a concrete extension of BtcFormat, is distinguished by its + accommodation of multiple denominational units as follows: + +

When formatting Bitcoin monetary values, an instance of this class automatically adjusts + the denominational units in which it represents a given value so as to minimize the number + of consecutive zeros in the number that is displayed, and includes either a currency code or + symbol in the formatted value to indicate which denomination was chosen. + +

When parsing String representations of Bitcoin monetary values, instances of + this class automatically recognize units indicators consisting of currency codes and + symbols, including including those containing currency or metric prefixes such as + "¢" or "c" to indicate hundredths, and interpret each number being + parsed in accordance with the recognized denominational units. + +

A more detailed explanation, including examples, is in the documentation for the BtcFormat class, and further information beyond that is in the documentation for the Format class, from which this class descends.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BtcAutoFormat

      +
      protected BtcAutoFormat(Locale locale, + BtcAutoFormat.Style style, + int fractionPlaces)
      +
      Constructor
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      scale

      +
      protected int scale(BigInteger satoshis, + int fractionPlaces)
      +
      Calculate the appropriate denomination for the given Bitcoin monetary value. This + method takes a BigInteger representing a quantity of satoshis, and returns the + number of places that value's decimal point is to be moved when formatting said value + in order that the resulting number represents the correct quantity of denominational + units. + +

      As a side-effect, this sets the units indicators of the underlying NumberFormat object. + Only invoke this from a synchronized method, and be sure to put the DecimalFormatSymbols + back to its proper state, otherwise immutability, equals() and hashCode() fail.

      +
      +
      Specified by:
      +
      scale in class BtcFormat
      +
      Parameters:
      +
      satoshis - The number of satoshis having the value for which the shift is calculated
      +
      fractionPlaces - The number of decimal places available for displaying the + fractional part of the denominated value
      +
      Returns:
      +
      The size of the shift in increasingly-precise decimal places
      +
      +
      +
    • +
    • +
      +

      scale

      +
      protected int scale()
      +
      Returns the int value indicating coin denomination. This is what causes + the number in a parsed value that lacks a units indicator to be interpreted as a quantity + of bitcoins.
      +
      +
      Specified by:
      +
      scale in class BtcFormat
      +
      +
      +
    • +
    • +
      +

      fractionPlaces

      +
      public int fractionPlaces()
      +
      Return the number of decimal places in the fraction part of numbers formatted by this + instance. This is the maximum number of fraction places that will be displayed; + the actual number used is limited to a precision of satoshis.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      Return true if the other instance is equivalent to this one. + Formatters for different locales will never be equal, even + if they behave identically.
      +
      +
      Overrides:
      +
      equals in class BtcFormat
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Return a brief description of this formatter. The exact details of the representation + are unspecified and subject to change, but will include some representation of the + pattern and the number of fractional decimal places.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BtcFixedFormat.html b/javadoc/0.16.3/org/bitcoinj/utils/BtcFixedFormat.html new file mode 100644 index 000000000..ff10a33d9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BtcFixedFormat.html @@ -0,0 +1,437 @@ + + + + +BtcFixedFormat (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BtcFixedFormat

+
+
java.lang.Object +
java.text.Format +
org.bitcoinj.utils.BtcFormat +
org.bitcoinj.utils.BtcFixedFormat
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
public final class BtcFixedFormat +extends BtcFormat
+

This class, a concrete extension of BtcFormat, is distinguished in that each + instance formats and by-default parses all Bitcoin monetary values in units of a single + denomination that is specified at the time that instance is constructed.

+ +

By default, neither currency codes nor symbols are included in formatted values as + output, nor recognized in parsed values as input. The can be overridden by applying a + custom pattern using either the BtcFormat.Builder.localizedPattern or + BtcFormat.Builder.localizedPattern methods, as described in the documentation for + the BtcFormat.Builder class.

+ +

A more detailed explanation, including examples, is in the documentation for the + BtcFormat class, and further information beyond that is in the documentation for the + Format class, from which this class descends.

+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      REPEATING_PLACES

      +
      public static final int[] REPEATING_PLACES
      +
      A constant specifying the use of as many optional decimal places in the fraction part + of a formatted number as are useful for expressing precision. This value can be passed + as the final argument to a factory method or BtcFormat.format(Object, int, int...).
      +
      +
    • +
    • +
      +

      REPEATING_DOUBLETS

      +
      public static final int[] REPEATING_DOUBLETS
      +
      A constant specifying the use of as many optional groups of two + decimal places in the fraction part of a formatted number as are useful for expressing + precision. This value can be passed as the final argument to a factory method or + BtcFormat.format(Object, int, int...).
      +
      +
    • +
    • +
      +

      REPEATING_TRIPLETS

      +
      public static final int[] REPEATING_TRIPLETS
      +
      A constant specifying the use of as many optional groups of three + decimal places in the fraction part of a formatted number as are useful for expressing + precision. This value can be passed as the final argument to a factory method or + BtcFormat.format(Object, int, int...).
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BtcFixedFormat

      +
      protected BtcFixedFormat(Locale locale, + int scale, + int minDecimals, + List<Integer> groups)
      +
      Constructor
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      scale

      +
      protected int scale(BigInteger satoshis, + int fractionPlaces)
      +
      Return the decimal-place shift for this object's unit-denomination. For example, if + the denomination is millibitcoins, this method will return the value 3. As + a side-effect, prefixes the currency signs of the underlying NumberFormat object. This + method is invoked by the superclass when formatting. The arguments are ignored because + the denomination is fixed regardless of the value being formatted.
      +
      +
      Specified by:
      +
      scale in class BtcFormat
      +
      Parameters:
      +
      satoshis - The number of satoshis having the value for which the shift is calculated
      +
      fractionPlaces - The number of decimal places available for displaying the + fractional part of the denominated value
      +
      Returns:
      +
      The size of the shift in increasingly-precise decimal places
      +
      +
      +
    • +
    • +
      +

      scale

      +
      public int scale()
      +
      Return the decimal-place shift for this object's fixed unit-denomination. For example, if + the denomination is millibitcoins, this method will return the value 3.
      +
      +
      Specified by:
      +
      scale in class BtcFormat
      +
      +
      +
    • +
    • +
      +

      code

      +
      public String code()
      +
      Return the currency code that identifies the units in which values formatted and + (by-default) parsed by this instance are denominated. For example, if the formatter's + denomination is millibitcoins, then this method will return "mBTC", + assuming the default base currency-code is not overridden using a + BtcFormat.Builder.
      +
      +
    • +
    • +
      +

      symbol

      +
      public String symbol()
      +
      Return the currency symbol that identifies the units in which values formatted by this + instance are denominated. For example, when invoked on an instance denominated in + millibitcoins, this method by default returns "₥฿", depending on the + locale.
      +
      +
    • +
    • +
      +

      fractionPlaceGroups

      +
      public int[] fractionPlaceGroups()
      +
      Return the fractional decimal-placing used when formatting. This method returns an + int array. The value of the first element is the minimum number of + decimal places to be used in all cases, limited to a precision of satoshis. The value + of each successive element is the size of an optional place-group that will be applied, + possibly partially, if useful for expressing precision. The actual size of each group + is limited to, and may be reduced to the limit of, a precision of no smaller than + satoshis.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      Return true if the given object is equivalent to this one. Formatters for different + locales will never be equal, even if they behave identically.
      +
      +
      Overrides:
      +
      equals in class BtcFormat
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      Return a hash code value for this instance.
      +
      +
      Overrides:
      +
      hashCode in class BtcFormat
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      Returns a brief description of this formatter. The exact details of the representation + are unspecified and subject to change, but will include some representation of the + formatting/parsing pattern and the fractional decimal place grouping.
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.Builder.html b/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.Builder.html new file mode 100644 index 000000000..affb2fc20 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.Builder.html @@ -0,0 +1,373 @@ + + + + +BtcFormat.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BtcFormat.Builder

+
+
java.lang.Object +
org.bitcoinj.utils.BtcFormat.Builder
+
+
+
+
Enclosing class:
+
BtcFormat
+
+
+
public static class BtcFormat.Builder +extends Object
+

This class constructs new instances of BtcFormat, allowing for the + configuration of those instances before they are constructed. After obtaining a + Builder object from the BtcFormat.builder() method, invoke the + necessary setter methods to obtain your desired configuration. Finally, the build() method returns a new BtcFormat object that has the specified + configuration. + +

All the setter methods override defaults. Invoking build() without invoking any + of the setting methods is equivalent to invoking BtcFormat.getInstance() with no arguments. + +

Each setter methods returns the same instance on which it is invoked, + thus these methods can be chained. + +

Instances of this class are not thread-safe.

+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      style

      + +
      Specify the new BtcFormat is to be automatically-denominating. + The argument determines which of either codes or symbols the new BtcFormat + will use by default to indicate the denominations it chooses when formatting values. + +

      Note that the Style argument specifies the + default style, which is overridden by invoking + either pattern(String) or localizedPattern(String).

      +
      +
      Throws:
      +
      IllegalArgumentException - if scale(int) has + previously been invoked on this instance.
      +
      +
      +
    • +
    • +
      +

      fractionDigits

      +
      public BtcFormat.Builder fractionDigits(int val)
      +
      Specify the number of decimal places in the fraction part of formatted numbers. + This is equivalent to the minimumFractionDigits(int) method, but named + appropriately for the context of generating BtcAutoFormat instances. + +

      If neither this method nor minimumFactionDigits() is invoked, the default value + will be 2.

      +
      +
    • +
    • +
      +

      scale

      +
      public BtcFormat.Builder scale(int val)
      +
      Specify a fixed-denomination of units to use when formatting and parsing values. + The argument specifies the number of decimal places, in increasing + precision, by which each formatted value will differ from that same value + denominated in bitcoins. For example, a denomination of millibitcoins is specified + with a value of 3. + +

      The BtcFormat class provides appropriately named + int-type constants for the three common values, BtcFormat.COIN_SCALE, + BtcFormat.MILLICOIN_SCALE BtcFormat.MICROCOIN_SCALE. + +

      If neither this method nor style(BtcAutoFormat.Style) is invoked on a + BtcFormat.Builder, then the BtcFormat will default to a + fixed-denomination of bitcoins, equivalent to invoking this method with an argument + of 0.

      +
      +
    • +
    • +
      +

      minimumFractionDigits

      +
      public BtcFormat.Builder minimumFractionDigits(int val)
      +
      Specify the minimum number of decimal places in the fraction part of formatted values. + This method is equivalent to fractionDigits(int), but named appropriately for + the context of generating a fixed-denomination formatter. + +

      If neither this method nor fractionDigits() is invoked, the default value + will be 2.

      +
      +
    • +
    • +
      +

      fractionGroups

      +
      public BtcFormat.Builder fractionGroups(int... val)
      +
      Specify the sizes of a variable number of optional decimal-place groups in the + fraction part of formatted values. A group of each specified size will be used in + addition to all previously applied decimal places only if doing so is useful for + expressing precision. The size of each group is limited to a maximum precision of + satoshis. + +

      If this method is not invoked, then the number of fractional decimal places will + be limited to the value passed to minimumFractionDigits, or 2 + if that method is not invoked.

      +
      +
    • +
    • +
      +

      locale

      +
      public BtcFormat.Builder locale(Locale val)
      +
      Specify the Locale for formatting and parsing. + If this method is not invoked, then the runtime default locale will be used.
      +
      +
    • +
    • +
      +

      symbol

      +
      public BtcFormat.Builder symbol(String val)
      +
      Specify a currency symbol to be used in the denomination-unit indicators + of formatted values. This method only sets the symbol, but does not cause + it to be used. You must also invoke either style(SYMBOL), or else apply + a custom pattern that includes a single currency-sign character by invoking either + pattern(String) or localizedPattern(String). + +

      Specify only the base symbol. The appropriate prefix will be applied according + to the denomination of formatted and parsed values.

      +
      +
    • +
    • +
      +

      code

      +
      public BtcFormat.Builder code(String val)
      +
      Specify a custom currency code to be used in the denomination-unit indicators + of formatted values. This method only sets the code, but does not cause + it to be used. You must also invoke either style(CODE), or else apply + a custom pattern that includes a double currency-sign character by invoking either + pattern(String) or localizedPattern(String). + +

      Specify only the base code. The appropriate prefix will be applied according + to the denomination of formatted and parsed values.

      +
      +
    • +
    • +
      +

      pattern

      +
      public BtcFormat.Builder pattern(String val)
      +
      Use the given pattern when formatting and parsing. The format of this pattern is + identical to that used by the DecimalFormat class. + +

      If the pattern lacks a negative subpattern, then the formatter will indicate + negative values by placing a minus sign immediately preceding the number part of + formatted values. + +

      Note that while the pattern format specified by the DecimalFormat class includes a mechanism for setting the number of + fractional decimal places, that part of the pattern is ignored. Instead, use the + fractionDigits(int), minimumFractionDigits(int) and fractionGroups(int...) methods. + +

      Warning: if you set a pattern that includes a currency-sign for a + fixed-denomination formatter that uses a non-standard scale, then an exception will + be raised when you try to format a value. The standard scales include all for + which a metric prefix exists from micro to mega. + +

      Note that by applying a pattern you override the configured formatting style of + BtcAutoFormat instances.

      +
      +
    • +
    • +
      +

      localizedPattern

      +
      public BtcFormat.Builder localizedPattern(String val)
      +
      Use the given localized-pattern for formatting and parsing. The format of this + pattern is identical to the patterns used by the DecimalFormat + class. + +

      The pattern is localized according to the locale of the BtcFormat + instance, the symbols for which can be examined by inspecting the DecimalFormatSymbols object returned by BtcFormat.symbols(). + So, for example, if you are in Germany, then the non-localized pattern of +

      "#,##0.###"
      would be localized as
      "#.##0,###"
      + +

      If the pattern lacks a negative subpattern, then the formatter will indicate + negative values by placing a minus sign immediately preceding the number part of + formatted values. + +

      Note that while the pattern format specified by the DecimalFormat class includes a mechanism for setting the number of + fractional decimal places, that part of the pattern is ignored. Instead, use the + fractionDigits(int), minimumFractionDigits(int) and fractionGroups(int...) methods. + +

      Warning: if you set a pattern that includes a currency-sign for a + fixed-denomination formatter that uses a non-standard scale, then an exception will + be raised when you try to format a value. The standard scales include all for + which a metric prefix exists from micro to mega. + +

      Note that by applying a pattern you override the configured formatting style of + BtcAutoFormat instances.

      +
      +
    • +
    • +
      +

      build

      +
      public BtcFormat build()
      +
      Return a new BtcFormat instance. The object returned will be configured according + to the state of this Builder instance at the time this method is invoked.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.html b/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.html new file mode 100644 index 000000000..ada4ffe8b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/BtcFormat.html @@ -0,0 +1,1773 @@ + + + + +BtcFormat (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BtcFormat

+
+
java.lang.Object +
java.text.Format +
org.bitcoinj.utils.BtcFormat
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Cloneable
+
+
+
Direct Known Subclasses:
+
BtcAutoFormat, BtcFixedFormat
+
+
+
public abstract class BtcFormat +extends Format
+

Instances of this class format and parse locale-specific numerical + representations of Bitcoin monetary values.

+ +

A primary goal of this class is to minimize the danger of + human-misreading of monetary values due to mis-counting the number + of zeros (or, more generally, of decimal places) in the number that + represents a Bitcoin monetary value. Some of the features offered for doing this + are:

+ +
    +
  1. automatic adjustment of denominational units in which a + value is represented so as to lessen the number of adjacent zeros, +
  2. use of locale-specific decimal-separators to group digits in + the integer portion of formatted numbers, +
  3. fine control over the number and grouping of fractional decimal places, and +
  4. access to character information that allows for vertical + alignment of tabular columns of formatted values.
+ +

Basic Usage

+ +

Basic usage is very simple:

+ +
    +
  1. Construct a new formatter object using one of the factory methods. +
  2. Format a value by passing it as an argument to the + Format.format(Object) method. +
  3. Parse a value by passing a String-type + representation of it to the parse(String) method.
+ +

For example, depending on your locale, values might be formatted + and parsed as follows:

+ +
+ BtcFormat f = BtcFormat.getInstance();
+ String c = f.format(Coin.COIN);                // "BTC 1.00"
+ String k = f.format(Coin.COIN.multiply(1000)); // "BTC 1,000.00"
+ String m = f.format(Coin.COIN.divide(1000));   // "mBTC 1.00"
+ Coin all = f.parseObject("M฿ 21");             // All the money in the world
+ 
+ +

Auto-Denomination versus Fixed-Denomination

+ +

There are two provided concrete classes, one that automatically denominates values to + be formatted, BtcAutoFormat, and another that formats any value in units of a + fixed, specified denomination, BtcFixedFormat.

+ +

Automatic Denomination

+ +

Automatic denomination means that the formatter adjusts the denominational units in which a + formatted number is expressed based on the monetary value that number represents. An + auto-denominating formatter is defined by its style, specified by one of the enumerated + values of BtcAutoFormat.Style. There are two styles constants: BtcAutoFormat.Style.CODE (the default), and BtcAutoFormat.Style.SYMBOL. The + difference is that the CODE style uses an internationally-distinct currency + code, such as "BTC", to indicate the units of denomination, while the + SYMBOL style uses a possibly-ambiguous currency symbol such as + "฿".

+ +

The denomination used when formatting will be either bitcoin, millicoin + or microcoin, depending on the value being represented, chosen so as to minimize the number + of consecutive zeros displayed without losing precision. For example, depending on the + locale, a value of one bitcoin might be formatted as ฿1.00 where a value + exceeding that by one satoshi would be µ฿1,000,000.01

+ +

Fixed Denomination

+ +

Fixed denomination means that the same denomination of units is used for every value that is + formatted or parsed by a given formatter instance. A fixed-denomination formatter is + defined by its scale, which is the number of places one must shift the decimal point in + increasing precision to convert the representation of a given quantity of bitcoins into a + representation of the same value denominated in the formatter's units. For example, a scale + value of 3 specifies a denomination of millibitcoins, because to represent + 1.0000 BTC, or one bitcoin, in millibitcoins, one shifts the decimal point + three places, that is, to 1000.0 mBTC.

+ +

Construction

+ +

There are two ways to obtain an instance of this class:

+ +
    +
  1. Use one of the factory methods; or +
  2. Use a BtcFormat.Builder object.
+ +

The factory methods are appropriate for basic use where the default + configuration is either used or modified. The BtcFormat.Builder + class provides more control over the configuration, and gives + access to some features not available through the factory methods, + such as using custom formatting patterns and currency symbols.

+ +

Factory Methods

+ +

Although formatting and parsing is performed by one of the concrete + subclasses, you can obtain formatters using the various static factory + methods of this abstract base class BtcFormat. There + are a variety of overloaded methods that allow you to obtain a + formatter that behaves according to your needs.

+ +

The primary distinction is between automatic- and + fixed-denomination formatters. By default, the + getInstance() method with no arguments returns a new, + automatic-denominating BtcAutoFormat instance for your + default locale that will display exactly two fractional decimal + places and a currency code. For example, if you happen to be in + the USA:

+ +
+ BtcFormat f = BtcFormat.getInstance();
+ String s = f.format(Coin.COIN); // "BTC 1.00"
+ 
+ +

The first argument to getInstance() can determine + whether you get an auto- or fixed-denominating formatter. If the + type of the first argument is an int, then the value + of that int will be interpreted as the decimal-place scale of + the BtcFixedFormat instance that is returned, and thus will + determine its denomination. For example, if you want to format + values in units of microbitcoins:

+ +
BtcFormat m = BtcFormat.getInstance(6);
+ String s = m.format(Coin.COIN); // "1,000,000.00"
+ 
+ +

This class provides several constants bound to common scale values:

+ +
BtcFormat milliFormat = BtcFormat.getInstance(MILLICOIN_SCALE);
+ +

Alternatively, if the type of the first argument to + getInstance() is one of the enumerated values of the + BtcAutoFormat.Style type, either BtcAutoFormat.Style.CODE or + BtcAutoFormat.Style.SYMBOL, then you will get a BtcAutoFormat + instance that uses either a currency code or symbol, respectively, + to indicate the results of its auto-denomination.

+ +
+ BtcFormat s = BtcFormat.getInstance(SYMBOL);
+ Coin value = Coin.parseCoin("0.1234");
+ String mil = s.format(value);              // "₥฿123.40"
+ String mic = s.format(value.divide(1000)); // "µ฿123.40"
+ 
+ +

An alternative way to specify whether you want an auto- or fixed-denomination formatter + is to use one of the factory methods that is named to indicate that characteristics of the + new instance returned. For fixed-denomination formatters, these methods are getCoinInstance(), getMilliInstance(), and getMicroInstance(). These + three methods are equivalent to invoking getInstance() with a first argument of + 0, 3 and 6, respectively. For auto-denominating + formatters the relevant factory methods are getCodeInstance() and getSymbolInstance(), which are equivalent to getInstance(Style.CODE), and + getInstance(Style.SYMBOL).

+ +

Regardless of how you specify whether your new formatter is to be of automatic- or + fixed-denomination, the next (and possibly first) parameter to each of the factory methods + is an optional Locale value.

+ +

For example, here we construct four instances for the same locale that each format + differently the same one-bitcoin value:

+ +
+ // Next line returns "1,00 BTC"
+ BtcFormat.getInstance(Locale.GERMANY).format(Coin.COIN);
+ // Next line returns "1,00 ฿"
+ BtcFormat.getInstance(SYMBOL, Locale.GERMANY).format(Coin.COIN);
+ // Next line returns "1.000,00"
+ BtcFormat.getMilliInstance(Locale.GERMANY).format(Coin.COIN);
+ // Next line returns "10.000,00"
+ BtcFormat.getInstance(4, Locale.GERMANY).format(Coin.COIN);
+ 
+ +

Omitting such a Locale parameter will give you a + formatter for your default locale.

+ +

The final (and possibly only) arguments to the factory methods serve to set the default + number of fractional decimal places that will be displayed when formatting monetary values. + In the case of an auto-denominating formatter, this can be a single int value, + which will determine the number of fractional decimal places to be used in all cases, except + where either (1) doing so would provide a place for fractional satoshis, or (2) that default + value is overridden when invoking the format() method as described below.

+ +

In the case of a fixed-denomination formatter, you can pass any number of + int values. The first will determine the minimum number of fractional decimal + places, and each following int value specifies the size of an optional group of + decimal-places to be displayed only if useful for expressing precision. As with auto-denominating + formatters, numbers will never be formatted with a decimal place that represents a + fractional quantity of satoshis, and these defaults can be overridden by arguments to the + format() method. See below for examples.

+ +

The BtcFormat.Builder Class

+ +

A new BtcFormat.Builder instance is returned by the builder() method. Such + an object has methods that set the configuration parameters of a BtcFormat + object. Its BtcFormat.Builder.build() method constructs and returns a BtcFormat instance + configured according to those settings.

+ +

In addition to setter-methods that correspond to the factory-method parameters explained + above, a BtcFormat.Builder also allows you to specify custom formatting and parsing + patterns and currency symbols and codes. For example, rather than using the default + currency symbol, which has the same unicode character point as the national currency symbol of + Thailand, some people prefer to use a capital letter "B" with a vertical overstrike.

+ +
+ BtcFormat.Builder builder = BtcFormat.builder();
+ builder.style(SYMBOL);
+ builder.symbol("B\u20e6"); // unicode char "double vertical stroke overlay"
+ BtcFormat f = builder.build();
+ String out = f.format(COIN); // "B⃦1.00" depending on locale
+ 
+ + The BtcFormat.Builder methods are chainable. So, for example, if you are + deferential to ISO 4217, you might construct a formatter in a single line this way: + +
+ BtcFormat f = BtcFormat.builder().style(CODE).code("XBT").build();
+ String out = f.format(COIN); // "XBT 1.00"
+ 
+ +

See the documentation of the BtcFormat.Builder class for details.

+ +

Formatting

+ +

You format a Bitcoin monetary value by passing it to the Format.format(Object) + method. This argument can be either a Coin-type object or a + numerical object such as Long or BigDecimal. + Integer-based types such as BigInteger are interpreted as representing a + number of satoshis, while a BigDecimal is interpreted as representing a + number of bitcoins. A value having a fractional amount of satoshis is rounded to the + nearest whole satoshi at least, and possibly to a greater unit depending on the number of + fractional decimal-places displayed. The format() method will not accept an + argument whose type is String, Float nor Double.

+ +

Subsequent to the monetary value to be formatted, the Format.format(Object) method also + accepts as arguments optional int values that specify the number of decimal + places to use to represent the fractional portion of the number. This overrides the + default, and enables a single formatter instance to be reused, formatting different values + that require different numbers of fractional decimal places. These parameters have the same + meaning as those that set the default values in the factory methods as described above. + Namely, a single int value determines the minimum number of fractional decimal + places that will be used in all cases, to a precision limit of satoshis. Instances of + BtcFixedFormat also accept a variable-length sequence of additional int + values, each of which specifies the size of a group of fractional decimal-places to be used + in addition to all preceding places, only if useful to express precision, and only to a + maximum precision of satoshis. For example:

+ +
+ BtcFormat f = BtcFormat.getCoinInstance();
+ Coin value = COIN.add(Coin.valueOf(5)); // 100000005 satoshis
+ f.format(value, 2);       // "1.00"
+ f.format(value, 3);       // "1.000"
+ f.format(value, 2, 3);    // "1.00" three more zeros doesn't help 
+ f.format(value, 2, 3, 3); // "1.00000005" 
+ f.format(value, 2, 3, 4); // "1.00000005" fractions of satoshis have no place
+ f.format(value, 2, 3, 2); // "1.0000001" rounds to nearest usable place
+ 
+ +

Note that if using all the fractional decimal places in a specified group would give a + place to fractions of satoshis, then the size of that group will be reduced to a maximum + precision of satoshis. Either all or none of the allowed decimal places of that group will + still be applied as doing so is useful for expressing the precision of the value being + formatted.

+ +

Several convenient constants of repeating group-size sequences are provided: + BtcFixedFormat.REPEATING_PLACES, BtcFixedFormat.REPEATING_DOUBLETS and BtcFixedFormat.REPEATING_TRIPLETS. These signify repeating groups + of one, two and three decimals places, respectively. For example, + to display only as many fractional places as useful in order to + prevent hanging zeros on the least-significant end of formatted + numbers:

+ +
+ format(value, 0, REPEATING_PLACES);
+ 
+ +

When using an automatically-denominating formatter, you might + want to know what denomination was chosen. You can get the + currency-units indicator, as well as any other field in the + formatted output, by using a FieldPosition instance + constructed using an appropriate constant from the NumberFormat.Field class:

+ +
+ BtcFormat de = BtcFormat.getInstance(Locale.GERMANY);
+ FieldPosition currField = new FieldPosition(NumberFormat.Field.CURRENCY);
+ // next line formats the value as "987.654.321,23 µBTC"
+ String output = de.format(valueOf(98765432123L), new StringBuffer(), currField);
+ // next line sets variable currencyCode to "µBTC"
+ String currencyCode = output.substring(currField.getBeginIndex(), currField.getEndIndex()));
+ 
+ +

When using a fixed-denomination formatter whose scale can be expressed as a standard + "metric" prefix, you can invoke the code() and symbol() methods to + obtain a String whose value is the appropriate currency code or symbol, + respectively, for that formatter.

+ +
+ BtcFixedFormat kilo = (BtcFixedFormat)BtcFormat(-3); // scale -3 for kilocoins
+ Coin value = Coin.parseCoin("1230");
+ // variable coded will be set to "kBTC 1.23"
+ String coded = kilo.code() + " " + kilo.format(value);
+ // variable symbolic will be set to "k฿1.23"
+ String symbolic = kilo.symbol() + kilo.format(value);
+ BtcFormat(4).code(); // unnamed denomination has no code; raises exception
+ 
+ +

Formatting for Tabular Columns

+ +

When displaying tables of monetary values, you can lessen the + risk of human misreading-error by vertically aligning the decimal + separator of those values. This example demonstrates one way to do that:

+ +
+ // The elements of this array are the values we will format:
+ Coin[] rows = {MAX_MONEY, MAX_MONEY.subtract(SATOSHI), Coin.parseCoin("1234"),
+                COIN, COIN.divide(1000),
+                valueOf(10000), valueOf(1000), valueOf(100),
+                SATOSHI};
+ BtcFormat f = BtcFormat.getCoinInstance(2, REPEATING_PLACES);
+ FieldPosition fp = new FieldPosition(DECIMAL_SEPARATOR); // see java.text.NumberFormat.Field
+ String[] output = new String[rows.length];
+ int[] indexes = new int[rows.length];
+ int maxIndex = 0;
+ for (int i = 0; i < rows.length; i++) {
+     output[i] = f.format(rows[i], new StringBuffer(), fp).toString();
+     indexes[i] = fp.getBeginIndex();
+     if (indexes[i] > maxIndex) maxIndex = indexes[i];
+ }
+ for (int i = 0; i < output.length; i++) {
+     System.out.println(repeat(" ", (maxIndex - indexes[i])) + output[i]);
+ }
+ 
+ + Assuming you are using a monospaced font, and depending on your + locale, the foregoing will print the following: + +
+ 21,000,000.00
+ 20,999,999.99999999
+      1,234.00
+          1.00
+          0.001
+          0.0001
+          0.00001
+          0.000001
+          0.00000001
+ 
+ +

If you need to vertically-align columns printed in a proportional font, + then see the documentation for the NumberFormat class + for an explanation of how to do that.

+ +

Parsing

+ +

The parse(String) method accepts a String argument, and returns a + Coin-type value. The difference in parsing behavior between instances of BtcFixedFormat and BtcAutoFormat is analogous to the difference in formatting + behavior between instances of those classes. Instances of BtcAutoFormat recognize + currency codes and symbols in the String being parsed, and interpret them as + indicators of the units in which the number being parsed is denominated. On the other hand, + instances of BtcFixedFormat by default recognize no codes nor symbols, but rather + interpret every number as being denominated in the units that were specified when + constructing the instance doing the parsing. This default behavior of BtcFixedFormat can be overridden by setting a parsing pattern that includes a currency sign + using the pattern() method.

+ +

The parse(String) method of BtcAutoFormat (and of + BtcAutoFormat configured with applicable non-default pattern) will recognize a + variety of currency symbols and codes, including all standard international (metric) + prefixes from micro to mega. For example, denominational units of microcoins may be + specified by µ฿, u฿, µB⃦, µɃ, + µBTC or other appropriate permutations of those characters. Additionally, if + either or both of a custom currency code or symbol is configured using BtcFormat.Builder.code or BtcFormat.Builder.code, then such code or symbol will + be recognized in addition to those recognized by default.

+ +

Instances of this class that recognize currency signs will recognize both currency + symbols and codes, regardless of which that instance uses for formatting. However, if the + style is CODE (and unless overridden by a custom pattern) then a space character must + separate the units indicator from the number. When parsing with a SYMBOL-style + BtcFormat instance, on the other hand, whether or not the units indicator must + be separated by a space from the number is determined by the locale. The pattern() method returns a representation of the pattern that + can be examined to determine whether a space must separate currency signs from numbers in + parsed Strings.

+ +

When parsing, if the currency-units indicator is absent, then a BtcAutoFormat + instance will infer a denomination of bitcoins while a BtcFixedFormat will infer the + denomination in which it expresses formatted values. Note: by default (unless overridden by + a custom pattern), if the locale or style requires a space to separate the number from the + units indicator, that space must be present in the String to be parsed, even if the units + indicator is absent.

+ +

The parse() method returns an instance of the + Coin class. Therefore, attempting to parse a value greater + than the maximum that a Coin object can represent will + raise a ParseException, as will any other detected + parsing error.

+ +

Limitations

+ +

Parsing

+ +

Parsing is performed by an underlying NumberFormat object. While this + delivers the benefit of recognizing locale-specific patterns, some have criticized other + aspects of its behavior. For example, see this article by Joe Sam + Shirah. In particular, explicit positive-signs are not recognized. If you are parsing + input from end-users, then you should consider whether you would benefit from any of the + work-arounds mentioned in that article.

+ +

Exotic Locales

+ +

This class is not well-tested in locales that use non-ascii + character sets, especially those where writing proceeds from + right-to-left. Helpful feedback in that regard is appreciated.

+ +

Thread-Safety

+ +

Instances of this class are immutable.

+
+
See Also:
+
+ +
+
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static class 
    + +
    +
    This class constructs new instances of BtcFormat, allowing for the + configuration of those instances before they are constructed.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class java.text.Format

    +Format.Field
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
    +
    A constant useful for specifying a denomination of bitcoins, the int value + 0.
    +
    +
    protected static final String
    + +
    +
    An alternative currency symbol to use in locales where the default symbol is used for the national currency.
    +
    +
    protected final List<Integer>
    + +
     
    +
    static final int
    + +
    +
    A constant useful for specifying a denomination of microbitcoins, the int + value 6.
    +
    +
    static final int
    + +
    +
    A constant useful for specifying a denomination of millibitcoins, the int + value 3.
    +
    +
    protected final int
    + +
     
    +
    protected final DecimalFormat
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Modifier
    +
    Constructor
    +
    Description
    +
    protected
    +
    BtcFormat(DecimalFormat numberFormat, + int minDecimals, + List<Integer> groups)
    +
    +
    This single constructor is invoked by the overriding subclass constructors.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Return a new BtcFormat.Builder object.
    +
    + + +
    +
    Return the unprefixed international currency code for bitcoins configured for this + object.
    +
    + + +
    +
    Return the unprefixed currency symbol for bitcoins configured for this object.
    +
    +
    boolean
    + +
    +
    Return true if the given object is equivalent to this one.
    +
    + +
    format(Object qty, + int minDecimals, + int... fractionGroups)
    +
    +
    Formats a bitcoin value as a number and possibly a units indicator to a + String.The type of monetary value argument can be any one of any of the + following classes: Coin, Integer, Long, + BigInteger, BigDecimal.
    +
    + +
    format(Object qty, + StringBuffer toAppendTo, + FieldPosition pos)
    +
    +
    Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer.
    +
    + +
    format(Object qty, + StringBuffer toAppendTo, + FieldPosition pos, + int minDecimals, + int... fractionGroups)
    +
    +
    Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer.
    +
    + + +
    +
    Formats a bitcoin monetary value and returns an AttributedCharacterIterator.
    +
    +
    static Locale[]
    + +
    +
    Return an array of all locales for which the getInstance() method of this class can + return localized instances.
    +
    +
    static BtcFormat
    + +
    +
    Return a new auto-denominating instance that will indicate units using a currency + code, for example, "BTC".
    +
    +
    static BtcFormat
    +
    getCodeInstance(int minDecimals)
    +
    +
    Return a new code-style auto-formatter with the given number of fractional decimal + places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new code-style auto-formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getCodeInstance(Locale locale, + int minDecimals)
    +
    +
    Return a new code-style auto-formatter for the given locale with the given number of + fraction places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new coin-denominated formatter.
    +
    +
    static BtcFormat
    +
    getCoinInstance(int minFractionPlaces, + int... groups)
    +
    +
    Return a new coin-denominated formatter with the specified fraction-places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new coin-denominated formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getCoinInstance(Locale locale, + int scale, + int... groups)
    +
    +
    Return a newly-constructed instance for the given locale that will format + values in terms of bitcoins, with the given minimum number of fractional + decimal places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new instance of this class using all defaults.
    +
    +
    static BtcFormat
    +
    getInstance(int scale)
    +
    +
    Return a new fixed-denomination formatter.
    +
    +
    static BtcFormat
    +
    getInstance(int scale, + int minDecimals, + int... groups)
    +
    +
    Return a new fixed-denomination formatter with the specified fractional decimal + placing.
    +
    +
    static BtcFormat
    +
    getInstance(int scale, + Locale locale)
    +
    +
    Return a new fixed-denomination formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getInstance(int scale, + Locale locale, + int minDecimals, + int... groups)
    +
    +
    Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing.
    +
    +
    static BtcFormat
    +
    getInstance(int scale, + Locale locale, + int minDecimals, + List<Integer> groups)
    +
    +
    Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing.
    +
    +
    static BtcFormat
    + +
    +
    Return a new code-style auto-formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getInstance(Locale locale, + int minDecimals)
    +
    +
    Return a new code-style auto-formatter for the given locale with the given number of + fraction places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new auto-denominating formatter.
    +
    +
    static BtcFormat
    +
    getInstance(BtcAutoFormat.Style style, + int fractionPlaces)
    +
    +
    Return a new auto-denominating formatter with the given number of fractional decimal + places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new auto-formatter with the given style for the given locale.
    +
    +
    static BtcFormat
    +
    getInstance(BtcAutoFormat.Style style, + Locale locale, + int fractionPlaces)
    +
    +
    Return a new auto-formatter for the given locale with the given number of fraction places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new microcoin-denominated formatter for the default locale.
    +
    +
    static BtcFormat
    +
    getMicroInstance(int scale, + int... groups)
    +
    +
    Return a new microcoin-denominated formatter with the specified fractional decimal + placing.
    +
    +
    static BtcFormat
    + +
    +
    Return a new microcoin-denominated formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getMicroInstance(Locale locale, + int scale, + int... groups)
    +
    +
    Return a new microcoin-denominated formatter for the given locale with the specified + fractional decimal placing.
    +
    +
    static BtcFormat
    + +
    +
    Return a new millicoin-denominated formatter.
    +
    +
    static BtcFormat
    +
    getMilliInstance(int scale, + int... groups)
    +
    +
    Return a new millicoin-denominated formatter with the specified fractional decimal + placing.
    +
    +
    static BtcFormat
    + +
    +
    Return a new millicoin-denominated formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getMilliInstance(Locale locale, + int scale, + int... groups)
    +
    +
    Return a new millicoin-denominated formatter for the given locale with the specified + fractional decimal placing.
    +
    +
    static BtcFormat
    + +
    +
    Return a new auto-denominating instance that will indicate units using a currency + symbol, for example, "฿".
    +
    +
    static BtcFormat
    +
    getSymbolInstance(int fractionPlaces)
    +
    +
    Return a new symbol-style auto-formatter with the given number of fractional decimal + places.
    +
    +
    static BtcFormat
    + +
    +
    Return a new symbol-style auto-formatter for the given locale.
    +
    +
    static BtcFormat
    +
    getSymbolInstance(Locale locale, + int fractionPlaces)
    +
    +
    Return a new symbol-style auto-formatter for the given locale with the given number of + fraction places.
    +
    +
    int
    + +
    +
    Return a hash code value for this instance.
    +
    +
    protected static String
    +
    negify(String pattern)
    +
    +
    Guarantee a formatting pattern has a subpattern for negative values.
    +
    + +
    parse(String source)
    +
    +
    Parse a String representation of a Bitcoin monetary value.
    +
    + +
    parse(String source, + ParsePosition pos)
    +
    +
    Parse a String representation of a Bitcoin monetary value.
    +
    +
    final Object
    + +
    +
    Parse a String representation of a Bitcoin monetary value.
    +
    + + +
    +
    Return a representation of the pattern used by this instance for formatting and + parsing.
    +
    +
    protected static String
    +
    prefixCode(String code, + int scale)
    +
    +
    END OF PARSING STUFF
    +
    +
    protected static String
    +
    prefixSymbol(String symbol, + int scale)
    +
     
    +
    protected static void
    +
    prefixUnitsIndicator(DecimalFormat numberFormat, + int scale)
    +
    +
    Set both the currency symbol and code of the underlying, mutable NumberFormat object + according to the given denominational units scale factor.
    +
    +
    protected abstract int
    + +
    +
    Return the denomination of this object.
    +
    +
    protected abstract int
    +
    scale(BigInteger satoshis, + int fractionPlaces)
    +
    +
    Return the denomination for formatting the given value.
    +
    + + +
    +
    Return a copy of the localized symbols used by this instance for formatting and parsing.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.text.Format

    +clone, format, parseObject
    +
    +

    Methods inherited from class java.lang.Object

    +finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      COIN_SYMBOL_ALT

      +
      protected static final String COIN_SYMBOL_ALT
      +
      An alternative currency symbol to use in locales where the default symbol is used for the national currency.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      numberFormat

      +
      protected final DecimalFormat numberFormat
      +
      +
    • +
    • +
      +

      minimumFractionDigits

      +
      protected final int minimumFractionDigits
      +
      +
    • +
    • +
      +

      decimalGroups

      +
      protected final List<Integer> decimalGroups
      +
      +
    • +
    • +
      +

      COIN_SCALE

      +
      public static final int COIN_SCALE
      +
      A constant useful for specifying a denomination of bitcoins, the int value + 0.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MILLICOIN_SCALE

      +
      public static final int MILLICOIN_SCALE
      +
      A constant useful for specifying a denomination of millibitcoins, the int + value 3.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MICROCOIN_SCALE

      +
      public static final int MICROCOIN_SCALE
      +
      A constant useful for specifying a denomination of microbitcoins, the int + value 6.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BtcFormat

      +
      protected BtcFormat(DecimalFormat numberFormat, + int minDecimals, + List<Integer> groups)
      +
      This single constructor is invoked by the overriding subclass constructors.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      builder

      +
      public static BtcFormat.Builder builder()
      +
      Return a new BtcFormat.Builder object. See the documentation of that class for usage details.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance()
      +
      Return a new instance of this class using all defaults. The returned formatter will + auto-denominate values so as to minimize zeros without loss of precision and display a + currency code, for example "BTC", to indicate that denomination. The + returned object will uses the default locale for formatting the number and placement of + the currency-code. Two fractional decimal places will be displayed in all formatted numbers.
      +
      +
    • +
    • +
      +

      getSymbolInstance

      +
      public static BtcFormat getSymbolInstance()
      +
      Return a new auto-denominating instance that will indicate units using a currency + symbol, for example, "฿". Formatting and parsing will be done + according to the default locale.
      +
      +
    • +
    • +
      +

      getCodeInstance

      +
      public static BtcFormat getCodeInstance()
      +
      Return a new auto-denominating instance that will indicate units using a currency + code, for example, "BTC". Formatting and parsing will be done + according to the default locale.
      +
      +
    • +
    • +
      +

      getSymbolInstance

      +
      public static BtcFormat getSymbolInstance(int fractionPlaces)
      +
      Return a new symbol-style auto-formatter with the given number of fractional decimal + places. Denominational units will be indicated using a currency symbol, for example, + "฿". The returned object will format the fraction-part of numbers using + the given number of decimal places, or fewer as necessary to avoid giving a place to + fractional satoshis. Formatting and parsing will be done according to the default + locale.
      +
      +
    • +
    • +
      +

      getCodeInstance

      +
      public static BtcFormat getCodeInstance(int minDecimals)
      +
      Return a new code-style auto-formatter with the given number of fractional decimal + places. Denominational units will be indicated using a currency code, for example, + "BTC". The returned object will format the fraction-part of numbers using + the given number of decimal places, or fewer as necessary to avoid giving a place to + fractional satoshis. Formatting and parsing will be done according to the default + locale.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(Locale locale)
      +
      Return a new code-style auto-formatter for the given locale. The returned object will + select denominational units based on each value being formatted, and will indicate those + units using a currency code, for example, "mBTC".
      +
      +
    • +
    • +
      +

      getCodeInstance

      +
      public static BtcFormat getCodeInstance(Locale locale)
      +
      Return a new code-style auto-formatter for the given locale. The returned object will + select denominational units based on each value being formatted, and will indicate those + units using a currency code, for example, "mBTC".
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(Locale locale, + int minDecimals)
      +
      Return a new code-style auto-formatter for the given locale with the given number of + fraction places. The returned object will select denominational units based on each + value being formatted, and will indicate those units using a currency code, for example, + "mBTC". The returned object will format the fraction-part of numbers using + the given number of decimal places, or fewer as necessary to avoid giving a place to + fractional satoshis.
      +
      +
    • +
    • +
      +

      getCodeInstance

      +
      public static BtcFormat getCodeInstance(Locale locale, + int minDecimals)
      +
      Return a new code-style auto-formatter for the given locale with the given number of + fraction places. The returned object will select denominational units based on each + value being formatted, and will indicate those units using a currency code, for example, + "mBTC". The returned object will format the fraction-part of numbers using + the given number of decimal places, or fewer as necessary to avoid giving a place to + fractional satoshis.
      +
      +
    • +
    • +
      +

      getSymbolInstance

      +
      public static BtcFormat getSymbolInstance(Locale locale)
      +
      Return a new symbol-style auto-formatter for the given locale. The returned object will + select denominational units based on each value being formatted, and will indicate those + units using a currency symbol, for example, "µ฿".
      +
      +
    • +
    • +
      +

      getSymbolInstance

      +
      public static BtcFormat getSymbolInstance(Locale locale, + int fractionPlaces)
      +
      Return a new symbol-style auto-formatter for the given locale with the given number of + fraction places. The returned object will select denominational units based on each + value being formatted, and will indicate those units using a currency symbol, for example, + "µ฿". The returned object will format the fraction-part of numbers using + the given number of decimal places, or fewer as necessary to avoid giving a place to + fractional satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(BtcAutoFormat.Style style)
      +
      Return a new auto-denominating formatter. The returned object will indicate the + denominational units of formatted values using either a currency symbol, such as, + "฿", or code, such as "mBTC", depending on the value of + the argument. Formatting and parsing will be done according to the default locale.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(BtcAutoFormat.Style style, + int fractionPlaces)
      +
      Return a new auto-denominating formatter with the given number of fractional decimal + places. The returned object will indicate the denominational units of formatted values + using either a currency symbol, such as, "฿", or code, such as + "mBTC", depending on the value of the first argument. The returned object + will format the fraction-part of numbers using the given number of decimal places, or + fewer as necessary to avoid giving a place to fractional satoshis. Formatting and + parsing will be done according to the default locale.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(BtcAutoFormat.Style style, + Locale locale)
      +
      Return a new auto-formatter with the given style for the given locale. + The returned object that will auto-denominate each formatted value, and + will indicate that denomination using either a currency code, such as + "BTC", or symbol, such as "฿", depending on the value + of the first argument. +

      The number of fractional decimal places in formatted number will be two, or fewer + as necessary to avoid giving a place to fractional satoshis.

      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(BtcAutoFormat.Style style, + Locale locale, + int fractionPlaces)
      +
      Return a new auto-formatter for the given locale with the given number of fraction places. + The returned object will automatically-denominate each formatted + value, and will indicate that denomination using either a currency code, + such as "mBTC", or symbol, such as "฿", + according to the given style argument. It will format each number + according to the given locale. + +

      The third parameter is the number of fractional decimal places to use for each + formatted number, reduced as necessary when formatting to avoid giving a place to + fractional satoshis.

      +
      +
    • +
    • +
      +

      getCoinInstance

      +
      public static BtcFormat getCoinInstance()
      +
      Return a new coin-denominated formatter. The returned object will format and parse + values according to the default locale, and will format numbers with two fractional + decimal places, rounding values as necessary.
      +
      +
    • +
    • +
      +

      getCoinInstance

      +
      public static BtcFormat getCoinInstance(int minFractionPlaces, + int... groups)
      +
      Return a new coin-denominated formatter with the specified fraction-places. The + returned object will format and parse values according to the default locale, and will + format the fraction part of numbers with at least two decimal places. The sizes of + additional groups of decimal places can be specified by a variable number of + int arguments. Each optional decimal-place group will be applied only if + useful for expressing precision, and will be only partially applied if necessary to + avoid giving a place to fractional satoshis.
      +
      +
    • +
    • +
      +

      getCoinInstance

      +
      public static BtcFormat getCoinInstance(Locale locale)
      +
      Return a new coin-denominated formatter for the given locale. The returned object will + format the fractional part of numbers with two decimal places, rounding as necessary.
      +
      +
    • +
    • +
      +

      getCoinInstance

      +
      public static BtcFormat getCoinInstance(Locale locale, + int scale, + int... groups)
      +
      Return a newly-constructed instance for the given locale that will format + values in terms of bitcoins, with the given minimum number of fractional + decimal places. Optionally, repeating integer arguments can be passed, each + indicating the size of an additional group of fractional decimal places to be + used as necessary to avoid rounding, to a limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getMilliInstance

      +
      public static BtcFormat getMilliInstance()
      +
      Return a new millicoin-denominated formatter. The returned object will format and + parse values for the default locale, and will format the fractional part of numbers with + two decimal places, rounding as necessary.
      +
      +
    • +
    • +
      +

      getMilliInstance

      +
      public static BtcFormat getMilliInstance(Locale locale)
      +
      Return a new millicoin-denominated formatter for the given locale. The returned object + will format the fractional part of numbers with two decimal places, rounding as + necessary.
      +
      +
    • +
    • +
      +

      getMilliInstance

      +
      public static BtcFormat getMilliInstance(int scale, + int... groups)
      +
      Return a new millicoin-denominated formatter with the specified fractional decimal + placing. The returned object will format and parse values according to the default + locale, and will format the fractional part of numbers with the given minimum number of + fractional decimal places. Optionally, repeating integer arguments can be passed, each + indicating the size of an additional group of fractional decimal places to be used as + necessary to avoid rounding, to a limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getMilliInstance

      +
      public static BtcFormat getMilliInstance(Locale locale, + int scale, + int... groups)
      +
      Return a new millicoin-denominated formatter for the given locale with the specified + fractional decimal placing. The returned object will format the fractional part of + numbers with the given minimum number of fractional decimal places. Optionally, + repeating integer arguments can be passed, each indicating the size of an additional + group of fractional decimal places to be used as necessary to avoid rounding, to a + limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getMicroInstance

      +
      public static BtcFormat getMicroInstance()
      +
      Return a new microcoin-denominated formatter for the default locale. The returned object + will format the fractional part of numbers with two decimal places, rounding as + necessary.
      +
      +
    • +
    • +
      +

      getMicroInstance

      +
      public static BtcFormat getMicroInstance(Locale locale)
      +
      Return a new microcoin-denominated formatter for the given locale. The returned object + will format the fractional part of numbers with two decimal places, rounding as + necessary.
      +
      +
    • +
    • +
      +

      getMicroInstance

      +
      public static BtcFormat getMicroInstance(int scale, + int... groups)
      +
      Return a new microcoin-denominated formatter with the specified fractional decimal + placing. The returned object will format and parse values according to the default + locale, and will format the fractional part of numbers with the given minimum number of + fractional decimal places. Optionally, repeating integer arguments can be passed, each + indicating the size of an additional group of fractional decimal places to be used as + necessary to avoid rounding, to a limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getMicroInstance

      +
      public static BtcFormat getMicroInstance(Locale locale, + int scale, + int... groups)
      +
      Return a new microcoin-denominated formatter for the given locale with the specified + fractional decimal placing. The returned object will format the fractional part of + numbers with the given minimum number of fractional decimal places. Optionally, + repeating integer arguments can be passed, each indicating the size of an additional + group of fractional decimal places to be used as necessary to avoid rounding, to a + limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(int scale, + int minDecimals, + int... groups)
      +
      Return a new fixed-denomination formatter with the specified fractional decimal + placing. The first argument specifies the denomination as the size of the + shift from coin-denomination in increasingly-precise decimal places. The returned object will format + and parse values according to the default locale, and will format the fractional part of + numbers with the given minimum number of fractional decimal places. Optionally, + repeating integer arguments can be passed, each indicating the size of an additional + group of fractional decimal places to be used as necessary to avoid rounding, to a + limiting precision of satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(int scale)
      +
      Return a new fixed-denomination formatter. The argument specifies the denomination as + the size of the shift from coin-denomination in increasingly-precise decimal places. + The returned object will format and parse values according to the default locale, and + will format the fractional part of numbers with two decimal places, or fewer as + necessary to avoid giving a place to fractional satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(int scale, + Locale locale)
      +
      Return a new fixed-denomination formatter for the given locale. The first argument + specifies the denomination as the size of the shift from coin-denomination in + increasingly-precise decimal places. The returned object will format and parse values + according to the locale specified by the second argument, and will format the fractional + part of numbers with two decimal places, or fewer as necessary to avoid giving a place + to fractional satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(int scale, + Locale locale, + int minDecimals, + int... groups)
      +
      Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing. The first argument specifies the denomination as the size + of the shift from coin-denomination in increasingly-precise decimal places. The third + parameter is the minimum number of fractional decimal places to use, followed by + optional repeating integer parameters each specifying the size of an additional group of + fractional decimal places to use as necessary to avoid rounding, down to a maximum + precision of satoshis.
      +
      +
    • +
    • +
      +

      getInstance

      +
      public static BtcFormat getInstance(int scale, + Locale locale, + int minDecimals, + List<Integer> groups)
      +
      Return a new fixed-denomination formatter for the given locale, with the specified + fractional decimal placing. The first argument specifies the denomination as the size + of the shift from coin-denomination in increasingly-precise decimal places. The third + parameter is the minimum number of fractional decimal places to use. The third argument + specifies the minimum number of fractional decimal places in formatted numbers. The + last argument is a List of Integer values, each of which + specifies the size of an additional group of fractional decimal places to use as + necessary to avoid rounding, down to a maximum precision of satoshis.
      +
      +
    • +
    • +
      +

      formatToCharacterIterator

      +
      public AttributedCharacterIterator formatToCharacterIterator(Object obj)
      +
      Formats a bitcoin monetary value and returns an AttributedCharacterIterator. + By iterating, you can examine what fields apply to each character. This can be useful + since a character may be part of more than one field, for example a grouping separator + that is also part of the integer field.
      +
      +
      Overrides:
      +
      formatToCharacterIterator in class Format
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      format

      +
      public StringBuffer format(Object qty, + StringBuffer toAppendTo, + FieldPosition pos)
      +
      Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer. The type of monetary value argument can be + any one of any of the following classes: Coin, + Integer, Long, BigInteger, + BigDecimal. Numeric types that can represent only an integer are interpreted + as that number of satoshis. The value of a BigDecimal is interpreted as that + number of bitcoins, rounded to the nearest satoshi as necessary.
      +
      +
      Specified by:
      +
      format in class Format
      +
      Returns:
      +
      the StringBuffer passed in as toAppendTo
      +
      +
      +
    • +
    • +
      +

      format

      +
      public String format(Object qty, + int minDecimals, + int... fractionGroups)
      +
      Formats a bitcoin value as a number and possibly a units indicator to a + String.The type of monetary value argument can be any one of any of the + following classes: Coin, Integer, Long, + BigInteger, BigDecimal. Numeric types that can represent only + an integer are interpreted as that number of satoshis. The value of a + BigDecimal is interpreted as that number of bitcoins, rounded to the + nearest satoshi as necessary.
      +
      +
      Parameters:
      +
      minDecimals - The minimum number of decimal places in the fractional part of the formatted number
      +
      fractionGroups - The sizes of optional additional fractional decimal-place groups
      +
      Throws:
      +
      IllegalArgumentException - if the number of fraction places is negative.
      +
      +
      +
    • +
    • +
      +

      format

      +
      public StringBuffer format(Object qty, + StringBuffer toAppendTo, + FieldPosition pos, + int minDecimals, + int... fractionGroups)
      +
      Formats a bitcoin value as a number and possibly a units indicator and appends the + resulting text to the given string buffer. The type of monetary value argument can be + any one of any of the following classes: Coin, + Integer, Long, BigInteger, + BigDecimal. Numeric types that can represent only an integer are interpreted + as that number of satoshis. The value of a BigDecimal is interpreted as that + number of bitcoins, rounded to the nearest satoshi as necessary.
      +
      +
      Parameters:
      +
      minDecimals - The minimum number of decimal places in the fractional part of the formatted number
      +
      fractionGroups - The sizes of optional additional fractional decimal-place groups
      +
      Throws:
      +
      IllegalArgumentException - if the number of fraction places is negative.
      +
      +
      +
    • +
    • +
      +

      scale

      +
      protected abstract int scale(BigInteger satoshis, + int fractionPlaces)
      +
      Return the denomination for formatting the given value. The returned int + is the size of the decimal-place shift between the given Bitcoin-value denominated in + bitcoins and that same value as formatted. A fixed-denomination formatter will ignore + the arguments.
      +
      +
      Parameters:
      +
      satoshis - The number of satoshis having the value for which the shift is calculated
      +
      fractionPlaces - The number of decimal places available for displaying the + fractional part of the denominated value
      +
      Returns:
      +
      The size of the shift in increasingly-precise decimal places
      +
      +
      +
    • +
    • +
      +

      scale

      +
      protected abstract int scale()
      +
      Return the denomination of this object. Fixed-denomination formatters will override + with their configured denomination, auto-formatters with coin denomination. This + determines the interpretation of parsed numbers lacking a units-indicator.
      +
      +
    • +
    • +
      +

      parseObject

      +
      public final Object parseObject(String source, + ParsePosition pos)
      +
      Parse a String representation of a Bitcoin monetary value. Returns a + Coin object that represents the parsed value.
      +
      +
      Specified by:
      +
      parseObject in class Format
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      prefixUnitsIndicator

      +
      protected static void prefixUnitsIndicator(DecimalFormat numberFormat, + int scale)
      +
      Set both the currency symbol and code of the underlying, mutable NumberFormat object + according to the given denominational units scale factor. This is for formatting, not parsing. + +

      Set back to zero when you're done formatting otherwise immutability, equals() and + hashCode() will break!

      +
      +
      Parameters:
      +
      scale - Number of places the decimal point will be shifted when formatting + a quantity of satoshis.
      +
      +
      +
    • +
    • +
      +

      parse

      +
      public Coin parse(String source, + ParsePosition pos)
      +
      Parse a String representation of a Bitcoin monetary value. If this + object's pattern includes a currency sign, either symbol or code, as by default is true + for instances of BtcAutoFormat and false for instances of BtcFixedFormat, then denominated (i.e., prefixed) currency signs in the parsed String + will be recognized, and the parsed number will be interpreted as a quantity of units + having that recognized denomination. +

      If the pattern includes a currency sign but no currency sign is detected in the parsed + String, then the number is interpreted as a quatity of bitcoins. +

      If the pattern contains neither a currency symbol nor sign, then instances of BtcAutoFormat will interpret the parsed number as a quantity of bitcoins, and instances + of BtcAutoFormat will interpret the number as a quantity of that instance's + configured denomination, which can be ascertained by invoking the BtcFixedFormat.symbol() or BtcFixedFormat.code() method. + +

      Consider using the single-argument version of this overloaded method unless you need to + keep track of the current parse position.

      +
      +
      Returns:
      +
      a Coin object representing the parsed value
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      parse

      +
      public Coin parse(String source) + throws ParseException
      +
      Parse a String representation of a Bitcoin monetary value. If this + object's pattern includes a currency sign, either symbol or code, as by default is true + for instances of BtcAutoFormat and false for instances of BtcFixedFormat, then denominated (i.e., prefixed) currency signs in the parsed String + will be recognized, and the parsed number will be interpreted as a quantity of units + having that recognized denomination. +

      If the pattern includes a currency sign but no currency sign is detected in the parsed + String, then the number is interpreted as a quatity of bitcoins. +

      If the pattern contains neither a currency symbol nor sign, then instances of BtcAutoFormat will interpret the parsed number as a quantity of bitcoins, and instances + of BtcAutoFormat will interpret the number as a quantity of that instance's + configured denomination, which can be ascertained by invoking the BtcFixedFormat.symbol() or BtcFixedFormat.code() method.

      +
      +
      Returns:
      +
      a Coin object representing the parsed value
      +
      Throws:
      +
      ParseException
      +
      +
      +
    • +
    • +
      +

      prefixCode

      +
      protected static String prefixCode(String code, + int scale)
      +
      END OF PARSING STUFF
      +
      +
    • +
    • +
      +

      prefixSymbol

      +
      protected static String prefixSymbol(String symbol, + int scale)
      +
      +
    • +
    • +
      +

      negify

      +
      protected static String negify(String pattern)
      +
      Guarantee a formatting pattern has a subpattern for negative values. This method takes + a pattern that may be missing a negative subpattern, and returns the same pattern with + a negative subpattern appended as needed. + +

      This method accommodates an imperfection in the Java formatting code and distributed + locale data. To wit: the subpattern for negative numbers is optional and not all + locales have one. In those cases, DecimalFormat will indicate numbers + less than zero by adding a negative sign as the first character of the prefix of the + positive subpattern. + +

      We don't like this, since we claim the negative sign applies to the number not the + units, and therefore it ought to be adjacent to the number, displacing the + currency-units indicator if necessary.

      +
      +
    • +
    • +
      +

      getAvailableLocales

      +
      public static Locale[] getAvailableLocales()
      +
      Return an array of all locales for which the getInstance() method of this class can + return localized instances. See NumberFormat.getAvailableLocales()
      +
      +
    • +
    • +
      +

      coinSymbol

      +
      public String coinSymbol()
      +
      Return the unprefixed currency symbol for bitcoins configured for this object. The + return value of this method is constant throughout the life of an instance.
      +
      +
    • +
    • +
      +

      coinCode

      +
      public String coinCode()
      +
      Return the unprefixed international currency code for bitcoins configured for this + object. The return value of this method is constant throughough the life of an instance.
      +
      +
    • +
    • +
      +

      pattern

      +
      public String pattern()
      +
      Return a representation of the pattern used by this instance for formatting and + parsing. The format is similar to, but not the same as the format recognized by the + BtcFormat.Builder.pattern and BtcFormat.Builder.localizedPattern methods. The pattern + returned by this method is localized, any currency signs expressed are literally, and + optional fractional decimal places are shown grouped in parentheses.
      +
      +
    • +
    • +
      +

      symbols

      +
      public DecimalFormatSymbols symbols()
      +
      Return a copy of the localized symbols used by this instance for formatting and parsing.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      Return true if the given object is equivalent to this one. + Formatters for different locales will never be equal, even + if they behave identically.
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      Return a hash code value for this instance.
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/ContextPropagatingThreadFactory.html b/javadoc/0.16.3/org/bitcoinj/utils/ContextPropagatingThreadFactory.html new file mode 100644 index 000000000..7a48d0f76 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/ContextPropagatingThreadFactory.html @@ -0,0 +1,180 @@ + + + + +ContextPropagatingThreadFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ContextPropagatingThreadFactory

+
+
java.lang.Object +
org.bitcoinj.utils.ContextPropagatingThreadFactory
+
+
+
+
All Implemented Interfaces:
+
ThreadFactory
+
+
+
public class ContextPropagatingThreadFactory +extends Object +implements ThreadFactory
+
A ThreadFactory that propagates a Context from the creating + thread into the new thread. This factory creates daemon threads.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ContextPropagatingThreadFactory

      +
      public ContextPropagatingThreadFactory(String name, + int priority)
      +
      +
    • +
    • +
      +

      ContextPropagatingThreadFactory

      +
      public ContextPropagatingThreadFactory(String name)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/DaemonThreadFactory.html b/javadoc/0.16.3/org/bitcoinj/utils/DaemonThreadFactory.html new file mode 100644 index 000000000..a9fef41ca --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/DaemonThreadFactory.html @@ -0,0 +1,179 @@ + + + + +DaemonThreadFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DaemonThreadFactory

+
+
java.lang.Object +
org.bitcoinj.utils.DaemonThreadFactory
+
+
+
+
All Implemented Interfaces:
+
ThreadFactory
+
+
+
public class DaemonThreadFactory +extends Object +implements ThreadFactory
+
Thread factory whose threads are marked as daemon and won't prevent process exit.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DaemonThreadFactory

      +
      public DaemonThreadFactory(@Nullable + String name)
      +
      +
    • +
    • +
      +

      DaemonThreadFactory

      +
      public DaemonThreadFactory()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/ExchangeRate.html b/javadoc/0.16.3/org/bitcoinj/utils/ExchangeRate.html new file mode 100644 index 000000000..36a861e1a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/ExchangeRate.html @@ -0,0 +1,276 @@ + + + + +ExchangeRate (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExchangeRate

+
+
java.lang.Object +
org.bitcoinj.utils.ExchangeRate
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class ExchangeRate +extends Object +implements Serializable
+
An exchange rate is expressed as a ratio of a Coin and a Fiat amount.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      coin

      +
      public final Coin coin
      +
      +
    • +
    • +
      +

      fiat

      +
      public final Fiat fiat
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ExchangeRate

      +
      public ExchangeRate(Coin coin, + Fiat fiat)
      +
      Construct exchange rate. This amount of coin is worth that amount of fiat.
      +
      +
    • +
    • +
      +

      ExchangeRate

      +
      public ExchangeRate(Fiat fiat)
      +
      Construct exchange rate. One coin is worth this amount of fiat.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      coinToFiat

      +
      public Fiat coinToFiat(Coin convertCoin)
      +
      Convert a coin amount to a fiat amount using this exchange rate.
      +
      +
      Throws:
      +
      ArithmeticException - if the converted fiat amount is too high or too low.
      +
      +
      +
    • +
    • +
      +

      fiatToCoin

      +
      public Coin fiatToCoin(Fiat convertFiat)
      +
      Convert a fiat amount to a coin amount using this exchange rate.
      +
      +
      Throws:
      +
      ArithmeticException - if the converted coin amount is too high or too low.
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.Params.html b/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.Params.html new file mode 100644 index 000000000..06aca7431 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.Params.html @@ -0,0 +1,154 @@ + + + + +ExponentialBackoff.Params (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExponentialBackoff.Params

+
+
java.lang.Object +
org.bitcoinj.utils.ExponentialBackoff.Params
+
+
+
+
Enclosing class:
+
ExponentialBackoff
+
+
+
public static class ExponentialBackoff.Params +extends Object
+
Parameters to configure a particular kind of exponential backoff.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Params

      +
      public Params(long initialMillis, + float multiplier, + long maximumMillis)
      +
      +
      Parameters:
      +
      initialMillis - the initial interval to wait, in milliseconds
      +
      multiplier - the multiplier to apply on each failure
      +
      maximumMillis - the maximum interval to wait, in milliseconds
      +
      +
      +
    • +
    • +
      +

      Params

      +
      public Params()
      +
      Construct params with default values.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.html b/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.html new file mode 100644 index 000000000..2146c5a81 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/ExponentialBackoff.html @@ -0,0 +1,308 @@ + + + + +ExponentialBackoff (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExponentialBackoff

+
+
java.lang.Object +
org.bitcoinj.utils.ExponentialBackoff
+
+
+
+
All Implemented Interfaces:
+
Comparable<ExponentialBackoff>
+
+
+
public class ExponentialBackoff +extends Object +implements Comparable<ExponentialBackoff>
+

Tracks successes and failures and calculates a time to retry the operation.

+ +

The retries are exponentially backed off, up to a maximum interval. On success the back off interval is reset.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_INITIAL_MILLIS

      +
      public static final int DEFAULT_INITIAL_MILLIS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_MULTIPLIER

      +
      public static final float DEFAULT_MULTIPLIER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEFAULT_MAXIMUM_MILLIS

      +
      public static final int DEFAULT_MAXIMUM_MILLIS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      trackSuccess

      +
      public final void trackSuccess()
      +
      Track a success - reset back off interval to the initial value
      +
      +
    • +
    • +
      +

      trackFailure

      +
      public void trackFailure()
      +
      Track a failure - multiply the back off interval by the multiplier
      +
      +
    • +
    • +
      +

      getRetryTime

      +
      public long getRetryTime()
      +
      Get the next time to retry, in milliseconds since the epoch
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(ExponentialBackoff other)
      +
      +
      Specified by:
      +
      compareTo in interface Comparable<ExponentialBackoff>
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/Fiat.html b/javadoc/0.16.3/org/bitcoinj/utils/Fiat.html new file mode 100644 index 000000000..17d284fc3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/Fiat.html @@ -0,0 +1,530 @@ + + + + +Fiat (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Fiat

+
+
java.lang.Object +
org.bitcoinj.utils.Fiat
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Fiat>, Monetary
+
+
+
public final class Fiat +extends Object +implements Monetary, Comparable<Fiat>, Serializable
+
Represents a monetary fiat value. It was decided to not fold this into Coin because of type + safety. Fiat values always come with an attached currency code. + + This class is immutable.
+
+
See Also:
+
+ +
+
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    final String
    + +
     
    +
    static final int
    + +
    +
    The absolute value of exponent of the value of a "smallest unit" in scientific notation.
    +
    +
    final long
    + +
    +
    The number of smallest units of this monetary value.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    add(Fiat value)
    +
     
    +
    int
    +
    compareTo(Fiat other)
    +
     
    + +
    divide(long divisor)
    +
     
    +
    long
    +
    divide(Fiat divisor)
    +
     
    + +
    divideAndRemainder(long divisor)
    +
     
    +
    boolean
    + +
     
    + + +
     
    +
    long
    + +
    +
    Returns the number of "smallest units" of this monetary value.
    +
    +
    int
    + +
     
    +
    boolean
    + +
    +
    Returns true if the monetary value represented by this instance is greater than that of the given other Fiat, + otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if the monetary value represented by this instance is less than that of the given other Fiat, + otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents a monetary value less than zero, otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents a monetary value greater than zero, otherwise false.
    +
    +
    boolean
    + +
    +
    Returns true if and only if this instance represents zero monetary value, otherwise false.
    +
    +
    long
    + +
    +
    Returns the number of "smallest units" of this monetary value.
    +
    + +
    multiply(long factor)
    +
     
    + + +
     
    +
    static Fiat
    +
    parseFiat(String currencyCode, + String str)
    +
    +
    Parses an amount expressed in the way humans are used to.
    +
    +
    static Fiat
    +
    parseFiatInexact(String currencyCode, + String str)
    +
    +
    Parses an amount expressed in the way humans are used to.
    +
    +
    int
    + +
     
    +
    int
    + +
    +
    Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation.
    +
    + +
    subtract(Fiat value)
    +
     
    + + +
    +
    Returns the value as a 0.12 type string.
    +
    + + +
    +
    + Returns the value as a plain string.
    +
    + + +
     
    +
    static Fiat
    +
    valueOf(String currencyCode, + long value)
    +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SMALLEST_UNIT_EXPONENT

      +
      public static final int SMALLEST_UNIT_EXPONENT
      +
      The absolute value of exponent of the value of a "smallest unit" in scientific notation. We picked 4 rather than + 2, because in financial applications it's common to use sub-cent precision.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      value

      +
      public final long value
      +
      The number of smallest units of this monetary value.
      +
      +
    • +
    • +
      +

      currencyCode

      +
      public final String currencyCode
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      valueOf

      +
      public static Fiat valueOf(String currencyCode, + long value)
      +
      +
    • +
    • +
      +

      smallestUnitExponent

      +
      public int smallestUnitExponent()
      +
      Description copied from interface: Monetary
      +
      Returns the absolute value of exponent of the value of a "smallest unit" in scientific notation. For Bitcoin, a + satoshi is worth 1E-8 so this would be 8.
      +
      +
      Specified by:
      +
      smallestUnitExponent in interface Monetary
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      Returns the number of "smallest units" of this monetary value.
      +
      +
      Specified by:
      +
      getValue in interface Monetary
      +
      +
      +
    • +
    • +
      +

      getCurrencyCode

      +
      public String getCurrencyCode()
      +
      +
    • +
    • +
      +

      parseFiat

      +
      public static Fiat parseFiat(String currencyCode, + String str)
      +

      Parses an amount expressed in the way humans are used to.

      +

      This takes string in a format understood by BigDecimal(String), for example "0", "1", "0.10", + "1.23E3", "1234.5E-5".

      +
      +
      Throws:
      +
      IllegalArgumentException - if you try to specify more than 4 digits after the comma, or a value out of range.
      +
      +
      +
    • +
    • +
      +

      parseFiatInexact

      +
      public static Fiat parseFiatInexact(String currencyCode, + String str)
      +

      Parses an amount expressed in the way humans are used to. The amount is cut to 4 digits after the comma.

      +

      This takes string in a format understood by BigDecimal(String), for example "0", "1", "0.10", + "1.23E3", "1234.5E-5".

      +
      +
      Throws:
      +
      IllegalArgumentException - if you try to specify a value out of range.
      +
      +
      +
    • +
    • +
      +

      add

      +
      public Fiat add(Fiat value)
      +
      +
    • +
    • +
      +

      subtract

      +
      public Fiat subtract(Fiat value)
      +
      +
    • +
    • +
      +

      multiply

      +
      public Fiat multiply(long factor)
      +
      +
    • +
    • +
      +

      divide

      +
      public Fiat divide(long divisor)
      +
      +
    • +
    • +
      +

      divideAndRemainder

      +
      public Fiat[] divideAndRemainder(long divisor)
      +
      +
    • +
    • +
      +

      divide

      +
      public long divide(Fiat divisor)
      +
      +
    • +
    • +
      +

      isPositive

      +
      public boolean isPositive()
      +
      Returns true if and only if this instance represents a monetary value greater than zero, otherwise false.
      +
      +
    • +
    • +
      +

      isNegative

      +
      public boolean isNegative()
      +
      Returns true if and only if this instance represents a monetary value less than zero, otherwise false.
      +
      +
    • +
    • +
      +

      isZero

      +
      public boolean isZero()
      +
      Returns true if and only if this instance represents zero monetary value, otherwise false.
      +
      +
    • +
    • +
      +

      isGreaterThan

      +
      public boolean isGreaterThan(Fiat other)
      +
      Returns true if the monetary value represented by this instance is greater than that of the given other Fiat, + otherwise false.
      +
      +
    • +
    • +
      +

      isLessThan

      +
      public boolean isLessThan(Fiat other)
      +
      Returns true if the monetary value represented by this instance is less than that of the given other Fiat, + otherwise false.
      +
      +
    • +
    • +
      +

      signum

      +
      public int signum()
      +
      +
      Specified by:
      +
      signum in interface Monetary
      +
      +
      +
    • +
    • +
      +

      negate

      +
      public Fiat negate()
      +
      +
    • +
    • +
      +

      longValue

      +
      public long longValue()
      +
      Returns the number of "smallest units" of this monetary value. It's deprecated in favour of accessing value + directly.
      +
      +
    • +
    • +
      +

      toFriendlyString

      +
      public String toFriendlyString()
      +
      Returns the value as a 0.12 type string. More digits after the decimal place will be used if necessary, but two + will always be present.
      +
      +
    • +
    • +
      +

      toPlainString

      +
      public String toPlainString()
      +

      + Returns the value as a plain string. The result is unformatted with no trailing zeroes. For + instance, a value of 150000 "smallest units" gives an output string of "0.0015". +

      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      compareTo

      +
      public int compareTo(Fiat other)
      +
      +
      Specified by:
      +
      compareTo in interface Comparable<Fiat>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/ListenerRegistration.html b/javadoc/0.16.3/org/bitcoinj/utils/ListenerRegistration.html new file mode 100644 index 000000000..4d310c8e4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/ListenerRegistration.html @@ -0,0 +1,205 @@ + + + + +ListenerRegistration (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ListenerRegistration<T>

+
+
java.lang.Object +
org.bitcoinj.utils.ListenerRegistration<T>
+
+
+
+
public class ListenerRegistration<T> +extends Object
+
A simple wrapper around a listener and an executor, with some utility methods.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      listener

      +
      public final T listener
      +
      +
    • +
    • +
      +

      executor

      +
      public final Executor executor
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ListenerRegistration

      +
      public ListenerRegistration(T listener, + Executor executor)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      removeFromList

      +
      public static <T> boolean removeFromList(T listener, + List<? extends ListenerRegistration<T>> list)
      +
      Returns true if the listener was removed, else false.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/MonetaryFormat.html b/javadoc/0.16.3/org/bitcoinj/utils/MonetaryFormat.html new file mode 100644 index 000000000..3c69b70e2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/MonetaryFormat.html @@ -0,0 +1,749 @@ + + + + +MonetaryFormat (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MonetaryFormat

+
+
java.lang.Object +
org.bitcoinj.utils.MonetaryFormat
+
+
+
+
public final class MonetaryFormat +extends Object
+

+ Utility for formatting and parsing coin values to and from human readable form. +

+ +

+ MonetaryFormat instances are immutable. Invoking a configuration method has no effect on the receiving instance; you + must store and use the new instance it returns, instead. Instances are thread safe, so they may be stored safely as + static constants. +

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      BTC

      +
      public static final MonetaryFormat BTC
      +
      Standard format for the BTC denomination.
      +
      +
    • +
    • +
      +

      MBTC

      +
      public static final MonetaryFormat MBTC
      +
      Standard format for the mBTC denomination.
      +
      +
    • +
    • +
      +

      UBTC

      +
      public static final MonetaryFormat UBTC
      +
      Standard format for the µBTC denomination.
      +
      +
    • +
    • +
      +

      SAT

      +
      public static final MonetaryFormat SAT
      +
      Standard format for the satoshi denomination.
      +
      +
    • +
    • +
      +

      FIAT

      +
      public static final MonetaryFormat FIAT
      +
      Standard format for fiat amounts.
      +
      +
    • +
    • +
      +

      CODE_BTC

      +
      public static final String CODE_BTC
      +
      Currency code for base 1 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CODE_MBTC

      +
      public static final String CODE_MBTC
      +
      Currency code for base 1/1000 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CODE_UBTC

      +
      public static final String CODE_UBTC
      +
      Currency code for base 1/1000000 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CODE_SAT

      +
      public static final String CODE_SAT
      +
      Currency code for base 1 satoshi.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SYMBOL_BTC

      +
      public static final String SYMBOL_BTC
      +
      Currency symbol for base 1 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SYMBOL_MBTC

      +
      public static final String SYMBOL_MBTC
      +
      Currency symbol for base 1/1000 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SYMBOL_UBTC

      +
      public static final String SYMBOL_UBTC
      +
      Currency symbol for base 1/1000000 Bitcoin.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SYMBOL_SAT

      +
      public static final String SYMBOL_SAT
      +
      Currency symbol for base 1 satoshi.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_DECIMALS

      +
      public static final int MAX_DECIMALS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MonetaryFormat

      +
      public MonetaryFormat()
      +
      Construct a MonetaryFormat with the default configuration.
      +
      +
    • +
    • +
      +

      MonetaryFormat

      +
      public MonetaryFormat(boolean useSymbol)
      +
      Construct a MonetaryFormat with the default configuration.
      +
      +
      Parameters:
      +
      useSymbol - use unicode symbols instead of the BTC and sat codes
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      negativeSign

      +
      public MonetaryFormat negativeSign(char negativeSign)
      +
      Set character to prefix negative values.
      +
      +
    • +
    • +
      +

      positiveSign

      +
      public MonetaryFormat positiveSign(char positiveSign)
      +
      Set character to prefix positive values. A zero value means no sign is used in this case. For parsing, a missing + sign will always be interpreted as if the positive sign was used.
      +
      +
    • +
    • +
      +

      digits

      +
      public MonetaryFormat digits(char zeroDigit)
      +
      Set character range to use for representing digits. It starts with the specified character representing zero.
      +
      +
    • +
    • +
      +

      decimalMark

      +
      public MonetaryFormat decimalMark(char decimalMark)
      +
      Set character to use as the decimal mark. If the formatted value does not have any decimals, no decimal mark is + used either.
      +
      +
    • +
    • +
      +

      minDecimals

      +
      public MonetaryFormat minDecimals(int minDecimals)
      +
      Set minimum number of decimals to use for formatting. If the value precision exceeds all decimals specified + (including additional decimals specified by optionalDecimals(int...) or + repeatOptionalDecimals(int, int)), the value will be rounded. This configuration is not relevant for + parsing.
      +
      +
    • +
    • +
      +

      optionalDecimals

      +
      public MonetaryFormat optionalDecimals(int... groups)
      +

      + Set additional groups of decimals to use after the minimum decimals, if they are useful for expressing precision. + Each value is a number of decimals in that group. If the value precision exceeds all decimals specified + (including minimum decimals), the value will be rounded. This configuration is not relevant for parsing. +

      + +

      + For example, if you pass 4,2 it will add four decimals to your formatted string if needed, and then add + another two decimals if needed. At this point, rather than adding further decimals the value will be rounded. +

      +
      +
      Parameters:
      +
      groups - any number numbers of decimals, one for each group
      +
      +
      +
    • +
    • +
      +

      repeatOptionalDecimals

      +
      public MonetaryFormat repeatOptionalDecimals(int decimals, + int repetitions)
      +

      + Set repeated additional groups of decimals to use after the minimum decimals, if they are useful for expressing + precision. If the value precision exceeds all decimals specified (including minimum decimals), the value will be + rounded. This configuration is not relevant for parsing. +

      + +

      + For example, if you pass 1,8 it will up to eight decimals to your formatted string if needed. After + these have been used up, rather than adding further decimals the value will be rounded. +

      +
      +
      Parameters:
      +
      decimals - value of the group to be repeated
      +
      repetitions - number of repetitions
      +
      +
      +
    • +
    • +
      +

      shift

      +
      public MonetaryFormat shift(int shift)
      +
      Set number of digits to shift the decimal separator to the right, coming from the standard BTC notation that was + common pre-2014. Note this will change the currency code if enabled.
      +
      +
    • +
    • +
      +

      roundingMode

      +
      public MonetaryFormat roundingMode(RoundingMode roundingMode)
      +
      Set rounding mode to use when it becomes necessary.
      +
      +
    • +
    • +
      +

      noCode

      +
      public MonetaryFormat noCode()
      +
      Don't display currency code when formatting. This configuration is not relevant for parsing.
      +
      +
    • +
    • +
      +

      code

      +
      public MonetaryFormat code(int codeShift, + String code)
      +
      Configure currency code for given decimal separator shift. This configuration is not relevant for parsing.
      +
      +
      Parameters:
      +
      codeShift - decimal separator shift, see shift
      +
      code - currency code
      +
      +
      +
    • +
    • +
      +

      codeSeparator

      +
      public MonetaryFormat codeSeparator(char codeSeparator)
      +
      Separator between currency code and formatted value. This configuration is not relevant for parsing.
      +
      +
    • +
    • +
      +

      prefixCode

      +
      public MonetaryFormat prefixCode()
      +
      Prefix formatted output by currency code. This configuration is not relevant for parsing.
      +
      +
    • +
    • +
      +

      postfixCode

      +
      public MonetaryFormat postfixCode()
      +
      Postfix formatted output with currency code. This configuration is not relevant for parsing.
      +
      +
    • +
    • +
      +

      withLocale

      +
      public MonetaryFormat withLocale(Locale locale)
      +
      Configure this instance with values from a Locale.
      +
      +
    • +
    • +
      +

      format

      +
      public CharSequence format(Monetary monetary)
      +
      Format the given monetary value to a human readable form.
      +
      +
    • +
    • +
      +

      parse

      +
      public Coin parse(String str) + throws NumberFormatException
      +
      Parse a human readable coin value to a Coin instance.
      +
      +
      Throws:
      +
      NumberFormatException - if the string cannot be parsed for some reason
      +
      +
      +
    • +
    • +
      +

      parseFiat

      +
      public Fiat parseFiat(String currencyCode, + String str) + throws NumberFormatException
      +
      Parse a human readable fiat value to a Fiat instance.
      +
      +
      Throws:
      +
      NumberFormatException - if the string cannot be parsed for some reason
      +
      +
      +
    • +
    • +
      +

      code

      +
      public String code()
      +
      Get currency code that will be used for current shift.
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      Two formats are equal if they have the same parameters.
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/TaggableObject.html b/javadoc/0.16.3/org/bitcoinj/utils/TaggableObject.html new file mode 100644 index 000000000..282c0f1d2 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/TaggableObject.html @@ -0,0 +1,184 @@ + + + + +TaggableObject (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface TaggableObject

+
+
+
+
All Known Implementing Classes:
+
BaseTaggableObject, Wallet
+
+
+
public interface TaggableObject
+

An object that can carry around and possibly serialize a map of strings to immutable byte arrays. Tagged objects + can have data stored on them that might be useful for an application developer. For example a wallet can store tags, + and thus this would be a reasonable place to put any important data items that the bitcoinj API does not allow for: + things like exchange rates at the time a transaction was made would currently fall into this category. Of course, + it helps interop and other developers if you introduce a real type safe API for a new feature instead of using this + so please consider that path, if you find yourself tempted to store tags!

+ +

Good tag names won't conflict with other people's code, should you one day decide to merge them. Choose tag names + like "com.example:keyowner:02b7e6dc316dfaa19c5a599f63d88ffeae398759b857ca56b2f69de3e815381343" instead of + "owner" or just "o". Also, it's good practice to create constants for each string you use, to help avoid typos + in string parameters causing confusing bugs!

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    Returns the immutable byte array associated with the given tag name, or throws IllegalArgumentException + if that tag wasn't set yet.
    +
    +
    Map<String,com.google.protobuf.ByteString>
    + +
    +
    Returns a copy of all the tags held by this object.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    Returns the immutable byte array associated with the given tag name, or null if there is none.
    +
    +
    void
    +
    setTag(String tag, + com.google.protobuf.ByteString value)
    +
    +
    Associates the given immutable byte array with the string tag.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      maybeGetTag

      +
      @Nullable +com.google.protobuf.ByteString maybeGetTag(String tag)
      +
      Returns the immutable byte array associated with the given tag name, or null if there is none.
      +
      +
    • +
    • +
      +

      getTag

      +
      com.google.protobuf.ByteString getTag(String tag)
      +
      Returns the immutable byte array associated with the given tag name, or throws IllegalArgumentException + if that tag wasn't set yet.
      +
      +
    • +
    • +
      +

      setTag

      +
      void setTag(String tag, + com.google.protobuf.ByteString value)
      +
      Associates the given immutable byte array with the string tag. See the docs for TaggableObject to learn more.
      +
      +
    • +
    • +
      +

      getTags

      +
      Map<String,com.google.protobuf.ByteString> getTags()
      +
      Returns a copy of all the tags held by this object.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/Threading.UserThread.html b/javadoc/0.16.3/org/bitcoinj/utils/Threading.UserThread.html new file mode 100644 index 000000000..eda029303 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/Threading.UserThread.html @@ -0,0 +1,233 @@ + + + + +Threading.UserThread (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Threading.UserThread

+
+
java.lang.Object +
java.lang.Thread +
org.bitcoinj.utils.Threading.UserThread
+
+
+
+
+
All Implemented Interfaces:
+
Runnable, Executor
+
+
+
Enclosing class:
+
Threading
+
+
+
public static class Threading.UserThread +extends Thread +implements Executor
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      WARNING_THRESHOLD

      +
      public static int WARNING_THRESHOLD
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UserThread

      +
      public UserThread()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      run

      +
      public void run()
      +
      +
      Specified by:
      +
      run in interface Runnable
      +
      Overrides:
      +
      run in class Thread
      +
      +
      +
    • +
    • +
      +

      execute

      +
      public void execute(Runnable command)
      +
      +
      Specified by:
      +
      execute in interface Executor
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/Threading.html b/javadoc/0.16.3/org/bitcoinj/utils/Threading.html new file mode 100644 index 000000000..e8bbe73ae --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/Threading.html @@ -0,0 +1,335 @@ + + + + +Threading (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Threading

+
+
java.lang.Object +
org.bitcoinj.utils.Threading
+
+
+
+
public class Threading +extends Object
+
Various threading related utilities. Provides a wrapper around explicit lock creation that lets you control whether + bitcoinj performs cycle detection or not. Cycle detection is useful to detect bugs but comes with a small cost. + Also provides a worker thread that is designed for event listeners to be dispatched on.
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static class 
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static com.google.common.util.concurrent.CycleDetectingLockFactory
    + +
     
    +
    static final Executor
    + +
    +
    A dummy executor that just invokes the runnable immediately.
    +
    +
    static com.google.common.util.concurrent.ListeningExecutorService
    + +
    +
    A caching thread pool that creates daemon threads, which won't keep the JVM alive waiting for more work.
    +
    + + +
    +
    An exception handler that will be invoked for any exceptions that occur in the user thread, and + any unhandled exceptions that are caught whilst the framework is processing network traffic or doing other + background tasks.
    +
    +
    static Executor
    + +
    +
    An executor with one thread that is intended for running event listeners on.
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static com.google.common.util.concurrent.CycleDetectingLockFactory.Policy
    + +
     
    +
    static void
    + +
     
    + +
    lock(Class clazz)
    +
     
    + +
    lock(String name)
    +
     
    +
    static void
    +
    setPolicy(com.google.common.util.concurrent.CycleDetectingLockFactory.Policy policy)
    +
     
    +
    static void
    + +
     
    +
    static void
    + +
    +
    Put a dummy task into the queue and wait for it to be run.
    +
    +
    static void
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      USER_THREAD

      +
      public static Executor USER_THREAD
      +
      An executor with one thread that is intended for running event listeners on. This ensures all event listener code + runs without any locks being held. It's intended for the API user to run things on. Callbacks registered by + bitcoinj internally shouldn't normally run here, although currently there are a few exceptions.
      +
      +
    • +
    • +
      +

      SAME_THREAD

      +
      public static final Executor SAME_THREAD
      +
      A dummy executor that just invokes the runnable immediately. Use this over more complex executors + (e.g. those extending ExecutorService), which are overkill for our needs.
      +
      +
    • +
    • +
      +

      uncaughtExceptionHandler

      +
      @Nullable +public static volatile Thread.UncaughtExceptionHandler uncaughtExceptionHandler
      +
      An exception handler that will be invoked for any exceptions that occur in the user thread, and + any unhandled exceptions that are caught whilst the framework is processing network traffic or doing other + background tasks. The purpose of this is to allow you to report back unanticipated crashes from your users + to a central collection center for analysis and debugging. You should configure this before any + bitcoinj library code is run, setting it after you started network traffic and other forms of processing + may result in the change not taking effect.
      +
      +
    • +
    • +
      +

      factory

      +
      public static com.google.common.util.concurrent.CycleDetectingLockFactory factory
      +
      +
    • +
    • +
      +

      THREAD_POOL

      +
      public static com.google.common.util.concurrent.ListeningExecutorService THREAD_POOL
      +
      A caching thread pool that creates daemon threads, which won't keep the JVM alive waiting for more work.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Threading

      +
      public Threading()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      waitForUserCode

      +
      public static void waitForUserCode()
      +
      Put a dummy task into the queue and wait for it to be run. Because it's single threaded, this means all + tasks submitted before this point are now completed. Usually you won't want to use this method - it's a + convenience primarily used in unit testing. If you want to wait for an event to be called the right thing + to do is usually to create a SettableFuture and then call set + on it. You can then either block on that future, compose it, add listeners to it and so on.
      +
      +
    • +
    • +
      +

      lock

      +
      public static ReentrantLock lock(Class clazz)
      +
      +
    • +
    • +
      +

      lock

      +
      public static ReentrantLock lock(String name)
      +
      +
    • +
    • +
      +

      warnOnLockCycles

      +
      public static void warnOnLockCycles()
      +
      +
    • +
    • +
      +

      throwOnLockCycles

      +
      public static void throwOnLockCycles()
      +
      +
    • +
    • +
      +

      ignoreLockCycles

      +
      public static void ignoreLockCycles()
      +
      +
    • +
    • +
      +

      setPolicy

      +
      public static void setPolicy(com.google.common.util.concurrent.CycleDetectingLockFactory.Policy policy)
      +
      +
    • +
    • +
      +

      getPolicy

      +
      public static com.google.common.util.concurrent.CycleDetectingLockFactory.Policy getPolicy()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/VersionTally.html b/javadoc/0.16.3/org/bitcoinj/utils/VersionTally.html new file mode 100644 index 000000000..2cab5ae93 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/VersionTally.html @@ -0,0 +1,236 @@ + + + + +VersionTally (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class VersionTally

+
+
java.lang.Object +
org.bitcoinj.utils.VersionTally
+
+
+
+
public class VersionTally +extends Object
+
Caching counter for the block versions within a moving window. This class + is NOT thread safe (as if two threads are trying to use it concurrently, + there's risk of getting versions out of sequence).
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      add

      +
      public void add(long version)
      +
      Add a new block version to the tally, and return the count for that version + within the window.
      +
      +
      Parameters:
      +
      version - the block version to add.
      +
      +
      +
    • +
    • +
      +

      getCountAtOrAbove

      +
      public Integer getCountAtOrAbove(long version)
      +
      Get the count of blocks at or above the given version, within the window.
      +
      +
      Parameters:
      +
      version - the block version to query.
      +
      Returns:
      +
      the count for the block version, or null if the window is not yet + full.
      +
      +
      +
    • +
    • +
      +

      initialize

      +
      public void initialize(BlockStore blockStore, + StoredBlock chainHead) + throws BlockStoreException
      +
      Initialize the version tally from the block store. Note this does not + search backwards past the start of the block store, so if starting from + a checkpoint this may not fill the window.
      +
      +
      Parameters:
      +
      blockStore - block store to load blocks from.
      +
      chainHead - current chain tip.
      +
      Throws:
      +
      BlockStoreException
      +
      +
      +
    • +
    • +
      +

      size

      +
      public int size()
      +
      Get the size of the version window.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/package-summary.html b/javadoc/0.16.3/org/bitcoinj/utils/package-summary.html new file mode 100644 index 000000000..6f4e37ca6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/package-summary.html @@ -0,0 +1,182 @@ + + + + +org.bitcoinj.utils (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.utils

+
+
+
package org.bitcoinj.utils
+
+
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files, + a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
+
+
+
    +
  • +
    +
    +
    +
    +
    Class
    +
    Description
    + +
    +
    Find/create App Data Directory in correct platform-specific location.
    +
    + +
    +
    A simple implementation of TaggableObject that uses a hashmap that is + synchronized on this object's Java monitor.
    +
    + +
    +
    This class reads block files stored in the Bitcoin Core format.
    +
    + +
    +
    A Java logging formatter that writes more compact output than the default.
    +
    + +
    +
    This class, a concrete extension of BtcFormat, is distinguished by its + accommodation of multiple denominational units as follows:
    +
    + +
    +
    Enum for specifying the style of currency indicators that are used + when formatting, either codes or symbols.
    +
    + +
    +
    This class, a concrete extension of BtcFormat, is distinguished in that each + instance formats and by-default parses all Bitcoin monetary values in units of a single + denomination that is specified at the time that instance is constructed.
    +
    + +
    +
    Instances of this class format and parse locale-specific numerical + representations of Bitcoin monetary values.
    +
    + +
    +
    This class constructs new instances of BtcFormat, allowing for the + configuration of those instances before they are constructed.
    +
    + +
    +
    A ThreadFactory that propagates a Context from the creating + thread into the new thread.
    +
    + +
    +
    Thread factory whose threads are marked as daemon and won't prevent process exit.
    +
    + +
    +
    An exchange rate is expressed as a ratio of a Coin and a Fiat amount.
    +
    + +
    +
    Tracks successes and failures and calculates a time to retry the operation.
    +
    + +
    +
    Parameters to configure a particular kind of exponential backoff.
    +
    + +
    +
    Represents a monetary fiat value.
    +
    + +
    +
    A simple wrapper around a listener and an executor, with some utility methods.
    +
    + +
    +
    + Utility for formatting and parsing coin values to and from human readable form.
    +
    + +
    +
    An object that can carry around and possibly serialize a map of strings to immutable byte arrays.
    +
    + +
    +
    Various threading related utilities.
    +
    + +
     
    + +
    +
    Caching counter for the block versions within a moving window.
    +
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/utils/package-tree.html b/javadoc/0.16.3/org/bitcoinj/utils/package-tree.html new file mode 100644 index 000000000..a71ad966c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/utils/package-tree.html @@ -0,0 +1,125 @@ + + + + +org.bitcoinj.utils Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.utils

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/AllRandomKeysRotating.html b/javadoc/0.16.3/org/bitcoinj/wallet/AllRandomKeysRotating.html new file mode 100644 index 000000000..c4edea395 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/AllRandomKeysRotating.html @@ -0,0 +1,151 @@ + + + + +AllRandomKeysRotating (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AllRandomKeysRotating

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.wallet.AllRandomKeysRotating
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class AllRandomKeysRotating +extends RuntimeException
+
Indicates that an attempt was made to upgrade a random wallet to deterministic, but there were no non-rotating + random keys to use as source material for the seed. Add a non-compromised key first!
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AllRandomKeysRotating

      +
      public AllRandomKeysRotating()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.html b/javadoc/0.16.3/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.html new file mode 100644 index 000000000..7cf14b09b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/AllowUnconfirmedCoinSelector.html @@ -0,0 +1,190 @@ + + + + +AllowUnconfirmedCoinSelector (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AllowUnconfirmedCoinSelector

+
+
java.lang.Object +
org.bitcoinj.wallet.DefaultCoinSelector +
org.bitcoinj.wallet.AllowUnconfirmedCoinSelector
+
+
+
+
+
All Implemented Interfaces:
+
CoinSelector
+
+
+
public class AllowUnconfirmedCoinSelector +extends DefaultCoinSelector
+
This coin selector will select any transaction at all, regardless of where it came from or whether it was + confirmed yet. However immature coinbases will not be included (would be a protocol violation).
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AllowUnconfirmedCoinSelector

      +
      public AllowUnconfirmedCoinSelector()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.State.html b/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.State.html new file mode 100644 index 000000000..8150966cb --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.State.html @@ -0,0 +1,231 @@ + + + + +BasicKeyChain.State (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class BasicKeyChain.State

+
+
java.lang.Object +
java.lang.Enum<BasicKeyChain.State> +
org.bitcoinj.wallet.BasicKeyChain.State
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<BasicKeyChain.State>, Constable
+
+
+
Enclosing class:
+
BasicKeyChain
+
+
+
public static enum BasicKeyChain.State +extends Enum<BasicKeyChain.State>
+
Whether this basic key chain is empty, full of regular (usable for signing) keys, or full of watching keys.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static BasicKeyChain.State[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static BasicKeyChain.State valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.html b/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.html new file mode 100644 index 000000000..240dc49f5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/BasicKeyChain.html @@ -0,0 +1,714 @@ + + + + +BasicKeyChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class BasicKeyChain

+
+
java.lang.Object +
org.bitcoinj.wallet.BasicKeyChain
+
+
+
+
All Implemented Interfaces:
+
EncryptableKeyChain, KeyChain
+
+
+
public class BasicKeyChain +extends Object +implements EncryptableKeyChain
+
A KeyChain that implements the simplest model possible: it can have keys imported into it, and just acts as + a dumb bag of keys. It will, left to its own devices, always return the same key for usage by the wallet, although + it will automatically add one to itself if it's empty or if encryption is requested.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BasicKeyChain

      +
      public BasicKeyChain()
      +
      +
    • +
    • +
      +

      BasicKeyChain

      +
      public BasicKeyChain(@Nullable + KeyCrypter crypter)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Returns the KeyCrypter in use or null if the key chain is not encrypted.
      +
      +
      Specified by:
      +
      getKeyCrypter in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      getKey

      +
      public ECKey getKey(@Nullable + KeyChain.KeyPurpose ignored)
      +
      Description copied from interface: KeyChain
      +
      Obtains a key intended for the given purpose. The chain may create a new key, derive one, or re-use an old one.
      +
      +
      Specified by:
      +
      getKey in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getKeys

      +
      public List<ECKey> getKeys(@Nullable + KeyChain.KeyPurpose purpose, + int numberOfKeys)
      +
      Description copied from interface: KeyChain
      +
      Obtains a number of key/s intended for the given purpose. The chain may create new key/s, derive, or re-use an old one.
      +
      +
      Specified by:
      +
      getKeys in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getKeys

      +
      public List<ECKey> getKeys()
      +
      Returns a copy of the list of keys that this chain is managing.
      +
      +
    • +
    • +
      +

      importKeys

      +
      public int importKeys(ECKey... keys)
      +
      +
    • +
    • +
      +

      importKeys

      +
      public int importKeys(List<? extends ECKey> keys)
      +
      +
    • +
    • +
      +

      importKey

      +
      public void importKey(ECKey key)
      +
      Imports a key to the key chain. If key is present in the key chain, ignore it.
      +
      +
    • +
    • +
      +

      findKeyFromPubHash

      +
      public ECKey findKeyFromPubHash(byte[] pubKeyHash)
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      public ECKey findKeyFromPubKey(byte[] pubKey)
      +
      +
    • +
    • +
      +

      hasKey

      +
      public boolean hasKey(ECKey key)
      +
      Description copied from interface: KeyChain
      +
      Returns true if the given key is in the chain.
      +
      +
      Specified by:
      +
      hasKey in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      numKeys

      +
      public int numKeys()
      +
      Description copied from interface: KeyChain
      +
      Returns the number of keys this key chain manages.
      +
      +
      Specified by:
      +
      numKeys in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      isWatching

      +
      public BasicKeyChain.State isWatching()
      +
      Returns whether this chain consists of pubkey only (watching) keys, regular keys (usable for signing), or + has no keys in it yet at all (thus we cannot tell).
      +
      +
    • +
    • +
      +

      removeKey

      +
      public boolean removeKey(ECKey key)
      +
      Removes the given key from the keychain. Be very careful with this - losing a private key destroys the + money associated with it.
      +
      +
      Returns:
      +
      Whether the key was removed or not.
      +
      +
      +
    • +
    • +
      +

      getEarliestKeyCreationTime

      +
      public long getEarliestKeyCreationTime()
      +
      Description copied from interface: KeyChain
      +

      Returns the earliest creation time of keys in this chain, in seconds since the epoch. This can return zero + if at least one key does not have that data (was created before key timestamping was implemented). If there + are no keys in the wallet, Long.MAX_VALUE is returned.

      +
      +
      Specified by:
      +
      getEarliestKeyCreationTime in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getListeners

      + +
      +
    • +
    • +
      +

      serializeToProtobuf

      +
      public List<Protos.Key> serializeToProtobuf()
      +
      Description copied from interface: KeyChain
      +
      Returns a list of keys serialized to the bitcoinj protobuf format.
      +
      +
      Specified by:
      +
      serializeToProtobuf in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      fromProtobufUnencrypted

      +
      public static BasicKeyChain fromProtobufUnencrypted(List<Protos.Key> keys) + throws UnreadableWalletException
      +
      Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys extracted from the list. Unrecognised + key types are ignored.
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      fromProtobufEncrypted

      +
      public static BasicKeyChain fromProtobufEncrypted(List<Protos.Key> keys, + KeyCrypter crypter) + throws UnreadableWalletException
      +
      Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys and also any encrypted keys extracted + from the list. Unrecognised key types are ignored.
      +
      +
      Throws:
      +
      UnreadableWalletException.BadPassword - if the password doesn't seem to match
      +
      UnreadableWalletException - if the data structures are corrupted/inconsistent
      +
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener)
      +
      Description copied from interface: KeyChain
      +
      Adds a listener for events that are run when keys are added, on the user thread.
      +
      +
      Specified by:
      +
      addEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener, + Executor executor)
      +
      Description copied from interface: KeyChain
      +
      Adds a listener for events that are run when keys are added, on the given executor.
      +
      +
      Specified by:
      +
      addEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      removeEventListener

      +
      public boolean removeEventListener(KeyChainEventListener listener)
      +
      Description copied from interface: KeyChain
      +
      Removes a listener for events that are run when keys are added.
      +
      +
      Specified by:
      +
      removeEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      toEncrypted

      +
      public BasicKeyChain toEncrypted(CharSequence password)
      +
      Convenience wrapper around toEncrypted(KeyCrypter, org.bouncycastle.crypto.params.KeyParameter) which uses the default Scrypt key derivation algorithm and + parameters, derives a key from the given password and returns the created key.
      +
      +
      Specified by:
      +
      toEncrypted in interface EncryptableKeyChain
      +
      Returns:
      +
      The derived key, in case you wish to cache it for future use.
      +
      +
      +
    • +
    • +
      +

      toEncrypted

      +
      public BasicKeyChain toEncrypted(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Encrypt the wallet using the KeyCrypter and the AES key. A good default KeyCrypter to use is + KeyCrypterScrypt.
      +
      +
      Specified by:
      +
      toEncrypted in interface EncryptableKeyChain
      +
      Parameters:
      +
      keyCrypter - The KeyCrypter that specifies how to encrypt/ decrypt a key
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming + to create from a password)
      +
      Throws:
      +
      KeyCrypterException - Thrown if the wallet encryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      public BasicKeyChain toDecrypted(CharSequence password)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Decrypts the key chain with the given password. See EncryptableKeyChain.toDecrypted(KeyParameter) + for details.
      +
      +
      Specified by:
      +
      toDecrypted in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      public BasicKeyChain toDecrypted(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Decrypt the key chain with the given AES key and whatever KeyCrypter is already set. Note that if you + just want to spend money from an encrypted wallet, don't decrypt the whole thing first. Instead, set the + SendRequest.aesKey field before asking the wallet to build the send.
      +
      +
      Specified by:
      +
      toDecrypted in interface EncryptableKeyChain
      +
      Parameters:
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to + create from a password)
      +
      +
      +
    • +
    • +
      +

      checkPassword

      +
      public boolean checkPassword(CharSequence password)
      +
      Returns whether the given password is correct for this key chain.
      +
      +
      Specified by:
      +
      checkPassword in interface EncryptableKeyChain
      +
      Throws:
      +
      IllegalStateException - if the chain is not encrypted at all.
      +
      +
      +
    • +
    • +
      +

      checkAESKey

      +
      public boolean checkAESKey(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Check whether the AES key can decrypt the first encrypted key in the wallet.
      +
      +
      Specified by:
      +
      checkAESKey in interface EncryptableKeyChain
      +
      Returns:
      +
      true if AES key supplied can decrypt the first encrypted private key in the wallet, false otherwise.
      +
      +
      +
    • +
    • +
      +

      getFilter

      +
      public BloomFilter getFilter(int size, + double falsePositiveRate, + long tweak)
      +
      Description copied from interface: KeyChain
      +

      Gets a bloom filter that contains all of the public keys from this chain, and which will provide the given + false-positive rate if it has size elements. Keep in mind that you will get 2 elements in the bloom filter for + each key in the key chain, for the public key and the hash of the public key (address form). For this reason + size should be at least 2x the result of KeyChain.numKeys().

      + +

      This is used to generate a BloomFilter which can be BloomFilter.merge(BloomFilter)d with + another. It could also be used if you have a specific target for the filter's size.

      + +

      See the docs for BloomFilter(int, double, long) for a brief + explanation of anonymity when using bloom filters, and for the meaning of these parameters.

      +
      +
      Specified by:
      +
      getFilter in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      numBloomFilterEntries

      +
      public int numBloomFilterEntries()
      +
      Description copied from interface: KeyChain
      +
      Returns the number of elements this chain wishes to insert into the Bloom filter. The size passed to + KeyChain.getFilter(int, double, long) should be at least this large.
      +
      +
      Specified by:
      +
      numBloomFilterEntries in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      findOldestKeyAfter

      +
      @Nullable +public ECKey findOldestKeyAfter(long timeSecs)
      +
      Returns the first ECKey created after the given UNIX time, or null if there is none.
      +
      +
    • +
    • +
      +

      findKeysBefore

      +
      public List<ECKey> findKeysBefore(long timeSecs)
      +
      Returns a list of all ECKeys created after the given UNIX time.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString(boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + NetworkParameters params)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelection.html b/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelection.html new file mode 100644 index 000000000..a1b45fc80 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelection.html @@ -0,0 +1,173 @@ + + + + +CoinSelection (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CoinSelection

+
+
java.lang.Object +
org.bitcoinj.wallet.CoinSelection
+
+
+
+
public class CoinSelection +extends Object
+
Represents the results of a + CoinSelector.select(Coin, List) operation. A + coin selection represents a list of spendable transaction outputs that sum together to give valueGathered. + Different coin selections could be produced by different coin selectors from the same input set, according + to their varying policies.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelector.html b/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelector.html new file mode 100644 index 000000000..2e7180a59 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/CoinSelector.html @@ -0,0 +1,140 @@ + + + + +CoinSelector (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface CoinSelector

+
+
+
+
All Known Implementing Classes:
+
AllowUnconfirmedCoinSelector, DefaultCoinSelector, FilteringCoinSelector, KeyTimeCoinSelector
+
+
+
public interface CoinSelector
+
A CoinSelector is responsible for picking some outputs to spend, from the list of all possible outputs. It + allows you to customize the policies for creation of transactions to suit your needs. The select operation + may return a CoinSelection that has a valueGathered lower than the requested target, if there's not + enough money in the wallet.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    select(Coin target, + List<TransactionOutput> candidates)
    +
    +
    Creates a CoinSelection that tries to meet the target amount of value.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      select

      +
      CoinSelection select(Coin target, + List<TransactionOutput> candidates)
      +
      Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to + this call and can be edited freely. See the docs for CoinSelection to learn more, or look a the implementation + of DefaultCoinSelector.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DecryptingKeyBag.html b/javadoc/0.16.3/org/bitcoinj/wallet/DecryptingKeyBag.html new file mode 100644 index 000000000..f645fa116 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DecryptingKeyBag.html @@ -0,0 +1,270 @@ + + + + +DecryptingKeyBag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DecryptingKeyBag

+
+
java.lang.Object +
org.bitcoinj.wallet.DecryptingKeyBag
+
+
+
+
All Implemented Interfaces:
+
KeyBag
+
+
+
public class DecryptingKeyBag +extends Object +implements KeyBag
+
A DecryptingKeyBag filters a pre-existing key bag, decrypting keys as they are requested using the provided + AES key. If the keys are encrypted and no AES key provided, ECKey.KeyIsEncryptedException + will be thrown.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    protected final org.bouncycastle.crypto.params.KeyParameter
    + +
     
    +
    protected final KeyBag
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    DecryptingKeyBag(KeyBag target, + org.bouncycastle.crypto.params.KeyParameter aesKey)
    +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    findKeyFromPubKey(byte[] pubKey)
    +
    +
    Locates a keypair from the keychain given the raw public key bytes.
    +
    + +
    findKeyFromPubKeyHash(byte[] pubKeyHash, + Script.ScriptType scriptType)
    +
    +
    Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type.
    +
    + +
    findRedeemDataFromScriptHash(byte[] scriptHash)
    +
    +
    Locates a redeem data (redeem script and keys) from the keychain given the hash of the script.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      target

      +
      protected final KeyBag target
      +
      +
    • +
    • +
      +

      aesKey

      +
      protected final org.bouncycastle.crypto.params.KeyParameter aesKey
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DecryptingKeyBag

      +
      public DecryptingKeyBag(KeyBag target, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      findKeyFromPubKeyHash

      +
      @Nullable +public ECKey findKeyFromPubKeyHash(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Description copied from interface: KeyBag
      +
      Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type. This is needed when finding out which key we need to use to redeem a transaction output.
      +
      +
      Specified by:
      +
      findKeyFromPubKeyHash in interface KeyBag
      +
      Parameters:
      +
      pubKeyHash - hash of the keypair to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or + Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      found key or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      @Nullable +public ECKey findKeyFromPubKey(byte[] pubKey)
      +
      Description copied from interface: KeyBag
      +
      Locates a keypair from the keychain given the raw public key bytes.
      +
      +
      Specified by:
      +
      findKeyFromPubKey in interface KeyBag
      +
      Returns:
      +
      ECKey or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      findRedeemDataFromScriptHash

      +
      @Nullable +public RedeemData findRedeemDataFromScriptHash(byte[] scriptHash)
      +
      Description copied from interface: KeyBag
      +
      Locates a redeem data (redeem script and keys) from the keychain given the hash of the script. + This is needed when finding out which key and script we need to use to locally sign a P2SH transaction input. + It is assumed that wallet should not have more than one private key for a single P2SH tx for security reasons. + + Returns RedeemData object or null if no such data was found.
      +
      +
      Specified by:
      +
      findRedeemDataFromScriptHash in interface KeyBag
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DefaultCoinSelector.html b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultCoinSelector.html new file mode 100644 index 000000000..86e5b77d1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultCoinSelector.html @@ -0,0 +1,218 @@ + + + + +DefaultCoinSelector (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DefaultCoinSelector

+
+
java.lang.Object +
org.bitcoinj.wallet.DefaultCoinSelector
+
+
+
+
All Implemented Interfaces:
+
CoinSelector
+
+
+
Direct Known Subclasses:
+
AllowUnconfirmedCoinSelector
+
+
+
public class DefaultCoinSelector +extends Object +implements CoinSelector
+
This class implements a CoinSelector which attempts to get the highest priority + possible. This means that the transaction is the most likely to get confirmed. Note that this means we may end up + "spending" more priority than would be required to get the transaction we are creating confirmed.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DefaultCoinSelector

      +
      protected DefaultCoinSelector()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      select

      +
      public CoinSelection select(Coin target, + List<TransactionOutput> candidates)
      +
      Description copied from interface: CoinSelector
      +
      Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to + this call and can be edited freely. See the docs for CoinSelection to learn more, or look a the implementation + of DefaultCoinSelector.
      +
      +
      Specified by:
      +
      select in interface CoinSelector
      +
      +
      +
    • +
    • +
      +

      shouldSelect

      +
      protected boolean shouldSelect(Transaction tx)
      +
      Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
      +
      +
    • +
    • +
      +

      isSelectable

      +
      public static boolean isSelectable(Transaction tx)
      +
      +
    • +
    • +
      +

      get

      +
      public static DefaultCoinSelector get()
      +
      Returns a global static instance of the selector.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DefaultKeyChainFactory.html b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultKeyChainFactory.html new file mode 100644 index 000000000..dda74fc51 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultKeyChainFactory.html @@ -0,0 +1,250 @@ + + + + +DefaultKeyChainFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DefaultKeyChainFactory

+
+
java.lang.Object +
org.bitcoinj.wallet.DefaultKeyChainFactory
+
+
+
+
All Implemented Interfaces:
+
KeyChainFactory
+
+
+
public class DefaultKeyChainFactory +extends Object +implements KeyChainFactory
+
Default factory for creating keychains while de-serializing.
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DefaultKeyChainFactory

      +
      public DefaultKeyChainFactory()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.Analyzer.html b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.Analyzer.html new file mode 100644 index 000000000..0f83c7256 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.Analyzer.html @@ -0,0 +1,176 @@ + + + + +DefaultRiskAnalysis.Analyzer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DefaultRiskAnalysis.Analyzer

+
+
java.lang.Object +
org.bitcoinj.wallet.DefaultRiskAnalysis.Analyzer
+
+
+
+
All Implemented Interfaces:
+
RiskAnalysis.Analyzer
+
+
+
Enclosing class:
+
DefaultRiskAnalysis
+
+
+
public static class DefaultRiskAnalysis.Analyzer +extends Object +implements RiskAnalysis.Analyzer
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.RuleViolation.html b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.RuleViolation.html new file mode 100644 index 000000000..55e21f3c1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.RuleViolation.html @@ -0,0 +1,256 @@ + + + + +DefaultRiskAnalysis.RuleViolation (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class DefaultRiskAnalysis.RuleViolation

+
+
java.lang.Object +
java.lang.Enum<DefaultRiskAnalysis.RuleViolation> +
org.bitcoinj.wallet.DefaultRiskAnalysis.RuleViolation
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<DefaultRiskAnalysis.RuleViolation>, Constable
+
+
+
Enclosing class:
+
DefaultRiskAnalysis
+
+
+
public static enum DefaultRiskAnalysis.RuleViolation +extends Enum<DefaultRiskAnalysis.RuleViolation>
+
The reason a transaction is considered non-standard, returned by + DefaultRiskAnalysis.isStandard(Transaction).
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.html b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.html new file mode 100644 index 000000000..cdbbf72ef --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DefaultRiskAnalysis.html @@ -0,0 +1,322 @@ + + + + +DefaultRiskAnalysis (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DefaultRiskAnalysis

+
+
java.lang.Object +
org.bitcoinj.wallet.DefaultRiskAnalysis
+
+
+
+
All Implemented Interfaces:
+
RiskAnalysis
+
+
+
public class DefaultRiskAnalysis +extends Object +implements RiskAnalysis
+

The default risk analysis. Currently, it only is concerned with whether a tx/dependency is non-final or not, and + whether a tx/dependency violates the dust rules. Outside of specialised protocols you should not encounter non-final + transactions.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      analyze

      +
      public RiskAnalysis.Result analyze()
      +
      +
      Specified by:
      +
      analyze in interface RiskAnalysis
      +
      +
      +
    • +
    • +
      +

      isStandard

      +
      public static DefaultRiskAnalysis.RuleViolation isStandard(Transaction tx)
      +

      Checks if a transaction is considered "standard" by Bitcoin Core's IsStandardTx and AreInputsStandard + functions.

      + +

      Note that this method currently only implements a minimum of checks. More to be added later.

      +
      +
    • +
    • +
      +

      isOutputStandard

      +
      public static DefaultRiskAnalysis.RuleViolation isOutputStandard(TransactionOutput output)
      +
      Checks the output to see if the script violates a standardness rule. Not complete.
      +
      +
    • +
    • +
      +

      isInputStandard

      +
      public static DefaultRiskAnalysis.RuleViolation isInputStandard(TransactionInput input)
      +
      Checks if the given input passes some of the AreInputsStandard checks. Not complete.
      +
      +
    • +
    • +
      +

      getNonStandard

      +
      @Nullable +public Transaction getNonStandard()
      +
      Returns the transaction that was found to be non-standard, or null.
      +
      +
    • +
    • +
      +

      getNonFinal

      +
      @Nullable +public Transaction getNonFinal()
      +
      Returns the transaction that was found to be non-final, or null.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.Builder.html new file mode 100644 index 000000000..ed290b49d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.Builder.html @@ -0,0 +1,446 @@ + + + + +DeterministicKeyChain.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicKeyChain.Builder<T extends DeterministicKeyChain.Builder<T>>

+
+
java.lang.Object +
org.bitcoinj.wallet.DeterministicKeyChain.Builder<T>
+
+
+
+
Direct Known Subclasses:
+
MarriedKeyChain.Builder
+
+
+
Enclosing class:
+
DeterministicKeyChain
+
+
+
public static class DeterministicKeyChain.Builder<T extends DeterministicKeyChain.Builder<T>> +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      random

      +
      protected SecureRandom random
      +
      +
    • +
    • +
      +

      bits

      +
      protected int bits
      +
      +
    • +
    • +
      +

      passphrase

      +
      protected String passphrase
      +
      +
    • +
    • +
      +

      creationTimeSecs

      +
      protected long creationTimeSecs
      +
      +
    • +
    • +
      +

      entropy

      +
      protected byte[] entropy
      +
      +
    • +
    • +
      +

      seed

      +
      protected DeterministicSeed seed
      +
      +
    • +
    • +
      +

      outputScriptType

      +
      protected Script.ScriptType outputScriptType
      +
      +
    • +
    • +
      +

      watchingKey

      +
      protected DeterministicKey watchingKey
      +
      +
    • +
    • +
      +

      isFollowing

      +
      protected boolean isFollowing
      +
      +
    • +
    • +
      +

      spendingKey

      +
      protected DeterministicKey spendingKey
      +
      +
    • +
    • +
      +

      accountPath

      +
      protected HDPath accountPath
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Builder

      +
      protected Builder()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      self

      +
      protected T self()
      +
      +
    • +
    • +
      +

      entropy

      +
      public T entropy(byte[] entropy, + long creationTimeSecs)
      +
      Creates a deterministic key chain starting from the given entropy. All keys yielded by this chain will be the same + if the starting entropy is the same. You should provide the creation time in seconds since the UNIX epoch for the + seed: this lets us know from what part of the chain we can expect to see derived keys appear.
      +
      +
    • +
    • +
      +

      seed

      +
      public T seed(DeterministicSeed seed)
      +
      Creates a deterministic key chain starting from the given seed. All keys yielded by this chain will be the same + if the starting seed is the same.
      +
      +
    • +
    • +
      +

      random

      +
      public T random(SecureRandom random, + int bits)
      +
      Generates a new key chain with entropy selected randomly from the given SecureRandom + object and of the requested size in bits. The derived seed is further protected with a user selected passphrase + (see BIP 39).
      +
      +
      Parameters:
      +
      random - the random number generator - use new SecureRandom().
      +
      bits - The number of bits of entropy to use when generating entropy. Either 128 (default), 192 or 256.
      +
      +
      +
    • +
    • +
      +

      random

      +
      public T random(SecureRandom random)
      +
      Generates a new key chain with 128 bits of entropy selected randomly from the given SecureRandom + object. The derived seed is further protected with a user selected passphrase + (see BIP 39).
      +
      +
      Parameters:
      +
      random - the random number generator - use new SecureRandom().
      +
      +
      +
    • +
    • +
      +

      watch

      +
      public T watch(DeterministicKey accountKey)
      +
      Creates a key chain that watches the given account key.
      +
      +
    • +
    • +
      +

      watchAndFollow

      +
      public T watchAndFollow(DeterministicKey accountKey)
      +
      Creates a deterministic key chain with the given watch key and that follows some other keychain. In a married + wallet following keychain represents "spouse". Watch key has to be an account key.
      +
      +
    • +
    • +
      +

      spend

      +
      public T spend(DeterministicKey accountKey)
      +
      Creates a key chain that can spend from the given account key.
      +
      +
    • +
    • +
      +

      outputScriptType

      +
      public T outputScriptType(Script.ScriptType outputScriptType)
      +
      +
    • +
    • +
      +

      passphrase

      +
      public T passphrase(String passphrase)
      +
      The passphrase to use with the generated mnemonic, or null if you would like to use the default empty string. Currently must be the empty string.
      +
      +
    • +
    • +
      +

      accountPath

      +
      public T accountPath(List<ChildNumber> accountPath)
      +
      Use an account path other than the default DeterministicKeyChain.ACCOUNT_ZERO_PATH.
      +
      +
    • +
    • +
      +

      build

      +
      public DeterministicKeyChain build()
      +
      +
    • +
    • +
      +

      getPassphrase

      +
      protected String getPassphrase()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.html b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.html new file mode 100644 index 000000000..434790a73 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicKeyChain.html @@ -0,0 +1,1293 @@ + + + + +DeterministicKeyChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicKeyChain

+
+
java.lang.Object +
org.bitcoinj.wallet.DeterministicKeyChain
+
+
+
+
All Implemented Interfaces:
+
EncryptableKeyChain, KeyChain
+
+
+
Direct Known Subclasses:
+
MarriedKeyChain
+
+
+
public class DeterministicKeyChain +extends Object +implements EncryptableKeyChain
+

A deterministic key chain is a KeyChain that uses the + BIP 32 standard, as implemented by + DeterministicHierarchy, to derive all the keys in the keychain from a master seed. + This type of wallet is extremely convenient and flexible. Although backing up full wallet files is always a good + idea, to recover money only the root seed needs to be preserved and that is a number small enough that it can be + written down on paper or, when represented using a BIP 39 MnemonicCode, + dictated over the phone (possibly even memorized).

+ +

Deterministic key chains have other advantages: parts of the key tree can be selectively revealed to allow + for auditing, and new public keys can be generated without access to the private keys, yielding a highly secure + configuration for web servers which can accept payments into a wallet but not spend from them. This does not work + quite how you would expect due to a quirk of elliptic curve mathematics and the techniques used to deal with it. + A watching wallet is not instantiated using the public part of the master key as you may imagine. Instead, you + need to take the account key (first child of the master key) and provide the public part of that to the watching + wallet instead. You can do this by calling getWatchingKey() and then serializing it with + DeterministicKey.serializePubB58(NetworkParameters). The resulting "xpub..." string encodes + sufficient information about the account key to create a watching chain via + DeterministicKey.deserializeB58(DeterministicKey, String, NetworkParameters) + (with null as the first parameter) and then + DeterministicKeyChain.Builder.watch(DeterministicKey).

+ +

This class builds on DeterministicHierarchy and + DeterministicKey by adding support for serialization to and from protobufs, + and encryption of parts of the key tree. Internally it arranges itself as per the BIP 32 spec, with the seed being + used to derive a master key, which is then used to derive an account key, the account key is used to derive two + child keys called the internal and external parent keys (for change and handing out addresses respectively) + and finally the actual leaf keys that users use hanging off the end. The leaf keys are special in that they don't + internally store the private part at all, instead choosing to rederive the private key from the parent when + needed for signing. This simplifies the design for encrypted key chains.

+ +

The key chain manages a lookahead zone. This zone is required because when scanning the chain, you don't + know exactly which keys might receive payments. The user may have handed out several addresses and received payments + on them, but for latency reasons the block chain is requested from remote peers in bulk, meaning you must + "look ahead" when calculating keys to put in the Bloom filter. The default lookahead zone is 100 keys, meaning if + the user hands out more than 100 addresses and receives payment on them before the chain is next scanned, some + transactions might be missed. 100 is a reasonable choice for consumer wallets running on CPU constrained devices. + For industrial wallets that are receiving keys all the time, a higher value is more appropriate. Ideally DKC and the + wallet would know how to adjust this value automatically, but that's not implemented at the moment.

+ +

In fact the real size of the lookahead zone is larger than requested, by default, it's one third larger. This + is because the act of deriving new keys means recalculating the Bloom filters and this is an expensive operation. + Thus, to ensure we don't have to recalculate on every single new key/address requested or seen we add more buffer + space and only extend the lookahead zone when that buffer is exhausted. For example with a lookahead zone of 100 + keys, you can request 33 keys before more keys will be calculated and the Bloom filter rebuilt and rebroadcast. + But even when you are requesting the 33rd key, you will still be looking 100 keys ahead. +

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      lock

      +
      protected final ReentrantLock lock
      +
      +
    • +
    • +
      +

      DEFAULT_PASSPHRASE_FOR_MNEMONIC

      +
      public static final String DEFAULT_PASSPHRASE_FOR_MNEMONIC
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ACCOUNT_ZERO_PATH

      +
      public static final HDPath ACCOUNT_ZERO_PATH
      +
      +
    • +
    • +
      +

      ACCOUNT_ONE_PATH

      +
      public static final HDPath ACCOUNT_ONE_PATH
      +
      +
    • +
    • +
      +

      BIP44_ACCOUNT_ZERO_PATH

      +
      public static final HDPath BIP44_ACCOUNT_ZERO_PATH
      +
      +
    • +
    • +
      +

      EXTERNAL_SUBPATH

      +
      public static final HDPath EXTERNAL_SUBPATH
      +
      +
    • +
    • +
      +

      INTERNAL_SUBPATH

      +
      public static final HDPath INTERNAL_SUBPATH
      +
      +
    • +
    • +
      +

      lookaheadSize

      +
      protected int lookaheadSize
      +
      +
    • +
    • +
      +

      lookaheadThreshold

      +
      protected int lookaheadThreshold
      +
      +
    • +
    • +
      +

      sigsRequiredToSpend

      +
      protected int sigsRequiredToSpend
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicKeyChain

      +
      public DeterministicKeyChain(DeterministicKey key, + boolean isFollowing, + boolean isWatching, + Script.ScriptType outputScriptType)
      +

      + Creates a deterministic key chain from a watched or spendable account key. If isWatching flag is set, + then creates a deterministic key chain that watches the given (public only) root key. You can use this to + calculate balances and generally follow along, but spending is not possible with such a chain. If it is not set, + then this creates a deterministic key chain that allows spending. If isFollowing flag is set(only allowed + if isWatching is set) then this keychain follows some other keychain. In a married wallet following + keychain represents "spouse's" keychain. +

      + +

      + This constructor is not stable across releases! If you need a stable API, use builder() to use a + DeterministicKeyChain.Builder. +

      +
      +
    • +
    • +
      +

      DeterministicKeyChain

      +
      protected DeterministicKeyChain(DeterministicSeed seed, + @Nullable + KeyCrypter crypter, + Script.ScriptType outputScriptType, + List<ChildNumber> accountPath)
      +

      + Creates a deterministic key chain with an encrypted deterministic seed using the provided account path. Using + KeyCrypter to decrypt. +

      + +

      + This constructor is not stable across releases! If you need a stable API, use builder() to use a + DeterministicKeyChain.Builder. +

      +
      +
    • +
    • +
      +

      DeterministicKeyChain

      +
      protected DeterministicKeyChain(KeyCrypter crypter, + org.bouncycastle.crypto.params.KeyParameter aesKey, + DeterministicKeyChain chain)
      +
      For use in encryption when toEncrypted(KeyCrypter, KeyParameter) is called, so that + subclasses can override that method and create an instance of the right class. + + See also makeKeyChainFromSeed(DeterministicSeed, List, Script.ScriptType)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      builder

      +
      public static DeterministicKeyChain.Builder<?> builder()
      +
      +
    • +
    • +
      +

      getAccountPath

      +
      public HDPath getAccountPath()
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      public Script.ScriptType getOutputScriptType()
      +
      +
    • +
    • +
      +

      getKey

      +
      public DeterministicKey getKey(KeyChain.KeyPurpose purpose)
      +
      Returns a freshly derived key that has not been returned by this method before.
      +
      +
      Specified by:
      +
      getKey in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getKeys

      +
      public List<DeterministicKey> getKeys(KeyChain.KeyPurpose purpose, + int numberOfKeys)
      +
      Returns freshly derived key/s that have not been returned by this method before.
      +
      +
      Specified by:
      +
      getKeys in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      markKeyAsUsed

      +
      public DeterministicKey markKeyAsUsed(DeterministicKey k)
      +
      Mark the DeterministicKey as used. + Also correct the issued{Internal|External}Keys counter, because all lower children seem to be requested already. + If the counter was updated, we also might trigger lookahead.
      +
      +
    • +
    • +
      +

      findKeyFromPubHash

      +
      public DeterministicKey findKeyFromPubHash(byte[] pubkeyHash)
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      public DeterministicKey findKeyFromPubKey(byte[] pubkey)
      +
      +
    • +
    • +
      +

      markPubHashAsUsed

      +
      @Nullable +public DeterministicKey markPubHashAsUsed(byte[] pubkeyHash)
      +
      Mark the DeterministicKeys as used, if they match the pubkeyHash + See markKeyAsUsed(DeterministicKey) for more info on this.
      +
      +
    • +
    • +
      +

      markPubKeyAsUsed

      +
      @Nullable +public DeterministicKey markPubKeyAsUsed(byte[] pubkey)
      +
      Mark the DeterministicKeys as used, if they match the pubkey + See markKeyAsUsed(DeterministicKey) for more info on this.
      +
      +
    • +
    • +
      +

      hasKey

      +
      public boolean hasKey(ECKey key)
      +
      Description copied from interface: KeyChain
      +
      Returns true if the given key is in the chain.
      +
      +
      Specified by:
      +
      hasKey in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getKeyByPath

      +
      protected DeterministicKey getKeyByPath(ChildNumber... path)
      +
      Returns the deterministic key for the given absolute path in the hierarchy.
      +
      +
    • +
    • +
      +

      getKeyByPath

      +
      protected DeterministicKey getKeyByPath(List<ChildNumber> path)
      +
      Returns the deterministic key for the given absolute path in the hierarchy.
      +
      +
    • +
    • +
      +

      getKeyByPath

      +
      public DeterministicKey getKeyByPath(List<ChildNumber> path, + boolean create)
      +
      Returns the deterministic key for the given absolute path in the hierarchy, optionally creating it
      +
      +
    • +
    • +
      +

      getRootKey

      +
      @Nullable +public DeterministicKey getRootKey()
      +
      +
    • +
    • +
      +

      getWatchingKey

      +
      public DeterministicKey getWatchingKey()
      +

      An alias for getKeyByPath(getAccountPath()).

      + +

      Use this when you would like to create a watching key chain that follows this one, but can't spend money from it. + The returned key can be serialized and then passed into DeterministicKeyChain.Builder.watch(DeterministicKey) + on another system to watch the hierarchy.

      + +

      Note that the returned key is not pubkey only unless this key chain already is: the returned key can still + be used for signing etc if the private key bytes are available.

      +
      +
    • +
    • +
      +

      isWatching

      +
      public boolean isWatching()
      +
      Returns true if this chain is watch only, meaning it has public keys but no private key.
      +
      +
    • +
    • +
      +

      numKeys

      +
      public int numKeys()
      +
      Description copied from interface: KeyChain
      +
      Returns the number of keys this key chain manages.
      +
      +
      Specified by:
      +
      numKeys in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      numLeafKeysIssued

      +
      public int numLeafKeysIssued()
      +
      Returns number of leaf keys used including both internal and external paths. This may be fewer than the number + that have been deserialized or held in memory, because of the lookahead zone.
      +
      +
    • +
    • +
      +

      getEarliestKeyCreationTime

      +
      public long getEarliestKeyCreationTime()
      +
      Description copied from interface: KeyChain
      +

      Returns the earliest creation time of keys in this chain, in seconds since the epoch. This can return zero + if at least one key does not have that data (was created before key timestamping was implemented). If there + are no keys in the wallet, Long.MAX_VALUE is returned.

      +
      +
      Specified by:
      +
      getEarliestKeyCreationTime in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener)
      +
      Description copied from interface: KeyChain
      +
      Adds a listener for events that are run when keys are added, on the user thread.
      +
      +
      Specified by:
      +
      addEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener, + Executor executor)
      +
      Description copied from interface: KeyChain
      +
      Adds a listener for events that are run when keys are added, on the given executor.
      +
      +
      Specified by:
      +
      addEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      removeEventListener

      +
      public boolean removeEventListener(KeyChainEventListener listener)
      +
      Description copied from interface: KeyChain
      +
      Removes a listener for events that are run when keys are added.
      +
      +
      Specified by:
      +
      removeEventListener in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getMnemonicCode

      +
      @Nullable +public List<String> getMnemonicCode()
      +
      Returns a list of words that represent the seed or null if this chain is a watching chain.
      +
      +
    • +
    • +
      +

      isFollowing

      +
      public boolean isFollowing()
      +
      Return true if this keychain is following another keychain
      +
      +
    • +
    • +
      +

      serializeToProtobuf

      +
      public List<Protos.Key> serializeToProtobuf()
      +
      Description copied from interface: KeyChain
      +
      Returns a list of keys serialized to the bitcoinj protobuf format.
      +
      +
      Specified by:
      +
      serializeToProtobuf in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      serializeMyselfToProtobuf

      +
      protected List<Protos.Key> serializeMyselfToProtobuf()
      +
      +
    • +
    • +
      +

      fromProtobuf

      +
      public static List<DeterministicKeyChain> fromProtobuf(List<Protos.Key> keys, + @Nullable + KeyCrypter crypter, + KeyChainFactory factory) + throws UnreadableWalletException
      +
      Returns all the key chains found in the given list of keys. Typically there will only be one, but in the case of + key rotation it can happen that there are multiple chains found.
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      toEncrypted

      +
      public DeterministicKeyChain toEncrypted(CharSequence password)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Takes the given password, which should be strong, derives a key from it and then invokes + EncryptableKeyChain.toEncrypted(KeyCrypter, KeyParameter) with + KeyCrypterScrypt as the crypter.
      +
      +
      Specified by:
      +
      toEncrypted in interface EncryptableKeyChain
      +
      Returns:
      +
      The derived key, in case you wish to cache it for future use.
      +
      +
      +
    • +
    • +
      +

      toEncrypted

      +
      public DeterministicKeyChain toEncrypted(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Returns a new keychain holding identical/cloned keys to this chain, but encrypted under the given key. + Old keys and keychains remain valid and so you should ensure you don't accidentally hold references to them.
      +
      +
      Specified by:
      +
      toEncrypted in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      public DeterministicKeyChain toDecrypted(CharSequence password)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Decrypts the key chain with the given password. See EncryptableKeyChain.toDecrypted(KeyParameter) + for details.
      +
      +
      Specified by:
      +
      toDecrypted in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      public DeterministicKeyChain toDecrypted(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Description copied from interface: EncryptableKeyChain
      +
      Decrypt the key chain with the given AES key and whatever KeyCrypter is already set. Note that if you + just want to spend money from an encrypted wallet, don't decrypt the whole thing first. Instead, set the + SendRequest.aesKey field before asking the wallet to build the send.
      +
      +
      Specified by:
      +
      toDecrypted in interface EncryptableKeyChain
      +
      Parameters:
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to + create from a password)
      +
      +
      +
    • +
    • +
      +

      makeKeyChainFromSeed

      +
      protected DeterministicKeyChain makeKeyChainFromSeed(DeterministicSeed seed, + List<ChildNumber> accountPath, + Script.ScriptType outputScriptType)
      +
      Factory method to create a key chain from a seed. + Subclasses should override this to create an instance of the subclass instead of a plain DKC. + This is used in encryption/decryption.
      +
      +
    • +
    • +
      +

      checkPassword

      +
      public boolean checkPassword(CharSequence password)
      +
      +
      Specified by:
      +
      checkPassword in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      checkAESKey

      +
      public boolean checkAESKey(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
      Specified by:
      +
      checkAESKey in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Description copied from interface: EncryptableKeyChain
      +
      Returns the key crypter used by this key chain, or null if it's not encrypted.
      +
      +
      Specified by:
      +
      getKeyCrypter in interface EncryptableKeyChain
      +
      +
      +
    • +
    • +
      +

      numBloomFilterEntries

      +
      public int numBloomFilterEntries()
      +
      Description copied from interface: KeyChain
      +
      Returns the number of elements this chain wishes to insert into the Bloom filter. The size passed to + KeyChain.getFilter(int, double, long) should be at least this large.
      +
      +
      Specified by:
      +
      numBloomFilterEntries in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getFilter

      +
      public BloomFilter getFilter(int size, + double falsePositiveRate, + long tweak)
      +
      Description copied from interface: KeyChain
      +

      Gets a bloom filter that contains all of the public keys from this chain, and which will provide the given + false-positive rate if it has size elements. Keep in mind that you will get 2 elements in the bloom filter for + each key in the key chain, for the public key and the hash of the public key (address form). For this reason + size should be at least 2x the result of KeyChain.numKeys().

      + +

      This is used to generate a BloomFilter which can be BloomFilter.merge(BloomFilter)d with + another. It could also be used if you have a specific target for the filter's size.

      + +

      See the docs for BloomFilter(int, double, long) for a brief + explanation of anonymity when using bloom filters, and for the meaning of these parameters.

      +
      +
      Specified by:
      +
      getFilter in interface KeyChain
      +
      +
      +
    • +
    • +
      +

      getLookaheadSize

      +
      public int getLookaheadSize()
      +

      The number of public keys we should pre-generate on each path before they are requested by the app. This is + required so that when scanning through the chain given only a seed, we can give enough keys to the remote node + via the Bloom filter such that we see transactions that are "from the future", for example transactions created + by a different app that's sharing the same seed, or transactions we made before but we're replaying the chain + given just the seed. The default is 100.

      +
      +
    • +
    • +
      +

      setLookaheadSize

      +
      public void setLookaheadSize(int lookaheadSize)
      +
      Sets a new lookahead size. See getLookaheadSize() for details on what this is. Setting a new size + that's larger than the current size will return immediately and the new size will only take effect next time + a fresh filter is requested (e.g. due to a new peer being connected). So you should set this before starting + to sync the chain, if you want to modify it. If you haven't modified the lookahead threshold manually then + it will be automatically set to be a third of the new size.
      +
      +
    • +
    • +
      +

      setLookaheadThreshold

      +
      public void setLookaheadThreshold(int num)
      +
      Sets the threshold for the key pre-generation. This is used to avoid adding new keys and thus + re-calculating Bloom filters every time a new key is calculated. Without a lookahead threshold, every time we + received a relevant transaction we'd extend the lookahead zone and generate a new filter, which is inefficient.
      +
      +
    • +
    • +
      +

      getLookaheadThreshold

      +
      public int getLookaheadThreshold()
      +
      Gets the threshold for the key pre-generation. See setLookaheadThreshold(int) for details on what this + is. The default is a third of the lookahead size (100 / 3 == 33). If you don't modify it explicitly then this + value will always be one third of the lookahead size.
      +
      +
    • +
    • +
      +

      maybeLookAhead

      +
      public void maybeLookAhead()
      +
      Pre-generate enough keys to reach the lookahead size. You can call this if you need to explicitly invoke + the lookahead procedure, but it's normally unnecessary as it will be done automatically when needed.
      +
      +
    • +
    • +
      +

      maybeLookAheadScripts

      +
      public void maybeLookAheadScripts()
      +
      Housekeeping call to call when lookahead might be needed. Normally called automatically by KeychainGroup.
      +
      +
    • +
    • +
      +

      getIssuedExternalKeys

      +
      public int getIssuedExternalKeys()
      +
      Returns number of keys used on external path. This may be fewer than the number that have been deserialized + or held in memory, because of the lookahead zone.
      +
      +
    • +
    • +
      +

      getIssuedInternalKeys

      +
      public int getIssuedInternalKeys()
      +
      Returns number of keys used on internal path. This may be fewer than the number that have been deserialized + or held in memory, because of the lookahead zone.
      +
      +
    • +
    • +
      +

      getSeed

      +
      @Nullable +public DeterministicSeed getSeed()
      +
      Returns the seed or null if this chain is a watching chain.
      +
      +
    • +
    • +
      +

      getIssuedReceiveKeys

      +
      public List<DeterministicKey> getIssuedReceiveKeys()
      +
      Returns only the external keys that have been issued by this chain, lookahead not included.
      +
      +
    • +
    • +
      +

      getLeafKeys

      +
      public List<DeterministicKey> getLeafKeys()
      +
      Returns leaf keys issued by this chain (including lookahead zone)
      +
      +
    • +
    • +
      +

      getKeyLookaheadEpoch

      +
      public int getKeyLookaheadEpoch()
      +
      Returns a counter that is incremented each time new keys are generated due to lookahead. Used by the network + code to learn whether to discard the current block and await calculation of a new filter.
      +
      +
    • +
    • +
      +

      isMarried

      +
      public boolean isMarried()
      +
      Whether the keychain is married. A keychain is married when it vends P2SH addresses + from multiple keychains in a multisig relationship.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      getRedeemData

      +
      public RedeemData getRedeemData(DeterministicKey followedKey)
      +
      Get redeem data for a key. Only applicable to married keychains.
      +
      +
    • +
    • +
      +

      freshOutputScript

      +
      public Script freshOutputScript(KeyChain.KeyPurpose purpose)
      +
      Create a new key and return the matching output script. Only applicable to married keychains.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString(boolean includeLookahead, + boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + NetworkParameters params)
      +
      +
    • +
    • +
      +

      formatAddresses

      +
      protected void formatAddresses(boolean includeLookahead, + boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + NetworkParameters params, + StringBuilder builder)
      +
      +
    • +
    • +
      +

      setSigsRequiredToSpend

      +
      public void setSigsRequiredToSpend(int sigsRequiredToSpend)
      +
      The number of signatures required to spend coins received by this keychain.
      +
      +
    • +
    • +
      +

      getSigsRequiredToSpend

      +
      public int getSigsRequiredToSpend()
      +
      Returns the number of signatures required to spend transactions for this KeyChain. It's the N from + N-of-M CHECKMULTISIG script for P2SH transactions and always 1 for other transaction types.
      +
      +
    • +
    • +
      +

      findRedeemDataByScriptHash

      +
      @Nullable +public RedeemData findRedeemDataByScriptHash(com.google.protobuf.ByteString bytes)
      +
      Returns the redeem script by its hash or null if this keychain did not generate the script.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicSeed.html b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicSeed.html new file mode 100644 index 000000000..99ef61c1b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicSeed.html @@ -0,0 +1,563 @@ + + + + +DeterministicSeed (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicSeed

+
+
java.lang.Object +
org.bitcoinj.wallet.DeterministicSeed
+
+
+
+
All Implemented Interfaces:
+
EncryptableItem
+
+
+
public class DeterministicSeed +extends Object +implements EncryptableItem
+
Holds the seed bytes for the BIP32 deterministic wallet algorithm, inside a + DeterministicKeyChain. The purpose of this wrapper is to simplify the encryption + code.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DEFAULT_SEED_ENTROPY_BITS

      +
      public static final int DEFAULT_SEED_ENTROPY_BITS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MAX_SEED_ENTROPY_BITS

      +
      public static final int MAX_SEED_ENTROPY_BITS
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(String mnemonicString, + byte[] seed, + String passphrase, + long creationTimeSeconds) + throws UnreadableWalletException
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(byte[] seed, + List<String> mnemonic, + long creationTimeSeconds)
      +
      +
    • +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(EncryptedData encryptedMnemonic, + @Nullable + EncryptedData encryptedSeed, + long creationTimeSeconds)
      +
      +
    • +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(List<String> mnemonicCode, + @Nullable + byte[] seed, + String passphrase, + long creationTimeSeconds)
      +
      Constructs a seed from a BIP 39 mnemonic code. See MnemonicCode for more + details on this scheme.
      +
      +
      Parameters:
      +
      mnemonicCode - A list of words.
      +
      seed - The derived seed, or pass null to derive it from mnemonicCode (slow)
      +
      passphrase - A user supplied passphrase, or an empty string if there is no passphrase
      +
      creationTimeSeconds - When the seed was originally created, UNIX time.
      +
      +
      +
    • +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(SecureRandom random, + int bits, + String passphrase)
      +
      Constructs a seed from a BIP 39 mnemonic code. See MnemonicCode for more + details on this scheme.
      +
      +
      Parameters:
      +
      random - Entropy source
      +
      bits - number of bits, must be divisible by 32
      +
      passphrase - A user supplied passphrase, or an empty string if there is no passphrase
      +
      +
      +
    • +
    • +
      +

      DeterministicSeed

      +
      public DeterministicSeed(byte[] entropy, + String passphrase, + long creationTimeSeconds)
      +
      Constructs a seed from a BIP 39 mnemonic code. See MnemonicCode for more + details on this scheme.
      +
      +
      Parameters:
      +
      entropy - entropy bits, length must be divisible by 32
      +
      passphrase - A user supplied passphrase, or an empty string if there is no passphrase
      +
      creationTimeSeconds - When the seed was originally created, UNIX time.
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      isEncrypted

      +
      public boolean isEncrypted()
      +
      Description copied from interface: EncryptableItem
      +
      Returns whether the item is encrypted or not. If it is, then EncryptableItem.getSecretBytes() will return null.
      +
      +
      Specified by:
      +
      isEncrypted in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString(boolean includePrivate)
      +
      +
    • +
    • +
      +

      toHexString

      +
      @Nullable +public String toHexString()
      +
      Returns the seed as hex or null if encrypted.
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      @Nullable +public byte[] getSecretBytes()
      +
      Description copied from interface: EncryptableItem
      +
      Returns the raw bytes of the item, if not encrypted, or null if encrypted or the secret is missing.
      +
      +
      Specified by:
      +
      getSecretBytes in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getSeedBytes

      +
      @Nullable +public byte[] getSeedBytes()
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      @Nullable +public EncryptedData getEncryptedData()
      +
      Description copied from interface: EncryptableItem
      +
      Returns the initialization vector and encrypted secret bytes, or null if not encrypted.
      +
      +
      Specified by:
      +
      getEncryptedData in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      public Protos.Wallet.EncryptionType getEncryptionType()
      +
      Description copied from interface: EncryptableItem
      +
      Returns an enum constant describing what algorithm was used to encrypt the key or UNENCRYPTED.
      +
      +
      Specified by:
      +
      getEncryptionType in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      getEncryptedSeedData

      +
      @Nullable +public EncryptedData getEncryptedSeedData()
      +
      +
    • +
    • +
      +

      getCreationTimeSeconds

      +
      public long getCreationTimeSeconds()
      +
      Description copied from interface: EncryptableItem
      +
      Returns the time in seconds since the UNIX epoch at which this encryptable item was first created/derived.
      +
      +
      Specified by:
      +
      getCreationTimeSeconds in interface EncryptableItem
      +
      +
      +
    • +
    • +
      +

      setCreationTimeSeconds

      +
      public void setCreationTimeSeconds(long creationTimeSeconds)
      +
      +
    • +
    • +
      +

      encrypt

      +
      public DeterministicSeed encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    • +
      +

      decrypt

      +
      public DeterministicSeed decrypt(KeyCrypter crypter, + String passphrase, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals(Object o)
      +
      +
      Overrides:
      +
      equals in class Object
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class Object
      +
      +
      +
    • +
    • +
      +

      check

      +
      public void check() + throws MnemonicException
      +
      Check if our mnemonic is a valid mnemonic phrase for our word list. + Does nothing if we are encrypted.
      +
      +
      Throws:
      +
      MnemonicException - if check fails
      +
      +
      +
    • +
    • +
      +

      getMnemonicCode

      +
      @Nullable +public List<String> getMnemonicCode()
      +
      Get the mnemonic code, or null if unknown.
      +
      +
    • +
    • +
      +

      getMnemonicString

      +
      @Nullable +public String getMnemonicString()
      +
      Get the mnemonic code as string, or null if unknown.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.html b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.html new file mode 100644 index 000000000..37759d1e3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiredException.html @@ -0,0 +1,151 @@ + + + + +DeterministicUpgradeRequiredException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicUpgradeRequiredException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.wallet.DeterministicUpgradeRequiredException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class DeterministicUpgradeRequiredException +extends RuntimeException
+
Indicates that an attempt was made to use HD wallet features on a wallet that was deserialized from an old, + pre-HD random wallet without calling upgradeToDeterministic() beforehand.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicUpgradeRequiredException

      +
      public DeterministicUpgradeRequiredException()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.html b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.html new file mode 100644 index 000000000..c7aca0884 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/DeterministicUpgradeRequiresPassword.html @@ -0,0 +1,152 @@ + + + + +DeterministicUpgradeRequiresPassword (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class DeterministicUpgradeRequiresPassword

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.wallet.DeterministicUpgradeRequiresPassword
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
public class DeterministicUpgradeRequiresPassword +extends RuntimeException
+
Indicates that the pre-HD random wallet is encrypted, so you should try the upgrade again after getting the + users password. This is required because HD wallets are upgraded from random using the private key bytes of + the oldest non-rotating key, in order to make the upgrade process itself deterministic.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DeterministicUpgradeRequiresPassword

      +
      public DeterministicUpgradeRequiresPassword()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/EncryptableKeyChain.html b/javadoc/0.16.3/org/bitcoinj/wallet/EncryptableKeyChain.html new file mode 100644 index 000000000..396851f20 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/EncryptableKeyChain.html @@ -0,0 +1,238 @@ + + + + +EncryptableKeyChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface EncryptableKeyChain

+
+
+
+
All Superinterfaces:
+
KeyChain
+
+
+
All Known Implementing Classes:
+
BasicKeyChain, DeterministicKeyChain, MarriedKeyChain
+
+
+
public interface EncryptableKeyChain +extends KeyChain
+
An encryptable key chain is a key-chain that can be encrypted with a user-provided password or AES key.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      toEncrypted

      +
      EncryptableKeyChain toEncrypted(CharSequence password)
      +
      Takes the given password, which should be strong, derives a key from it and then invokes + toEncrypted(KeyCrypter, KeyParameter) with + KeyCrypterScrypt as the crypter.
      +
      +
      Returns:
      +
      The derived key, in case you wish to cache it for future use.
      +
      +
      +
    • +
    • +
      +

      toEncrypted

      +
      EncryptableKeyChain toEncrypted(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Returns a new keychain holding identical/cloned keys to this chain, but encrypted under the given key. + Old keys and keychains remain valid and so you should ensure you don't accidentally hold references to them.
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      EncryptableKeyChain toDecrypted(CharSequence password)
      +
      Decrypts the key chain with the given password. See toDecrypted(KeyParameter) + for details.
      +
      +
    • +
    • +
      +

      toDecrypted

      +
      EncryptableKeyChain toDecrypted(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Decrypt the key chain with the given AES key and whatever KeyCrypter is already set. Note that if you + just want to spend money from an encrypted wallet, don't decrypt the whole thing first. Instead, set the + SendRequest.aesKey field before asking the wallet to build the send.
      +
      +
      Parameters:
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to + create from a password)
      +
      Throws:
      +
      KeyCrypterException - Thrown if the wallet decryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      checkPassword

      +
      boolean checkPassword(CharSequence password)
      +
      +
    • +
    • +
      +

      checkAESKey

      +
      boolean checkAESKey(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +KeyCrypter getKeyCrypter()
      +
      Returns the key crypter used by this key chain, or null if it's not encrypted.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/FilteringCoinSelector.html b/javadoc/0.16.3/org/bitcoinj/wallet/FilteringCoinSelector.html new file mode 100644 index 000000000..04e33aa93 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/FilteringCoinSelector.html @@ -0,0 +1,224 @@ + + + + +FilteringCoinSelector (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FilteringCoinSelector

+
+
java.lang.Object +
org.bitcoinj.wallet.FilteringCoinSelector
+
+
+
+
All Implemented Interfaces:
+
CoinSelector
+
+
+
public class FilteringCoinSelector +extends Object +implements CoinSelector
+
A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      FilteringCoinSelector

      +
      public FilteringCoinSelector(CoinSelector delegate)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      excludeOutputsSpentBy

      +
      public void excludeOutputsSpentBy(Transaction tx)
      +
      +
    • +
    • +
      +

      select

      +
      public CoinSelection select(Coin target, + List<TransactionOutput> candidates)
      +
      Description copied from interface: CoinSelector
      +
      Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to + this call and can be edited freely. See the docs for CoinSelection to learn more, or look a the implementation + of DefaultCoinSelector.
      +
      +
      Specified by:
      +
      select in interface CoinSelector
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyBag.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyBag.html new file mode 100644 index 000000000..71c827ae6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyBag.html @@ -0,0 +1,182 @@ + + + + +KeyBag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyBag

+
+
+
+
All Known Implementing Classes:
+
DecryptingKeyBag, KeyChainGroup, Wallet
+
+
+
public interface KeyBag
+
A KeyBag is simply an object that can map public keys, their 160-bit hashes and script hashes to ECKey + and RedeemData objects.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    findKeyFromPubKey(byte[] pubKey)
    +
    +
    Locates a keypair from the keychain given the raw public key bytes.
    +
    + +
    findKeyFromPubKeyHash(byte[] pubKeyHash, + Script.ScriptType scriptType)
    +
    +
    Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type.
    +
    + +
    findRedeemDataFromScriptHash(byte[] scriptHash)
    +
    +
    Locates a redeem data (redeem script and keys) from the keychain given the hash of the script.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      findKeyFromPubKeyHash

      +
      @Nullable +ECKey findKeyFromPubKeyHash(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type. This is needed when finding out which key we need to use to redeem a transaction output.
      +
      +
      Parameters:
      +
      pubKeyHash - hash of the keypair to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or + Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      found key or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      @Nullable +ECKey findKeyFromPubKey(byte[] pubKey)
      +
      Locates a keypair from the keychain given the raw public key bytes.
      +
      +
      Returns:
      +
      ECKey or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      findRedeemDataFromScriptHash

      +
      @Nullable +RedeemData findRedeemDataFromScriptHash(byte[] scriptHash)
      +
      Locates a redeem data (redeem script and keys) from the keychain given the hash of the script. + This is needed when finding out which key and script we need to use to locally sign a P2SH transaction input. + It is assumed that wallet should not have more than one private key for a single P2SH tx for security reasons. + + Returns RedeemData object or null if no such data was found.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.KeyPurpose.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.KeyPurpose.html new file mode 100644 index 000000000..2c8838e68 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.KeyPurpose.html @@ -0,0 +1,238 @@ + + + + +KeyChain.KeyPurpose (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class KeyChain.KeyPurpose

+
+
java.lang.Object +
java.lang.Enum<KeyChain.KeyPurpose> +
org.bitcoinj.wallet.KeyChain.KeyPurpose
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<KeyChain.KeyPurpose>, Constable
+
+
+
Enclosing interface:
+
KeyChain
+
+
+
public static enum KeyChain.KeyPurpose +extends Enum<KeyChain.KeyPurpose>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static KeyChain.KeyPurpose[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static KeyChain.KeyPurpose valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.html new file mode 100644 index 000000000..d65d6797a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChain.html @@ -0,0 +1,301 @@ + + + + +KeyChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyChain

+
+
+
+
All Known Subinterfaces:
+
EncryptableKeyChain
+
+
+
All Known Implementing Classes:
+
BasicKeyChain, DeterministicKeyChain, MarriedKeyChain
+
+
+
public interface KeyChain
+

A KeyChain is a class that stores a collection of keys for a Wallet. Key chains + are expected to be able to look up keys given a hash (i.e. address) or pubkey bytes, and provide keys on request + for a given purpose. They can inform event listeners about new keys being added.

+ +

However it is important to understand what this interface does not provide. It cannot encrypt or decrypt + keys, for instance you need an implementor of EncryptableKeyChain. It cannot have keys imported into it, + that you to use a method of a specific key chain instance, such as BasicKeyChain. The reason for these + restrictions is to support key chains that may be handled by external hardware or software, or which are derived + deterministically from a seed (and thus the notion of importing a key is meaningless).

+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Interface
    +
    Description
    +
    static enum 
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Adds a listener for events that are run when keys are added, on the user thread.
    +
    +
    void
    + +
    +
    Adds a listener for events that are run when keys are added, on the given executor.
    +
    +
    long
    + +
    +
    Returns the earliest creation time of keys in this chain, in seconds since the epoch.
    +
    + +
    getFilter(int size, + double falsePositiveRate, + long tweak)
    +
    +
    Gets a bloom filter that contains all of the public keys from this chain, and which will provide the given + false-positive rate if it has size elements.
    +
    + + +
    +
    Obtains a key intended for the given purpose.
    +
    +
    List<? extends ECKey>
    +
    getKeys(KeyChain.KeyPurpose purpose, + int numberOfKeys)
    +
    +
    Obtains a number of key/s intended for the given purpose.
    +
    +
    boolean
    + +
    +
    Returns true if the given key is in the chain.
    +
    +
    int
    + +
    +
    Returns the number of elements this chain wishes to insert into the Bloom filter.
    +
    +
    int
    + +
    +
    Returns the number of keys this key chain manages.
    +
    +
    boolean
    + +
    +
    Removes a listener for events that are run when keys are added.
    +
    + + +
    +
    Returns a list of keys serialized to the bitcoinj protobuf format.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasKey

      +
      boolean hasKey(ECKey key)
      +
      Returns true if the given key is in the chain.
      +
      +
    • +
    • +
      +

      getKeys

      +
      List<? extends ECKey> getKeys(KeyChain.KeyPurpose purpose, + int numberOfKeys)
      +
      Obtains a number of key/s intended for the given purpose. The chain may create new key/s, derive, or re-use an old one.
      +
      +
    • +
    • +
      +

      getKey

      +
      ECKey getKey(KeyChain.KeyPurpose purpose)
      +
      Obtains a key intended for the given purpose. The chain may create a new key, derive one, or re-use an old one.
      +
      +
    • +
    • +
      +

      serializeToProtobuf

      +
      List<Protos.Key> serializeToProtobuf()
      +
      Returns a list of keys serialized to the bitcoinj protobuf format.
      +
      +
    • +
    • +
      +

      addEventListener

      +
      void addEventListener(KeyChainEventListener listener)
      +
      Adds a listener for events that are run when keys are added, on the user thread.
      +
      +
    • +
    • +
      +

      addEventListener

      +
      void addEventListener(KeyChainEventListener listener, + Executor executor)
      +
      Adds a listener for events that are run when keys are added, on the given executor.
      +
      +
    • +
    • +
      +

      removeEventListener

      +
      boolean removeEventListener(KeyChainEventListener listener)
      +
      Removes a listener for events that are run when keys are added.
      +
      +
    • +
    • +
      +

      numKeys

      +
      int numKeys()
      +
      Returns the number of keys this key chain manages.
      +
      +
    • +
    • +
      +

      numBloomFilterEntries

      +
      int numBloomFilterEntries()
      +
      Returns the number of elements this chain wishes to insert into the Bloom filter. The size passed to + getFilter(int, double, long) should be at least this large.
      +
      +
    • +
    • +
      +

      getEarliestKeyCreationTime

      +
      long getEarliestKeyCreationTime()
      +

      Returns the earliest creation time of keys in this chain, in seconds since the epoch. This can return zero + if at least one key does not have that data (was created before key timestamping was implemented). If there + are no keys in the wallet, Long.MAX_VALUE is returned.

      +
      +
    • +
    • +
      +

      getFilter

      +
      BloomFilter getFilter(int size, + double falsePositiveRate, + long tweak)
      +

      Gets a bloom filter that contains all of the public keys from this chain, and which will provide the given + false-positive rate if it has size elements. Keep in mind that you will get 2 elements in the bloom filter for + each key in the key chain, for the public key and the hash of the public key (address form). For this reason + size should be at least 2x the result of numKeys().

      + +

      This is used to generate a BloomFilter which can be BloomFilter.merge(BloomFilter)d with + another. It could also be used if you have a specific target for the filter's size.

      + +

      See the docs for BloomFilter(int, double, long) for a brief + explanation of anonymity when using bloom filters, and for the meaning of these parameters.

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainFactory.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainFactory.html new file mode 100644 index 000000000..e4e760275 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainFactory.html @@ -0,0 +1,206 @@ + + + + +KeyChainFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyChainFactory

+
+
+
+
All Known Implementing Classes:
+
DefaultKeyChainFactory
+
+
+
public interface KeyChainFactory
+
Factory interface for creation keychains while de-serializing a wallet.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      makeKeyChain

      +
      DeterministicKeyChain makeKeyChain(DeterministicSeed seed, + KeyCrypter crypter, + boolean isMarried, + Script.ScriptType outputScriptType, + List<ChildNumber> accountPath)
      +
      Make a keychain (but not a watching one) with the specified account path
      +
      +
      Parameters:
      +
      seed - the seed
      +
      crypter - the encrypted/decrypter
      +
      isMarried - whether the keychain is leading in a marriage
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      accountPath - account path to generate receiving addresses on
      +
      +
      +
    • +
    • +
      +

      makeWatchingKeyChain

      +
      DeterministicKeyChain makeWatchingKeyChain(DeterministicKey accountKey, + boolean isFollowingKey, + boolean isMarried, + Script.ScriptType outputScriptType) + throws UnreadableWalletException
      +
      Make a watching keychain. + +

      isMarried and isFollowingKey must not be true at the same time.

      +
      +
      Parameters:
      +
      accountKey - the account extended public key
      +
      isFollowingKey - whether the keychain is following in a marriage
      +
      isMarried - whether the keychain is leading in a marriage
      +
      outputScriptType - type of addresses (aka output scripts) to generate for watching
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      makeSpendingKeyChain

      +
      DeterministicKeyChain makeSpendingKeyChain(DeterministicKey accountKey, + boolean isMarried, + Script.ScriptType outputScriptType) + throws UnreadableWalletException
      +
      Make a spending keychain. + +

      isMarried and isFollowingKey must not be true at the same time.

      +
      +
      Parameters:
      +
      accountKey - the account extended public key
      +
      isMarried - whether the keychain is leading in a marriage
      +
      outputScriptType - type of addresses (aka output scripts) to generate for spending
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.Builder.html new file mode 100644 index 000000000..82b9dd61e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.Builder.html @@ -0,0 +1,270 @@ + + + + +KeyChainGroup.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyChainGroup.Builder

+
+
java.lang.Object +
org.bitcoinj.wallet.KeyChainGroup.Builder
+
+
+
+
Enclosing class:
+
KeyChainGroup
+
+
+
public static class KeyChainGroup.Builder +extends Object
+
Builder for KeyChainGroup. Use KeyChainGroup.builder(NetworkParameters) to acquire an instance.
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      fromRandom

      +
      public KeyChainGroup.Builder fromRandom(Script.ScriptType outputScriptType)
      +

      Add chain from a random source.

      +

      In the case of P2PKH, just a P2PKH chain is created and activated which is then the default chain for fresh + addresses. It can be upgraded to P2WPKH later.

      +

      In the case of P2WPKH, both a P2PKH and a P2WPKH chain are created and activated, the latter being the default + chain. This behaviour will likely be changed with bitcoinj 0.16 such that only a P2WPKH chain is created and + activated.

      +
      +
      Parameters:
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      public KeyChainGroup.Builder fromSeed(DeterministicSeed seed, + Script.ScriptType outputScriptType)
      +

      Add chain from a given seed.

      +

      In the case of P2PKH, just a P2PKH chain is created and activated which is then the default chain for fresh + addresses. It can be upgraded to P2WPKH later.

      +

      In the case of P2WPKH, both a P2PKH and a P2WPKH chain are created and activated, the latter being the default + chain. This behaviour will likely be changed with bitcoinj 0.16 such that only a P2WPKH chain is created and + activated.

      +
      +
      Parameters:
      +
      seed - deterministic seed to derive all keys from
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      +
      +
    • +
    • +
      +

      fromKey

      +
      public KeyChainGroup.Builder fromKey(DeterministicKey accountKey, + Script.ScriptType outputScriptType)
      +

      Add chain from a given account key.

      +

      In the case of P2PKH, just a P2PKH chain is created and activated which is then the default chain for fresh + addresses. It can be upgraded to P2WPKH later.

      +

      In the case of P2WPKH, both a P2PKH and a P2WPKH chain are created and activated, the latter being the default + chain. This behaviour will likely be changed with bitcoinj 0.16 such that only a P2WPKH chain is created and + activated.

      +
      +
      Parameters:
      +
      accountKey - deterministic account key to derive all keys from
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      +
      +
    • +
    • +
      +

      addChain

      + +
      Add a single chain.
      +
      +
      Parameters:
      +
      chain - to add
      +
      +
      +
    • +
    • +
      +

      chains

      + +
      Add multiple chains.
      +
      +
      Parameters:
      +
      chains - to add
      +
      +
      +
    • +
    • +
      +

      lookaheadSize

      +
      public KeyChainGroup.Builder lookaheadSize(int lookaheadSize)
      +
      Set a custom lookahead size for all deterministic chains
      +
      +
      Parameters:
      +
      lookaheadSize - lookahead size
      +
      +
      +
    • +
    • +
      +

      lookaheadThreshold

      +
      public KeyChainGroup.Builder lookaheadThreshold(int lookaheadThreshold)
      +
      Set a custom lookahead threshold for all deterministic chains
      +
      +
      Parameters:
      +
      lookaheadThreshold - lookahead threshold
      +
      +
      +
    • +
    • +
      +

      build

      +
      public KeyChainGroup build()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.html new file mode 100644 index 000000000..3918b414c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroup.html @@ -0,0 +1,1037 @@ + + + + +KeyChainGroup (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyChainGroup

+
+
java.lang.Object +
org.bitcoinj.wallet.KeyChainGroup
+
+
+
+
All Implemented Interfaces:
+
KeyBag
+
+
+
public class KeyChainGroup +extends Object +implements KeyBag
+

A KeyChainGroup is used by the Wallet and manages: a BasicKeyChain object + (which will normally be empty), and zero or more DeterministicKeyChains. The last added + deterministic keychain is always the default active keychain, that's the one we normally derive keys and + addresses from.

+ +

There can be active keychains for each output script type. However this class almost entirely only works on + the default active keychain (see getActiveKeyChain()). The other active keychains + (see getActiveKeyChain(ScriptType, long)) are meant as fallback for if a sender doesn't understand a + certain new script type (e.g. P2WPKH which comes with the new Bech32 address format). Active keychains + share the same seed, so that upgrading the wallet + (see upgradeToDeterministic(ScriptType, KeyChainGroupStructure, long, KeyParameter)) to understand + a new script type doesn't require a fresh backup.

+ +

If a key rotation time is set, it may be necessary to add a new DeterministicKeyChain with a fresh seed + and also preserve the old one, so funds can be swept from the rotating keys. In this case, there may be + more than one deterministic chain. The latest chain is called the active chain and is where new keys are served + from.

+ +

The wallet delegates most key management tasks to this class. It is not thread safe and requires external + locking, i.e. by the wallet lock. The group then in turn delegates most operations to the key chain objects, + combining their responses together when necessary.

+ +

Deterministic key chains have a concept of a lookahead size and threshold. Please see the discussion in the + class docs for DeterministicKeyChain for more information on this topic.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createBasic

      +
      public static KeyChainGroup createBasic(NetworkParameters params)
      +
      Creates a keychain group with just a basic chain. No deterministic chains will be created automatically.
      +
      +
    • +
    • +
      +

      builder

      +
      public static KeyChainGroup.Builder builder(NetworkParameters params)
      +
      +
    • +
    • +
      +

      builder

      +
      public static KeyChainGroup.Builder builder(NetworkParameters params, + KeyChainGroupStructure structure)
      +
      +
    • +
    • +
      +

      isSupportsDeterministicChains

      +
      public boolean isSupportsDeterministicChains()
      +
      Returns true if it contains any deterministic keychain or one could be created.
      +
      +
    • +
    • +
      +

      addAndActivateHDChain

      +
      public void addAndActivateHDChain(DeterministicKeyChain chain)
      +
      Adds an HD chain to the chains list, and make it the default chain (from which keys are issued). + Useful for adding a complex pre-configured keychain, such as a married wallet.
      +
      +
    • +
    • +
      +

      currentKey

      +
      public DeterministicKey currentKey(KeyChain.KeyPurpose purpose)
      +
      Returns a key that hasn't been seen in a transaction yet, and which is suitable for displaying in a wallet + user interface as "a convenient key to receive funds on" when the purpose parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS. The returned key is stable until + it's actually seen in a pending or confirmed transaction, at which point this method will start returning + a different key (for each purpose independently). +

      This method is not supposed to be used for married keychains and will throw UnsupportedOperationException if + the active chain is married. + For married keychains use currentAddress(KeyChain.KeyPurpose) + to get a proper P2SH address

      +
      +
    • +
    • +
      +

      currentAddress

      +
      public Address currentAddress(KeyChain.KeyPurpose purpose)
      +
      Returns address for a currentKey(KeyChain.KeyPurpose)
      +
      +
    • +
    • +
      +

      freshKey

      +
      public DeterministicKey freshKey(KeyChain.KeyPurpose purpose)
      +
      Returns a key that has not been returned by this method before (fresh). You can think of this as being + a newly created key, although the notion of "create" is not really valid for a + DeterministicKeyChain. When the parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS the returned key is suitable for being put + into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key out + to someone who wishes to send money. +

      This method is not supposed to be used for married keychains and will throw UnsupportedOperationException if + the active chain is married. + For married keychains use freshAddress(KeyChain.KeyPurpose) + to get a proper P2SH address

      +
      +
    • +
    • +
      +

      freshKeys

      +
      public List<DeterministicKey> freshKeys(KeyChain.KeyPurpose purpose, + int numberOfKeys)
      +
      Returns a key/s that have not been returned by this method before (fresh). You can think of this as being + newly created key/s, although the notion of "create" is not really valid for a + DeterministicKeyChain. When the parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS the returned key is suitable for being put + into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key out + to someone who wishes to send money. +

      This method is not supposed to be used for married keychains and will throw UnsupportedOperationException if + the active chain is married. + For married keychains use freshAddress(KeyChain.KeyPurpose) + to get a proper P2SH address

      +
      +
    • +
    • +
      +

      freshAddress

      +
      public Address freshAddress(KeyChain.KeyPurpose purpose, + Script.ScriptType outputScriptType, + long keyRotationTimeSecs)
      +

      Returns a fresh address for a given KeyChain.KeyPurpose and of a given + Script.ScriptType.

      +

      This method is meant for when you really need a fallback address. Normally, you should be + using freshAddress(KeyChain.KeyPurpose) or + currentAddress(KeyChain.KeyPurpose).

      +
      +
    • +
    • +
      +

      freshAddress

      +
      public Address freshAddress(KeyChain.KeyPurpose purpose)
      +
      Returns address for a freshKey(KeyChain.KeyPurpose)
      +
      +
    • +
    • +
      +

      getActiveKeyChains

      +
      public List<DeterministicKeyChain> getActiveKeyChains(long keyRotationTimeSecs)
      +
      Returns the key chains that are used for generation of fresh/current keys, in the order of how they + were added. The default active chain will come last in the list.
      +
      +
    • +
    • +
      +

      getActiveKeyChain

      +
      public final DeterministicKeyChain getActiveKeyChain(Script.ScriptType outputScriptType, + long keyRotationTimeSecs)
      +
      Returns the key chain that's used for generation of fresh/current keys of the given type. If it's not the default + type and no active chain for this type exists, null is returned. No upgrade or downgrade is tried.
      +
      +
    • +
    • +
      +

      getActiveKeyChain

      +
      public final DeterministicKeyChain getActiveKeyChain()
      +
      Returns the key chain that's used for generation of default fresh/current keys. This is always the newest + deterministic chain. If no deterministic chain is present but imported keys instead, a deterministic upgrate is + tried.
      +
      +
    • +
    • +
      +

      mergeActiveKeyChains

      +
      public final void mergeActiveKeyChains(KeyChainGroup from, + long keyRotationTimeSecs)
      +
      Merge all active chains from the given keychain group into this keychain group.
      +
      +
    • +
    • +
      +

      getLookaheadSize

      +
      public int getLookaheadSize()
      +
      Gets the current lookahead size being used for ALL deterministic key chains. See + DeterministicKeyChain.setLookaheadSize(int) + for more information.
      +
      +
    • +
    • +
      +

      getLookaheadThreshold

      +
      public int getLookaheadThreshold()
      +
      Gets the current lookahead threshold being used for ALL deterministic key chains. See + DeterministicKeyChain.setLookaheadThreshold(int) + for more information.
      +
      +
    • +
    • +
      +

      importKeys

      +
      public int importKeys(List<ECKey> keys)
      +
      Imports the given keys into the basic chain, creating it if necessary.
      +
      +
    • +
    • +
      +

      importKeys

      +
      public int importKeys(ECKey... keys)
      +
      Imports the given keys into the basic chain, creating it if necessary.
      +
      +
    • +
    • +
      +

      checkPassword

      +
      public boolean checkPassword(CharSequence password)
      +
      +
    • +
    • +
      +

      checkAESKey

      +
      public boolean checkAESKey(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    • +
      +

      importKeysAndEncrypt

      +
      public int importKeysAndEncrypt(List<ECKey> keys, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Imports the given unencrypted keys into the basic chain, encrypting them along the way with the given key.
      +
      +
    • +
    • +
      +

      findRedeemDataFromScriptHash

      +
      @Nullable +public RedeemData findRedeemDataFromScriptHash(byte[] scriptHash)
      +
      Description copied from interface: KeyBag
      +
      Locates a redeem data (redeem script and keys) from the keychain given the hash of the script. + This is needed when finding out which key and script we need to use to locally sign a P2SH transaction input. + It is assumed that wallet should not have more than one private key for a single P2SH tx for security reasons. + + Returns RedeemData object or null if no such data was found.
      +
      +
      Specified by:
      +
      findRedeemDataFromScriptHash in interface KeyBag
      +
      +
      +
    • +
    • +
      +

      markP2SHAddressAsUsed

      +
      public void markP2SHAddressAsUsed(LegacyAddress address)
      +
      +
    • +
    • +
      +

      findKeyFromPubKeyHash

      +
      @Nullable +public ECKey findKeyFromPubKeyHash(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Description copied from interface: KeyBag
      +
      Locates a keypair from the keychain given the hash of the public key, and (optionally) by usage for a specific + script type. This is needed when finding out which key we need to use to redeem a transaction output.
      +
      +
      Specified by:
      +
      findKeyFromPubKeyHash in interface KeyBag
      +
      Parameters:
      +
      pubKeyHash - hash of the keypair to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or + Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      found key or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      markPubKeyHashAsUsed

      +
      public void markPubKeyHashAsUsed(byte[] pubKeyHash)
      +
      Mark the DeterministicKeys as used, if they match the pubKeyHash + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
      +
      +
    • +
    • +
      +

      hasKey

      +
      public boolean hasKey(ECKey key)
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      @Nullable +public ECKey findKeyFromPubKey(byte[] pubKey)
      +
      Description copied from interface: KeyBag
      +
      Locates a keypair from the keychain given the raw public key bytes.
      +
      +
      Specified by:
      +
      findKeyFromPubKey in interface KeyBag
      +
      Returns:
      +
      ECKey or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      markPubKeyAsUsed

      +
      public void markPubKeyAsUsed(byte[] pubkey)
      +
      Mark the DeterministicKeys as used, if they match the pubkey + See DeterministicKeyChain.markKeyAsUsed(DeterministicKey) for more info on this.
      +
      +
    • +
    • +
      +

      numKeys

      +
      public int numKeys()
      +
      Returns the number of keys managed by this group, including the lookahead buffers.
      +
      +
    • +
    • +
      +

      removeImportedKey

      +
      public boolean removeImportedKey(ECKey key)
      +
      Removes a key that was imported into the basic key chain. You cannot remove deterministic keys.
      +
      +
      Throws:
      +
      IllegalArgumentException - if the key is deterministic.
      +
      +
      +
    • +
    • +
      +

      isMarried

      +
      public final boolean isMarried()
      +
      Whether the active keychain is married. A keychain is married when it vends P2SH addresses + from multiple keychains in a multisig relationship.
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      encrypt

      +
      public void encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Encrypt the keys in the group using the KeyCrypter and the AES key. A good default KeyCrypter to use is + KeyCrypterScrypt.
      +
      +
      Throws:
      +
      KeyCrypterException - Thrown if the wallet encryption fails for some reason, + leaving the group unchanged.
      +
      DeterministicUpgradeRequiredException - Thrown if there are random keys but no HD chain.
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public void decrypt(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Decrypt the keys in the group using the previously given key crypter and the AES key. A good default + KeyCrypter to use is KeyCrypterScrypt.
      +
      +
      Throws:
      +
      KeyCrypterException - Thrown if the wallet decryption fails for some reason, leaving the group unchanged.
      +
      +
      +
    • +
    • +
      +

      isEncrypted

      +
      public boolean isEncrypted()
      +
      Returns true if the group is encrypted.
      +
      +
    • +
    • +
      +

      isWatching

      +
      public boolean isWatching()
      +
      Returns whether this chain has only watching keys (unencrypted keys with no private part). Mixed chains are + forbidden.
      +
      +
      Throws:
      +
      IllegalStateException - if there are no keys, or if there is a mix between watching and non-watching keys.
      +
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Returns the key crypter or null if the group is not encrypted.
      +
      +
    • +
    • +
      +

      getImportedKeys

      +
      public List<ECKey> getImportedKeys()
      +
      Returns a list of the non-deterministic keys that have been imported into the wallet, or the empty list if none.
      +
      +
    • +
    • +
      +

      getEarliestKeyCreationTime

      +
      public long getEarliestKeyCreationTime()
      +
      +
    • +
    • +
      +

      getBloomFilterElementCount

      +
      public int getBloomFilterElementCount()
      +
      +
    • +
    • +
      +

      getBloomFilter

      +
      public BloomFilter getBloomFilter(int size, + double falsePositiveRate, + long nTweak)
      +
      +
    • +
    • +
      +

      isRequiringUpdateAllBloomFilter

      +
      public boolean isRequiringUpdateAllBloomFilter()
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener)
      +
      Adds a listener for events that are run when keys are added, on the user thread.
      +
      +
    • +
    • +
      +

      addEventListener

      +
      public void addEventListener(KeyChainEventListener listener, + Executor executor)
      +
      Adds a listener for events that are run when keys are added, on the given executor.
      +
      +
    • +
    • +
      +

      removeEventListener

      +
      public boolean removeEventListener(KeyChainEventListener listener)
      +
      Removes a listener for events that are run when keys are added.
      +
      +
    • +
    • +
      +

      addCurrentKeyChangeEventListener

      +
      public void addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener listener)
      +
      Removes a listener for events that are run when a current key and/or address changes.
      +
      +
    • +
    • +
      +

      addCurrentKeyChangeEventListener

      +
      public void addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener listener, + Executor executor)
      +
      Adds a listener for events that are run when a current key and/or address changes, on the given + executor.
      +
      +
    • +
    • +
      +

      removeCurrentKeyChangeEventListener

      +
      public boolean removeCurrentKeyChangeEventListener(CurrentKeyChangeEventListener listener)
      +
      Removes a listener for events that are run when a current key and/or address changes.
      +
      +
    • +
    • +
      +

      serializeToProtobuf

      +
      public List<Protos.Key> serializeToProtobuf()
      +
      Returns a list of key protobufs obtained by merging the chains.
      +
      +
    • +
    • +
      +

      fromProtobufUnencrypted

      +
      public static KeyChainGroup fromProtobufUnencrypted(NetworkParameters params, + List<Protos.Key> keys, + KeyChainFactory factory) + throws UnreadableWalletException
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      fromProtobufEncrypted

      +
      public static KeyChainGroup fromProtobufEncrypted(NetworkParameters params, + List<Protos.Key> keys, + KeyCrypter crypter, + KeyChainFactory factory) + throws UnreadableWalletException
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      upgradeToDeterministic

      +
      public void upgradeToDeterministic(Script.ScriptType preferredScriptType, + KeyChainGroupStructure structure, + long keyRotationTimeSecs, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws DeterministicUpgradeRequiresPassword, +AllRandomKeysRotating
      +

      This method will upgrade the wallet along the following path: Basic --> P2PKH --> P2WPKH

      +

      It won't skip any steps in that upgrade path because the user might be restoring from a backup and + still expects money on the P2PKH chain.

      +

      It will extract and reuse the seed from the current wallet, so that a fresh backup isn't required + after upgrading. If coming from a basic chain containing only random keys this means it will pick the + oldest non-rotating private key as a seed.

      +

      Note that for upgrading an encrypted wallet, the decryption key is needed. In future, we could skip + that requirement for a P2PKH --> P2WPKH upgrade and just clone the encryped seed, but currently + the key is needed even for that.

      +
      +
      Parameters:
      +
      preferredScriptType - desired script type for the active keychain
      +
      structure - keychain group structure to derive an account path from
      +
      keyRotationTimeSecs - If non-zero, UNIX time for which keys created before this are assumed to be + compromised or weak, those keys will not be used for deterministic upgrade.
      +
      aesKey - If non-null, the encryption key the keychain is encrypted under. If the keychain is encrypted + and this is not supplied, an exception is thrown letting you know you should ask the user for + their password, turn it into a key, and then try again.
      +
      Throws:
      +
      IllegalStateException - if there is already a deterministic key chain present or if there are + no random keys (i.e. this is not an upgrade scenario), or if aesKey is + provided but the wallet is not encrypted.
      +
      IllegalArgumentException - if the rotation time specified excludes all keys.
      +
      DeterministicUpgradeRequiresPassword - if the key chain group is encrypted + and you should provide the users encryption key.
      +
      AllRandomKeysRotating
      +
      +
      +
    • +
    • +
      +

      isDeterministicUpgradeRequired

      +
      public boolean isDeterministicUpgradeRequired(Script.ScriptType preferredScriptType, + long keyRotationTimeSecs)
      +
      Returns true if a call to upgradeToDeterministic(ScriptType, KeyChainGroupStructure, long, KeyParameter) is required + in order to have an active deterministic keychain of the desired script type.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString(boolean includeLookahead, + boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      +
    • +
    • +
      +

      getDeterministicKeyChains

      +
      public List<DeterministicKeyChain> getDeterministicKeyChains()
      +
      Returns a copy of the current list of chains.
      +
      +
    • +
    • +
      +

      getCombinedKeyLookaheadEpochs

      +
      public int getCombinedKeyLookaheadEpochs()
      +
      Returns a counter that increases (by an arbitrary amount) each time new keys have been calculated due to + lookahead and thus the Bloom filter that was previously calculated has become stale.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroupStructure.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroupStructure.html new file mode 100644 index 000000000..0447a869c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyChainGroupStructure.html @@ -0,0 +1,161 @@ + + + + +KeyChainGroupStructure (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyChainGroupStructure

+
+
+
+
public interface KeyChainGroupStructure
+
Defines a structure for hierarchical deterministic wallets.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      accountPathFor

      +
      HDPath accountPathFor(Script.ScriptType outputScriptType)
      +
      Map desired output script type to an account path
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/KeyTimeCoinSelector.html b/javadoc/0.16.3/org/bitcoinj/wallet/KeyTimeCoinSelector.html new file mode 100644 index 000000000..797dfd146 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/KeyTimeCoinSelector.html @@ -0,0 +1,222 @@ + + + + +KeyTimeCoinSelector (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class KeyTimeCoinSelector

+
+
java.lang.Object +
org.bitcoinj.wallet.KeyTimeCoinSelector
+
+
+
+
All Implemented Interfaces:
+
CoinSelector
+
+
+
public class KeyTimeCoinSelector +extends Object +implements CoinSelector
+
A coin selector that takes all coins assigned to keys created before the given timestamp. + Used as part of the implementation of Wallet.setKeyRotationTime(java.util.Date).
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      KeyTimeCoinSelector

      +
      public KeyTimeCoinSelector(Wallet wallet, + long unixTimeSeconds, + boolean ignorePending)
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      select

      +
      public CoinSelection select(Coin target, + List<TransactionOutput> candidates)
      +
      Description copied from interface: CoinSelector
      +
      Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to + this call and can be edited freely. See the docs for CoinSelection to learn more, or look a the implementation + of DefaultCoinSelector.
      +
      +
      Specified by:
      +
      select in interface CoinSelector
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.Builder.html new file mode 100644 index 000000000..390f18b29 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.Builder.html @@ -0,0 +1,219 @@ + + + + +MarriedKeyChain.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MarriedKeyChain.Builder<T extends MarriedKeyChain.Builder<T>>

+
+
java.lang.Object +
org.bitcoinj.wallet.DeterministicKeyChain.Builder<T> +
org.bitcoinj.wallet.MarriedKeyChain.Builder<T>
+
+
+
+
+
Enclosing class:
+
MarriedKeyChain
+
+
+
public static class MarriedKeyChain.Builder<T extends MarriedKeyChain.Builder<T>> +extends DeterministicKeyChain.Builder<T>
+ +
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Builder

      +
      protected Builder()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      followingKeys

      +
      public T followingKeys(List<DeterministicKey> followingKeys)
      +
      +
    • +
    • +
      +

      followingKeys

      +
      public T followingKeys(DeterministicKey followingKey, + DeterministicKey... followingKeys)
      +
      +
    • +
    • +
      +

      threshold

      +
      public T threshold(int threshold)
      +

      Threshold, or (followingKeys.size() + 1) / 2 + 1) (majority) if unspecified.

      +

      IMPORTANT: As of Bitcoin Core 0.9 all multisig transactions which require more than 3 public keys are non-standard + and such spends won't be processed by peers with default settings, essentially making such transactions almost + nonspendable

      +
      +
    • +
    • +
      +

      build

      +
      public MarriedKeyChain build()
      +
      +
      Overrides:
      +
      build in class DeterministicKeyChain.Builder<T extends MarriedKeyChain.Builder<T>>
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.html b/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.html new file mode 100644 index 000000000..60fb7b58f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/MarriedKeyChain.html @@ -0,0 +1,443 @@ + + + + +MarriedKeyChain (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MarriedKeyChain

+
+
java.lang.Object +
org.bitcoinj.wallet.DeterministicKeyChain +
org.bitcoinj.wallet.MarriedKeyChain
+
+
+
+
+
All Implemented Interfaces:
+
EncryptableKeyChain, KeyChain
+
+
+
public class MarriedKeyChain +extends DeterministicKeyChain
+

A multi-signature keychain using synchronized HD keys (a.k.a HDM)

+

This keychain keeps track of following keychains that follow the account key of this keychain. + You can get P2SH addresses to receive coins to from this chain. The threshold - sigsRequiredToSpend + specifies how many signatures required to spend transactions for this married keychain. This value should not exceed + total number of keys involved (one followed key plus number of following keys), otherwise IllegalArgumentException + will be thrown.

+

IMPORTANT: As of Bitcoin Core 0.9 all bare (non-P2SH) multisig transactions which require more than 3 public keys are non-standard + and such spends won't be processed by peers with default settings, essentially making such transactions almost + nonspendable

+

This method will throw an IllegalStateException, if the keychain is already married or already has leaf keys + issued.

+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.Builder.html new file mode 100644 index 000000000..8a9b2c56f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.Builder.html @@ -0,0 +1,808 @@ + + + + +Protos.DeterministicKey.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.DeterministicKey.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.DeterministicKey,Protos.DeterministicKey.Builder> +
org.bitcoinj.wallet.Protos.DeterministicKey.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.DeterministicKeyOrBuilder
+
+
+
Enclosing class:
+
Protos.DeterministicKey
+
+
+
public static final class Protos.DeterministicKey.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.DeterministicKey,Protos.DeterministicKey.Builder> +implements Protos.DeterministicKeyOrBuilder
+
+
+ Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+ 
+ + Protobuf type wallet.DeterministicKey
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasChainCode

      +
      public boolean hasChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Specified by:
      +
      hasChainCode in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the chainCode field is set.
      +
      +
      +
    • +
    • +
      +

      getChainCode

      +
      public com.google.protobuf.ByteString getChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Specified by:
      +
      getChainCode in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The chainCode.
      +
      +
      +
    • +
    • +
      +

      setChainCode

      +
      public Protos.DeterministicKey.Builder setChainCode(com.google.protobuf.ByteString value)
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Parameters:
      +
      value - The chainCode to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearChainCode

      +
      public Protos.DeterministicKey.Builder clearChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getPathList

      +
      public List<Integer> getPathList()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPathList in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      A list containing the path.
      +
      +
      +
    • +
    • +
      +

      getPathCount

      +
      public int getPathCount()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPathCount in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The count of path.
      +
      +
      +
    • +
    • +
      +

      getPath

      +
      public int getPath(int index)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPath in interface Protos.DeterministicKeyOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The path at the given index.
      +
      +
      +
    • +
    • +
      +

      setPath

      +
      public Protos.DeterministicKey.Builder setPath(int index, + int value)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Parameters:
      +
      value - The path to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addPath

      +
      public Protos.DeterministicKey.Builder addPath(int value)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Parameters:
      +
      value - The path to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllPath

      +
      public Protos.DeterministicKey.Builder addAllPath(Iterable<? extends Integer> values)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Parameters:
      +
      values - The path to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPath

      +
      public Protos.DeterministicKey.Builder clearPath()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasIssuedSubkeys

      +
      public boolean hasIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Specified by:
      +
      hasIssuedSubkeys in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the issuedSubkeys field is set.
      +
      +
      +
    • +
    • +
      +

      getIssuedSubkeys

      +
      public int getIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Specified by:
      +
      getIssuedSubkeys in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The issuedSubkeys.
      +
      +
      +
    • +
    • +
      +

      setIssuedSubkeys

      +
      public Protos.DeterministicKey.Builder setIssuedSubkeys(int value)
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Parameters:
      +
      value - The issuedSubkeys to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearIssuedSubkeys

      +
      public Protos.DeterministicKey.Builder clearIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLookaheadSize

      +
      public boolean hasLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Specified by:
      +
      hasLookaheadSize in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the lookaheadSize field is set.
      +
      +
      +
    • +
    • +
      +

      getLookaheadSize

      +
      public int getLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Specified by:
      +
      getLookaheadSize in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The lookaheadSize.
      +
      +
      +
    • +
    • +
      +

      setLookaheadSize

      +
      public Protos.DeterministicKey.Builder setLookaheadSize(int value)
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Parameters:
      +
      value - The lookaheadSize to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLookaheadSize

      +
      public Protos.DeterministicKey.Builder clearLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasIsFollowing

      +
      public boolean hasIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Specified by:
      +
      hasIsFollowing in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the isFollowing field is set.
      +
      +
      +
    • +
    • +
      +

      getIsFollowing

      +
      public boolean getIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Specified by:
      +
      getIsFollowing in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The isFollowing.
      +
      +
      +
    • +
    • +
      +

      setIsFollowing

      +
      public Protos.DeterministicKey.Builder setIsFollowing(boolean value)
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Parameters:
      +
      value - The isFollowing to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearIsFollowing

      +
      public Protos.DeterministicKey.Builder clearIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSigsRequiredToSpend

      +
      public boolean hasSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Specified by:
      +
      hasSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the sigsRequiredToSpend field is set.
      +
      +
      +
    • +
    • +
      +

      getSigsRequiredToSpend

      +
      public int getSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Specified by:
      +
      getSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The sigsRequiredToSpend.
      +
      +
      +
    • +
    • +
      +

      setSigsRequiredToSpend

      +
      public Protos.DeterministicKey.Builder setSigsRequiredToSpend(int value)
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Parameters:
      +
      value - The sigsRequiredToSpend to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSigsRequiredToSpend

      +
      public Protos.DeterministicKey.Builder clearSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.html new file mode 100644 index 000000000..e99827cd6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKey.html @@ -0,0 +1,855 @@ + + + + +Protos.DeterministicKey (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.DeterministicKey

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.DeterministicKey,Protos.DeterministicKey.Builder> +
org.bitcoinj.wallet.Protos.DeterministicKey
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.DeterministicKeyOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.DeterministicKey +extends com.google.protobuf.GeneratedMessageLite<Protos.DeterministicKey,Protos.DeterministicKey.Builder> +implements Protos.DeterministicKeyOrBuilder
+
+
+ Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
+ 
+ + Protobuf type wallet.DeterministicKey
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + + Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    + Random data that allows us to extend a key.
    +
    + + +
     
    +
    boolean
    + +
    +
    + + Flag indicating that this key is a root of a following chain.
    +
    +
    int
    + +
    +
    + How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
    +
    +
    int
    + +
    +
    optional uint32 lookahead_size = 4;
    +
    +
    int
    +
    getPath(int index)
    +
    +
    + The path through the key tree.
    +
    +
    int
    + +
    +
    + The path through the key tree.
    +
    + + +
    +
    + The path through the key tree.
    +
    +
    int
    + +
    +
    + Number of signatures required to spend.
    +
    +
    boolean
    + +
    +
    + Random data that allows us to extend a key.
    +
    +
    boolean
    + +
    +
    + + Flag indicating that this key is a root of a following chain.
    +
    +
    boolean
    + +
    +
    + How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
    +
    +
    boolean
    + +
    +
    optional uint32 lookahead_size = 4;
    +
    +
    boolean
    + +
    +
    + Number of signatures required to spend.
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.DeterministicKey>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      CHAIN_CODE_FIELD_NUMBER

      +
      public static final int CHAIN_CODE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PATH_FIELD_NUMBER

      +
      public static final int PATH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ISSUED_SUBKEYS_FIELD_NUMBER

      +
      public static final int ISSUED_SUBKEYS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LOOKAHEAD_SIZE_FIELD_NUMBER

      +
      public static final int LOOKAHEAD_SIZE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ISFOLLOWING_FIELD_NUMBER

      +
      public static final int ISFOLLOWING_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SIGSREQUIREDTOSPEND_FIELD_NUMBER

      +
      public static final int SIGSREQUIREDTOSPEND_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasChainCode

      +
      public boolean hasChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Specified by:
      +
      hasChainCode in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the chainCode field is set.
      +
      +
      +
    • +
    • +
      +

      getChainCode

      +
      public com.google.protobuf.ByteString getChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Specified by:
      +
      getChainCode in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The chainCode.
      +
      +
      +
    • +
    • +
      +

      getPathList

      +
      public List<Integer> getPathList()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPathList in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      A list containing the path.
      +
      +
      +
    • +
    • +
      +

      getPathCount

      +
      public int getPathCount()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPathCount in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The count of path.
      +
      +
      +
    • +
    • +
      +

      getPath

      +
      public int getPath(int index)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Specified by:
      +
      getPath in interface Protos.DeterministicKeyOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The path at the given index.
      +
      +
      +
    • +
    • +
      +

      hasIssuedSubkeys

      +
      public boolean hasIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Specified by:
      +
      hasIssuedSubkeys in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the issuedSubkeys field is set.
      +
      +
      +
    • +
    • +
      +

      getIssuedSubkeys

      +
      public int getIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Specified by:
      +
      getIssuedSubkeys in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The issuedSubkeys.
      +
      +
      +
    • +
    • +
      +

      hasLookaheadSize

      +
      public boolean hasLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Specified by:
      +
      hasLookaheadSize in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the lookaheadSize field is set.
      +
      +
      +
    • +
    • +
      +

      getLookaheadSize

      +
      public int getLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Specified by:
      +
      getLookaheadSize in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The lookaheadSize.
      +
      +
      +
    • +
    • +
      +

      hasIsFollowing

      +
      public boolean hasIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Specified by:
      +
      hasIsFollowing in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the isFollowing field is set.
      +
      +
      +
    • +
    • +
      +

      getIsFollowing

      +
      public boolean getIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Specified by:
      +
      getIsFollowing in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The isFollowing.
      +
      +
      +
    • +
    • +
      +

      hasSigsRequiredToSpend

      +
      public boolean hasSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Specified by:
      +
      hasSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      Whether the sigsRequiredToSpend field is set.
      +
      +
      +
    • +
    • +
      +

      getSigsRequiredToSpend

      +
      public int getSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Specified by:
      +
      getSigsRequiredToSpend in interface Protos.DeterministicKeyOrBuilder
      +
      Returns:
      +
      The sigsRequiredToSpend.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.DeterministicKey parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.DeterministicKey parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.DeterministicKey parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.DeterministicKey.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.DeterministicKey.Builder newBuilder(Protos.DeterministicKey prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.DeterministicKey,Protos.DeterministicKey.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.DeterministicKey getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.DeterministicKey> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKeyOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKeyOrBuilder.html new file mode 100644 index 000000000..717090a6e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.DeterministicKeyOrBuilder.html @@ -0,0 +1,424 @@ + + + + +Protos.DeterministicKeyOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.DeterministicKeyOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.DeterministicKey, Protos.DeterministicKey.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.DeterministicKeyOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    + Random data that allows us to extend a key.
    +
    +
    boolean
    + +
    +
    + + Flag indicating that this key is a root of a following chain.
    +
    +
    int
    + +
    +
    + How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
    +
    +
    int
    + +
    +
    optional uint32 lookahead_size = 4;
    +
    +
    int
    +
    getPath(int index)
    +
    +
    + The path through the key tree.
    +
    +
    int
    + +
    +
    + The path through the key tree.
    +
    + + +
    +
    + The path through the key tree.
    +
    +
    int
    + +
    +
    + Number of signatures required to spend.
    +
    +
    boolean
    + +
    +
    + Random data that allows us to extend a key.
    +
    +
    boolean
    + +
    +
    + + Flag indicating that this key is a root of a following chain.
    +
    +
    boolean
    + +
    +
    + How many children of this key have been issued, that is, given to the user when they requested a fresh key? + For the parents of keys being handed out, this is always less than the true number of children: the difference is + called the lookahead zone.
    +
    +
    boolean
    + +
    +
    optional uint32 lookahead_size = 4;
    +
    +
    boolean
    + +
    +
    + Number of signatures required to spend.
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasChainCode

      +
      boolean hasChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Returns:
      +
      Whether the chainCode field is set.
      +
      +
      +
    • +
    • +
      +

      getChainCode

      +
      com.google.protobuf.ByteString getChainCode()
      +
      + Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and
      + should just treat it as a regular ORIGINAL type key.
      + 
      + + required bytes chain_code = 1;
      +
      +
      Returns:
      +
      The chainCode.
      +
      +
      +
    • +
    • +
      +

      getPathList

      +
      List<Integer> getPathList()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Returns:
      +
      A list containing the path.
      +
      +
      +
    • +
    • +
      +

      getPathCount

      +
      int getPathCount()
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Returns:
      +
      The count of path.
      +
      +
      +
    • +
    • +
      +

      getPath

      +
      int getPath(int index)
      +
      + The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation
      + and high bit unset for public derivation.
      + 
      + + repeated uint32 path = 2;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The path at the given index.
      +
      +
      +
    • +
    • +
      +

      hasIssuedSubkeys

      +
      boolean hasIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Returns:
      +
      Whether the issuedSubkeys field is set.
      +
      +
      +
    • +
    • +
      +

      getIssuedSubkeys

      +
      int getIssuedSubkeys()
      +
      + How many children of this key have been issued, that is, given to the user when they requested a fresh key?
      + For the parents of keys being handed out, this is always less than the true number of children: the difference is
      + called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of
      + this wallet - for instance when restoring from backup or if the seed was shared between devices.
      + If this field is missing it means we're not issuing subkeys of this key to users.
      + 
      + + optional uint32 issued_subkeys = 3;
      +
      +
      Returns:
      +
      The issuedSubkeys.
      +
      +
      +
    • +
    • +
      +

      hasLookaheadSize

      +
      boolean hasLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Returns:
      +
      Whether the lookaheadSize field is set.
      +
      +
      +
    • +
    • +
      +

      getLookaheadSize

      +
      int getLookaheadSize()
      +
      optional uint32 lookahead_size = 4;
      +
      +
      Returns:
      +
      The lookaheadSize.
      +
      +
      +
    • +
    • +
      +

      hasIsFollowing

      +
      boolean hasIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Returns:
      +
      Whether the isFollowing field is set.
      +
      +
      +
    • +
    • +
      +

      getIsFollowing

      +
      boolean getIsFollowing()
      +
      +
      + Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain.
      + Following/followed chains concept is used for married keychains, where the set of keys combined together to produce
      + a single P2SH multisignature address
      + 
      + + optional bool isFollowing = 5;
      +
      +
      Returns:
      +
      The isFollowing.
      +
      +
      +
    • +
    • +
      +

      hasSigsRequiredToSpend

      +
      boolean hasSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Returns:
      +
      Whether the sigsRequiredToSpend field is set.
      +
      +
      +
    • +
    • +
      +

      getSigsRequiredToSpend

      +
      int getSigsRequiredToSpend()
      +
      + Number of signatures required to spend. This field is needed only for married keychains to reconstruct KeyChain
      + and represents the N value from N-of-M CHECKMULTISIG script. For regular single keychains it will always be 1.
      + 
      + + optional uint32 sigsRequiredToSpend = 6 [default = 1];
      +
      +
      Returns:
      +
      The sigsRequiredToSpend.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.Builder.html new file mode 100644 index 000000000..9d8b6c7c8 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.Builder.html @@ -0,0 +1,335 @@ + + + + +Protos.EncryptedData.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.EncryptedData.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder> +
org.bitcoinj.wallet.Protos.EncryptedData.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.EncryptedDataOrBuilder
+
+
+
Enclosing class:
+
Protos.EncryptedData
+
+
+
public static final class Protos.EncryptedData.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder> +implements Protos.EncryptedDataOrBuilder
+
Protobuf type wallet.EncryptedData
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + The encrypted private key
    +
    + + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The encrypted private key
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    boolean
    + +
    +
    + The encrypted private key
    +
    +
    boolean
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    + +
    setEncryptedPrivateKey(com.google.protobuf.ByteString value)
    +
    +
    + The encrypted private key
    +
    + +
    setInitialisationVector(com.google.protobuf.ByteString value)
    +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasInitialisationVector

      +
      public boolean hasInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Specified by:
      +
      hasInitialisationVector in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      Whether the initialisationVector field is set.
      +
      +
      +
    • +
    • +
      +

      getInitialisationVector

      +
      public com.google.protobuf.ByteString getInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Specified by:
      +
      getInitialisationVector in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      The initialisationVector.
      +
      +
      +
    • +
    • +
      +

      setInitialisationVector

      +
      public Protos.EncryptedData.Builder setInitialisationVector(com.google.protobuf.ByteString value)
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Parameters:
      +
      value - The initialisationVector to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearInitialisationVector

      +
      public Protos.EncryptedData.Builder clearInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedPrivateKey

      +
      public boolean hasEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Specified by:
      +
      hasEncryptedPrivateKey in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      Whether the encryptedPrivateKey field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedPrivateKey

      +
      public com.google.protobuf.ByteString getEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Specified by:
      +
      getEncryptedPrivateKey in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      The encryptedPrivateKey.
      +
      +
      +
    • +
    • +
      +

      setEncryptedPrivateKey

      +
      public Protos.EncryptedData.Builder setEncryptedPrivateKey(com.google.protobuf.ByteString value)
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Parameters:
      +
      value - The encryptedPrivateKey to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearEncryptedPrivateKey

      +
      public Protos.EncryptedData.Builder clearEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.html new file mode 100644 index 000000000..77c212308 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedData.html @@ -0,0 +1,554 @@ + + + + +Protos.EncryptedData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.EncryptedData

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.EncryptedData,Protos.EncryptedData.Builder> +
org.bitcoinj.wallet.Protos.EncryptedData
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.EncryptedDataOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.EncryptedData +extends com.google.protobuf.GeneratedMessageLite<Protos.EncryptedData,Protos.EncryptedData.Builder> +implements Protos.EncryptedDataOrBuilder
+
Protobuf type wallet.EncryptedData
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.EncryptedData
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    + The encrypted private key
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    boolean
    + +
    +
    + The encrypted private key
    +
    +
    boolean
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.EncryptedData>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      INITIALISATION_VECTOR_FIELD_NUMBER

      +
      public static final int INITIALISATION_VECTOR_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTED_PRIVATE_KEY_FIELD_NUMBER

      +
      public static final int ENCRYPTED_PRIVATE_KEY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasInitialisationVector

      +
      public boolean hasInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Specified by:
      +
      hasInitialisationVector in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      Whether the initialisationVector field is set.
      +
      +
      +
    • +
    • +
      +

      getInitialisationVector

      +
      public com.google.protobuf.ByteString getInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Specified by:
      +
      getInitialisationVector in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      The initialisationVector.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedPrivateKey

      +
      public boolean hasEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Specified by:
      +
      hasEncryptedPrivateKey in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      Whether the encryptedPrivateKey field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedPrivateKey

      +
      public com.google.protobuf.ByteString getEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Specified by:
      +
      getEncryptedPrivateKey in interface Protos.EncryptedDataOrBuilder
      +
      Returns:
      +
      The encryptedPrivateKey.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.EncryptedData parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.EncryptedData parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.EncryptedData parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.EncryptedData.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.EncryptedData.Builder newBuilder(Protos.EncryptedData prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.EncryptedData,Protos.EncryptedData.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.EncryptedData getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.EncryptedData> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedDataOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedDataOrBuilder.html new file mode 100644 index 000000000..8c1b75778 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.EncryptedDataOrBuilder.html @@ -0,0 +1,216 @@ + + + + +Protos.EncryptedDataOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.EncryptedDataOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.EncryptedData, Protos.EncryptedData.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.EncryptedDataOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    + The encrypted private key
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    boolean
    + +
    +
    + The encrypted private key
    +
    +
    boolean
    + +
    +
    + The initialisation vector for the AES encryption (16 bytes)
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasInitialisationVector

      +
      boolean hasInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Returns:
      +
      Whether the initialisationVector field is set.
      +
      +
      +
    • +
    • +
      +

      getInitialisationVector

      +
      com.google.protobuf.ByteString getInitialisationVector()
      +
      + The initialisation vector for the AES encryption (16 bytes)
      + 
      + + required bytes initialisation_vector = 1;
      +
      +
      Returns:
      +
      The initialisationVector.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedPrivateKey

      +
      boolean hasEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Returns:
      +
      Whether the encryptedPrivateKey field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedPrivateKey

      +
      com.google.protobuf.ByteString getEncryptedPrivateKey()
      +
      + The encrypted private key
      + 
      + + required bytes encrypted_private_key = 2;
      +
      +
      Returns:
      +
      The encryptedPrivateKey.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.Builder.html new file mode 100644 index 000000000..1cb3ac994 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.Builder.html @@ -0,0 +1,475 @@ + + + + +Protos.ExchangeRate.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ExchangeRate.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.ExchangeRate,Protos.ExchangeRate.Builder> +
org.bitcoinj.wallet.Protos.ExchangeRate.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ExchangeRateOrBuilder
+
+
+
Enclosing class:
+
Protos.ExchangeRate
+
+
+
public static final class Protos.ExchangeRate.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.ExchangeRate,Protos.ExchangeRate.Builder> +implements Protos.ExchangeRateOrBuilder
+
+ An exchange rate between Bitcoin and some fiat currency. 
+ 
+ + Protobuf type wallet.ExchangeRate
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    + + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    + + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    long
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    + + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    long
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    boolean
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    +
    boolean
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    boolean
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    + +
    setCoinValue(long value)
    +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    + + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    + +
    setFiatCurrencyCodeBytes(com.google.protobuf.ByteString value)
    +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    + +
    setFiatValue(long value)
    +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasCoinValue

      +
      public boolean hasCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Specified by:
      +
      hasCoinValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the coinValue field is set.
      +
      +
      +
    • +
    • +
      +

      getCoinValue

      +
      public long getCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Specified by:
      +
      getCoinValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The coinValue.
      +
      +
      +
    • +
    • +
      +

      setCoinValue

      +
      public Protos.ExchangeRate.Builder setCoinValue(long value)
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Parameters:
      +
      value - The coinValue to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearCoinValue

      +
      public Protos.ExchangeRate.Builder clearCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasFiatValue

      +
      public boolean hasFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Specified by:
      +
      hasFiatValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the fiatValue field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatValue

      +
      public long getFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Specified by:
      +
      getFiatValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The fiatValue.
      +
      +
      +
    • +
    • +
      +

      setFiatValue

      +
      public Protos.ExchangeRate.Builder setFiatValue(long value)
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Parameters:
      +
      value - The fiatValue to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearFiatValue

      +
      public Protos.ExchangeRate.Builder clearFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasFiatCurrencyCode

      +
      public boolean hasFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      hasFiatCurrencyCode in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the fiatCurrencyCode field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCode

      +
      public String getFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      getFiatCurrencyCode in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The fiatCurrencyCode.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCodeBytes

      +
      public com.google.protobuf.ByteString getFiatCurrencyCodeBytes()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      getFiatCurrencyCodeBytes in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The bytes for fiatCurrencyCode.
      +
      +
      +
    • +
    • +
      +

      setFiatCurrencyCode

      +
      public Protos.ExchangeRate.Builder setFiatCurrencyCode(String value)
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Parameters:
      +
      value - The fiatCurrencyCode to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearFiatCurrencyCode

      +
      public Protos.ExchangeRate.Builder clearFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setFiatCurrencyCodeBytes

      +
      public Protos.ExchangeRate.Builder setFiatCurrencyCodeBytes(com.google.protobuf.ByteString value)
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Parameters:
      +
      value - The bytes for fiatCurrencyCode to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.html new file mode 100644 index 000000000..4b4295a27 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRate.html @@ -0,0 +1,645 @@ + + + + +Protos.ExchangeRate (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ExchangeRate

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.ExchangeRate,Protos.ExchangeRate.Builder> +
org.bitcoinj.wallet.Protos.ExchangeRate
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.ExchangeRateOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.ExchangeRate +extends com.google.protobuf.GeneratedMessageLite<Protos.ExchangeRate,Protos.ExchangeRate.Builder> +implements Protos.ExchangeRateOrBuilder
+
+ An exchange rate between Bitcoin and some fiat currency. 
+ 
+ + Protobuf type wallet.ExchangeRate
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + An exchange rate between Bitcoin and some fiat currency.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    long
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    + + +
     
    + + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    long
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    boolean
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    +
    boolean
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    boolean
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.ExchangeRate>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      COIN_VALUE_FIELD_NUMBER

      +
      public static final int COIN_VALUE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      FIAT_VALUE_FIELD_NUMBER

      +
      public static final int FIAT_VALUE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      FIAT_CURRENCY_CODE_FIELD_NUMBER

      +
      public static final int FIAT_CURRENCY_CODE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasCoinValue

      +
      public boolean hasCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Specified by:
      +
      hasCoinValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the coinValue field is set.
      +
      +
      +
    • +
    • +
      +

      getCoinValue

      +
      public long getCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Specified by:
      +
      getCoinValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The coinValue.
      +
      +
      +
    • +
    • +
      +

      hasFiatValue

      +
      public boolean hasFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Specified by:
      +
      hasFiatValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the fiatValue field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatValue

      +
      public long getFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Specified by:
      +
      getFiatValue in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The fiatValue.
      +
      +
      +
    • +
    • +
      +

      hasFiatCurrencyCode

      +
      public boolean hasFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      hasFiatCurrencyCode in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      Whether the fiatCurrencyCode field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCode

      +
      public String getFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      getFiatCurrencyCode in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The fiatCurrencyCode.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCodeBytes

      +
      public com.google.protobuf.ByteString getFiatCurrencyCodeBytes()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Specified by:
      +
      getFiatCurrencyCodeBytes in interface Protos.ExchangeRateOrBuilder
      +
      Returns:
      +
      The bytes for fiatCurrencyCode.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ExchangeRate parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ExchangeRate parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ExchangeRate parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ExchangeRate.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ExchangeRate.Builder newBuilder(Protos.ExchangeRate prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.ExchangeRate,Protos.ExchangeRate.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.ExchangeRate getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.ExchangeRate> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRateOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRateOrBuilder.html new file mode 100644 index 000000000..d21df0e31 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExchangeRateOrBuilder.html @@ -0,0 +1,279 @@ + + + + +Protos.ExchangeRateOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.ExchangeRateOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.ExchangeRate, Protos.ExchangeRate.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.ExchangeRateOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    + + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    long
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    boolean
    + +
    +
    + This much of satoshis (1E-8 fractions)…
    +
    +
    boolean
    + +
    +
    + ISO 4217 currency code (if available) of the fiat currency.
    +
    +
    boolean
    + +
    +
    + …is worth this much of fiat (1E-4 fractions).
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasCoinValue

      +
      boolean hasCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Returns:
      +
      Whether the coinValue field is set.
      +
      +
      +
    • +
    • +
      +

      getCoinValue

      +
      long getCoinValue()
      +
      + This much of satoshis (1E-8 fractions)…
      + 
      + + required int64 coin_value = 1;
      +
      +
      Returns:
      +
      The coinValue.
      +
      +
      +
    • +
    • +
      +

      hasFiatValue

      +
      boolean hasFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Returns:
      +
      Whether the fiatValue field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatValue

      +
      long getFiatValue()
      +
      + …is worth this much of fiat (1E-4 fractions).
      + 
      + + required int64 fiat_value = 2;
      +
      +
      Returns:
      +
      The fiatValue.
      +
      +
      +
    • +
    • +
      +

      hasFiatCurrencyCode

      +
      boolean hasFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Returns:
      +
      Whether the fiatCurrencyCode field is set.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCode

      +
      String getFiatCurrencyCode()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Returns:
      +
      The fiatCurrencyCode.
      +
      +
      +
    • +
    • +
      +

      getFiatCurrencyCodeBytes

      +
      com.google.protobuf.ByteString getFiatCurrencyCodeBytes()
      +
      + ISO 4217 currency code (if available) of the fiat currency.
      + 
      + + required string fiat_currency_code = 3;
      +
      +
      Returns:
      +
      The bytes for fiatCurrencyCode.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.Builder.html new file mode 100644 index 000000000..32fedb32b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.Builder.html @@ -0,0 +1,463 @@ + + + + +Protos.Extension.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Extension.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Extension,Protos.Extension.Builder> +
org.bitcoinj.wallet.Protos.Extension.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ExtensionOrBuilder
+
+
+
Enclosing class:
+
Protos.Extension
+
+
+
public static final class Protos.Extension.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Extension,Protos.Extension.Builder> +implements Protos.ExtensionOrBuilder
+
+ An extension to the wallet 
+ 
+ + Protobuf type wallet.Extension
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    required bytes data = 2;
    +
    + + +
    +
    + like org.whatever.foo.bar
    +
    + + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    + + +
    +
    + like org.whatever.foo.bar
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    + +
    setData(com.google.protobuf.ByteString value)
    +
    +
    required bytes data = 2;
    +
    + +
    setId(String value)
    +
    +
    + like org.whatever.foo.bar
    +
    + +
    setIdBytes(com.google.protobuf.ByteString value)
    +
    +
    + like org.whatever.foo.bar
    +
    + +
    setMandatory(boolean value)
    +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasId

      +
      public boolean hasId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      hasId in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the id field is set.
      +
      +
      +
    • +
    • +
      +

      getId

      +
      public String getId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      getId in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The id.
      +
      +
      +
    • +
    • +
      +

      getIdBytes

      +
      public com.google.protobuf.ByteString getIdBytes()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      getIdBytes in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The bytes for id.
      +
      +
      +
    • +
    • +
      +

      setId

      +
      public Protos.Extension.Builder setId(String value)
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Parameters:
      +
      value - The id to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearId

      +
      public Protos.Extension.Builder clearId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setIdBytes

      +
      public Protos.Extension.Builder setIdBytes(com.google.protobuf.ByteString value)
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Parameters:
      +
      value - The bytes for id to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      public boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      hasData in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      getData in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    • +
      +

      setData

      +
      public Protos.Extension.Builder setData(com.google.protobuf.ByteString value)
      +
      required bytes data = 2;
      +
      +
      Parameters:
      +
      value - The data to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearData

      +
      public Protos.Extension.Builder clearData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasMandatory

      +
      public boolean hasMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Specified by:
      +
      hasMandatory in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the mandatory field is set.
      +
      +
      +
    • +
    • +
      +

      getMandatory

      +
      public boolean getMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Specified by:
      +
      getMandatory in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The mandatory.
      +
      +
      +
    • +
    • +
      +

      setMandatory

      +
      public Protos.Extension.Builder setMandatory(boolean value)
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Parameters:
      +
      value - The mandatory to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMandatory

      +
      public Protos.Extension.Builder clearMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.html new file mode 100644 index 000000000..bf54cfe2c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Extension.html @@ -0,0 +1,639 @@ + + + + +Protos.Extension (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Extension

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Extension,Protos.Extension.Builder> +
org.bitcoinj.wallet.Protos.Extension
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.ExtensionOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Extension +extends com.google.protobuf.GeneratedMessageLite<Protos.Extension,Protos.Extension.Builder> +implements Protos.ExtensionOrBuilder
+
+ An extension to the wallet 
+ 
+ + Protobuf type wallet.Extension
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + An extension to the wallet
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    + + +
     
    + + +
    +
    + like org.whatever.foo.bar
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Extension>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ID_FIELD_NUMBER

      +
      public static final int ID_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DATA_FIELD_NUMBER

      +
      public static final int DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MANDATORY_FIELD_NUMBER

      +
      public static final int MANDATORY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasId

      +
      public boolean hasId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      hasId in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the id field is set.
      +
      +
      +
    • +
    • +
      +

      getId

      +
      public String getId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      getId in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The id.
      +
      +
      +
    • +
    • +
      +

      getIdBytes

      +
      public com.google.protobuf.ByteString getIdBytes()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Specified by:
      +
      getIdBytes in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The bytes for id.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      public boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      hasData in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      getData in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    • +
      +

      hasMandatory

      +
      public boolean hasMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Specified by:
      +
      hasMandatory in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      Whether the mandatory field is set.
      +
      +
      +
    • +
    • +
      +

      getMandatory

      +
      public boolean getMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Specified by:
      +
      getMandatory in interface Protos.ExtensionOrBuilder
      +
      Returns:
      +
      The mandatory.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Extension parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Extension parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Extension parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Extension.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Extension.Builder newBuilder(Protos.Extension prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Extension,Protos.Extension.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Extension getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Extension> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExtensionOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExtensionOrBuilder.html new file mode 100644 index 000000000..9ea47f162 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ExtensionOrBuilder.html @@ -0,0 +1,273 @@ + + + + +Protos.ExtensionOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.ExtensionOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Extension, Protos.Extension.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.ExtensionOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    + + +
    +
    + like org.whatever.foo.bar
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    + like org.whatever.foo.bar
    +
    +
    boolean
    + +
    +
    + If we do not understand a mandatory extension, abort to prevent data loss.
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasId

      +
      boolean hasId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Returns:
      +
      Whether the id field is set.
      +
      +
      +
    • +
    • +
      +

      getId

      +
      String getId()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Returns:
      +
      The id.
      +
      +
      +
    • +
    • +
      +

      getIdBytes

      +
      com.google.protobuf.ByteString getIdBytes()
      +
      + like org.whatever.foo.bar
      + 
      + + required string id = 1;
      +
      +
      Returns:
      +
      The bytes for id.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    • +
      +

      hasMandatory

      +
      boolean hasMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Returns:
      +
      Whether the mandatory field is set.
      +
      +
      +
    • +
    • +
      +

      getMandatory

      +
      boolean getMandatory()
      +
      + If we do not understand a mandatory extension, abort to prevent data loss.
      + For example, this could be applied to a new type of holding, such as a contract, where
      + dropping of an extension in a read/write cycle could cause loss of value.
      + 
      + + required bool mandatory = 3;
      +
      +
      Returns:
      +
      The mandatory.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Builder.html new file mode 100644 index 000000000..f0346742e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Builder.html @@ -0,0 +1,1311 @@ + + + + +Protos.Key.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Key.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Key,Protos.Key.Builder> +
org.bitcoinj.wallet.Protos.Key.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.KeyOrBuilder
+
+
+
Enclosing class:
+
Protos.Key
+
+
+
public static final class Protos.Key.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Key,Protos.Key.Builder> +implements Protos.KeyOrBuilder
+
+
+ A key used to control Bitcoin spending.
+ Either the private key, the public key or both may be present.  It is recommended that
+ if the private key is provided that the public key is provided too because deriving it is slow.
+ If only the public key is provided, the key can only be used to watch the blockchain and verify
+ transactions, and not for spending.
+ 
+ + Protobuf type wallet.Key
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      public boolean hasType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Specified by:
      +
      hasType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      +
      public Protos.Key.Type getType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Specified by:
      +
      getType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      setType

      +
      public Protos.Key.Builder setType(Protos.Key.Type value)
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for type to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearType

      +
      public Protos.Key.Builder clearType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSecretBytes

      +
      public boolean hasSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Specified by:
      +
      hasSecretBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the secretBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      public com.google.protobuf.ByteString getSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Specified by:
      +
      getSecretBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The secretBytes.
      +
      +
      +
    • +
    • +
      +

      setSecretBytes

      +
      public Protos.Key.Builder setSecretBytes(com.google.protobuf.ByteString value)
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Parameters:
      +
      value - The secretBytes to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSecretBytes

      +
      public Protos.Key.Builder clearSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedData

      +
      public boolean hasEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Specified by:
      +
      hasEncryptedData in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the encryptedData field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      public Protos.EncryptedData getEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Specified by:
      +
      getEncryptedData in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The encryptedData.
      +
      +
      +
    • +
    • +
      +

      setEncryptedData

      +
      public Protos.Key.Builder setEncryptedData(Protos.EncryptedData value)
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
    • +
    • +
      +

      setEncryptedData

      +
      public Protos.Key.Builder setEncryptedData(Protos.EncryptedData.Builder builderForValue)
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
    • +
    • +
      +

      mergeEncryptedData

      +
      public Protos.Key.Builder mergeEncryptedData(Protos.EncryptedData value)
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
    • +
    • +
      +

      clearEncryptedData

      +
      public Protos.Key.Builder clearEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
    • +
    • +
      +

      hasPublicKey

      +
      public boolean hasPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Specified by:
      +
      hasPublicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the publicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getPublicKey

      +
      public com.google.protobuf.ByteString getPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Specified by:
      +
      getPublicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The publicKey.
      +
      +
      +
    • +
    • +
      +

      setPublicKey

      +
      public Protos.Key.Builder setPublicKey(com.google.protobuf.ByteString value)
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Parameters:
      +
      value - The publicKey to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPublicKey

      +
      public Protos.Key.Builder clearPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLabel

      +
      public boolean hasLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      hasLabel in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the label field is set.
      +
      +
      +
    • +
    • +
      +

      getLabel

      +
      public String getLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      getLabel in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The label.
      +
      +
      +
    • +
    • +
      +

      getLabelBytes

      +
      public com.google.protobuf.ByteString getLabelBytes()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      getLabelBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The bytes for label.
      +
      +
      +
    • +
    • +
      +

      setLabel

      +
      public Protos.Key.Builder setLabel(String value)
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Parameters:
      +
      value - The label to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLabel

      +
      public Protos.Key.Builder clearLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setLabelBytes

      +
      public Protos.Key.Builder setLabelBytes(com.google.protobuf.ByteString value)
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Parameters:
      +
      value - The bytes for label to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      public boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Specified by:
      +
      hasCreationTimestamp in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      public long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Specified by:
      +
      getCreationTimestamp in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    • +
      +

      setCreationTimestamp

      +
      public Protos.Key.Builder setCreationTimestamp(long value)
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Parameters:
      +
      value - The creationTimestamp to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearCreationTimestamp

      +
      public Protos.Key.Builder clearCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasDeterministicKey

      +
      public boolean hasDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Specified by:
      +
      hasDeterministicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the deterministicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicKey

      +
      public Protos.DeterministicKey getDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Specified by:
      +
      getDeterministicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The deterministicKey.
      +
      +
      +
    • +
    • +
      +

      setDeterministicKey

      +
      public Protos.Key.Builder setDeterministicKey(Protos.DeterministicKey value)
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
    • +
    • +
      +

      setDeterministicKey

      +
      public Protos.Key.Builder setDeterministicKey(Protos.DeterministicKey.Builder builderForValue)
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
    • +
    • +
      +

      mergeDeterministicKey

      +
      public Protos.Key.Builder mergeDeterministicKey(Protos.DeterministicKey value)
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
    • +
    • +
      +

      clearDeterministicKey

      +
      public Protos.Key.Builder clearDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
    • +
    • +
      +

      hasDeterministicSeed

      +
      public boolean hasDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Specified by:
      +
      hasDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the deterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicSeed

      +
      public com.google.protobuf.ByteString getDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Specified by:
      +
      getDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The deterministicSeed.
      +
      +
      +
    • +
    • +
      +

      setDeterministicSeed

      +
      public Protos.Key.Builder setDeterministicSeed(com.google.protobuf.ByteString value)
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Parameters:
      +
      value - The deterministicSeed to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearDeterministicSeed

      +
      public Protos.Key.Builder clearDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedDeterministicSeed

      +
      public boolean hasEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Specified by:
      +
      hasEncryptedDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the encryptedDeterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedDeterministicSeed

      +
      public Protos.EncryptedData getEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Specified by:
      +
      getEncryptedDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The encryptedDeterministicSeed.
      +
      +
      +
    • +
    • +
      +

      setEncryptedDeterministicSeed

      +
      public Protos.Key.Builder setEncryptedDeterministicSeed(Protos.EncryptedData value)
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
    • +
    • +
      +

      setEncryptedDeterministicSeed

      +
      public Protos.Key.Builder setEncryptedDeterministicSeed(Protos.EncryptedData.Builder builderForValue)
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
    • +
    • +
      +

      mergeEncryptedDeterministicSeed

      +
      public Protos.Key.Builder mergeEncryptedDeterministicSeed(Protos.EncryptedData value)
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
    • +
    • +
      +

      clearEncryptedDeterministicSeed

      +
      public Protos.Key.Builder clearEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
    • +
    • +
      +

      getAccountPathList

      +
      public List<Integer> getAccountPathList()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPathList in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      A list containing the accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPathCount

      +
      public int getAccountPathCount()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPathCount in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The count of accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPath

      +
      public int getAccountPath(int index)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPath in interface Protos.KeyOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The accountPath at the given index.
      +
      +
      +
    • +
    • +
      +

      setAccountPath

      +
      public Protos.Key.Builder setAccountPath(int index, + int value)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Parameters:
      +
      value - The accountPath to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAccountPath

      +
      public Protos.Key.Builder addAccountPath(int value)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Parameters:
      +
      value - The accountPath to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllAccountPath

      +
      public Protos.Key.Builder addAllAccountPath(Iterable<? extends Integer> values)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Parameters:
      +
      values - The accountPath to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearAccountPath

      +
      public Protos.Key.Builder clearAccountPath()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasOutputScriptType

      +
      public boolean hasOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Specified by:
      +
      hasOutputScriptType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the outputScriptType field is set.
      +
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      public Protos.Key.OutputScriptType getOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Specified by:
      +
      getOutputScriptType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The outputScriptType.
      +
      +
      +
    • +
    • +
      +

      setOutputScriptType

      +
      public Protos.Key.Builder setOutputScriptType(Protos.Key.OutputScriptType value)
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for outputScriptType to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearOutputScriptType

      +
      public Protos.Key.Builder clearOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.OutputScriptType.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.OutputScriptType.html new file mode 100644 index 000000000..b509120ed --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.OutputScriptType.html @@ -0,0 +1,356 @@ + + + + +Protos.Key.OutputScriptType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.Key.OutputScriptType

+
+
java.lang.Object +
java.lang.Enum<Protos.Key.OutputScriptType> +
org.bitcoinj.wallet.Protos.Key.OutputScriptType
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Key.OutputScriptType>, Constable
+
+
+
Enclosing class:
+
Protos.Key
+
+
+
public static enum Protos.Key.OutputScriptType +extends Enum<Protos.Key.OutputScriptType> +implements com.google.protobuf.Internal.EnumLite
+
Protobuf enum wallet.Key.OutputScriptType
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      P2PKH_VALUE

      +
      public static final int P2PKH_VALUE
      +
      P2PKH = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      P2WPKH_VALUE

      +
      public static final int P2WPKH_VALUE
      +
      P2WPKH = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.Key.OutputScriptType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.Key.OutputScriptType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.Key.OutputScriptType valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.Key.OutputScriptType forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.OutputScriptType> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Type.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Type.html new file mode 100644 index 000000000..2fa28d914 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.Type.html @@ -0,0 +1,476 @@ + + + + +Protos.Key.Type (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.Key.Type

+
+
java.lang.Object +
java.lang.Enum<Protos.Key.Type> +
org.bitcoinj.wallet.Protos.Key.Type
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Key.Type>, Constable
+
+
+
Enclosing class:
+
Protos.Key
+
+
+
public static enum Protos.Key.Type +extends Enum<Protos.Key.Type> +implements com.google.protobuf.Internal.EnumLite
+
Protobuf enum wallet.Key.Type
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      ORIGINAL

      +
      public static final Protos.Key.Type ORIGINAL
      +
      + Unencrypted - Original bitcoin secp256k1 curve 
      + 
      + + ORIGINAL = 1;
      +
      +
    • +
    • +
      +

      ENCRYPTED_SCRYPT_AES

      +
      public static final Protos.Key.Type ENCRYPTED_SCRYPT_AES
      +
      + Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve 
      + 
      + + ENCRYPTED_SCRYPT_AES = 2;
      +
      +
    • +
    • +
      +

      DETERMINISTIC_MNEMONIC

      +
      public static final Protos.Key.Type DETERMINISTIC_MNEMONIC
      +
      +
      + Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.
      + The label and public_key fields are missing. Creation timestamp will exist.
      + 
      + + DETERMINISTIC_MNEMONIC = 3;
      +
      +
    • +
    • +
      +

      DETERMINISTIC_KEY

      +
      public static final Protos.Key.Type DETERMINISTIC_KEY
      +
      +
      + A key that was derived deterministically. Note that the root seed that created it may NOT be present in the
      + wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present.
      + However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there
      + is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private
      + key can be rederived on the fly.
      + 
      + + DETERMINISTIC_KEY = 4;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      ORIGINAL_VALUE

      +
      public static final int ORIGINAL_VALUE
      +
      + Unencrypted - Original bitcoin secp256k1 curve 
      + 
      + + ORIGINAL = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTED_SCRYPT_AES_VALUE

      +
      public static final int ENCRYPTED_SCRYPT_AES_VALUE
      +
      + Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve 
      + 
      + + ENCRYPTED_SCRYPT_AES = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DETERMINISTIC_MNEMONIC_VALUE

      +
      public static final int DETERMINISTIC_MNEMONIC_VALUE
      +
      +
      + Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.
      + The label and public_key fields are missing. Creation timestamp will exist.
      + 
      + + DETERMINISTIC_MNEMONIC = 3;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DETERMINISTIC_KEY_VALUE

      +
      public static final int DETERMINISTIC_KEY_VALUE
      +
      +
      + A key that was derived deterministically. Note that the root seed that created it may NOT be present in the
      + wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present.
      + However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there
      + is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private
      + key can be rederived on the fly.
      + 
      + + DETERMINISTIC_KEY = 4;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.Key.Type[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.Key.Type valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.Key.Type valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.Key.Type forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.html new file mode 100644 index 000000000..06f269bf4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Key.html @@ -0,0 +1,1178 @@ + + + + +Protos.Key (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Key

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Key,Protos.Key.Builder> +
org.bitcoinj.wallet.Protos.Key
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.KeyOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Key +extends com.google.protobuf.GeneratedMessageLite<Protos.Key,Protos.Key.Builder> +implements Protos.KeyOrBuilder
+
+
+ A key used to control Bitcoin spending.
+ Either the private key, the public key or both may be present.  It is recommended that
+ if the private key is provided that the public key is provided too because deriving it is slow.
+ If only the public key is provided, the key can only be used to watch the blockchain and verify
+ transactions, and not for spending.
+ 
+ + Protobuf type wallet.Key
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + + A key used to control Bitcoin spending.
    +
    +
    static enum 
    + +
    +
    Protobuf enum wallet.Key.OutputScriptType
    +
    +
    static enum 
    + +
    +
    Protobuf enum wallet.Key.Type
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    int
    +
    getAccountPath(int index)
    +
    +
    + The path to the root.
    +
    +
    int
    + +
    +
    + The path to the root.
    +
    + + +
    +
    + The path to the root.
    +
    +
    long
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    static Protos.Key
    + +
     
    + + +
    +
    optional .wallet.DeterministicKey deterministic_key = 7;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The seed for a deterministic key hierarchy.
    +
    + + +
    +
    + If the secret data is encrypted, then secret_bytes is missing and this field is set.
    +
    + + +
    +
    + Encrypted version of the seed
    +
    + + +
    +
    + User-provided label associated with the key.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + User-provided label associated with the key.
    +
    + + +
    +
    + Type of addresses (aka output scripts) to generate for receiving.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + The public EC key derived from the private key.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
    +
    + + +
    +
    required .wallet.Key.Type type = 1;
    +
    +
    boolean
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    boolean
    + +
    +
    optional .wallet.DeterministicKey deterministic_key = 7;
    +
    +
    boolean
    + +
    +
    + The seed for a deterministic key hierarchy.
    +
    +
    boolean
    + +
    +
    + If the secret data is encrypted, then secret_bytes is missing and this field is set.
    +
    +
    boolean
    + +
    +
    + Encrypted version of the seed
    +
    +
    boolean
    + +
    +
    + User-provided label associated with the key.
    +
    +
    boolean
    + +
    +
    + Type of addresses (aka output scripts) to generate for receiving.
    +
    +
    boolean
    + +
    +
    + The public EC key derived from the private key.
    +
    +
    boolean
    + +
    +
    + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
    +
    +
    boolean
    + +
    +
    required .wallet.Key.Type type = 1;
    +
    + + +
     
    + + +
     
    +
    static Protos.Key
    + +
     
    +
    static Protos.Key
    +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Key
    +
    parseFrom(byte[] data)
    +
     
    +
    static Protos.Key
    +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Key
    +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    +
    static Protos.Key
    +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Key
    +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    +
    static Protos.Key
    +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Key
    + +
     
    +
    static Protos.Key
    +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Key
    + +
     
    +
    static Protos.Key
    +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Key>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      TYPE_FIELD_NUMBER

      +
      public static final int TYPE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SECRET_BYTES_FIELD_NUMBER

      +
      public static final int SECRET_BYTES_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTED_DATA_FIELD_NUMBER

      +
      public static final int ENCRYPTED_DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PUBLIC_KEY_FIELD_NUMBER

      +
      public static final int PUBLIC_KEY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LABEL_FIELD_NUMBER

      +
      public static final int LABEL_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CREATION_TIMESTAMP_FIELD_NUMBER

      +
      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DETERMINISTIC_KEY_FIELD_NUMBER

      +
      public static final int DETERMINISTIC_KEY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DETERMINISTIC_SEED_FIELD_NUMBER

      +
      public static final int DETERMINISTIC_SEED_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTED_DETERMINISTIC_SEED_FIELD_NUMBER

      +
      public static final int ENCRYPTED_DETERMINISTIC_SEED_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ACCOUNT_PATH_FIELD_NUMBER

      +
      public static final int ACCOUNT_PATH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      OUTPUT_SCRIPT_TYPE_FIELD_NUMBER

      +
      public static final int OUTPUT_SCRIPT_TYPE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      public boolean hasType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Specified by:
      +
      hasType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      +
      public Protos.Key.Type getType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Specified by:
      +
      getType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      hasSecretBytes

      +
      public boolean hasSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Specified by:
      +
      hasSecretBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the secretBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      public com.google.protobuf.ByteString getSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Specified by:
      +
      getSecretBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The secretBytes.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedData

      +
      public boolean hasEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Specified by:
      +
      hasEncryptedData in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the encryptedData field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      public Protos.EncryptedData getEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Specified by:
      +
      getEncryptedData in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The encryptedData.
      +
      +
      +
    • +
    • +
      +

      hasPublicKey

      +
      public boolean hasPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Specified by:
      +
      hasPublicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the publicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getPublicKey

      +
      public com.google.protobuf.ByteString getPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Specified by:
      +
      getPublicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The publicKey.
      +
      +
      +
    • +
    • +
      +

      hasLabel

      +
      public boolean hasLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      hasLabel in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the label field is set.
      +
      +
      +
    • +
    • +
      +

      getLabel

      +
      public String getLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      getLabel in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The label.
      +
      +
      +
    • +
    • +
      +

      getLabelBytes

      +
      public com.google.protobuf.ByteString getLabelBytes()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Specified by:
      +
      getLabelBytes in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The bytes for label.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      public boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Specified by:
      +
      hasCreationTimestamp in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      public long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Specified by:
      +
      getCreationTimestamp in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    • +
      +

      hasDeterministicKey

      +
      public boolean hasDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Specified by:
      +
      hasDeterministicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the deterministicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicKey

      +
      public Protos.DeterministicKey getDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Specified by:
      +
      getDeterministicKey in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The deterministicKey.
      +
      +
      +
    • +
    • +
      +

      hasDeterministicSeed

      +
      public boolean hasDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Specified by:
      +
      hasDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the deterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicSeed

      +
      public com.google.protobuf.ByteString getDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Specified by:
      +
      getDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The deterministicSeed.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedDeterministicSeed

      +
      public boolean hasEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Specified by:
      +
      hasEncryptedDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the encryptedDeterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedDeterministicSeed

      +
      public Protos.EncryptedData getEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Specified by:
      +
      getEncryptedDeterministicSeed in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The encryptedDeterministicSeed.
      +
      +
      +
    • +
    • +
      +

      getAccountPathList

      +
      public List<Integer> getAccountPathList()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPathList in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      A list containing the accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPathCount

      +
      public int getAccountPathCount()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPathCount in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The count of accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPath

      +
      public int getAccountPath(int index)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Specified by:
      +
      getAccountPath in interface Protos.KeyOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The accountPath at the given index.
      +
      +
      +
    • +
    • +
      +

      hasOutputScriptType

      +
      public boolean hasOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Specified by:
      +
      hasOutputScriptType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      Whether the outputScriptType field is set.
      +
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      public Protos.Key.OutputScriptType getOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Specified by:
      +
      getOutputScriptType in interface Protos.KeyOrBuilder
      +
      Returns:
      +
      The outputScriptType.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Key parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Key parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Key parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Key.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Key.Builder newBuilder(Protos.Key prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Key,Protos.Key.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Key getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Key> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.KeyOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.KeyOrBuilder.html new file mode 100644 index 000000000..fc7a222a3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.KeyOrBuilder.html @@ -0,0 +1,626 @@ + + + + +Protos.KeyOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.KeyOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Key, Protos.Key.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.KeyOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      boolean hasType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      +
      Protos.Key.Type getType()
      +
      required .wallet.Key.Type type = 1;
      +
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      hasSecretBytes

      +
      boolean hasSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Returns:
      +
      Whether the secretBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getSecretBytes

      +
      com.google.protobuf.ByteString getSecretBytes()
      +
      + Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed.
      + If the secret is encrypted, or this is a "watching entry" then this is missing.
      + 
      + + optional bytes secret_bytes = 2;
      +
      +
      Returns:
      +
      The secretBytes.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedData

      +
      boolean hasEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Returns:
      +
      Whether the encryptedData field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedData

      +
      Protos.EncryptedData getEncryptedData()
      +
      + If the secret data is encrypted, then secret_bytes is missing and this field is set.
      + 
      + + optional .wallet.EncryptedData encrypted_data = 6;
      +
      +
      Returns:
      +
      The encryptedData.
      +
      +
      +
    • +
    • +
      +

      hasPublicKey

      +
      boolean hasPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Returns:
      +
      Whether the publicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getPublicKey

      +
      com.google.protobuf.ByteString getPublicKey()
      +
      + The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to
      + do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing.
      + 
      + + optional bytes public_key = 3;
      +
      +
      Returns:
      +
      The publicKey.
      +
      +
      +
    • +
    • +
      +

      hasLabel

      +
      boolean hasLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Returns:
      +
      Whether the label field is set.
      +
      +
      +
    • +
    • +
      +

      getLabel

      +
      String getLabel()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Returns:
      +
      The label.
      +
      +
      +
    • +
    • +
      +

      getLabelBytes

      +
      com.google.protobuf.ByteString getLabelBytes()
      +
      + User-provided label associated with the key.
      + 
      + + optional string label = 4;
      +
      +
      Returns:
      +
      The bytes for label.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point. The reason it's
      + optional is that keys derived from a parent don't have this data.
      + 
      + + optional int64 creation_timestamp = 5;
      +
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    • +
      +

      hasDeterministicKey

      +
      boolean hasDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Returns:
      +
      Whether the deterministicKey field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicKey

      +
      Protos.DeterministicKey getDeterministicKey()
      +
      optional .wallet.DeterministicKey deterministic_key = 7;
      +
      +
      Returns:
      +
      The deterministicKey.
      +
      +
      +
    • +
    • +
      +

      hasDeterministicSeed

      +
      boolean hasDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Returns:
      +
      Whether the deterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getDeterministicSeed

      +
      com.google.protobuf.ByteString getDeterministicSeed()
      +
      + The seed for a deterministic key hierarchy.  Derived from the mnemonic,
      + but cached here for quick startup.  Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + optional bytes deterministic_seed = 8;
      +
      +
      Returns:
      +
      The deterministicSeed.
      +
      +
      +
    • +
    • +
      +

      hasEncryptedDeterministicSeed

      +
      boolean hasEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Returns:
      +
      Whether the encryptedDeterministicSeed field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptedDeterministicSeed

      +
      Protos.EncryptedData getEncryptedDeterministicSeed()
      +
      + Encrypted version of the seed
      + 
      + + optional .wallet.EncryptedData encrypted_deterministic_seed = 9;
      +
      +
      Returns:
      +
      The encryptedDeterministicSeed.
      +
      +
      +
    • +
    • +
      +

      getAccountPathList

      +
      List<Integer> getAccountPathList()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Returns:
      +
      A list containing the accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPathCount

      +
      int getAccountPathCount()
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Returns:
      +
      The count of accountPath.
      +
      +
      +
    • +
    • +
      +

      getAccountPath

      +
      int getAccountPath(int index)
      +
      + The path to the root. Only applicable to a DETERMINISTIC_MNEMONIC key entry.
      + 
      + + repeated uint32 account_path = 10 [packed = true];
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The accountPath at the given index.
      +
      +
      +
    • +
    • +
      +

      hasOutputScriptType

      +
      boolean hasOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Returns:
      +
      Whether the outputScriptType field is set.
      +
      +
      +
    • +
    • +
      +

      getOutputScriptType

      +
      Protos.Key.OutputScriptType getOutputScriptType()
      +
      + Type of addresses (aka output scripts) to generate for receiving.
      + 
      + + optional .wallet.Key.OutputScriptType output_script_type = 11;
      +
      +
      Returns:
      +
      The outputScriptType.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.Builder.html new file mode 100644 index 000000000..75fb0fda3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.Builder.html @@ -0,0 +1,365 @@ + + + + +Protos.PeerAddress.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PeerAddress.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PeerAddress,Protos.PeerAddress.Builder> +
org.bitcoinj.wallet.Protos.PeerAddress.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PeerAddressOrBuilder
+
+
+
Enclosing class:
+
Protos.PeerAddress
+
+
+
public static final class Protos.PeerAddress.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PeerAddress,Protos.PeerAddress.Builder> +implements Protos.PeerAddressOrBuilder
+
Protobuf type wallet.PeerAddress
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    required bytes ip_address = 1;
    +
    + + +
    +
    required uint32 port = 2;
    +
    + + +
    +
    required uint64 services = 3;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes ip_address = 1;
    +
    +
    int
    + +
    +
    required uint32 port = 2;
    +
    +
    long
    + +
    +
    required uint64 services = 3;
    +
    +
    boolean
    + +
    +
    required bytes ip_address = 1;
    +
    +
    boolean
    + +
    +
    required uint32 port = 2;
    +
    +
    boolean
    + +
    +
    required uint64 services = 3;
    +
    + +
    setIpAddress(com.google.protobuf.ByteString value)
    +
    +
    required bytes ip_address = 1;
    +
    + +
    setPort(int value)
    +
    +
    required uint32 port = 2;
    +
    + +
    setServices(long value)
    +
    +
    required uint64 services = 3;
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasIpAddress

      +
      public boolean hasIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Specified by:
      +
      hasIpAddress in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the ipAddress field is set.
      +
      +
      +
    • +
    • +
      +

      getIpAddress

      +
      public com.google.protobuf.ByteString getIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Specified by:
      +
      getIpAddress in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The ipAddress.
      +
      +
      +
    • +
    • +
      +

      setIpAddress

      +
      public Protos.PeerAddress.Builder setIpAddress(com.google.protobuf.ByteString value)
      +
      required bytes ip_address = 1;
      +
      +
      Parameters:
      +
      value - The ipAddress to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearIpAddress

      +
      public Protos.PeerAddress.Builder clearIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasPort

      +
      public boolean hasPort()
      +
      required uint32 port = 2;
      +
      +
      Specified by:
      +
      hasPort in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the port field is set.
      +
      +
      +
    • +
    • +
      +

      getPort

      +
      public int getPort()
      +
      required uint32 port = 2;
      +
      +
      Specified by:
      +
      getPort in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The port.
      +
      +
      +
    • +
    • +
      +

      setPort

      +
      public Protos.PeerAddress.Builder setPort(int value)
      +
      required uint32 port = 2;
      +
      +
      Parameters:
      +
      value - The port to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPort

      +
      public Protos.PeerAddress.Builder clearPort()
      +
      required uint32 port = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasServices

      +
      public boolean hasServices()
      +
      required uint64 services = 3;
      +
      +
      Specified by:
      +
      hasServices in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the services field is set.
      +
      +
      +
    • +
    • +
      +

      getServices

      +
      public long getServices()
      +
      required uint64 services = 3;
      +
      +
      Specified by:
      +
      getServices in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The services.
      +
      +
      +
    • +
    • +
      +

      setServices

      +
      public Protos.PeerAddress.Builder setServices(long value)
      +
      required uint64 services = 3;
      +
      +
      Parameters:
      +
      value - The services to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearServices

      +
      public Protos.PeerAddress.Builder clearServices()
      +
      required uint64 services = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.html new file mode 100644 index 000000000..9a1d9fdcb --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddress.html @@ -0,0 +1,587 @@ + + + + +Protos.PeerAddress (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.PeerAddress

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.PeerAddress,Protos.PeerAddress.Builder> +
org.bitcoinj.wallet.Protos.PeerAddress
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.PeerAddressOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.PeerAddress +extends com.google.protobuf.GeneratedMessageLite<Protos.PeerAddress,Protos.PeerAddress.Builder> +implements Protos.PeerAddressOrBuilder
+
Protobuf type wallet.PeerAddress
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.PeerAddress
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes ip_address = 1;
    +
    +
    int
    + +
    +
    required uint32 port = 2;
    +
    +
    long
    + +
    +
    required uint64 services = 3;
    +
    +
    boolean
    + +
    +
    required bytes ip_address = 1;
    +
    +
    boolean
    + +
    +
    required uint32 port = 2;
    +
    +
    boolean
    + +
    +
    required uint64 services = 3;
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.PeerAddress>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      IP_ADDRESS_FIELD_NUMBER

      +
      public static final int IP_ADDRESS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PORT_FIELD_NUMBER

      +
      public static final int PORT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SERVICES_FIELD_NUMBER

      +
      public static final int SERVICES_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasIpAddress

      +
      public boolean hasIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Specified by:
      +
      hasIpAddress in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the ipAddress field is set.
      +
      +
      +
    • +
    • +
      +

      getIpAddress

      +
      public com.google.protobuf.ByteString getIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Specified by:
      +
      getIpAddress in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The ipAddress.
      +
      +
      +
    • +
    • +
      +

      hasPort

      +
      public boolean hasPort()
      +
      required uint32 port = 2;
      +
      +
      Specified by:
      +
      hasPort in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the port field is set.
      +
      +
      +
    • +
    • +
      +

      getPort

      +
      public int getPort()
      +
      required uint32 port = 2;
      +
      +
      Specified by:
      +
      getPort in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The port.
      +
      +
      +
    • +
    • +
      +

      hasServices

      +
      public boolean hasServices()
      +
      required uint64 services = 3;
      +
      +
      Specified by:
      +
      hasServices in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      Whether the services field is set.
      +
      +
      +
    • +
    • +
      +

      getServices

      +
      public long getServices()
      +
      required uint64 services = 3;
      +
      +
      Specified by:
      +
      getServices in interface Protos.PeerAddressOrBuilder
      +
      Returns:
      +
      The services.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PeerAddress parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.PeerAddress parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.PeerAddress parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PeerAddress.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.PeerAddress.Builder newBuilder(Protos.PeerAddress prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.PeerAddress,Protos.PeerAddress.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.PeerAddress getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.PeerAddress> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddressOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddressOrBuilder.html new file mode 100644 index 000000000..a7994f8a3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.PeerAddressOrBuilder.html @@ -0,0 +1,228 @@ + + + + +Protos.PeerAddressOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.PeerAddressOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.PeerAddress, Protos.PeerAddress.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.PeerAddressOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes ip_address = 1;
    +
    +
    int
    + +
    +
    required uint32 port = 2;
    +
    +
    long
    + +
    +
    required uint64 services = 3;
    +
    +
    boolean
    + +
    +
    required bytes ip_address = 1;
    +
    +
    boolean
    + +
    +
    required uint32 port = 2;
    +
    +
    boolean
    + +
    +
    required uint64 services = 3;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasIpAddress

      +
      boolean hasIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Returns:
      +
      Whether the ipAddress field is set.
      +
      +
      +
    • +
    • +
      +

      getIpAddress

      +
      com.google.protobuf.ByteString getIpAddress()
      +
      required bytes ip_address = 1;
      +
      +
      Returns:
      +
      The ipAddress.
      +
      +
      +
    • +
    • +
      +

      hasPort

      +
      boolean hasPort()
      +
      required uint32 port = 2;
      +
      +
      Returns:
      +
      Whether the port field is set.
      +
      +
      +
    • +
    • +
      +

      getPort

      +
      int getPort()
      +
      required uint32 port = 2;
      +
      +
      Returns:
      +
      The port.
      +
      +
      +
    • +
    • +
      +

      hasServices

      +
      boolean hasServices()
      +
      required uint64 services = 3;
      +
      +
      Returns:
      +
      Whether the services field is set.
      +
      +
      +
    • +
    • +
      +

      getServices

      +
      long getServices()
      +
      required uint64 services = 3;
      +
      +
      Returns:
      +
      The services.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.Builder.html new file mode 100644 index 000000000..5af03ebb9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.Builder.html @@ -0,0 +1,319 @@ + + + + +Protos.Script.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Script.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Script,Protos.Script.Builder> +
org.bitcoinj.wallet.Protos.Script.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ScriptOrBuilder
+
+
+
Enclosing class:
+
Protos.Script
+
+
+
public static final class Protos.Script.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Script,Protos.Script.Builder> +implements Protos.ScriptOrBuilder
+
Protobuf type wallet.Script
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + Timestamp stored as millis since epoch.
    +
    + + +
    +
    required bytes program = 1;
    +
    +
    long
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes program = 1;
    +
    +
    boolean
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    boolean
    + +
    +
    required bytes program = 1;
    +
    + + +
    +
    + Timestamp stored as millis since epoch.
    +
    + +
    setProgram(com.google.protobuf.ByteString value)
    +
    +
    required bytes program = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasProgram

      +
      public boolean hasProgram()
      +
      required bytes program = 1;
      +
      +
      Specified by:
      +
      hasProgram in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      Whether the program field is set.
      +
      +
      +
    • +
    • +
      +

      getProgram

      +
      public com.google.protobuf.ByteString getProgram()
      +
      required bytes program = 1;
      +
      +
      Specified by:
      +
      getProgram in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      The program.
      +
      +
      +
    • +
    • +
      +

      setProgram

      +
      public Protos.Script.Builder setProgram(com.google.protobuf.ByteString value)
      +
      required bytes program = 1;
      +
      +
      Parameters:
      +
      value - The program to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearProgram

      +
      public Protos.Script.Builder clearProgram()
      +
      required bytes program = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      public boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Specified by:
      +
      hasCreationTimestamp in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      public long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Specified by:
      +
      getCreationTimestamp in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    • +
      +

      setCreationTimestamp

      +
      public Protos.Script.Builder setCreationTimestamp(long value)
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Parameters:
      +
      value - The creationTimestamp to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearCreationTimestamp

      +
      public Protos.Script.Builder clearCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.html new file mode 100644 index 000000000..16b59db80 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Script.html @@ -0,0 +1,546 @@ + + + + +Protos.Script (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Script

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Script,Protos.Script.Builder> +
org.bitcoinj.wallet.Protos.Script
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.ScriptOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Script +extends com.google.protobuf.GeneratedMessageLite<Protos.Script,Protos.Script.Builder> +implements Protos.ScriptOrBuilder
+
Protobuf type wallet.Script
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.Script
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    long
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes program = 1;
    +
    +
    boolean
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    boolean
    + +
    +
    required bytes program = 1;
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Script>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      PROGRAM_FIELD_NUMBER

      +
      public static final int PROGRAM_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CREATION_TIMESTAMP_FIELD_NUMBER

      +
      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasProgram

      +
      public boolean hasProgram()
      +
      required bytes program = 1;
      +
      +
      Specified by:
      +
      hasProgram in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      Whether the program field is set.
      +
      +
      +
    • +
    • +
      +

      getProgram

      +
      public com.google.protobuf.ByteString getProgram()
      +
      required bytes program = 1;
      +
      +
      Specified by:
      +
      getProgram in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      The program.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      public boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Specified by:
      +
      hasCreationTimestamp in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      public long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Specified by:
      +
      getCreationTimestamp in interface Protos.ScriptOrBuilder
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Script parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Script parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Script parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Script.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Script.Builder newBuilder(Protos.Script prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Script,Protos.Script.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Script getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Script> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptOrBuilder.html new file mode 100644 index 000000000..b9ce4503e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptOrBuilder.html @@ -0,0 +1,208 @@ + + + + +Protos.ScriptOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.ScriptOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Script, Protos.Script.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.ScriptOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes program = 1;
    +
    +
    boolean
    + +
    +
    + Timestamp stored as millis since epoch.
    +
    +
    boolean
    + +
    +
    required bytes program = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasProgram

      +
      boolean hasProgram()
      +
      required bytes program = 1;
      +
      +
      Returns:
      +
      Whether the program field is set.
      +
      +
      +
    • +
    • +
      +

      getProgram

      +
      com.google.protobuf.ByteString getProgram()
      +
      required bytes program = 1;
      +
      +
      Returns:
      +
      The program.
      +
      +
      +
    • +
    • +
      +

      hasCreationTimestamp

      +
      boolean hasCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Returns:
      +
      Whether the creationTimestamp field is set.
      +
      +
      +
    • +
    • +
      +

      getCreationTimestamp

      +
      long getCreationTimestamp()
      +
      + Timestamp stored as millis since epoch. Useful for skipping block bodies before this point
      + when watching for scripts on the blockchain.
      + 
      + + required int64 creation_timestamp = 2;
      +
      +
      Returns:
      +
      The creationTimestamp.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.Builder.html new file mode 100644 index 000000000..e37087516 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.Builder.html @@ -0,0 +1,283 @@ + + + + +Protos.ScriptWitness.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ScriptWitness.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScriptWitness,Protos.ScriptWitness.Builder> +
org.bitcoinj.wallet.Protos.ScriptWitness.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ScriptWitnessOrBuilder
+
+
+
Enclosing class:
+
Protos.ScriptWitness
+
+
+
public static final class Protos.ScriptWitness.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScriptWitness,Protos.ScriptWitness.Builder> +implements Protos.ScriptWitnessOrBuilder
+
Protobuf type wallet.ScriptWitness
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + +
    addAllData(Iterable<? extends com.google.protobuf.ByteString> values)
    +
    +
    repeated bytes data = 1;
    +
    + +
    addData(com.google.protobuf.ByteString value)
    +
    +
    repeated bytes data = 1;
    +
    + + +
    +
    repeated bytes data = 1;
    +
    +
    com.google.protobuf.ByteString
    +
    getData(int index)
    +
    +
    repeated bytes data = 1;
    +
    +
    int
    + +
    +
    repeated bytes data = 1;
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    repeated bytes data = 1;
    +
    + +
    setData(int index, + com.google.protobuf.ByteString value)
    +
    +
    repeated bytes data = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDataList

      +
      public List<com.google.protobuf.ByteString> getDataList()
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getDataList in interface Protos.ScriptWitnessOrBuilder
      +
      Returns:
      +
      A list containing the data.
      +
      +
      +
    • +
    • +
      +

      getDataCount

      +
      public int getDataCount()
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getDataCount in interface Protos.ScriptWitnessOrBuilder
      +
      Returns:
      +
      The count of data.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData(int index)
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getData in interface Protos.ScriptWitnessOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The data at the given index.
      +
      +
      +
    • +
    • +
      +

      setData

      +
      public Protos.ScriptWitness.Builder setData(int index, + com.google.protobuf.ByteString value)
      +
      repeated bytes data = 1;
      +
      +
      Parameters:
      +
      value - The data to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addData

      +
      public Protos.ScriptWitness.Builder addData(com.google.protobuf.ByteString value)
      +
      repeated bytes data = 1;
      +
      +
      Parameters:
      +
      value - The data to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllData

      +
      public Protos.ScriptWitness.Builder addAllData(Iterable<? extends com.google.protobuf.ByteString> values)
      +
      repeated bytes data = 1;
      +
      +
      Parameters:
      +
      values - The data to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearData

      +
      public Protos.ScriptWitness.Builder clearData()
      +
      repeated bytes data = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.html new file mode 100644 index 000000000..14bf94f0d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitness.html @@ -0,0 +1,501 @@ + + + + +Protos.ScriptWitness (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ScriptWitness

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.ScriptWitness,Protos.ScriptWitness.Builder> +
org.bitcoinj.wallet.Protos.ScriptWitness
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.ScriptWitnessOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.ScriptWitness +extends com.google.protobuf.GeneratedMessageLite<Protos.ScriptWitness,Protos.ScriptWitness.Builder> +implements Protos.ScriptWitnessOrBuilder
+
Protobuf type wallet.ScriptWitness
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.ScriptWitness
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    +
    getData(int index)
    +
    +
    repeated bytes data = 1;
    +
    +
    int
    + +
    +
    repeated bytes data = 1;
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    repeated bytes data = 1;
    +
    + + +
     
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.ScriptWitness>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      DATA_FIELD_NUMBER

      +
      public static final int DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDataList

      +
      public List<com.google.protobuf.ByteString> getDataList()
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getDataList in interface Protos.ScriptWitnessOrBuilder
      +
      Returns:
      +
      A list containing the data.
      +
      +
      +
    • +
    • +
      +

      getDataCount

      +
      public int getDataCount()
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getDataCount in interface Protos.ScriptWitnessOrBuilder
      +
      Returns:
      +
      The count of data.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData(int index)
      +
      repeated bytes data = 1;
      +
      +
      Specified by:
      +
      getData in interface Protos.ScriptWitnessOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The data at the given index.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ScriptWitness parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ScriptWitness parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScriptWitness parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ScriptWitness.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ScriptWitness.Builder newBuilder(Protos.ScriptWitness prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.ScriptWitness,Protos.ScriptWitness.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.ScriptWitness getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.ScriptWitness> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitnessOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitnessOrBuilder.html new file mode 100644 index 000000000..cd8b2aef1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScriptWitnessOrBuilder.html @@ -0,0 +1,182 @@ + + + + +Protos.ScriptWitnessOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.ScriptWitnessOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.ScriptWitness, Protos.ScriptWitness.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.ScriptWitnessOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    +
    getData(int index)
    +
    +
    repeated bytes data = 1;
    +
    +
    int
    + +
    +
    repeated bytes data = 1;
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    repeated bytes data = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getDataList

      +
      List<com.google.protobuf.ByteString> getDataList()
      +
      repeated bytes data = 1;
      +
      +
      Returns:
      +
      A list containing the data.
      +
      +
      +
    • +
    • +
      +

      getDataCount

      +
      int getDataCount()
      +
      repeated bytes data = 1;
      +
      +
      Returns:
      +
      The count of data.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      com.google.protobuf.ByteString getData(int index)
      +
      repeated bytes data = 1;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The data at the given index.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.Builder.html new file mode 100644 index 000000000..f3c471fd3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.Builder.html @@ -0,0 +1,523 @@ + + + + +Protos.ScryptParameters.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ScryptParameters.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScryptParameters,Protos.ScryptParameters.Builder> +
org.bitcoinj.wallet.Protos.ScryptParameters.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.ScryptParametersOrBuilder
+
+
+
Enclosing class:
+
Protos.ScryptParameters
+
+
+
public static final class Protos.ScryptParameters.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.ScryptParameters,Protos.ScryptParameters.Builder> +implements Protos.ScryptParametersOrBuilder
+
+ The parameters used in the scrypt key derivation function.
+  The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf.
+  They can be increased - n is the number of iterations performed and
+  r and p can be used to tweak the algorithm - see:
+  http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factors
+ 
+ + Protobuf type wallet.ScryptParameters
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    + CPU/ memory cost parameter
    +
    + + +
    +
    + Parallelisation parameter
    +
    + + +
    +
    + Block size parameter
    +
    + + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    long
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    int
    + +
    +
    + Parallelisation parameter
    +
    +
    int
    + +
    +
    + Block size parameter
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    boolean
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    boolean
    + +
    +
    + Parallelisation parameter
    +
    +
    boolean
    + +
    +
    + Block size parameter
    +
    +
    boolean
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    + +
    setN(long value)
    +
    +
    + CPU/ memory cost parameter
    +
    + +
    setP(int value)
    +
    +
    + Parallelisation parameter
    +
    + +
    setR(int value)
    +
    +
    + Block size parameter
    +
    + +
    setSalt(com.google.protobuf.ByteString value)
    +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasSalt

      +
      public boolean hasSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Specified by:
      +
      hasSalt in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the salt field is set.
      +
      +
      +
    • +
    • +
      +

      getSalt

      +
      public com.google.protobuf.ByteString getSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Specified by:
      +
      getSalt in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The salt.
      +
      +
      +
    • +
    • +
      +

      setSalt

      +
      public Protos.ScryptParameters.Builder setSalt(com.google.protobuf.ByteString value)
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Parameters:
      +
      value - The salt to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSalt

      +
      public Protos.ScryptParameters.Builder clearSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasN

      +
      public boolean hasN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Specified by:
      +
      hasN in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the n field is set.
      +
      +
      +
    • +
    • +
      +

      getN

      +
      public long getN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Specified by:
      +
      getN in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The n.
      +
      +
      +
    • +
    • +
      +

      setN

      +
      public Protos.ScryptParameters.Builder setN(long value)
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Parameters:
      +
      value - The n to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearN

      + +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasR

      +
      public boolean hasR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Specified by:
      +
      hasR in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the r field is set.
      +
      +
      +
    • +
    • +
      +

      getR

      +
      public int getR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Specified by:
      +
      getR in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The r.
      +
      +
      +
    • +
    • +
      +

      setR

      +
      public Protos.ScryptParameters.Builder setR(int value)
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Parameters:
      +
      value - The r to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearR

      + +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasP

      +
      public boolean hasP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Specified by:
      +
      hasP in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the p field is set.
      +
      +
      +
    • +
    • +
      +

      getP

      +
      public int getP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Specified by:
      +
      getP in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The p.
      +
      +
      +
    • +
    • +
      +

      setP

      +
      public Protos.ScryptParameters.Builder setP(int value)
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Parameters:
      +
      value - The p to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearP

      + +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.html new file mode 100644 index 000000000..a92dcec14 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParameters.html @@ -0,0 +1,689 @@ + + + + +Protos.ScryptParameters (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.ScryptParameters

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.ScryptParameters,Protos.ScryptParameters.Builder> +
org.bitcoinj.wallet.Protos.ScryptParameters
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.ScryptParametersOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.ScryptParameters +extends com.google.protobuf.GeneratedMessageLite<Protos.ScryptParameters,Protos.ScryptParameters.Builder> +implements Protos.ScryptParametersOrBuilder
+
+ The parameters used in the scrypt key derivation function.
+  The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf.
+  They can be increased - n is the number of iterations performed and
+  r and p can be used to tweak the algorithm - see:
+  http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factors
+ 
+ + Protobuf type wallet.ScryptParameters
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + The parameters used in the scrypt key derivation function.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    long
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    int
    + +
    +
    + Parallelisation parameter
    +
    +
    int
    + +
    +
    + Block size parameter
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    boolean
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    boolean
    + +
    +
    + Parallelisation parameter
    +
    +
    boolean
    + +
    +
    + Block size parameter
    +
    +
    boolean
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.ScryptParameters>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SALT_FIELD_NUMBER

      +
      public static final int SALT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      N_FIELD_NUMBER

      +
      public static final int N_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      R_FIELD_NUMBER

      +
      public static final int R_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      P_FIELD_NUMBER

      +
      public static final int P_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasSalt

      +
      public boolean hasSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Specified by:
      +
      hasSalt in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the salt field is set.
      +
      +
      +
    • +
    • +
      +

      getSalt

      +
      public com.google.protobuf.ByteString getSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Specified by:
      +
      getSalt in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The salt.
      +
      +
      +
    • +
    • +
      +

      hasN

      +
      public boolean hasN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Specified by:
      +
      hasN in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the n field is set.
      +
      +
      +
    • +
    • +
      +

      getN

      +
      public long getN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Specified by:
      +
      getN in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The n.
      +
      +
      +
    • +
    • +
      +

      hasR

      +
      public boolean hasR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Specified by:
      +
      hasR in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the r field is set.
      +
      +
      +
    • +
    • +
      +

      getR

      +
      public int getR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Specified by:
      +
      getR in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The r.
      +
      +
      +
    • +
    • +
      +

      hasP

      +
      public boolean hasP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Specified by:
      +
      hasP in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      Whether the p field is set.
      +
      +
      +
    • +
    • +
      +

      getP

      +
      public int getP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Specified by:
      +
      getP in interface Protos.ScryptParametersOrBuilder
      +
      Returns:
      +
      The p.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ScryptParameters parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.ScryptParameters parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.ScryptParameters parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ScryptParameters.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.ScryptParameters.Builder newBuilder(Protos.ScryptParameters prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.ScryptParameters,Protos.ScryptParameters.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.ScryptParameters getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.ScryptParameters> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParametersOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParametersOrBuilder.html new file mode 100644 index 000000000..80c40b3a6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.ScryptParametersOrBuilder.html @@ -0,0 +1,300 @@ + + + + +Protos.ScryptParametersOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.ScryptParametersOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.ScryptParameters, Protos.ScryptParameters.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.ScryptParametersOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    long
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    int
    + +
    +
    + Parallelisation parameter
    +
    +
    int
    + +
    +
    + Block size parameter
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    boolean
    + +
    +
    + CPU/ memory cost parameter
    +
    +
    boolean
    + +
    +
    + Parallelisation parameter
    +
    +
    boolean
    + +
    +
    + Block size parameter
    +
    +
    boolean
    + +
    +
    + Salt to use in generation of the wallet password (8 bytes)
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasSalt

      +
      boolean hasSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Returns:
      +
      Whether the salt field is set.
      +
      +
      +
    • +
    • +
      +

      getSalt

      +
      com.google.protobuf.ByteString getSalt()
      +
      + Salt to use in generation of the wallet password (8 bytes)
      + 
      + + required bytes salt = 1;
      +
      +
      Returns:
      +
      The salt.
      +
      +
      +
    • +
    • +
      +

      hasN

      +
      boolean hasN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Returns:
      +
      Whether the n field is set.
      +
      +
      +
    • +
    • +
      +

      getN

      +
      long getN()
      +
      + CPU/ memory cost parameter
      + 
      + + optional int64 n = 2 [default = 16384];
      +
      +
      Returns:
      +
      The n.
      +
      +
      +
    • +
    • +
      +

      hasR

      +
      boolean hasR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Returns:
      +
      Whether the r field is set.
      +
      +
      +
    • +
    • +
      +

      getR

      +
      int getR()
      +
      + Block size parameter
      + 
      + + optional int32 r = 3 [default = 8];
      +
      +
      Returns:
      +
      The r.
      +
      +
      +
    • +
    • +
      +

      hasP

      +
      boolean hasP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Returns:
      +
      Whether the p field is set.
      +
      +
      +
    • +
    • +
      +

      getP

      +
      int getP()
      +
      + Parallelisation parameter
      + 
      + + optional int32 p = 4 [default = 1];
      +
      +
      Returns:
      +
      The p.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.Builder.html new file mode 100644 index 000000000..3484bec8f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.Builder.html @@ -0,0 +1,338 @@ + + + + +Protos.Tag.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Tag.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Tag,Protos.Tag.Builder> +
org.bitcoinj.wallet.Protos.Tag.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TagOrBuilder
+
+
+
Enclosing class:
+
Protos.Tag
+
+
+
public static final class Protos.Tag.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Tag,Protos.Tag.Builder> +implements Protos.TagOrBuilder
+
+
+ A simple key->value mapping that has no interpreted content at all. A bit like the extensions mechanism except
+ an extension is keyed by the ID of a piece of code that's loaded with the given data, and has the concept of
+ being mandatory if that code isn't found. Whereas this is just a blind key/value store.
+ 
+ + Protobuf type wallet.Tag
+
+
+
    + +
  • +
    +

    Field Summary

    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +instance, isBuilt
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    required bytes data = 2;
    +
    + + +
    +
    required string tag = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    + + +
    +
    required string tag = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string tag = 1;
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    required string tag = 1;
    +
    + +
    setData(com.google.protobuf.ByteString value)
    +
    +
    required bytes data = 2;
    +
    + +
    setTag(String value)
    +
    +
    required string tag = 1;
    +
    + +
    setTagBytes(com.google.protobuf.ByteString value)
    +
    +
    required string tag = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    +build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    +addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
    +
    +

    Methods inherited from class java.lang.Object

    +equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTag

      +
      public boolean hasTag()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      hasTag in interface Protos.TagOrBuilder
      +
      Returns:
      +
      Whether the tag field is set.
      +
      +
      +
    • +
    • +
      +

      getTag

      +
      public String getTag()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      getTag in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The tag.
      +
      +
      +
    • +
    • +
      +

      getTagBytes

      +
      public com.google.protobuf.ByteString getTagBytes()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      getTagBytes in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The bytes for tag.
      +
      +
      +
    • +
    • +
      +

      setTag

      +
      public Protos.Tag.Builder setTag(String value)
      +
      required string tag = 1;
      +
      +
      Parameters:
      +
      value - The tag to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearTag

      +
      public Protos.Tag.Builder clearTag()
      +
      required string tag = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setTagBytes

      +
      public Protos.Tag.Builder setTagBytes(com.google.protobuf.ByteString value)
      +
      required string tag = 1;
      +
      +
      Parameters:
      +
      value - The bytes for tag to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      public boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      hasData in interface Protos.TagOrBuilder
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      getData in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    • +
      +

      setData

      +
      public Protos.Tag.Builder setData(com.google.protobuf.ByteString value)
      +
      required bytes data = 2;
      +
      +
      Parameters:
      +
      value - The data to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearData

      +
      public Protos.Tag.Builder clearData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.html new file mode 100644 index 000000000..6cf8a447e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Tag.html @@ -0,0 +1,561 @@ + + + + +Protos.Tag (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Tag

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Tag,Protos.Tag.Builder> +
org.bitcoinj.wallet.Protos.Tag
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.TagOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Tag +extends com.google.protobuf.GeneratedMessageLite<Protos.Tag,Protos.Tag.Builder> +implements Protos.TagOrBuilder
+
+
+ A simple key->value mapping that has no interpreted content at all. A bit like the extensions mechanism except
+ an extension is keyed by the ID of a piece of code that's loaded with the given data, and has the concept of
+ being mandatory if that code isn't found. Whereas this is just a blind key/value store.
+ 
+ + Protobuf type wallet.Tag
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    + + A simple key->value mapping that has no interpreted content at all.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    +
    static Protos.Tag
    + +
     
    + + +
    +
    required string tag = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string tag = 1;
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    required string tag = 1;
    +
    + + +
     
    + + +
     
    +
    static Protos.Tag
    + +
     
    +
    static Protos.Tag
    +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(byte[] data)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    +
    static Protos.Tag
    +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Tag
    + +
     
    +
    static Protos.Tag
    +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static Protos.Tag
    + +
     
    +
    static Protos.Tag
    +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Tag>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      TAG_FIELD_NUMBER

      +
      public static final int TAG_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DATA_FIELD_NUMBER

      +
      public static final int DATA_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTag

      +
      public boolean hasTag()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      hasTag in interface Protos.TagOrBuilder
      +
      Returns:
      +
      Whether the tag field is set.
      +
      +
      +
    • +
    • +
      +

      getTag

      +
      public String getTag()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      getTag in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The tag.
      +
      +
      +
    • +
    • +
      +

      getTagBytes

      +
      public com.google.protobuf.ByteString getTagBytes()
      +
      required string tag = 1;
      +
      +
      Specified by:
      +
      getTagBytes in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The bytes for tag.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      public boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      hasData in interface Protos.TagOrBuilder
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      public com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Specified by:
      +
      getData in interface Protos.TagOrBuilder
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Tag parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Tag parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Tag parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Tag.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Tag.Builder newBuilder(Protos.Tag prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Tag,Protos.Tag.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Tag getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Tag> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TagOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TagOrBuilder.html new file mode 100644 index 000000000..d58d6a0de --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TagOrBuilder.html @@ -0,0 +1,212 @@ + + + + +Protos.TagOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.TagOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Tag, Protos.Tag.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.TagOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes data = 2;
    +
    + + +
    +
    required string tag = 1;
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required string tag = 1;
    +
    +
    boolean
    + +
    +
    required bytes data = 2;
    +
    +
    boolean
    + +
    +
    required string tag = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTag

      +
      boolean hasTag()
      +
      required string tag = 1;
      +
      +
      Returns:
      +
      Whether the tag field is set.
      +
      +
      +
    • +
    • +
      +

      getTag

      +
      String getTag()
      +
      required string tag = 1;
      +
      +
      Returns:
      +
      The tag.
      +
      +
      +
    • +
    • +
      +

      getTagBytes

      +
      com.google.protobuf.ByteString getTagBytes()
      +
      required string tag = 1;
      +
      +
      Returns:
      +
      The bytes for tag.
      +
      +
      +
    • +
    • +
      +

      hasData

      +
      boolean hasData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      Whether the data field is set.
      +
      +
      +
    • +
    • +
      +

      getData

      +
      com.google.protobuf.ByteString getData()
      +
      required bytes data = 2;
      +
      +
      Returns:
      +
      The data.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Builder.html new file mode 100644 index 000000000..bc04a01d3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Builder.html @@ -0,0 +1,1671 @@ + + + + +Protos.Transaction.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Transaction.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Transaction,Protos.Transaction.Builder> +
org.bitcoinj.wallet.Protos.Transaction.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TransactionOrBuilder
+
+
+
Enclosing class:
+
Protos.Transaction
+
+
+
public static final class Protos.Transaction.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Transaction,Protos.Transaction.Builder> +implements Protos.TransactionOrBuilder
+
Protobuf type wallet.Transaction
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasVersion

      +
      public boolean hasVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Specified by:
      +
      hasVersion in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      public int getVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Specified by:
      +
      getVersion in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      setVersion

      +
      public Protos.Transaction.Builder setVersion(int value)
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Parameters:
      +
      value - The version to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearVersion

      +
      public Protos.Transaction.Builder clearVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasHash

      +
      public boolean hasHash()
      +
      required bytes hash = 2;
      +
      +
      Specified by:
      +
      hasHash in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the hash field is set.
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public com.google.protobuf.ByteString getHash()
      +
      required bytes hash = 2;
      +
      +
      Specified by:
      +
      getHash in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The hash.
      +
      +
      +
    • +
    • +
      +

      setHash

      +
      public Protos.Transaction.Builder setHash(com.google.protobuf.ByteString value)
      +
      required bytes hash = 2;
      +
      +
      Parameters:
      +
      value - The hash to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearHash

      +
      public Protos.Transaction.Builder clearHash()
      +
      required bytes hash = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasPool

      +
      public boolean hasPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Specified by:
      +
      hasPool in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the pool field is set.
      +
      +
      +
    • +
    • +
      +

      getPool

      +
      public Protos.Transaction.Pool getPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Specified by:
      +
      getPool in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The pool.
      +
      +
      +
    • +
    • +
      +

      setPool

      + +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for pool to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPool

      +
      public Protos.Transaction.Builder clearPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLockTime

      +
      public boolean hasLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Specified by:
      +
      hasLockTime in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the lockTime field is set.
      +
      +
      +
    • +
    • +
      +

      getLockTime

      +
      public int getLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Specified by:
      +
      getLockTime in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The lockTime.
      +
      +
      +
    • +
    • +
      +

      setLockTime

      +
      public Protos.Transaction.Builder setLockTime(int value)
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Parameters:
      +
      value - The lockTime to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLockTime

      +
      public Protos.Transaction.Builder clearLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasUpdatedAt

      +
      public boolean hasUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Specified by:
      +
      hasUpdatedAt in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the updatedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getUpdatedAt

      +
      public long getUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Specified by:
      +
      getUpdatedAt in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The updatedAt.
      +
      +
      +
    • +
    • +
      +

      setUpdatedAt

      +
      public Protos.Transaction.Builder setUpdatedAt(long value)
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Parameters:
      +
      value - The updatedAt to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearUpdatedAt

      +
      public Protos.Transaction.Builder clearUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getTransactionInputList

      +
      public List<Protos.TransactionInput> getTransactionInputList()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInputList in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionInputCount

      +
      public int getTransactionInputCount()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInputCount in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionInput

      +
      public Protos.TransactionInput getTransactionInput(int index)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInput in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      setTransactionInput

      +
      public Protos.Transaction.Builder setTransactionInput(int index, + Protos.TransactionInput value)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      setTransactionInput

      +
      public Protos.Transaction.Builder setTransactionInput(int index, + Protos.TransactionInput.Builder builderForValue)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      addTransactionInput

      +
      public Protos.Transaction.Builder addTransactionInput(Protos.TransactionInput value)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      addTransactionInput

      +
      public Protos.Transaction.Builder addTransactionInput(int index, + Protos.TransactionInput value)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      addTransactionInput

      +
      public Protos.Transaction.Builder addTransactionInput(Protos.TransactionInput.Builder builderForValue)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      addTransactionInput

      +
      public Protos.Transaction.Builder addTransactionInput(int index, + Protos.TransactionInput.Builder builderForValue)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      addAllTransactionInput

      +
      public Protos.Transaction.Builder addAllTransactionInput(Iterable<? extends Protos.TransactionInput> values)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      clearTransactionInput

      +
      public Protos.Transaction.Builder clearTransactionInput()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      removeTransactionInput

      +
      public Protos.Transaction.Builder removeTransactionInput(int index)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionOutputList

      +
      public List<Protos.TransactionOutput> getTransactionOutputList()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutputList in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOutputCount

      +
      public int getTransactionOutputCount()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutputCount in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOutput

      +
      public Protos.TransactionOutput getTransactionOutput(int index)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutput in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      setTransactionOutput

      +
      public Protos.Transaction.Builder setTransactionOutput(int index, + Protos.TransactionOutput value)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      setTransactionOutput

      +
      public Protos.Transaction.Builder setTransactionOutput(int index, + Protos.TransactionOutput.Builder builderForValue)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      addTransactionOutput

      +
      public Protos.Transaction.Builder addTransactionOutput(Protos.TransactionOutput value)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      addTransactionOutput

      +
      public Protos.Transaction.Builder addTransactionOutput(int index, + Protos.TransactionOutput value)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      addTransactionOutput

      +
      public Protos.Transaction.Builder addTransactionOutput(Protos.TransactionOutput.Builder builderForValue)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      addTransactionOutput

      +
      public Protos.Transaction.Builder addTransactionOutput(int index, + Protos.TransactionOutput.Builder builderForValue)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      addAllTransactionOutput

      +
      public Protos.Transaction.Builder addAllTransactionOutput(Iterable<? extends Protos.TransactionOutput> values)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      clearTransactionOutput

      +
      public Protos.Transaction.Builder clearTransactionOutput()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      removeTransactionOutput

      +
      public Protos.Transaction.Builder removeTransactionOutput(int index)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getBlockHashList

      +
      public List<com.google.protobuf.ByteString> getBlockHashList()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHashList in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      A list containing the blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHashCount

      +
      public int getBlockHashCount()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHashCount in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The count of blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHash

      +
      public com.google.protobuf.ByteString getBlockHash(int index)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHash in interface Protos.TransactionOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockHash at the given index.
      +
      +
      +
    • +
    • +
      +

      setBlockHash

      +
      public Protos.Transaction.Builder setBlockHash(int index, + com.google.protobuf.ByteString value)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Parameters:
      +
      value - The blockHash to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addBlockHash

      +
      public Protos.Transaction.Builder addBlockHash(com.google.protobuf.ByteString value)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Parameters:
      +
      value - The blockHash to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllBlockHash

      +
      public Protos.Transaction.Builder addAllBlockHash(Iterable<? extends com.google.protobuf.ByteString> values)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Parameters:
      +
      values - The blockHash to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearBlockHash

      +
      public Protos.Transaction.Builder clearBlockHash()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsList

      +
      public List<Integer> getBlockRelativityOffsetsList()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsetsList in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      A list containing the blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsCount

      +
      public int getBlockRelativityOffsetsCount()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsetsCount in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The count of blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsets

      +
      public int getBlockRelativityOffsets(int index)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsets in interface Protos.TransactionOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockRelativityOffsets at the given index.
      +
      +
      +
    • +
    • +
      +

      setBlockRelativityOffsets

      +
      public Protos.Transaction.Builder setBlockRelativityOffsets(int index, + int value)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Parameters:
      +
      value - The blockRelativityOffsets to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addBlockRelativityOffsets

      +
      public Protos.Transaction.Builder addBlockRelativityOffsets(int value)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Parameters:
      +
      value - The blockRelativityOffsets to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      addAllBlockRelativityOffsets

      +
      public Protos.Transaction.Builder addAllBlockRelativityOffsets(Iterable<? extends Integer> values)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Parameters:
      +
      values - The blockRelativityOffsets to add.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearBlockRelativityOffsets

      +
      public Protos.Transaction.Builder clearBlockRelativityOffsets()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasConfidence

      +
      public boolean hasConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Specified by:
      +
      hasConfidence in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the confidence field is set.
      +
      +
      +
    • +
    • +
      +

      getConfidence

      +
      public Protos.TransactionConfidence getConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Specified by:
      +
      getConfidence in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The confidence.
      +
      +
      +
    • +
    • +
      +

      setConfidence

      + +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
    • +
    • +
      +

      setConfidence

      +
      public Protos.Transaction.Builder setConfidence(Protos.TransactionConfidence.Builder builderForValue)
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
    • +
    • +
      +

      mergeConfidence

      + +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
    • +
    • +
      +

      clearConfidence

      +
      public Protos.Transaction.Builder clearConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
    • +
    • +
      +

      hasPurpose

      +
      public boolean hasPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Specified by:
      +
      hasPurpose in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the purpose field is set.
      +
      +
      +
    • +
    • +
      +

      getPurpose

      +
      public Protos.Transaction.Purpose getPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Specified by:
      +
      getPurpose in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The purpose.
      +
      +
      +
    • +
    • +
      +

      setPurpose

      + +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for purpose to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearPurpose

      +
      public Protos.Transaction.Builder clearPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasExchangeRate

      +
      public boolean hasExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Specified by:
      +
      hasExchangeRate in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the exchangeRate field is set.
      +
      +
      +
    • +
    • +
      +

      getExchangeRate

      +
      public Protos.ExchangeRate getExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Specified by:
      +
      getExchangeRate in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The exchangeRate.
      +
      +
      +
    • +
    • +
      +

      setExchangeRate

      +
      public Protos.Transaction.Builder setExchangeRate(Protos.ExchangeRate value)
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
    • +
    • +
      +

      setExchangeRate

      +
      public Protos.Transaction.Builder setExchangeRate(Protos.ExchangeRate.Builder builderForValue)
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
    • +
    • +
      +

      mergeExchangeRate

      +
      public Protos.Transaction.Builder mergeExchangeRate(Protos.ExchangeRate value)
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
    • +
    • +
      +

      clearExchangeRate

      +
      public Protos.Transaction.Builder clearExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      setMemo

      +
      public Protos.Transaction.Builder setMemo(String value)
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Parameters:
      +
      value - The memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearMemo

      +
      public Protos.Transaction.Builder clearMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setMemoBytes

      +
      public Protos.Transaction.Builder setMemoBytes(com.google.protobuf.ByteString value)
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Parameters:
      +
      value - The bytes for memo to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Pool.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Pool.html new file mode 100644 index 000000000..2958283ac --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Pool.html @@ -0,0 +1,553 @@ + + + + +Protos.Transaction.Pool (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.Transaction.Pool

+
+
java.lang.Object +
java.lang.Enum<Protos.Transaction.Pool> +
org.bitcoinj.wallet.Protos.Transaction.Pool
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Transaction.Pool>, Constable
+
+
+
Enclosing class:
+
Protos.Transaction
+
+
+
public static enum Protos.Transaction.Pool +extends Enum<Protos.Transaction.Pool> +implements com.google.protobuf.Internal.EnumLite
+
+
+ This is a bitfield oriented enum, with the following bits:
+ 
+ bit 0 - spent
+ bit 1 - appears in alt chain
+ bit 2 - appears in best chain
+ bit 3 - double-spent
+ bit 4 - pending (we would like the tx to go into the best chain)
+ 
+ Not all combinations are interesting, just the ones actually used in the enum.
+ 
+ + Protobuf enum wallet.Transaction.Pool
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      UNSPENT

      +
      public static final Protos.Transaction.Pool UNSPENT
      +
      + In best chain, not all outputs spent
      + 
      + + UNSPENT = 4;
      +
      +
    • +
    • +
      +

      SPENT

      +
      public static final Protos.Transaction.Pool SPENT
      +
      + In best chain, all outputs spent
      + 
      + + SPENT = 5;
      +
      +
    • +
    • +
      +

      INACTIVE

      +
      public static final Protos.Transaction.Pool INACTIVE
      +
      + In non-best chain, not our transaction
      + 
      + + INACTIVE = 2;
      +
      +
    • +
    • +
      +

      DEAD

      +
      public static final Protos.Transaction.Pool DEAD
      +
      + Double-spent by a transaction in the best chain
      + 
      + + DEAD = 10;
      +
      +
    • +
    • +
      +

      PENDING

      +
      public static final Protos.Transaction.Pool PENDING
      +
      + Our transaction, not in any chain
      + 
      + + PENDING = 16;
      +
      +
    • +
    • +
      +

      PENDING_INACTIVE

      +
      public static final Protos.Transaction.Pool PENDING_INACTIVE
      +
      + In non-best chain, our transaction
      + 
      + + PENDING_INACTIVE = 18;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      UNSPENT_VALUE

      +
      public static final int UNSPENT_VALUE
      +
      + In best chain, not all outputs spent
      + 
      + + UNSPENT = 4;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SPENT_VALUE

      +
      public static final int SPENT_VALUE
      +
      + In best chain, all outputs spent
      + 
      + + SPENT = 5;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      INACTIVE_VALUE

      +
      public static final int INACTIVE_VALUE
      +
      + In non-best chain, not our transaction
      + 
      + + INACTIVE = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEAD_VALUE

      +
      public static final int DEAD_VALUE
      +
      + Double-spent by a transaction in the best chain
      + 
      + + DEAD = 10;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PENDING_VALUE

      +
      public static final int PENDING_VALUE
      +
      + Our transaction, not in any chain
      + 
      + + PENDING = 16;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PENDING_INACTIVE_VALUE

      +
      public static final int PENDING_INACTIVE_VALUE
      +
      + In non-best chain, our transaction
      + 
      + + PENDING_INACTIVE = 18;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.Transaction.Pool[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.Transaction.Pool valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.Transaction.Pool valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.Transaction.Pool forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Purpose.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Purpose.html new file mode 100644 index 000000000..81ad7dd10 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.Purpose.html @@ -0,0 +1,565 @@ + + + + +Protos.Transaction.Purpose (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.Transaction.Purpose

+
+
java.lang.Object +
java.lang.Enum<Protos.Transaction.Purpose> +
org.bitcoinj.wallet.Protos.Transaction.Purpose
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Transaction.Purpose>, Constable
+
+
+
Enclosing class:
+
Protos.Transaction
+
+
+
public static enum Protos.Transaction.Purpose +extends Enum<Protos.Transaction.Purpose> +implements com.google.protobuf.Internal.EnumLite
+
+ For what purpose the transaction was created.
+ 
+ + Protobuf enum wallet.Transaction.Purpose
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      UNKNOWN

      +
      public static final Protos.Transaction.Purpose UNKNOWN
      +
      + Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
      + 
      + + UNKNOWN = 0;
      +
      +
    • +
    • +
      +

      USER_PAYMENT

      +
      public static final Protos.Transaction.Purpose USER_PAYMENT
      +
      + Created in response to a user request for payment. This is the normal case.
      + 
      + + USER_PAYMENT = 1;
      +
      +
    • +
    • +
      +

      KEY_ROTATION

      +
      public static final Protos.Transaction.Purpose KEY_ROTATION
      +
      + Created automatically to move money from rotated keys.
      + 
      + + KEY_ROTATION = 2;
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_CLAIM

      +
      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_CLAIM
      +
      + Stuff used by Lighthouse.
      + 
      + + ASSURANCE_CONTRACT_CLAIM = 3;
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_PLEDGE

      +
      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_PLEDGE
      +
      ASSURANCE_CONTRACT_PLEDGE = 4;
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_STUB

      +
      public static final Protos.Transaction.Purpose ASSURANCE_CONTRACT_STUB
      +
      ASSURANCE_CONTRACT_STUB = 5;
      +
      +
    • +
    • +
      +

      RAISE_FEE

      +
      public static final Protos.Transaction.Purpose RAISE_FEE
      +
      + Raise fee, e.g. child-pays-for-parent.
      + 
      + + RAISE_FEE = 6;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      UNKNOWN_VALUE

      +
      public static final int UNKNOWN_VALUE
      +
      + Old wallets or the purpose genuinely is a mystery (e.g. imported from some external source).
      + 
      + + UNKNOWN = 0;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      USER_PAYMENT_VALUE

      +
      public static final int USER_PAYMENT_VALUE
      +
      + Created in response to a user request for payment. This is the normal case.
      + 
      + + USER_PAYMENT = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      KEY_ROTATION_VALUE

      +
      public static final int KEY_ROTATION_VALUE
      +
      + Created automatically to move money from rotated keys.
      + 
      + + KEY_ROTATION = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_CLAIM_VALUE

      +
      public static final int ASSURANCE_CONTRACT_CLAIM_VALUE
      +
      + Stuff used by Lighthouse.
      + 
      + + ASSURANCE_CONTRACT_CLAIM = 3;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_PLEDGE_VALUE

      +
      public static final int ASSURANCE_CONTRACT_PLEDGE_VALUE
      +
      ASSURANCE_CONTRACT_PLEDGE = 4;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ASSURANCE_CONTRACT_STUB_VALUE

      +
      public static final int ASSURANCE_CONTRACT_STUB_VALUE
      +
      ASSURANCE_CONTRACT_STUB = 5;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      RAISE_FEE_VALUE

      +
      public static final int RAISE_FEE_VALUE
      +
      + Raise fee, e.g. child-pays-for-parent.
      + 
      + + RAISE_FEE = 6;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.Transaction.Purpose[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.Transaction.Purpose valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.Transaction.Purpose valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.Transaction.Purpose forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Purpose> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.html new file mode 100644 index 000000000..34194ecfa --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Transaction.html @@ -0,0 +1,1374 @@ + + + + +Protos.Transaction (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Transaction

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Transaction,Protos.Transaction.Builder> +
org.bitcoinj.wallet.Protos.Transaction
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.TransactionOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Transaction +extends com.google.protobuf.GeneratedMessageLite<Protos.Transaction,Protos.Transaction.Builder> +implements Protos.TransactionOrBuilder
+
Protobuf type wallet.Transaction
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.Transaction
    +
    +
    static enum 
    + +
    +
    + + This is a bitfield oriented enum, with the following bits: + + bit 0 - spent + bit 1 - appears in alt chain + bit 2 - appears in best chain + bit 3 - double-spent + bit 4 - pending (we would like the tx to go into the best chain) + + Not all combinations are interesting, just the ones actually used in the enum.
    +
    +
    static enum 
    + +
    +
    + For what purpose the transaction was created.
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    +
    com.google.protobuf.ByteString
    +
    getBlockHash(int index)
    +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    int
    + +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    int
    + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    +
    int
    + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    + + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    + + +
    +
    + Data describing where the transaction is in the chain.
    +
    + + +
     
    + + +
    +
    + Exchange rate that was valid when the transaction was sent.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes hash = 2;
    +
    +
    int
    + +
    +
    + The nLockTime field is useful for contracts.
    +
    + + +
    +
    + Memo of the transaction.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Memo of the transaction.
    +
    + + +
    +
    + If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
    +
    + + +
    +
    optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    +
    int
    + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    +
    int
    + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    +
    long
    + +
    +
    + millis since epoch the transaction was last updated
    +
    +
    int
    + +
    +
    + See Wallet.java for detailed description of pool semantics
    +
    +
    boolean
    + +
    +
    + Data describing where the transaction is in the chain.
    +
    +
    boolean
    + +
    +
    + Exchange rate that was valid when the transaction was sent.
    +
    +
    boolean
    + +
    +
    required bytes hash = 2;
    +
    +
    boolean
    + +
    +
    + The nLockTime field is useful for contracts.
    +
    +
    boolean
    + +
    +
    + Memo of the transaction.
    +
    +
    boolean
    + +
    +
    + If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
    +
    +
    boolean
    + +
    +
    optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
    +
    +
    boolean
    + +
    +
    + millis since epoch the transaction was last updated
    +
    +
    boolean
    + +
    +
    + See Wallet.java for detailed description of pool semantics
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.Transaction>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      VERSION_FIELD_NUMBER

      +
      public static final int VERSION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      HASH_FIELD_NUMBER

      +
      public static final int HASH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      POOL_FIELD_NUMBER

      +
      public static final int POOL_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LOCK_TIME_FIELD_NUMBER

      +
      public static final int LOCK_TIME_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      UPDATED_AT_FIELD_NUMBER

      +
      public static final int UPDATED_AT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TRANSACTION_INPUT_FIELD_NUMBER

      +
      public static final int TRANSACTION_INPUT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TRANSACTION_OUTPUT_FIELD_NUMBER

      +
      public static final int TRANSACTION_OUTPUT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_HASH_FIELD_NUMBER

      +
      public static final int BLOCK_HASH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER

      +
      public static final int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      CONFIDENCE_FIELD_NUMBER

      +
      public static final int CONFIDENCE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PURPOSE_FIELD_NUMBER

      +
      public static final int PURPOSE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      EXCHANGE_RATE_FIELD_NUMBER

      +
      public static final int EXCHANGE_RATE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      MEMO_FIELD_NUMBER

      +
      public static final int MEMO_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasVersion

      +
      public boolean hasVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Specified by:
      +
      hasVersion in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      public int getVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Specified by:
      +
      getVersion in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      hasHash

      +
      public boolean hasHash()
      +
      required bytes hash = 2;
      +
      +
      Specified by:
      +
      hasHash in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the hash field is set.
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      public com.google.protobuf.ByteString getHash()
      +
      required bytes hash = 2;
      +
      +
      Specified by:
      +
      getHash in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The hash.
      +
      +
      +
    • +
    • +
      +

      hasPool

      +
      public boolean hasPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Specified by:
      +
      hasPool in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the pool field is set.
      +
      +
      +
    • +
    • +
      +

      getPool

      +
      public Protos.Transaction.Pool getPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Specified by:
      +
      getPool in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The pool.
      +
      +
      +
    • +
    • +
      +

      hasLockTime

      +
      public boolean hasLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Specified by:
      +
      hasLockTime in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the lockTime field is set.
      +
      +
      +
    • +
    • +
      +

      getLockTime

      +
      public int getLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Specified by:
      +
      getLockTime in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The lockTime.
      +
      +
      +
    • +
    • +
      +

      hasUpdatedAt

      +
      public boolean hasUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Specified by:
      +
      hasUpdatedAt in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the updatedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getUpdatedAt

      +
      public long getUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Specified by:
      +
      getUpdatedAt in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The updatedAt.
      +
      +
      +
    • +
    • +
      +

      getTransactionInputList

      +
      public List<Protos.TransactionInput> getTransactionInputList()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInputList in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionInputOrBuilderList

      +
      public List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionInputCount

      +
      public int getTransactionInputCount()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInputCount in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionInput

      +
      public Protos.TransactionInput getTransactionInput(int index)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
      Specified by:
      +
      getTransactionInput in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionInputOrBuilder

      +
      public Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionOutputList

      +
      public List<Protos.TransactionOutput> getTransactionOutputList()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutputList in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOutputOrBuilderList

      +
      public List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getTransactionOutputCount

      +
      public int getTransactionOutputCount()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutputCount in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOutput

      +
      public Protos.TransactionOutput getTransactionOutput(int index)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
      Specified by:
      +
      getTransactionOutput in interface Protos.TransactionOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOutputOrBuilder

      +
      public Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getBlockHashList

      +
      public List<com.google.protobuf.ByteString> getBlockHashList()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHashList in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      A list containing the blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHashCount

      +
      public int getBlockHashCount()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHashCount in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The count of blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHash

      +
      public com.google.protobuf.ByteString getBlockHash(int index)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Specified by:
      +
      getBlockHash in interface Protos.TransactionOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockHash at the given index.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsList

      +
      public List<Integer> getBlockRelativityOffsetsList()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsetsList in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      A list containing the blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsCount

      +
      public int getBlockRelativityOffsetsCount()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsetsCount in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The count of blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsets

      +
      public int getBlockRelativityOffsets(int index)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Specified by:
      +
      getBlockRelativityOffsets in interface Protos.TransactionOrBuilder
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockRelativityOffsets at the given index.
      +
      +
      +
    • +
    • +
      +

      hasConfidence

      +
      public boolean hasConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Specified by:
      +
      hasConfidence in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the confidence field is set.
      +
      +
      +
    • +
    • +
      +

      getConfidence

      +
      public Protos.TransactionConfidence getConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Specified by:
      +
      getConfidence in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The confidence.
      +
      +
      +
    • +
    • +
      +

      hasPurpose

      +
      public boolean hasPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Specified by:
      +
      hasPurpose in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the purpose field is set.
      +
      +
      +
    • +
    • +
      +

      getPurpose

      +
      public Protos.Transaction.Purpose getPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Specified by:
      +
      getPurpose in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The purpose.
      +
      +
      +
    • +
    • +
      +

      hasExchangeRate

      +
      public boolean hasExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Specified by:
      +
      hasExchangeRate in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the exchangeRate field is set.
      +
      +
      +
    • +
    • +
      +

      getExchangeRate

      +
      public Protos.ExchangeRate getExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Specified by:
      +
      getExchangeRate in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The exchangeRate.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      public boolean hasMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      hasMemo in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      public String getMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      getMemo in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      public com.google.protobuf.ByteString getMemoBytes()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Specified by:
      +
      getMemoBytes in interface Protos.TransactionOrBuilder
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Transaction parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Transaction parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Transaction.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Transaction,Protos.Transaction.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Transaction getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Transaction> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Builder.html new file mode 100644 index 000000000..53c34d62e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Builder.html @@ -0,0 +1,858 @@ + + + + +Protos.TransactionConfidence.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionConfidence.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder> +
org.bitcoinj.wallet.Protos.TransactionConfidence.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TransactionConfidenceOrBuilder
+
+
+
Enclosing class:
+
Protos.TransactionConfidence
+
+
+
public static final class Protos.TransactionConfidence.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder> +implements Protos.TransactionConfidenceOrBuilder
+
+
+ A description of the confidence we have that a transaction cannot be reversed in the future.
+ Parsing should be lenient, since this could change for different applications yet we should
+ maintain backward compatibility.
+ 
+ + Protobuf type wallet.TransactionConfidence
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      public boolean hasType()
      +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Specified by:
      +
      hasType in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      + +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Specified by:
      +
      getType in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      setType

      + +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for type to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearType

      + +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasAppearedAtHeight

      +
      public boolean hasAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Specified by:
      +
      hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the appearedAtHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getAppearedAtHeight

      +
      public int getAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Specified by:
      +
      getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The appearedAtHeight.
      +
      +
      +
    • +
    • +
      +

      setAppearedAtHeight

      +
      public Protos.TransactionConfidence.Builder setAppearedAtHeight(int value)
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Parameters:
      +
      value - The appearedAtHeight to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearAppearedAtHeight

      +
      public Protos.TransactionConfidence.Builder clearAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasOverridingTransaction

      +
      public boolean hasOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Specified by:
      +
      hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the overridingTransaction field is set.
      +
      +
      +
    • +
    • +
      +

      getOverridingTransaction

      +
      public com.google.protobuf.ByteString getOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Specified by:
      +
      getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The overridingTransaction.
      +
      +
      +
    • +
    • +
      +

      setOverridingTransaction

      +
      public Protos.TransactionConfidence.Builder setOverridingTransaction(com.google.protobuf.ByteString value)
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Parameters:
      +
      value - The overridingTransaction to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearOverridingTransaction

      +
      public Protos.TransactionConfidence.Builder clearOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasDepth

      +
      public boolean hasDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Specified by:
      +
      hasDepth in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the depth field is set.
      +
      +
      +
    • +
    • +
      +

      getDepth

      +
      public int getDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Specified by:
      +
      getDepth in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The depth.
      +
      +
      +
    • +
    • +
      +

      setDepth

      +
      public Protos.TransactionConfidence.Builder setDepth(int value)
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Parameters:
      +
      value - The depth to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearDepth

      + +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getBroadcastByList

      +
      public List<Protos.PeerAddress> getBroadcastByList()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastByList in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      getBroadcastByCount

      +
      public int getBroadcastByCount()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastByCount in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      getBroadcastBy

      +
      public Protos.PeerAddress getBroadcastBy(int index)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastBy in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      setBroadcastBy

      +
      public Protos.TransactionConfidence.Builder setBroadcastBy(int index, + Protos.PeerAddress value)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      setBroadcastBy

      +
      public Protos.TransactionConfidence.Builder setBroadcastBy(int index, + Protos.PeerAddress.Builder builderForValue)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      addBroadcastBy

      + +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      addBroadcastBy

      +
      public Protos.TransactionConfidence.Builder addBroadcastBy(int index, + Protos.PeerAddress value)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      addBroadcastBy

      +
      public Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress.Builder builderForValue)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      addBroadcastBy

      +
      public Protos.TransactionConfidence.Builder addBroadcastBy(int index, + Protos.PeerAddress.Builder builderForValue)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      addAllBroadcastBy

      +
      public Protos.TransactionConfidence.Builder addAllBroadcastBy(Iterable<? extends Protos.PeerAddress> values)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      clearBroadcastBy

      +
      public Protos.TransactionConfidence.Builder clearBroadcastBy()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      removeBroadcastBy

      +
      public Protos.TransactionConfidence.Builder removeBroadcastBy(int index)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      hasLastBroadcastedAt

      +
      public boolean hasLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Specified by:
      +
      hasLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the lastBroadcastedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getLastBroadcastedAt

      +
      public long getLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Specified by:
      +
      getLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The lastBroadcastedAt.
      +
      +
      +
    • +
    • +
      +

      setLastBroadcastedAt

      +
      public Protos.TransactionConfidence.Builder setLastBroadcastedAt(long value)
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Parameters:
      +
      value - The lastBroadcastedAt to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLastBroadcastedAt

      +
      public Protos.TransactionConfidence.Builder clearLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSource

      +
      public boolean hasSource()
      +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Specified by:
      +
      hasSource in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the source field is set.
      +
      +
      +
    • +
    • +
      +

      getSource

      + +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Specified by:
      +
      getSource in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The source.
      +
      +
      +
    • +
    • +
      +

      setSource

      + +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for source to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSource

      + +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Source.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Source.html new file mode 100644 index 000000000..7f5f3aea7 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Source.html @@ -0,0 +1,421 @@ + + + + +Protos.TransactionConfidence.Source (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.TransactionConfidence.Source

+
+
java.lang.Object +
java.lang.Enum<Protos.TransactionConfidence.Source> +
org.bitcoinj.wallet.Protos.TransactionConfidence.Source
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.TransactionConfidence.Source>, Constable
+
+
+
Enclosing class:
+
Protos.TransactionConfidence
+
+
+
public static enum Protos.TransactionConfidence.Source +extends Enum<Protos.TransactionConfidence.Source> +implements com.google.protobuf.Internal.EnumLite
+
+ Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.
+ 
+ + Protobuf enum wallet.TransactionConfidence.Source
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      SOURCE_UNKNOWN

      +
      public static final Protos.TransactionConfidence.Source SOURCE_UNKNOWN
      +
      + We don't know where it came from, or this is a wallet from the future.
      + 
      + + SOURCE_UNKNOWN = 0;
      +
      +
    • +
    • +
      +

      SOURCE_NETWORK

      +
      public static final Protos.TransactionConfidence.Source SOURCE_NETWORK
      +
      + We received it from a network broadcast. This is the normal way to get payments.
      + 
      + + SOURCE_NETWORK = 1;
      +
      +
    • +
    • +
      +

      SOURCE_SELF

      +
      public static final Protos.TransactionConfidence.Source SOURCE_SELF
      +
      + We made it ourselves, so we know it should be valid.
      + 
      + + SOURCE_SELF = 2;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      SOURCE_UNKNOWN_VALUE

      +
      public static final int SOURCE_UNKNOWN_VALUE
      +
      + We don't know where it came from, or this is a wallet from the future.
      + 
      + + SOURCE_UNKNOWN = 0;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SOURCE_NETWORK_VALUE

      +
      public static final int SOURCE_NETWORK_VALUE
      +
      + We received it from a network broadcast. This is the normal way to get payments.
      + 
      + + SOURCE_NETWORK = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SOURCE_SELF_VALUE

      +
      public static final int SOURCE_SELF_VALUE
      +
      + We made it ourselves, so we know it should be valid.
      + 
      + + SOURCE_SELF = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.TransactionConfidence.Source[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.TransactionConfidence.Source valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.TransactionConfidence.Source valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.TransactionConfidence.Source forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Source> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Type.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Type.html new file mode 100644 index 000000000..447e39539 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.Type.html @@ -0,0 +1,540 @@ + + + + +Protos.TransactionConfidence.Type (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.TransactionConfidence.Type

+
+
java.lang.Object +
java.lang.Enum<Protos.TransactionConfidence.Type> +
org.bitcoinj.wallet.Protos.TransactionConfidence.Type
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.TransactionConfidence.Type>, Constable
+
+
+
Enclosing class:
+
Protos.TransactionConfidence
+
+
+
public static enum Protos.TransactionConfidence.Type +extends Enum<Protos.TransactionConfidence.Type> +implements com.google.protobuf.Internal.EnumLite
+
Protobuf enum wallet.TransactionConfidence.Type
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      UNKNOWN

      +
      public static final Protos.TransactionConfidence.Type UNKNOWN
      +
      + See TransactionConfidence.java for a more thorough explanation of these types.
      + 
      + + UNKNOWN = 0;
      +
      +
    • +
    • +
      +

      BUILDING

      +
      public static final Protos.TransactionConfidence.Type BUILDING
      +
      + In best chain.  If and only if appeared_at_height is present.
      + 
      + + BUILDING = 1;
      +
      +
    • +
    • +
      +

      PENDING

      +
      public static final Protos.TransactionConfidence.Type PENDING
      +
      + Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
      + 
      + + PENDING = 2;
      +
      +
    • +
    • +
      +

      NOT_IN_BEST_CHAIN

      +
      public static final Protos.TransactionConfidence.Type NOT_IN_BEST_CHAIN
      +
      + Deprecated: equivalent to PENDING.
      + 
      + + NOT_IN_BEST_CHAIN = 3;
      +
      +
    • +
    • +
      +

      DEAD

      +
      public static final Protos.TransactionConfidence.Type DEAD
      +
      + Either if overriding_transaction is present or transaction is dead coinbase.
      + 
      + + DEAD = 4;
      +
      +
    • +
    • +
      +

      IN_CONFLICT

      +
      public static final Protos.TransactionConfidence.Type IN_CONFLICT
      +
      + There is another transaction spending one of this transaction inputs.
      + 
      + + IN_CONFLICT = 5;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      UNKNOWN_VALUE

      +
      public static final int UNKNOWN_VALUE
      +
      + See TransactionConfidence.java for a more thorough explanation of these types.
      + 
      + + UNKNOWN = 0;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BUILDING_VALUE

      +
      public static final int BUILDING_VALUE
      +
      + In best chain.  If and only if appeared_at_height is present.
      + 
      + + BUILDING = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      PENDING_VALUE

      +
      public static final int PENDING_VALUE
      +
      + Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain.
      + 
      + + PENDING = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      NOT_IN_BEST_CHAIN_VALUE

      +
      public static final int NOT_IN_BEST_CHAIN_VALUE
      +
      + Deprecated: equivalent to PENDING.
      + 
      + + NOT_IN_BEST_CHAIN = 3;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEAD_VALUE

      +
      public static final int DEAD_VALUE
      +
      + Either if overriding_transaction is present or transaction is dead coinbase.
      + 
      + + DEAD = 4;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      IN_CONFLICT_VALUE

      +
      public static final int IN_CONFLICT_VALUE
      +
      + There is another transaction spending one of this transaction inputs.
      + 
      + + IN_CONFLICT = 5;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.TransactionConfidence.Type[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.TransactionConfidence.Type valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.TransactionConfidence.Type valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.TransactionConfidence.Type forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.TransactionConfidence.Type> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.html new file mode 100644 index 000000000..5303454d3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidence.html @@ -0,0 +1,911 @@ + + + + +Protos.TransactionConfidence (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionConfidence

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder> +
org.bitcoinj.wallet.Protos.TransactionConfidence
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.TransactionConfidenceOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.TransactionConfidence +extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder> +implements Protos.TransactionConfidenceOrBuilder
+
+
+ A description of the confidence we have that a transaction cannot be reversed in the future.
+ Parsing should be lenient, since this could change for different applications yet we should
+ maintain backward compatibility.
+ 
+ + Protobuf type wallet.TransactionConfidence
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      TYPE_FIELD_NUMBER

      +
      public static final int TYPE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      APPEARED_AT_HEIGHT_FIELD_NUMBER

      +
      public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      OVERRIDING_TRANSACTION_FIELD_NUMBER

      +
      public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DEPTH_FIELD_NUMBER

      +
      public static final int DEPTH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      BROADCAST_BY_FIELD_NUMBER

      +
      public static final int BROADCAST_BY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LAST_BROADCASTED_AT_FIELD_NUMBER

      +
      public static final int LAST_BROADCASTED_AT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SOURCE_FIELD_NUMBER

      +
      public static final int SOURCE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      public boolean hasType()
      +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Specified by:
      +
      hasType in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      + +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Specified by:
      +
      getType in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      hasAppearedAtHeight

      +
      public boolean hasAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Specified by:
      +
      hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the appearedAtHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getAppearedAtHeight

      +
      public int getAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Specified by:
      +
      getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The appearedAtHeight.
      +
      +
      +
    • +
    • +
      +

      hasOverridingTransaction

      +
      public boolean hasOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Specified by:
      +
      hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the overridingTransaction field is set.
      +
      +
      +
    • +
    • +
      +

      getOverridingTransaction

      +
      public com.google.protobuf.ByteString getOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Specified by:
      +
      getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The overridingTransaction.
      +
      +
      +
    • +
    • +
      +

      hasDepth

      +
      public boolean hasDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Specified by:
      +
      hasDepth in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the depth field is set.
      +
      +
      +
    • +
    • +
      +

      getDepth

      +
      public int getDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Specified by:
      +
      getDepth in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The depth.
      +
      +
      +
    • +
    • +
      +

      getBroadcastByList

      +
      public List<Protos.PeerAddress> getBroadcastByList()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastByList in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      getBroadcastByOrBuilderList

      +
      public List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      getBroadcastByCount

      +
      public int getBroadcastByCount()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastByCount in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      getBroadcastBy

      +
      public Protos.PeerAddress getBroadcastBy(int index)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
      Specified by:
      +
      getBroadcastBy in interface Protos.TransactionConfidenceOrBuilder
      +
      +
      +
    • +
    • +
      +

      getBroadcastByOrBuilder

      +
      public Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      hasLastBroadcastedAt

      +
      public boolean hasLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Specified by:
      +
      hasLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the lastBroadcastedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getLastBroadcastedAt

      +
      public long getLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Specified by:
      +
      getLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The lastBroadcastedAt.
      +
      +
      +
    • +
    • +
      +

      hasSource

      +
      public boolean hasSource()
      +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Specified by:
      +
      hasSource in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      Whether the source field is set.
      +
      +
      +
    • +
    • +
      +

      getSource

      + +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Specified by:
      +
      getSource in interface Protos.TransactionConfidenceOrBuilder
      +
      Returns:
      +
      The source.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.TransactionConfidence.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      + +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.TransactionConfidence getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.TransactionConfidence> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidenceOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidenceOrBuilder.html new file mode 100644 index 000000000..78e6565cc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionConfidenceOrBuilder.html @@ -0,0 +1,416 @@ + + + + +Protos.TransactionConfidenceOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.TransactionConfidenceOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.TransactionConfidence, Protos.TransactionConfidence.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.TransactionConfidenceOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    int
    + +
    +
    + If type == BUILDING then this is the chain height at which the transaction was included.
    +
    + +
    getBroadcastBy(int index)
    +
    +
    repeated .wallet.PeerAddress broadcast_by = 6;
    +
    +
    int
    + +
    +
    repeated .wallet.PeerAddress broadcast_by = 6;
    +
    + + +
    +
    repeated .wallet.PeerAddress broadcast_by = 6;
    +
    +
    int
    + +
    +
    + If type == BUILDING then this is the depth of the transaction in the blockchain.
    +
    +
    long
    + +
    +
    + Millis since epoch the transaction was last announced to us.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + If set, hash of the transaction that double spent this one into oblivion.
    +
    + + +
    +
    optional .wallet.TransactionConfidence.Source source = 7;
    +
    + + +
    +
    + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
    +
    +
    boolean
    + +
    +
    + If type == BUILDING then this is the chain height at which the transaction was included.
    +
    +
    boolean
    + +
    +
    + If type == BUILDING then this is the depth of the transaction in the blockchain.
    +
    +
    boolean
    + +
    +
    + Millis since epoch the transaction was last announced to us.
    +
    +
    boolean
    + +
    +
    + If set, hash of the transaction that double spent this one into oblivion.
    +
    +
    boolean
    + +
    +
    optional .wallet.TransactionConfidence.Source source = 7;
    +
    +
    boolean
    + +
    +
    + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasType

      +
      boolean hasType()
      +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Returns:
      +
      Whether the type field is set.
      +
      +
      +
    • +
    • +
      +

      getType

      + +
      + This is optional in case we add confidence types to prevent parse errors - backwards compatible.
      + 
      + + optional .wallet.TransactionConfidence.Type type = 1;
      +
      +
      Returns:
      +
      The type.
      +
      +
      +
    • +
    • +
      +

      hasAppearedAtHeight

      +
      boolean hasAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Returns:
      +
      Whether the appearedAtHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getAppearedAtHeight

      +
      int getAppearedAtHeight()
      +
      + If type == BUILDING then this is the chain height at which the transaction was included.
      + 
      + + optional int32 appeared_at_height = 2;
      +
      +
      Returns:
      +
      The appearedAtHeight.
      +
      +
      +
    • +
    • +
      +

      hasOverridingTransaction

      +
      boolean hasOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Returns:
      +
      Whether the overridingTransaction field is set.
      +
      +
      +
    • +
    • +
      +

      getOverridingTransaction

      +
      com.google.protobuf.ByteString getOverridingTransaction()
      +
      + If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
      + multiple transactions in the case of several inputs being re-spent by several transactions but we don't
      + bother to track them all, just the first. This only makes sense if type = DEAD.
      + 
      + + optional bytes overriding_transaction = 3;
      +
      +
      Returns:
      +
      The overridingTransaction.
      +
      +
      +
    • +
    • +
      +

      hasDepth

      +
      boolean hasDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Returns:
      +
      Whether the depth field is set.
      +
      +
      +
    • +
    • +
      +

      getDepth

      +
      int getDepth()
      +
      + If type == BUILDING then this is the depth of the transaction in the blockchain.
      + Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
      + 
      + + optional int32 depth = 4;
      +
      +
      Returns:
      +
      The depth.
      +
      +
      +
    • +
    • +
      +

      getBroadcastByList

      +
      List<Protos.PeerAddress> getBroadcastByList()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      getBroadcastBy

      +
      Protos.PeerAddress getBroadcastBy(int index)
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      getBroadcastByCount

      +
      int getBroadcastByCount()
      +
      repeated .wallet.PeerAddress broadcast_by = 6;
      +
      +
    • +
    • +
      +

      hasLastBroadcastedAt

      +
      boolean hasLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Returns:
      +
      Whether the lastBroadcastedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getLastBroadcastedAt

      +
      long getLastBroadcastedAt()
      +
      + Millis since epoch the transaction was last announced to us.
      + 
      + + optional int64 last_broadcasted_at = 8;
      +
      +
      Returns:
      +
      The lastBroadcastedAt.
      +
      +
      +
    • +
    • +
      +

      hasSource

      +
      boolean hasSource()
      +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Returns:
      +
      Whether the source field is set.
      +
      +
      +
    • +
    • +
      +

      getSource

      + +
      optional .wallet.TransactionConfidence.Source source = 7;
      +
      +
      Returns:
      +
      The source.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.Builder.html new file mode 100644 index 000000000..8bd35b278 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.Builder.html @@ -0,0 +1,719 @@ + + + + +Protos.TransactionInput.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionInput.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder> +
org.bitcoinj.wallet.Protos.TransactionInput.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TransactionInputOrBuilder
+
+
+
Enclosing class:
+
Protos.TransactionInput
+
+
+
public static final class Protos.TransactionInput.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionInput,Protos.TransactionInput.Builder> +implements Protos.TransactionInputOrBuilder
+
Protobuf type wallet.TransactionInput
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTransactionOutPointHash

      +
      public boolean hasTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Specified by:
      +
      hasTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the transactionOutPointHash field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointHash

      +
      public com.google.protobuf.ByteString getTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Specified by:
      +
      getTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The transactionOutPointHash.
      +
      +
      +
    • +
    • +
      +

      setTransactionOutPointHash

      +
      public Protos.TransactionInput.Builder setTransactionOutPointHash(com.google.protobuf.ByteString value)
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Parameters:
      +
      value - The transactionOutPointHash to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearTransactionOutPointHash

      +
      public Protos.TransactionInput.Builder clearTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasTransactionOutPointIndex

      +
      public boolean hasTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Specified by:
      +
      hasTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the transactionOutPointIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointIndex

      +
      public int getTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Specified by:
      +
      getTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The transactionOutPointIndex.
      +
      +
      +
    • +
    • +
      +

      setTransactionOutPointIndex

      +
      public Protos.TransactionInput.Builder setTransactionOutPointIndex(int value)
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Parameters:
      +
      value - The transactionOutPointIndex to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearTransactionOutPointIndex

      +
      public Protos.TransactionInput.Builder clearTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      public boolean hasScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Specified by:
      +
      hasScriptBytes in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public com.google.protobuf.ByteString getScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Specified by:
      +
      getScriptBytes in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      setScriptBytes

      +
      public Protos.TransactionInput.Builder setScriptBytes(com.google.protobuf.ByteString value)
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Parameters:
      +
      value - The scriptBytes to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearScriptBytes

      +
      public Protos.TransactionInput.Builder clearScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSequence

      +
      public boolean hasSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Specified by:
      +
      hasSequence in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the sequence field is set.
      +
      +
      +
    • +
    • +
      +

      getSequence

      +
      public int getSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Specified by:
      +
      getSequence in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The sequence.
      +
      +
      +
    • +
    • +
      +

      setSequence

      +
      public Protos.TransactionInput.Builder setSequence(int value)
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Parameters:
      +
      value - The sequence to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSequence

      +
      public Protos.TransactionInput.Builder clearSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      public boolean hasValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Specified by:
      +
      hasValue in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Specified by:
      +
      getValue in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      setValue

      +
      public Protos.TransactionInput.Builder setValue(long value)
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Parameters:
      +
      value - The value to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearValue

      +
      public Protos.TransactionInput.Builder clearValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasWitness

      +
      public boolean hasWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Specified by:
      +
      hasWitness in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the witness field is set.
      +
      +
      +
    • +
    • +
      +

      getWitness

      +
      public Protos.ScriptWitness getWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Specified by:
      +
      getWitness in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The witness.
      +
      +
      +
    • +
    • +
      +

      setWitness

      + +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
    • +
    • +
      +

      setWitness

      + +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
    • +
    • +
      +

      mergeWitness

      + +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
    • +
    • +
      +

      clearWitness

      +
      public Protos.TransactionInput.Builder clearWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.html new file mode 100644 index 000000000..4838fb0db --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInput.html @@ -0,0 +1,806 @@ + + + + +Protos.TransactionInput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionInput

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder> +
org.bitcoinj.wallet.Protos.TransactionInput
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.TransactionInputOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.TransactionInput +extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder> +implements Protos.TransactionInputOrBuilder
+
Protobuf type wallet.TransactionInput
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.TransactionInput
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    + Script that contains the signatures/pubkeys.
    +
    +
    int
    + +
    +
    + Sequence number.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Hash of the transaction this input is using.
    +
    +
    int
    + +
    +
    + Index of transaction output used by this input.
    +
    +
    long
    + +
    +
    + Value of connected output, if known
    +
    + + +
    +
    + script witness
    +
    +
    boolean
    + +
    +
    + Script that contains the signatures/pubkeys.
    +
    +
    boolean
    + +
    +
    + Sequence number.
    +
    +
    boolean
    + +
    +
    + Hash of the transaction this input is using.
    +
    +
    boolean
    + +
    +
    + Index of transaction output used by this input.
    +
    +
    boolean
    + +
    +
    + Value of connected output, if known
    +
    +
    boolean
    + +
    +
    + script witness
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.TransactionInput>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER

      +
      public static final int TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER

      +
      public static final int TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SCRIPT_BYTES_FIELD_NUMBER

      +
      public static final int SCRIPT_BYTES_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SEQUENCE_FIELD_NUMBER

      +
      public static final int SEQUENCE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      VALUE_FIELD_NUMBER

      +
      public static final int VALUE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WITNESS_FIELD_NUMBER

      +
      public static final int WITNESS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTransactionOutPointHash

      +
      public boolean hasTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Specified by:
      +
      hasTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the transactionOutPointHash field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointHash

      +
      public com.google.protobuf.ByteString getTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Specified by:
      +
      getTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The transactionOutPointHash.
      +
      +
      +
    • +
    • +
      +

      hasTransactionOutPointIndex

      +
      public boolean hasTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Specified by:
      +
      hasTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the transactionOutPointIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointIndex

      +
      public int getTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Specified by:
      +
      getTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The transactionOutPointIndex.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      public boolean hasScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Specified by:
      +
      hasScriptBytes in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public com.google.protobuf.ByteString getScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Specified by:
      +
      getScriptBytes in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      hasSequence

      +
      public boolean hasSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Specified by:
      +
      hasSequence in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the sequence field is set.
      +
      +
      +
    • +
    • +
      +

      getSequence

      +
      public int getSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Specified by:
      +
      getSequence in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The sequence.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      public boolean hasValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Specified by:
      +
      hasValue in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Specified by:
      +
      getValue in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      hasWitness

      +
      public boolean hasWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Specified by:
      +
      hasWitness in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      Whether the witness field is set.
      +
      +
      +
    • +
    • +
      +

      getWitness

      +
      public Protos.ScriptWitness getWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Specified by:
      +
      getWitness in interface Protos.TransactionInputOrBuilder
      +
      Returns:
      +
      The witness.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionInput parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionInput parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionInput parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.TransactionInput.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.TransactionInput.Builder newBuilder(Protos.TransactionInput prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.TransactionInput,Protos.TransactionInput.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.TransactionInput getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.TransactionInput> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInputOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInputOrBuilder.html new file mode 100644 index 000000000..ba9d9d312 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionInputOrBuilder.html @@ -0,0 +1,384 @@ + + + + +Protos.TransactionInputOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.TransactionInputOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.TransactionInput, Protos.TransactionInput.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.TransactionInputOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    + Script that contains the signatures/pubkeys.
    +
    +
    int
    + +
    +
    + Sequence number.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Hash of the transaction this input is using.
    +
    +
    int
    + +
    +
    + Index of transaction output used by this input.
    +
    +
    long
    + +
    +
    + Value of connected output, if known
    +
    + + +
    +
    + script witness
    +
    +
    boolean
    + +
    +
    + Script that contains the signatures/pubkeys.
    +
    +
    boolean
    + +
    +
    + Sequence number.
    +
    +
    boolean
    + +
    +
    + Hash of the transaction this input is using.
    +
    +
    boolean
    + +
    +
    + Index of transaction output used by this input.
    +
    +
    boolean
    + +
    +
    + Value of connected output, if known
    +
    +
    boolean
    + +
    +
    + script witness
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasTransactionOutPointHash

      +
      boolean hasTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Returns:
      +
      Whether the transactionOutPointHash field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointHash

      +
      com.google.protobuf.ByteString getTransactionOutPointHash()
      +
      + Hash of the transaction this input is using.
      + 
      + + required bytes transaction_out_point_hash = 1;
      +
      +
      Returns:
      +
      The transactionOutPointHash.
      +
      +
      +
    • +
    • +
      +

      hasTransactionOutPointIndex

      +
      boolean hasTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Returns:
      +
      Whether the transactionOutPointIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getTransactionOutPointIndex

      +
      int getTransactionOutPointIndex()
      +
      + Index of transaction output used by this input.
      + 
      + + required uint32 transaction_out_point_index = 2;
      +
      +
      Returns:
      +
      The transactionOutPointIndex.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      boolean hasScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      com.google.protobuf.ByteString getScriptBytes()
      +
      + Script that contains the signatures/pubkeys.
      + 
      + + required bytes script_bytes = 3;
      +
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      hasSequence

      +
      boolean hasSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Returns:
      +
      Whether the sequence field is set.
      +
      +
      +
    • +
    • +
      +

      getSequence

      +
      int getSequence()
      +
      + Sequence number.
      + 
      + + optional uint32 sequence = 4;
      +
      +
      Returns:
      +
      The sequence.
      +
      +
      +
    • +
    • +
      +

      hasValue

      +
      boolean hasValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      long getValue()
      +
      + Value of connected output, if known
      + 
      + + optional int64 value = 5;
      +
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      hasWitness

      +
      boolean hasWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Returns:
      +
      Whether the witness field is set.
      +
      +
      +
    • +
    • +
      +

      getWitness

      +
      Protos.ScriptWitness getWitness()
      +
      + script witness
      + 
      + + optional .wallet.ScriptWitness witness = 6;
      +
      +
      Returns:
      +
      The witness.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOrBuilder.html new file mode 100644 index 000000000..e9258ef9c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOrBuilder.html @@ -0,0 +1,714 @@ + + + + +Protos.TransactionOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.TransactionOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Transaction, Protos.Transaction.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.TransactionOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    +
    getBlockHash(int index)
    +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    int
    + +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    List<com.google.protobuf.ByteString>
    + +
    +
    + A list of blocks in which the transaction has been observed (on any chain).
    +
    +
    int
    + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    +
    int
    + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    + + +
    +
    repeated int32 block_relativity_offsets = 11;
    +
    + + +
    +
    + Data describing where the transaction is in the chain.
    +
    + + +
    +
    + Exchange rate that was valid when the transaction was sent.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    required bytes hash = 2;
    +
    +
    int
    + +
    +
    + The nLockTime field is useful for contracts.
    +
    + + +
    +
    + Memo of the transaction.
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + Memo of the transaction.
    +
    + + +
    +
    + If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
    +
    + + +
    +
    optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    +
    int
    + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionInput transaction_input = 6;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    +
    int
    + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    + + +
    +
    repeated .wallet.TransactionOutput transaction_output = 7;
    +
    +
    long
    + +
    +
    + millis since epoch the transaction was last updated
    +
    +
    int
    + +
    +
    + See Wallet.java for detailed description of pool semantics
    +
    +
    boolean
    + +
    +
    + Data describing where the transaction is in the chain.
    +
    +
    boolean
    + +
    +
    + Exchange rate that was valid when the transaction was sent.
    +
    +
    boolean
    + +
    +
    required bytes hash = 2;
    +
    +
    boolean
    + +
    +
    + The nLockTime field is useful for contracts.
    +
    +
    boolean
    + +
    +
    + Memo of the transaction.
    +
    +
    boolean
    + +
    +
    + If pool is not present, that means either: + - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) + - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
    +
    +
    boolean
    + +
    +
    optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
    +
    +
    boolean
    + +
    +
    + millis since epoch the transaction was last updated
    +
    +
    boolean
    + +
    +
    + See Wallet.java for detailed description of pool semantics
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasVersion

      +
      boolean hasVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      int getVersion()
      +
      + See Wallet.java for detailed description of pool semantics
      + 
      + + required int32 version = 1;
      +
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      hasHash

      +
      boolean hasHash()
      +
      required bytes hash = 2;
      +
      +
      Returns:
      +
      Whether the hash field is set.
      +
      +
      +
    • +
    • +
      +

      getHash

      +
      com.google.protobuf.ByteString getHash()
      +
      required bytes hash = 2;
      +
      +
      Returns:
      +
      The hash.
      +
      +
      +
    • +
    • +
      +

      hasPool

      +
      boolean hasPool()
      +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Returns:
      +
      Whether the pool field is set.
      +
      +
      +
    • +
    • +
      +

      getPool

      + +
      + If pool is not present, that means either:
      +  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
      +  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
      +  - Or the Pool enum got a new value which your software is too old to parse.
      + 
      + + optional .wallet.Transaction.Pool pool = 3;
      +
      +
      Returns:
      +
      The pool.
      +
      +
      +
    • +
    • +
      +

      hasLockTime

      +
      boolean hasLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Returns:
      +
      Whether the lockTime field is set.
      +
      +
      +
    • +
    • +
      +

      getLockTime

      +
      int getLockTime()
      +
      + The nLockTime field is useful for contracts.
      + 
      + + optional uint32 lock_time = 4;
      +
      +
      Returns:
      +
      The lockTime.
      +
      +
      +
    • +
    • +
      +

      hasUpdatedAt

      +
      boolean hasUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Returns:
      +
      Whether the updatedAt field is set.
      +
      +
      +
    • +
    • +
      +

      getUpdatedAt

      +
      long getUpdatedAt()
      +
      + millis since epoch the transaction was last updated
      + 
      + + optional int64 updated_at = 5;
      +
      +
      Returns:
      +
      The updatedAt.
      +
      +
      +
    • +
    • +
      +

      getTransactionInputList

      +
      List<Protos.TransactionInput> getTransactionInputList()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionInput

      +
      Protos.TransactionInput getTransactionInput(int index)
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionInputCount

      +
      int getTransactionInputCount()
      +
      repeated .wallet.TransactionInput transaction_input = 6;
      +
      +
    • +
    • +
      +

      getTransactionOutputList

      +
      List<Protos.TransactionOutput> getTransactionOutputList()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getTransactionOutput

      +
      Protos.TransactionOutput getTransactionOutput(int index)
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getTransactionOutputCount

      +
      int getTransactionOutputCount()
      +
      repeated .wallet.TransactionOutput transaction_output = 7;
      +
      +
    • +
    • +
      +

      getBlockHashList

      +
      List<com.google.protobuf.ByteString> getBlockHashList()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Returns:
      +
      A list containing the blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHashCount

      +
      int getBlockHashCount()
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Returns:
      +
      The count of blockHash.
      +
      +
      +
    • +
    • +
      +

      getBlockHash

      +
      com.google.protobuf.ByteString getBlockHash(int index)
      +
      + A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
      + ordering within a block.
      + 
      + + repeated bytes block_hash = 8;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockHash at the given index.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsList

      +
      List<Integer> getBlockRelativityOffsetsList()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Returns:
      +
      A list containing the blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsetsCount

      +
      int getBlockRelativityOffsetsCount()
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Returns:
      +
      The count of blockRelativityOffsets.
      +
      +
      +
    • +
    • +
      +

      getBlockRelativityOffsets

      +
      int getBlockRelativityOffsets(int index)
      +
      repeated int32 block_relativity_offsets = 11;
      +
      +
      Parameters:
      +
      index - The index of the element to return.
      +
      Returns:
      +
      The blockRelativityOffsets at the given index.
      +
      +
      +
    • +
    • +
      +

      hasConfidence

      +
      boolean hasConfidence()
      +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Returns:
      +
      Whether the confidence field is set.
      +
      +
      +
    • +
    • +
      +

      getConfidence

      + +
      + Data describing where the transaction is in the chain.
      + 
      + + optional .wallet.TransactionConfidence confidence = 9;
      +
      +
      Returns:
      +
      The confidence.
      +
      +
      +
    • +
    • +
      +

      hasPurpose

      +
      boolean hasPurpose()
      +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Returns:
      +
      Whether the purpose field is set.
      +
      +
      +
    • +
    • +
      +

      getPurpose

      + +
      optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
      +
      +
      Returns:
      +
      The purpose.
      +
      +
      +
    • +
    • +
      +

      hasExchangeRate

      +
      boolean hasExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Returns:
      +
      Whether the exchangeRate field is set.
      +
      +
      +
    • +
    • +
      +

      getExchangeRate

      +
      Protos.ExchangeRate getExchangeRate()
      +
      + Exchange rate that was valid when the transaction was sent.
      + 
      + + optional .wallet.ExchangeRate exchange_rate = 12;
      +
      +
      Returns:
      +
      The exchangeRate.
      +
      +
      +
    • +
    • +
      +

      hasMemo

      +
      boolean hasMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Returns:
      +
      Whether the memo field is set.
      +
      +
      +
    • +
    • +
      +

      getMemo

      +
      String getMemo()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Returns:
      +
      The memo.
      +
      +
      +
    • +
    • +
      +

      getMemoBytes

      +
      com.google.protobuf.ByteString getMemoBytes()
      +
      + Memo of the transaction. It can be used to record the memo of the payment request that initiated the
      + transaction.
      + 
      + + optional string memo = 13;
      +
      +
      Returns:
      +
      The bytes for memo.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.Builder.html new file mode 100644 index 000000000..a1cc7026d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.Builder.html @@ -0,0 +1,495 @@ + + + + +Protos.TransactionOutput.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionOutput.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionOutput,Protos.TransactionOutput.Builder> +
org.bitcoinj.wallet.Protos.TransactionOutput.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.TransactionOutputOrBuilder
+
+
+
Enclosing class:
+
Protos.TransactionOutput
+
+
+
public static final class Protos.TransactionOutput.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.TransactionOutput,Protos.TransactionOutput.Builder> +implements Protos.TransactionOutputOrBuilder
+
Protobuf type wallet.TransactionOutput
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasValue

      +
      public boolean hasValue()
      +
      required int64 value = 1;
      +
      +
      Specified by:
      +
      hasValue in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      required int64 value = 1;
      +
      +
      Specified by:
      +
      getValue in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      setValue

      +
      public Protos.TransactionOutput.Builder setValue(long value)
      +
      required int64 value = 1;
      +
      +
      Parameters:
      +
      value - The value to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearValue

      +
      public Protos.TransactionOutput.Builder clearValue()
      +
      required int64 value = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      public boolean hasScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Specified by:
      +
      hasScriptBytes in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public com.google.protobuf.ByteString getScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Specified by:
      +
      getScriptBytes in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      setScriptBytes

      +
      public Protos.TransactionOutput.Builder setScriptBytes(com.google.protobuf.ByteString value)
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Parameters:
      +
      value - The scriptBytes to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearScriptBytes

      +
      public Protos.TransactionOutput.Builder clearScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionHash

      +
      public boolean hasSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Specified by:
      +
      hasSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the spentByTransactionHash field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionHash

      +
      public com.google.protobuf.ByteString getSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Specified by:
      +
      getSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The spentByTransactionHash.
      +
      +
      +
    • +
    • +
      +

      setSpentByTransactionHash

      +
      public Protos.TransactionOutput.Builder setSpentByTransactionHash(com.google.protobuf.ByteString value)
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Parameters:
      +
      value - The spentByTransactionHash to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSpentByTransactionHash

      +
      public Protos.TransactionOutput.Builder clearSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionIndex

      +
      public boolean hasSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Specified by:
      +
      hasSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the spentByTransactionIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionIndex

      +
      public int getSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Specified by:
      +
      getSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The spentByTransactionIndex.
      +
      +
      +
    • +
    • +
      +

      setSpentByTransactionIndex

      +
      public Protos.TransactionOutput.Builder setSpentByTransactionIndex(int value)
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Parameters:
      +
      value - The spentByTransactionIndex to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearSpentByTransactionIndex

      +
      public Protos.TransactionOutput.Builder clearSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.html new file mode 100644 index 000000000..6427af405 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutput.html @@ -0,0 +1,670 @@ + + + + +Protos.TransactionOutput (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.TransactionOutput

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder> +
org.bitcoinj.wallet.Protos.TransactionOutput
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.TransactionOutputOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.TransactionOutput +extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder> +implements Protos.TransactionOutputOrBuilder
+
Protobuf type wallet.TransactionOutput
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static final class 
    + +
    +
    Protobuf type wallet.TransactionOutput
    +
    +
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    +com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
    +
    +

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    +com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    +
    +
  • + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    static final int
    + +
     
    +
    +
    +

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    +memoizedSerializedSize, unknownFields
    +
    +

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    +memoizedHashCode
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    protected final Object
    +
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
    +
     
    + + +
     
    +
    com.google.protobuf.ByteString
    + +
    +
    + script of transaction output
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + If spent, the hash of the transaction doing the spend.
    +
    +
    int
    + +
    +
    + If spent, the index of the transaction input of the transaction doing the spend.
    +
    +
    long
    + +
    +
    required int64 value = 1;
    +
    +
    boolean
    + +
    +
    + script of transaction output
    +
    +
    boolean
    + +
    +
    + If spent, the hash of the transaction doing the spend.
    +
    +
    boolean
    + +
    +
    + If spent, the index of the transaction input of the transaction doing the spend.
    +
    +
    boolean
    + +
    +
    required int64 value = 1;
    +
    + + +
     
    + + +
     
    + + +
     
    + +
    parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(byte[] data)
    +
     
    + +
    parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data)
    +
     
    + +
    parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input)
    +
     
    + +
    parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    + + +
     
    + +
    parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +
     
    +
    static com.google.protobuf.Parser<Protos.TransactionOutput>
    + +
     
    +
    +
    +
    +
    +

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    +createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
    +
    +

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    +addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
    +
    +

    Methods inherited from class java.lang.Object

    +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      VALUE_FIELD_NUMBER

      +
      public static final int VALUE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SCRIPT_BYTES_FIELD_NUMBER

      +
      public static final int SCRIPT_BYTES_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER

      +
      public static final int SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER

      +
      public static final int SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasValue

      +
      public boolean hasValue()
      +
      required int64 value = 1;
      +
      +
      Specified by:
      +
      hasValue in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      public long getValue()
      +
      required int64 value = 1;
      +
      +
      Specified by:
      +
      getValue in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      public boolean hasScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Specified by:
      +
      hasScriptBytes in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      public com.google.protobuf.ByteString getScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Specified by:
      +
      getScriptBytes in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionHash

      +
      public boolean hasSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Specified by:
      +
      hasSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the spentByTransactionHash field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionHash

      +
      public com.google.protobuf.ByteString getSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Specified by:
      +
      getSpentByTransactionHash in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The spentByTransactionHash.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionIndex

      +
      public boolean hasSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Specified by:
      +
      hasSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      Whether the spentByTransactionIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionIndex

      +
      public int getSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Specified by:
      +
      getSpentByTransactionIndex in interface Protos.TransactionOutputOrBuilder
      +
      Returns:
      +
      The spentByTransactionIndex.
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionOutput parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.TransactionOutput parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.TransactionOutput parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.TransactionOutput.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.TransactionOutput.Builder newBuilder(Protos.TransactionOutput prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.TransactionOutput,Protos.TransactionOutput.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.TransactionOutput getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.TransactionOutput> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutputOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutputOrBuilder.html new file mode 100644 index 000000000..f621743b9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.TransactionOutputOrBuilder.html @@ -0,0 +1,290 @@ + + + + +Protos.TransactionOutputOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.TransactionOutputOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.TransactionOutput, Protos.TransactionOutput.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.TransactionOutputOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    com.google.protobuf.ByteString
    + +
    +
    + script of transaction output
    +
    +
    com.google.protobuf.ByteString
    + +
    +
    + If spent, the hash of the transaction doing the spend.
    +
    +
    int
    + +
    +
    + If spent, the index of the transaction input of the transaction doing the spend.
    +
    +
    long
    + +
    +
    required int64 value = 1;
    +
    +
    boolean
    + +
    +
    + script of transaction output
    +
    +
    boolean
    + +
    +
    + If spent, the hash of the transaction doing the spend.
    +
    +
    boolean
    + +
    +
    + If spent, the index of the transaction input of the transaction doing the spend.
    +
    +
    boolean
    + +
    +
    required int64 value = 1;
    +
    +
    +
    +
    +
    +

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    +getDefaultInstanceForType, isInitialized
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasValue

      +
      boolean hasValue()
      +
      required int64 value = 1;
      +
      +
      Returns:
      +
      Whether the value field is set.
      +
      +
      +
    • +
    • +
      +

      getValue

      +
      long getValue()
      +
      required int64 value = 1;
      +
      +
      Returns:
      +
      The value.
      +
      +
      +
    • +
    • +
      +

      hasScriptBytes

      +
      boolean hasScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Returns:
      +
      Whether the scriptBytes field is set.
      +
      +
      +
    • +
    • +
      +

      getScriptBytes

      +
      com.google.protobuf.ByteString getScriptBytes()
      +
      + script of transaction output
      + 
      + + required bytes script_bytes = 2;
      +
      +
      Returns:
      +
      The scriptBytes.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionHash

      +
      boolean hasSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Returns:
      +
      Whether the spentByTransactionHash field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionHash

      +
      com.google.protobuf.ByteString getSpentByTransactionHash()
      +
      + If spent, the hash of the transaction doing the spend.
      + 
      + + optional bytes spent_by_transaction_hash = 3;
      +
      +
      Returns:
      +
      The spentByTransactionHash.
      +
      +
      +
    • +
    • +
      +

      hasSpentByTransactionIndex

      +
      boolean hasSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Returns:
      +
      Whether the spentByTransactionIndex field is set.
      +
      +
      +
    • +
    • +
      +

      getSpentByTransactionIndex

      +
      int getSpentByTransactionIndex()
      +
      + If spent, the index of the transaction input of the transaction doing the spend.
      + 
      + + optional int32 spent_by_transaction_index = 4;
      +
      +
      Returns:
      +
      The spentByTransactionIndex.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.Builder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.Builder.html new file mode 100644 index 000000000..7b9983970 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.Builder.html @@ -0,0 +1,1855 @@ + + + + +Protos.Wallet.Builder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Wallet.Builder

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite.Builder<Protos.Wallet,Protos.Wallet.Builder> +
org.bitcoinj.wallet.Protos.Wallet.Builder
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.WalletOrBuilder
+
+
+
Enclosing class:
+
Protos.Wallet
+
+
+
public static final class Protos.Wallet.Builder +extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Wallet,Protos.Wallet.Builder> +implements Protos.WalletOrBuilder
+
+ A bitcoin wallet 
+ 
+ + Protobuf type wallet.Wallet
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetworkIdentifier

      +
      public boolean hasNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      hasNetworkIdentifier in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the networkIdentifier field is set.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifier

      +
      public String getNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      getNetworkIdentifier in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifierBytes

      +
      public com.google.protobuf.ByteString getNetworkIdentifierBytes()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      getNetworkIdentifierBytes in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The bytes for networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      setNetworkIdentifier

      +
      public Protos.Wallet.Builder setNetworkIdentifier(String value)
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Parameters:
      +
      value - The networkIdentifier to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearNetworkIdentifier

      +
      public Protos.Wallet.Builder clearNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setNetworkIdentifierBytes

      +
      public Protos.Wallet.Builder setNetworkIdentifierBytes(com.google.protobuf.ByteString value)
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Parameters:
      +
      value - The bytes for networkIdentifier to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHash

      +
      public boolean hasLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Specified by:
      +
      hasLastSeenBlockHash in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockHash field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHash

      +
      public com.google.protobuf.ByteString getLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Specified by:
      +
      getLastSeenBlockHash in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockHash.
      +
      +
      +
    • +
    • +
      +

      setLastSeenBlockHash

      +
      public Protos.Wallet.Builder setLastSeenBlockHash(com.google.protobuf.ByteString value)
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Parameters:
      +
      value - The lastSeenBlockHash to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLastSeenBlockHash

      +
      public Protos.Wallet.Builder clearLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHeight

      +
      public boolean hasLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Specified by:
      +
      hasLastSeenBlockHeight in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHeight

      +
      public int getLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Specified by:
      +
      getLastSeenBlockHeight in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockHeight.
      +
      +
      +
    • +
    • +
      +

      setLastSeenBlockHeight

      +
      public Protos.Wallet.Builder setLastSeenBlockHeight(int value)
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Parameters:
      +
      value - The lastSeenBlockHeight to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLastSeenBlockHeight

      +
      public Protos.Wallet.Builder clearLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockTimeSecs

      +
      public boolean hasLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Specified by:
      +
      hasLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockTimeSecs field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockTimeSecs

      +
      public long getLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Specified by:
      +
      getLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockTimeSecs.
      +
      +
      +
    • +
    • +
      +

      setLastSeenBlockTimeSecs

      +
      public Protos.Wallet.Builder setLastSeenBlockTimeSecs(long value)
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Parameters:
      +
      value - The lastSeenBlockTimeSecs to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearLastSeenBlockTimeSecs

      +
      public Protos.Wallet.Builder clearLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getKeyList

      +
      public List<Protos.Key> getKeyList()
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKeyList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getKeyCount

      +
      public int getKeyCount()
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKeyCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getKey

      +
      public Protos.Key getKey(int index)
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKey in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      setKey

      +
      public Protos.Wallet.Builder setKey(int index, + Protos.Key value)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      setKey

      +
      public Protos.Wallet.Builder setKey(int index, + Protos.Key.Builder builderForValue)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      addKey

      +
      public Protos.Wallet.Builder addKey(Protos.Key value)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      addKey

      +
      public Protos.Wallet.Builder addKey(int index, + Protos.Key value)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      addKey

      +
      public Protos.Wallet.Builder addKey(Protos.Key.Builder builderForValue)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      addKey

      +
      public Protos.Wallet.Builder addKey(int index, + Protos.Key.Builder builderForValue)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      addAllKey

      +
      public Protos.Wallet.Builder addAllKey(Iterable<? extends Protos.Key> values)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      clearKey

      +
      public Protos.Wallet.Builder clearKey()
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      removeKey

      +
      public Protos.Wallet.Builder removeKey(int index)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getTransactionList

      +
      public List<Protos.Transaction> getTransactionList()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransactionList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionCount

      +
      public int getTransactionCount()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransactionCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransaction

      +
      public Protos.Transaction getTransaction(int index)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransaction in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      setTransaction

      +
      public Protos.Wallet.Builder setTransaction(int index, + Protos.Transaction value)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      setTransaction

      +
      public Protos.Wallet.Builder setTransaction(int index, + Protos.Transaction.Builder builderForValue)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public Protos.Wallet.Builder addTransaction(Protos.Transaction value)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public Protos.Wallet.Builder addTransaction(int index, + Protos.Transaction value)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public Protos.Wallet.Builder addTransaction(Protos.Transaction.Builder builderForValue)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      addTransaction

      +
      public Protos.Wallet.Builder addTransaction(int index, + Protos.Transaction.Builder builderForValue)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      addAllTransaction

      +
      public Protos.Wallet.Builder addAllTransaction(Iterable<? extends Protos.Transaction> values)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      clearTransaction

      +
      public Protos.Wallet.Builder clearTransaction()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      removeTransaction

      +
      public Protos.Wallet.Builder removeTransaction(int index)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getWatchedScriptList

      +
      public List<Protos.Script> getWatchedScriptList()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScriptList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getWatchedScriptCount

      +
      public int getWatchedScriptCount()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScriptCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getWatchedScript

      +
      public Protos.Script getWatchedScript(int index)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScript in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      setWatchedScript

      +
      public Protos.Wallet.Builder setWatchedScript(int index, + Protos.Script value)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      setWatchedScript

      +
      public Protos.Wallet.Builder setWatchedScript(int index, + Protos.Script.Builder builderForValue)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      addWatchedScript

      +
      public Protos.Wallet.Builder addWatchedScript(Protos.Script value)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      addWatchedScript

      +
      public Protos.Wallet.Builder addWatchedScript(int index, + Protos.Script value)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      addWatchedScript

      +
      public Protos.Wallet.Builder addWatchedScript(Protos.Script.Builder builderForValue)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      addWatchedScript

      +
      public Protos.Wallet.Builder addWatchedScript(int index, + Protos.Script.Builder builderForValue)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      addAllWatchedScript

      +
      public Protos.Wallet.Builder addAllWatchedScript(Iterable<? extends Protos.Script> values)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      clearWatchedScript

      +
      public Protos.Wallet.Builder clearWatchedScript()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      removeWatchedScript

      +
      public Protos.Wallet.Builder removeWatchedScript(int index)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      hasEncryptionType

      +
      public boolean hasEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Specified by:
      +
      hasEncryptionType in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the encryptionType field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      public Protos.Wallet.EncryptionType getEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Specified by:
      +
      getEncryptionType in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The encryptionType.
      +
      +
      +
    • +
    • +
      +

      setEncryptionType

      +
      public Protos.Wallet.Builder setEncryptionType(Protos.Wallet.EncryptionType value)
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Parameters:
      +
      value - The enum numeric value on the wire for encryptionType to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearEncryptionType

      +
      public Protos.Wallet.Builder clearEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasEncryptionParameters

      +
      public boolean hasEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Specified by:
      +
      hasEncryptionParameters in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the encryptionParameters field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionParameters

      +
      public Protos.ScryptParameters getEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Specified by:
      +
      getEncryptionParameters in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The encryptionParameters.
      +
      +
      +
    • +
    • +
      +

      setEncryptionParameters

      +
      public Protos.Wallet.Builder setEncryptionParameters(Protos.ScryptParameters value)
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
    • +
    • +
      +

      setEncryptionParameters

      +
      public Protos.Wallet.Builder setEncryptionParameters(Protos.ScryptParameters.Builder builderForValue)
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
    • +
    • +
      +

      mergeEncryptionParameters

      +
      public Protos.Wallet.Builder mergeEncryptionParameters(Protos.ScryptParameters value)
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
    • +
    • +
      +

      clearEncryptionParameters

      +
      public Protos.Wallet.Builder clearEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
    • +
    • +
      +

      hasVersion

      +
      public boolean hasVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Specified by:
      +
      hasVersion in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      public int getVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Specified by:
      +
      getVersion in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      setVersion

      +
      public Protos.Wallet.Builder setVersion(int value)
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Parameters:
      +
      value - The version to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearVersion

      +
      public Protos.Wallet.Builder clearVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getExtensionList

      +
      public List<Protos.Extension> getExtensionList()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtensionList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getExtensionCount

      +
      public int getExtensionCount()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtensionCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getExtension

      +
      public Protos.Extension getExtension(int index)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtension in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      setExtension

      +
      public Protos.Wallet.Builder setExtension(int index, + Protos.Extension value)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      setExtension

      +
      public Protos.Wallet.Builder setExtension(int index, + Protos.Extension.Builder builderForValue)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      addExtension

      +
      public Protos.Wallet.Builder addExtension(Protos.Extension value)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      addExtension

      +
      public Protos.Wallet.Builder addExtension(int index, + Protos.Extension value)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      addExtension

      +
      public Protos.Wallet.Builder addExtension(Protos.Extension.Builder builderForValue)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      addExtension

      +
      public Protos.Wallet.Builder addExtension(int index, + Protos.Extension.Builder builderForValue)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      addAllExtension

      +
      public Protos.Wallet.Builder addAllExtension(Iterable<? extends Protos.Extension> values)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      clearExtension

      +
      public Protos.Wallet.Builder clearExtension()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      removeExtension

      +
      public Protos.Wallet.Builder removeExtension(int index)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      hasDescription

      +
      public boolean hasDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      hasDescription in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the description field is set.
      +
      +
      +
    • +
    • +
      +

      getDescription

      +
      public String getDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      getDescription in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The description.
      +
      +
      +
    • +
    • +
      +

      getDescriptionBytes

      +
      public com.google.protobuf.ByteString getDescriptionBytes()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      getDescriptionBytes in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The bytes for description.
      +
      +
      +
    • +
    • +
      +

      setDescription

      +
      public Protos.Wallet.Builder setDescription(String value)
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Parameters:
      +
      value - The description to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearDescription

      +
      public Protos.Wallet.Builder clearDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      setDescriptionBytes

      +
      public Protos.Wallet.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Parameters:
      +
      value - The bytes for description to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      hasKeyRotationTime

      +
      public boolean hasKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Specified by:
      +
      hasKeyRotationTime in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the keyRotationTime field is set.
      +
      +
      +
    • +
    • +
      +

      getKeyRotationTime

      +
      public long getKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Specified by:
      +
      getKeyRotationTime in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The keyRotationTime.
      +
      +
      +
    • +
    • +
      +

      setKeyRotationTime

      +
      public Protos.Wallet.Builder setKeyRotationTime(long value)
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Parameters:
      +
      value - The keyRotationTime to set.
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      clearKeyRotationTime

      +
      public Protos.Wallet.Builder clearKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Returns:
      +
      This builder for chaining.
      +
      +
      +
    • +
    • +
      +

      getTagsList

      +
      public List<Protos.Tag> getTagsList()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTagsList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTagsCount

      +
      public int getTagsCount()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTagsCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTags

      +
      public Protos.Tag getTags(int index)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTags in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      setTags

      +
      public Protos.Wallet.Builder setTags(int index, + Protos.Tag value)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      setTags

      +
      public Protos.Wallet.Builder setTags(int index, + Protos.Tag.Builder builderForValue)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      addTags

      +
      public Protos.Wallet.Builder addTags(Protos.Tag value)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      addTags

      +
      public Protos.Wallet.Builder addTags(int index, + Protos.Tag value)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      addTags

      +
      public Protos.Wallet.Builder addTags(Protos.Tag.Builder builderForValue)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      addTags

      +
      public Protos.Wallet.Builder addTags(int index, + Protos.Tag.Builder builderForValue)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      addAllTags

      +
      public Protos.Wallet.Builder addAllTags(Iterable<? extends Protos.Tag> values)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      clearTags

      +
      public Protos.Wallet.Builder clearTags()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      removeTags

      +
      public Protos.Wallet.Builder removeTags(int index)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.EncryptionType.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.EncryptionType.html new file mode 100644 index 000000000..c11a2d4c5 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.EncryptionType.html @@ -0,0 +1,384 @@ + + + + +Protos.Wallet.EncryptionType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Protos.Wallet.EncryptionType

+
+
java.lang.Object +
java.lang.Enum<Protos.Wallet.EncryptionType> +
org.bitcoinj.wallet.Protos.Wallet.EncryptionType
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Protos.Wallet.EncryptionType>, Constable
+
+
+
Enclosing class:
+
Protos.Wallet
+
+
+
public static enum Protos.Wallet.EncryptionType +extends Enum<Protos.Wallet.EncryptionType> +implements com.google.protobuf.Internal.EnumLite
+
+
+ The encryption type of the wallet.
+ The encryption type is UNENCRYPTED for wallets where the wallet does not support encryption - wallets prior to
+ encryption support are grandfathered in as this wallet type.
+ When a wallet is ENCRYPTED_SCRYPT_AES the keys are either encrypted with the wallet password or are unencrypted.
+ 
+ + Protobuf enum wallet.Wallet.EncryptionType
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      UNENCRYPTED

      +
      public static final Protos.Wallet.EncryptionType UNENCRYPTED
      +
      + All keys in the wallet are unencrypted
      + 
      + + UNENCRYPTED = 1;
      +
      +
    • +
    • +
      +

      ENCRYPTED_SCRYPT_AES

      +
      public static final Protos.Wallet.EncryptionType ENCRYPTED_SCRYPT_AES
      +
      + All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
      + 
      + + ENCRYPTED_SCRYPT_AES = 2;
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      UNENCRYPTED_VALUE

      +
      public static final int UNENCRYPTED_VALUE
      +
      + All keys in the wallet are unencrypted
      + 
      + + UNENCRYPTED = 1;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTED_SCRYPT_AES_VALUE

      +
      public static final int ENCRYPTED_SCRYPT_AES_VALUE
      +
      + All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
      + 
      + + ENCRYPTED_SCRYPT_AES = 2;
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Protos.Wallet.EncryptionType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Protos.Wallet.EncryptionType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      getNumber

      +
      public final int getNumber()
      +
      +
      Specified by:
      +
      getNumber in interface com.google.protobuf.Internal.EnumLite
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      @Deprecated +public static Protos.Wallet.EncryptionType valueOf(int value)
      +
      Deprecated.
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      value - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    • +
      +

      forNumber

      +
      public static Protos.Wallet.EncryptionType forNumber(int value)
      +
      +
    • +
    • +
      +

      internalGetValueMap

      +
      public static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType> internalGetValueMap()
      +
      +
    • +
    • +
      +

      internalGetVerifier

      +
      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.html new file mode 100644 index 000000000..62ee0527a --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.Wallet.html @@ -0,0 +1,1478 @@ + + + + +Protos.Wallet (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos.Wallet

+
+
java.lang.Object +
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType> +
com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder> +
org.bitcoinj.wallet.Protos.Wallet
+
+
+
+
+
+
All Implemented Interfaces:
+
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, Protos.WalletOrBuilder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static final class Protos.Wallet +extends com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder> +implements Protos.WalletOrBuilder
+
+ A bitcoin wallet 
+ 
+ + Protobuf type wallet.Wallet
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      NETWORK_IDENTIFIER_FIELD_NUMBER

      +
      public static final int NETWORK_IDENTIFIER_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LAST_SEEN_BLOCK_HASH_FIELD_NUMBER

      +
      public static final int LAST_SEEN_BLOCK_HASH_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER

      +
      public static final int LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER

      +
      public static final int LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      KEY_FIELD_NUMBER

      +
      public static final int KEY_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TRANSACTION_FIELD_NUMBER

      +
      public static final int TRANSACTION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      WATCHED_SCRIPT_FIELD_NUMBER

      +
      public static final int WATCHED_SCRIPT_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTION_TYPE_FIELD_NUMBER

      +
      public static final int ENCRYPTION_TYPE_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      ENCRYPTION_PARAMETERS_FIELD_NUMBER

      +
      public static final int ENCRYPTION_PARAMETERS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      VERSION_FIELD_NUMBER

      +
      public static final int VERSION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      EXTENSION_FIELD_NUMBER

      +
      public static final int EXTENSION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      DESCRIPTION_FIELD_NUMBER

      +
      public static final int DESCRIPTION_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      KEY_ROTATION_TIME_FIELD_NUMBER

      +
      public static final int KEY_ROTATION_TIME_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      TAGS_FIELD_NUMBER

      +
      public static final int TAGS_FIELD_NUMBER
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetworkIdentifier

      +
      public boolean hasNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      hasNetworkIdentifier in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the networkIdentifier field is set.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifier

      +
      public String getNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      getNetworkIdentifier in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifierBytes

      +
      public com.google.protobuf.ByteString getNetworkIdentifierBytes()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Specified by:
      +
      getNetworkIdentifierBytes in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The bytes for networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHash

      +
      public boolean hasLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Specified by:
      +
      hasLastSeenBlockHash in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockHash field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHash

      +
      public com.google.protobuf.ByteString getLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Specified by:
      +
      getLastSeenBlockHash in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockHash.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHeight

      +
      public boolean hasLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Specified by:
      +
      hasLastSeenBlockHeight in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHeight

      +
      public int getLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Specified by:
      +
      getLastSeenBlockHeight in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockHeight.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockTimeSecs

      +
      public boolean hasLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Specified by:
      +
      hasLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the lastSeenBlockTimeSecs field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockTimeSecs

      +
      public long getLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Specified by:
      +
      getLastSeenBlockTimeSecs in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The lastSeenBlockTimeSecs.
      +
      +
      +
    • +
    • +
      +

      getKeyList

      +
      public List<Protos.Key> getKeyList()
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKeyList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getKeyOrBuilderList

      +
      public List<? extends Protos.KeyOrBuilder> getKeyOrBuilderList()
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getKeyCount

      +
      public int getKeyCount()
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKeyCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getKey

      +
      public Protos.Key getKey(int index)
      +
      repeated .wallet.Key key = 3;
      +
      +
      Specified by:
      +
      getKey in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getKeyOrBuilder

      +
      public Protos.KeyOrBuilder getKeyOrBuilder(int index)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getTransactionList

      +
      public List<Protos.Transaction> getTransactionList()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransactionList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOrBuilderList

      +
      public List<? extends Protos.TransactionOrBuilder> getTransactionOrBuilderList()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getTransactionCount

      +
      public int getTransactionCount()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransactionCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransaction

      +
      public Protos.Transaction getTransaction(int index)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
      Specified by:
      +
      getTransaction in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTransactionOrBuilder

      +
      public Protos.TransactionOrBuilder getTransactionOrBuilder(int index)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getWatchedScriptList

      +
      public List<Protos.Script> getWatchedScriptList()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScriptList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getWatchedScriptOrBuilderList

      +
      public List<? extends Protos.ScriptOrBuilder> getWatchedScriptOrBuilderList()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      getWatchedScriptCount

      +
      public int getWatchedScriptCount()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScriptCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getWatchedScript

      +
      public Protos.Script getWatchedScript(int index)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
      Specified by:
      +
      getWatchedScript in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getWatchedScriptOrBuilder

      +
      public Protos.ScriptOrBuilder getWatchedScriptOrBuilder(int index)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      hasEncryptionType

      +
      public boolean hasEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Specified by:
      +
      hasEncryptionType in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the encryptionType field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      public Protos.Wallet.EncryptionType getEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Specified by:
      +
      getEncryptionType in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The encryptionType.
      +
      +
      +
    • +
    • +
      +

      hasEncryptionParameters

      +
      public boolean hasEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Specified by:
      +
      hasEncryptionParameters in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the encryptionParameters field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionParameters

      +
      public Protos.ScryptParameters getEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Specified by:
      +
      getEncryptionParameters in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The encryptionParameters.
      +
      +
      +
    • +
    • +
      +

      hasVersion

      +
      public boolean hasVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Specified by:
      +
      hasVersion in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      public int getVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Specified by:
      +
      getVersion in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      getExtensionList

      +
      public List<Protos.Extension> getExtensionList()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtensionList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getExtensionOrBuilderList

      +
      public List<? extends Protos.ExtensionOrBuilder> getExtensionOrBuilderList()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      getExtensionCount

      +
      public int getExtensionCount()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtensionCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getExtension

      +
      public Protos.Extension getExtension(int index)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
      Specified by:
      +
      getExtension in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getExtensionOrBuilder

      +
      public Protos.ExtensionOrBuilder getExtensionOrBuilder(int index)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      hasDescription

      +
      public boolean hasDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      hasDescription in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the description field is set.
      +
      +
      +
    • +
    • +
      +

      getDescription

      +
      public String getDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      getDescription in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The description.
      +
      +
      +
    • +
    • +
      +

      getDescriptionBytes

      +
      public com.google.protobuf.ByteString getDescriptionBytes()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Specified by:
      +
      getDescriptionBytes in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The bytes for description.
      +
      +
      +
    • +
    • +
      +

      hasKeyRotationTime

      +
      public boolean hasKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Specified by:
      +
      hasKeyRotationTime in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      Whether the keyRotationTime field is set.
      +
      +
      +
    • +
    • +
      +

      getKeyRotationTime

      +
      public long getKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Specified by:
      +
      getKeyRotationTime in interface Protos.WalletOrBuilder
      +
      Returns:
      +
      The keyRotationTime.
      +
      +
      +
    • +
    • +
      +

      getTagsList

      +
      public List<Protos.Tag> getTagsList()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTagsList in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTagsOrBuilderList

      +
      public List<? extends Protos.TagOrBuilder> getTagsOrBuilderList()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      getTagsCount

      +
      public int getTagsCount()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTagsCount in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTags

      +
      public Protos.Tag getTags(int index)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
      Specified by:
      +
      getTags in interface Protos.WalletOrBuilder
      +
      +
      +
    • +
    • +
      +

      getTagsOrBuilder

      +
      public Protos.TagOrBuilder getTagsOrBuilder(int index)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException
      +
      +
      Throws:
      +
      com.google.protobuf.InvalidProtocolBufferException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Wallet parseDelimitedFrom(InputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseDelimitedFrom

      +
      public static Protos.Wallet parseDelimitedFrom(InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(com.google.protobuf.CodedInputStream input) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      parseFrom

      +
      public static Protos.Wallet parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws IOException
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Wallet.Builder newBuilder()
      +
      +
    • +
    • +
      +

      newBuilder

      +
      public static Protos.Wallet.Builder newBuilder(Protos.Wallet prototype)
      +
      +
    • +
    • +
      +

      dynamicMethod

      +
      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, + Object arg1)
      +
      +
      Specified by:
      +
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Protos.Wallet,Protos.Wallet.Builder>
      +
      +
      +
    • +
    • +
      +

      getDefaultInstance

      +
      public static Protos.Wallet getDefaultInstance()
      +
      +
    • +
    • +
      +

      parser

      +
      public static com.google.protobuf.Parser<Protos.Wallet> parser()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.WalletOrBuilder.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.WalletOrBuilder.html new file mode 100644 index 000000000..646586229 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.WalletOrBuilder.html @@ -0,0 +1,712 @@ + + + + +Protos.WalletOrBuilder (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface Protos.WalletOrBuilder

+
+
+
+
All Superinterfaces:
+
com.google.protobuf.MessageLiteOrBuilder
+
+
+
All Known Implementing Classes:
+
Protos.Wallet, Protos.Wallet.Builder
+
+
+
Enclosing class:
+
Protos
+
+
+
public static interface Protos.WalletOrBuilder +extends com.google.protobuf.MessageLiteOrBuilder
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      hasNetworkIdentifier

      +
      boolean hasNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Returns:
      +
      Whether the networkIdentifier field is set.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifier

      +
      String getNetworkIdentifier()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Returns:
      +
      The networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      getNetworkIdentifierBytes

      +
      com.google.protobuf.ByteString getNetworkIdentifierBytes()
      +
      + the network used by this wallet
      + 
      + + required string network_identifier = 1;
      +
      +
      Returns:
      +
      The bytes for networkIdentifier.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHash

      +
      boolean hasLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Returns:
      +
      Whether the lastSeenBlockHash field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHash

      +
      com.google.protobuf.ByteString getLastSeenBlockHash()
      +
      + The SHA256 hash of the head of the best chain seen by this wallet.
      + 
      + + optional bytes last_seen_block_hash = 2;
      +
      +
      Returns:
      +
      The lastSeenBlockHash.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockHeight

      +
      boolean hasLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Returns:
      +
      Whether the lastSeenBlockHeight field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockHeight

      +
      int getLastSeenBlockHeight()
      +
      + The height in the chain of the last seen block.
      + 
      + + optional uint32 last_seen_block_height = 12;
      +
      +
      Returns:
      +
      The lastSeenBlockHeight.
      +
      +
      +
    • +
    • +
      +

      hasLastSeenBlockTimeSecs

      +
      boolean hasLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Returns:
      +
      Whether the lastSeenBlockTimeSecs field is set.
      +
      +
      +
    • +
    • +
      +

      getLastSeenBlockTimeSecs

      +
      long getLastSeenBlockTimeSecs()
      +
      optional int64 last_seen_block_time_secs = 14;
      +
      +
      Returns:
      +
      The lastSeenBlockTimeSecs.
      +
      +
      +
    • +
    • +
      +

      getKeyList

      +
      List<Protos.Key> getKeyList()
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getKey

      +
      Protos.Key getKey(int index)
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getKeyCount

      +
      int getKeyCount()
      +
      repeated .wallet.Key key = 3;
      +
      +
    • +
    • +
      +

      getTransactionList

      +
      List<Protos.Transaction> getTransactionList()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getTransaction

      +
      Protos.Transaction getTransaction(int index)
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getTransactionCount

      +
      int getTransactionCount()
      +
      repeated .wallet.Transaction transaction = 4;
      +
      +
    • +
    • +
      +

      getWatchedScriptList

      +
      List<Protos.Script> getWatchedScriptList()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      getWatchedScript

      +
      Protos.Script getWatchedScript(int index)
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      getWatchedScriptCount

      +
      int getWatchedScriptCount()
      +
      repeated .wallet.Script watched_script = 15;
      +
      +
    • +
    • +
      +

      hasEncryptionType

      +
      boolean hasEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Returns:
      +
      Whether the encryptionType field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      Protos.Wallet.EncryptionType getEncryptionType()
      +
      optional .wallet.Wallet.EncryptionType encryption_type = 5 [default = UNENCRYPTED];
      +
      +
      Returns:
      +
      The encryptionType.
      +
      +
      +
    • +
    • +
      +

      hasEncryptionParameters

      +
      boolean hasEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Returns:
      +
      Whether the encryptionParameters field is set.
      +
      +
      +
    • +
    • +
      +

      getEncryptionParameters

      +
      Protos.ScryptParameters getEncryptionParameters()
      +
      optional .wallet.ScryptParameters encryption_parameters = 6;
      +
      +
      Returns:
      +
      The encryptionParameters.
      +
      +
      +
    • +
    • +
      +

      hasVersion

      +
      boolean hasVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Returns:
      +
      Whether the version field is set.
      +
      +
      +
    • +
    • +
      +

      getVersion

      +
      int getVersion()
      +
      + The version number of the wallet - used to detect wallets that were produced in the future
      + (i.e. the wallet may contain some future format this protobuf or parser code does not know about).
      + A version that's higher than the default is considered from the future.
      + 
      + + optional int32 version = 7 [default = 1];
      +
      +
      Returns:
      +
      The version.
      +
      +
      +
    • +
    • +
      +

      getExtensionList

      +
      List<Protos.Extension> getExtensionList()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      getExtension

      +
      Protos.Extension getExtension(int index)
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      getExtensionCount

      +
      int getExtensionCount()
      +
      repeated .wallet.Extension extension = 10;
      +
      +
    • +
    • +
      +

      hasDescription

      +
      boolean hasDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Returns:
      +
      Whether the description field is set.
      +
      +
      +
    • +
    • +
      +

      getDescription

      +
      String getDescription()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Returns:
      +
      The description.
      +
      +
      +
    • +
    • +
      +

      getDescriptionBytes

      +
      com.google.protobuf.ByteString getDescriptionBytes()
      +
      + A UTF8 encoded text description of the wallet that is intended for end user provided text.
      + 
      + + optional string description = 11;
      +
      +
      Returns:
      +
      The bytes for description.
      +
      +
      +
    • +
    • +
      +

      hasKeyRotationTime

      +
      boolean hasKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Returns:
      +
      Whether the keyRotationTime field is set.
      +
      +
      +
    • +
    • +
      +

      getKeyRotationTime

      +
      long getKeyRotationTime()
      +
      + UNIX time in seconds since the epoch. If set, then any keys created before this date are assumed to be no longer
      + wanted. Money sent to them will be re-spent automatically to the first key that was created after this time. It
      + can be used to recover a compromised wallet, or just as part of preventative defence-in-depth measures.
      + 
      + + optional uint64 key_rotation_time = 13;
      +
      +
      Returns:
      +
      The keyRotationTime.
      +
      +
      +
    • +
    • +
      +

      getTagsList

      +
      List<Protos.Tag> getTagsList()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      getTags

      +
      Protos.Tag getTags(int index)
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    • +
      +

      getTagsCount

      +
      int getTagsCount()
      +
      repeated .wallet.Tag tags = 16;
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Protos.html b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.html new file mode 100644 index 000000000..5183a5842 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Protos.html @@ -0,0 +1,276 @@ + + + + +Protos (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Protos

+
+
java.lang.Object +
org.bitcoinj.wallet.Protos
+
+
+
+
public final class Protos +extends Object
+
+
+ +
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      registerAllExtensions

      +
      public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/RedeemData.html b/javadoc/0.16.3/org/bitcoinj/wallet/RedeemData.html new file mode 100644 index 000000000..dcef20ff6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/RedeemData.html @@ -0,0 +1,218 @@ + + + + +RedeemData (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class RedeemData

+
+
java.lang.Object +
org.bitcoinj.wallet.RedeemData
+
+
+
+
public class RedeemData +extends Object
+
This class aggregates data required to spend transaction output. + + For P2PKH and P2PK transactions it will have only a single key and CHECKSIG program as redeemScript. + For multisignature transactions there will be multiple keys one of which will be a full key and the rest are watch only, + redeem script will be a CHECKMULTISIG program. Keys will be sorted in the same order they appear in + a program (lexicographical order).
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      redeemScript

      +
      public final Script redeemScript
      +
      +
    • +
    • +
      +

      keys

      +
      public final List<ECKey> keys
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      of

      +
      public static RedeemData of(List<ECKey> keys, + Script redeemScript)
      +
      +
    • +
    • +
      +

      of

      +
      public static RedeemData of(ECKey key, + Script redeemScript)
      +
      Creates RedeemData for P2PKH, P2WPKH or P2PK input. Provided key is a single private key needed + to spend such inputs.
      +
      +
    • +
    • +
      +

      getFullKey

      +
      public ECKey getFullKey()
      +
      Returns the first key that has private bytes
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Analyzer.html b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Analyzer.html new file mode 100644 index 000000000..6d5fc0780 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Analyzer.html @@ -0,0 +1,137 @@ + + + + +RiskAnalysis.Analyzer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface RiskAnalysis.Analyzer

+
+
+
+
All Known Implementing Classes:
+
DefaultRiskAnalysis.Analyzer
+
+
+
Enclosing interface:
+
RiskAnalysis
+
+
+
public static interface RiskAnalysis.Analyzer
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Result.html b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Result.html new file mode 100644 index 000000000..7a43aa52f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.Result.html @@ -0,0 +1,230 @@ + + + + +RiskAnalysis.Result (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class RiskAnalysis.Result

+
+
java.lang.Object +
java.lang.Enum<RiskAnalysis.Result> +
org.bitcoinj.wallet.RiskAnalysis.Result
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<RiskAnalysis.Result>, Constable
+
+
+
Enclosing interface:
+
RiskAnalysis
+
+
+
public static enum RiskAnalysis.Result +extends Enum<RiskAnalysis.Result>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static RiskAnalysis.Result[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static RiskAnalysis.Result valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.html b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.html new file mode 100644 index 000000000..2abe7f6cd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/RiskAnalysis.html @@ -0,0 +1,155 @@ + + + + +RiskAnalysis (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface RiskAnalysis

+
+
+
+
All Known Implementing Classes:
+
DefaultRiskAnalysis
+
+
+
public interface RiskAnalysis
+

A RiskAnalysis represents an analysis of how likely it is that a transaction (and its dependencies) represents a + possible double spending attack. The wallet will create these to decide whether or not to accept a pending + transaction. Look at DefaultRiskAnalysis to see what is currently considered risky.

+ +

The intention here is that implementing classes can expose more information and detail about the result, for + app developers. The core code needs only to know whether it's OK or not.

+ +

A factory interface is provided. The wallet will use this to analyze new pending transactions.

+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Interface
    +
    Description
    +
    static interface 
    + +
     
    +
    static enum 
    + +
     
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
     
    +
    +
    +
    +
    +
  • +
+
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/SendRequest.html b/javadoc/0.16.3/org/bitcoinj/wallet/SendRequest.html new file mode 100644 index 000000000..3d32b8794 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/SendRequest.html @@ -0,0 +1,479 @@ + + + + +SendRequest (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class SendRequest

+
+
java.lang.Object +
org.bitcoinj.wallet.SendRequest
+
+
+
+
public class SendRequest +extends Object
+
A SendRequest gives the wallet information about precisely how to send money to a recipient or set of recipients. + Static methods are provided to help you create SendRequests and there are a few helper methods on the wallet that + just simplify the most common use cases. You may wish to customize a SendRequest if you want to attach a fee or + modify the change address.
+
+
+
    + +
  • +
    +

    Field Summary

    +
    Fields
    +
    +
    Modifier and Type
    +
    Field
    +
    Description
    +
    org.bouncycastle.crypto.params.KeyParameter
    + +
    +
    The AES key to use to decrypt the private keys before signing.
    +
    + + +
    +
    "Change" means the difference between the value gathered by a transactions inputs (the size of which you + don't really control as it depends on who sent you money), and the value being sent somewhere else.
    +
    + + +
    +
    If not null, the CoinSelector to use instead of the wallets default.
    +
    +
    boolean
    + +
    +
    When emptyWallet is set, all coins selected by the coin selector are sent to the first output in tx + (its value is ignored and set to Wallet.getBalance() - the fees required + for the transaction).
    +
    +
    boolean
    + +
    +
    Requires that there be enough fee for a default Bitcoin Core to at least relay the transaction.
    +
    + + +
    +
    If not null, this exchange rate is recorded with the transaction during completion.
    +
    + + +
    +
    A transaction can have a fee attached, which is defined as the difference between the input values + and output values.
    +
    + + +
    +
    If not null, this memo is recorded with the transaction during completion.
    +
    + + +
    +
    Specifies what to do with missing signatures left after completing this request.
    +
    +
    boolean
    + +
    +
    If false (default value), tx fee is paid by the sender If true, tx fee is paid by the recipient/s.
    +
    +
    boolean
    + +
    +
    If true (the default), the outputs will be shuffled during completion to randomize the location of the change + output, if any.
    +
    +
    boolean
    + +
    +
    If true (the default), the inputs will be signed.
    +
    + + +
    +
    A transaction, probably incomplete, that describes the outline of what you want to do.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Shortcut for req.coinSelector = AllowUnconfirmedCoinSelector.get();.
    +
    + +
    childPaysForParent(Wallet wallet, + Transaction parentTransaction, + Coin feeRaise)
    +
    +
    Construct a SendRequest for a CPFP (child-pays-for-parent) transaction.
    +
    + +
    emptyWallet(Address destination)
    +
     
    + + +
    +
    Simply wraps a pre-built incomplete transaction provided by you.
    +
    + + +
    +
    Copy data from payment request.
    +
    +
    void
    +
    setFeePerVkb(Coin feePerVkb)
    +
     
    + +
    to(Address destination, + Coin value)
    +
    +
    Creates a new SendRequest to the given address for the given value.
    +
    + +
    to(NetworkParameters params, + ECKey destination, + Coin value)
    +
    +
    Creates a new SendRequest to the given pubkey for the given value.
    +
    + + +
     
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      tx

      +
      public Transaction tx
      +

      A transaction, probably incomplete, that describes the outline of what you want to do. This typically will + mean it has some outputs to the intended destinations, but no inputs or change address (and therefore no + fees) - the wallet will calculate all that for you and update tx later.

      + +

      Be careful when adding outputs that you check the min output value + (TransactionOutput.getMinNonDustValue(Coin)) to avoid the whole transaction being rejected + because one output is dust.

      + +

      If there are already inputs to the transaction, make sure their out point has a connected output, + otherwise their value will be added to fee. Also ensure they are either signed or are spendable by a wallet + key, otherwise the behavior of Wallet.completeTx(SendRequest) is undefined (likely + RuntimeException).

      +
      +
    • +
    • +
      +

      emptyWallet

      +
      public boolean emptyWallet
      +
      When emptyWallet is set, all coins selected by the coin selector are sent to the first output in tx + (its value is ignored and set to Wallet.getBalance() - the fees required + for the transaction). Any additional outputs are removed.
      +
      +
    • +
    • +
      +

      changeAddress

      +
      public Address changeAddress
      +
      "Change" means the difference between the value gathered by a transactions inputs (the size of which you + don't really control as it depends on who sent you money), and the value being sent somewhere else. The + change address should be selected from this wallet, normally. If null this will be chosen for you.
      +
      +
    • +
    • +
      +

      feePerKb

      +
      public Coin feePerKb
      +

      A transaction can have a fee attached, which is defined as the difference between the input values + and output values. Any value taken in that is not provided to an output can be claimed by a miner. This + is how mining is incentivized in later years of the Bitcoin system when inflation drops. It also provides + a way for people to prioritize their transactions over others and is used as a way to make denial of service + attacks expensive.

      + +

      This is a dynamic fee (in satoshis) which will be added to the transaction for each virtual kilobyte in size + including the first. This is useful as as miners usually sort pending transactions by their fee per unit size + when choosing which transactions to add to a block. Note that, to keep this equivalent to Bitcoin Core + definition, a virtual kilobyte is defined as 1000 virtual bytes, not 1024.

      +
      +
    • +
    • +
      +

      ensureMinRequiredFee

      +
      public boolean ensureMinRequiredFee
      +

      Requires that there be enough fee for a default Bitcoin Core to at least relay the transaction. + (ie ensure the transaction will not be outright rejected by the network). Defaults to true, you should + only set this to false if you know what you're doing.

      + +

      Note that this does not enforce certain fee rules that only apply to transactions which are larger than + 26,000 bytes. If you get a transaction which is that large, you should set a feePerKb of at least + Transaction.REFERENCE_DEFAULT_MIN_TX_FEE.

      +
      +
    • +
    • +
      +

      signInputs

      +
      public boolean signInputs
      +
      If true (the default), the inputs will be signed.
      +
      +
    • +
    • +
      +

      aesKey

      +
      public org.bouncycastle.crypto.params.KeyParameter aesKey
      +
      The AES key to use to decrypt the private keys before signing. + If null then no decryption will be performed and if decryption is required an exception will be thrown. + You can get this from a password by doing wallet.getKeyCrypter().deriveKey(password).
      +
      +
    • +
    • +
      +

      coinSelector

      +
      public CoinSelector coinSelector
      +
      If not null, the CoinSelector to use instead of the wallets default. Coin selectors are + responsible for choosing which transaction outputs (coins) in a wallet to use given the desired send value + amount.
      +
      +
    • +
    • +
      +

      shuffleOutputs

      +
      public boolean shuffleOutputs
      +
      If true (the default), the outputs will be shuffled during completion to randomize the location of the change + output, if any. This is normally what you want for privacy reasons but in unit tests it can be annoying + so it can be disabled here.
      +
      +
    • +
    • +
      +

      missingSigsMode

      +
      public Wallet.MissingSigsMode missingSigsMode
      +
      Specifies what to do with missing signatures left after completing this request. Default strategy is to + throw an exception on missing signature (Wallet.MissingSigsMode.THROW).
      +
      +
      See Also:
      +
      + +
      +
      +
      +
    • +
    • +
      +

      exchangeRate

      +
      public ExchangeRate exchangeRate
      +
      If not null, this exchange rate is recorded with the transaction during completion.
      +
      +
    • +
    • +
      +

      memo

      +
      public String memo
      +
      If not null, this memo is recorded with the transaction during completion. It can be used to record the memo + of the payment request that initiated the transaction.
      +
      +
    • +
    • +
      +

      recipientsPayFees

      +
      public boolean recipientsPayFees
      +
      If false (default value), tx fee is paid by the sender If true, tx fee is paid by the recipient/s. If there is + more than one recipient, the tx fee is split equally between them regardless of output value and size.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setFeePerVkb

      +
      public void setFeePerVkb(Coin feePerVkb)
      +
      +
    • +
    • +
      +

      allowUnconfirmed

      +
      public void allowUnconfirmed()
      +
      Shortcut for req.coinSelector = AllowUnconfirmedCoinSelector.get();.
      +
      +
    • +
    • +
      +

      to

      +
      public static SendRequest to(Address destination, + Coin value)
      +

      Creates a new SendRequest to the given address for the given value.

      + +

      Be careful to check the output's value is reasonable using + TransactionOutput.getMinNonDustValue(Coin) afterwards or you risk having the transaction + rejected by the network.

      +
      +
    • +
    • +
      +

      to

      +
      public static SendRequest to(NetworkParameters params, + ECKey destination, + Coin value)
      +

      Creates a new SendRequest to the given pubkey for the given value.

      + +

      Be careful to check the output's value is reasonable using + TransactionOutput.getMinNonDustValue(Coin) afterwards or you risk having the transaction + rejected by the network. Note that using to(Address, Coin) will result + in a smaller output, and thus the ability to use a smaller output value without rejection.

      +
      +
    • +
    • +
      +

      forTx

      +
      public static SendRequest forTx(Transaction tx)
      +
      Simply wraps a pre-built incomplete transaction provided by you.
      +
      +
    • +
    • +
      +

      emptyWallet

      +
      public static SendRequest emptyWallet(Address destination)
      +
      +
    • +
    • +
      +

      childPaysForParent

      +
      public static SendRequest childPaysForParent(Wallet wallet, + Transaction parentTransaction, + Coin feeRaise)
      +
      Construct a SendRequest for a CPFP (child-pays-for-parent) transaction. The resulting transaction is already + completed, so you should directly proceed to signing and broadcasting/committing the transaction. CPFP is + currently only supported by a few miners, so use with care.
      +
      +
    • +
    • +
      +

      fromPaymentDetails

      +
      public SendRequest fromPaymentDetails(Protos.PaymentDetails paymentDetails)
      +
      Copy data from payment request.
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.BadPassword.html b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.BadPassword.html new file mode 100644 index 000000000..b0f8289e9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.BadPassword.html @@ -0,0 +1,162 @@ + + + + +UnreadableWalletException.BadPassword (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnreadableWalletException.BadPassword

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.wallet.UnreadableWalletException +
org.bitcoinj.wallet.UnreadableWalletException.BadPassword
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
UnreadableWalletException
+
+
+
public static class UnreadableWalletException.BadPassword +extends UnreadableWalletException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BadPassword

      +
      public BadPassword()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.FutureVersion.html b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.FutureVersion.html new file mode 100644 index 000000000..a1bc2028d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.FutureVersion.html @@ -0,0 +1,162 @@ + + + + +UnreadableWalletException.FutureVersion (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnreadableWalletException.FutureVersion

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.wallet.UnreadableWalletException +
org.bitcoinj.wallet.UnreadableWalletException.FutureVersion
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
UnreadableWalletException
+
+
+
public static class UnreadableWalletException.FutureVersion +extends UnreadableWalletException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      FutureVersion

      +
      public FutureVersion()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.WrongNetwork.html b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.WrongNetwork.html new file mode 100644 index 000000000..acb46aa8c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.WrongNetwork.html @@ -0,0 +1,162 @@ + + + + +UnreadableWalletException.WrongNetwork (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnreadableWalletException.WrongNetwork

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.wallet.UnreadableWalletException +
org.bitcoinj.wallet.UnreadableWalletException.WrongNetwork
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
UnreadableWalletException
+
+
+
public static class UnreadableWalletException.WrongNetwork +extends UnreadableWalletException
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      WrongNetwork

      +
      public WrongNetwork()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.html b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.html new file mode 100644 index 000000000..18164abaf --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/UnreadableWalletException.html @@ -0,0 +1,184 @@ + + + + +UnreadableWalletException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UnreadableWalletException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
org.bitcoinj.wallet.UnreadableWalletException
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
UnreadableWalletException.BadPassword, UnreadableWalletException.FutureVersion, UnreadableWalletException.WrongNetwork
+
+
+
public class UnreadableWalletException +extends Exception
+
Thrown by the WalletProtobufSerializer when the serialized protocol buffer is either corrupted, + internally inconsistent or appears to be from the future.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      UnreadableWalletException

      +
      public UnreadableWalletException(String s)
      +
      +
    • +
    • +
      +

      UnreadableWalletException

      +
      public UnreadableWalletException(String s, + Throwable t)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BadWalletEncryptionKeyException.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BadWalletEncryptionKeyException.html new file mode 100644 index 000000000..e545ae748 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BadWalletEncryptionKeyException.html @@ -0,0 +1,157 @@ + + + + +Wallet.BadWalletEncryptionKeyException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.BadWalletEncryptionKeyException

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.BadWalletEncryptionKeyException +extends Wallet.CompletionException
+
Thrown if the private keys and seed of this wallet cannot be decrypted due to the supplied encryption + key or password being wrong.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BadWalletEncryptionKeyException

      +
      public BadWalletEncryptionKeyException(Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BalanceType.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BalanceType.html new file mode 100644 index 000000000..5f3a03f5f --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.BalanceType.html @@ -0,0 +1,265 @@ + + + + +Wallet.BalanceType (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Wallet.BalanceType

+
+
java.lang.Object +
java.lang.Enum<Wallet.BalanceType> +
org.bitcoinj.wallet.Wallet.BalanceType
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Wallet.BalanceType>, Constable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static enum Wallet.BalanceType +extends Enum<Wallet.BalanceType>
+

It's possible to calculate a wallets balance from multiple points of view. This enum selects which + Wallet.getBalance(BalanceType) should use.

+ +

Consider a real-world example: you buy a snack costing $5 but you only have a $10 bill. At the start you have + $10 viewed from every possible angle. After you order the snack you hand over your $10 bill. From the + perspective of your wallet you have zero dollars (AVAILABLE). But you know in a few seconds the shopkeeper + will give you back $5 change so most people in practice would say they have $5 (ESTIMATED).

+ +

The fact that the wallet can track transactions which are not spendable by itself ("watching wallets") adds + another type of balance to the mix. Although the wallet won't do this by default, advanced use cases that + override the relevancy checks can end up with a mix of spendable and unspendable transactions.

+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    +
      +
    • +
      +

      ESTIMATED

      +
      public static final Wallet.BalanceType ESTIMATED
      +
      Balance calculated assuming all pending transactions are in fact included into the best chain by miners. + This includes the value of immature coinbase transactions.
      +
      +
    • +
    • +
      +

      AVAILABLE

      +
      public static final Wallet.BalanceType AVAILABLE
      +
      Balance that could be safely used to create new spends, if we had all the needed private keys. This is + whatever the default coin selector would make available, which by default means transaction outputs with at + least 1 confirmation and pending transactions created by our own wallet which have been propagated across + the network. Whether we actually have the private keys or not is irrelevant for this balance type.
      +
      +
    • +
    • +
      +

      ESTIMATED_SPENDABLE

      +
      public static final Wallet.BalanceType ESTIMATED_SPENDABLE
      +
      Same as ESTIMATED but only for outputs we have the private keys for and can sign ourselves.
      +
      +
    • +
    • +
      +

      AVAILABLE_SPENDABLE

      +
      public static final Wallet.BalanceType AVAILABLE_SPENDABLE
      +
      Same as AVAILABLE but only for outputs we have the private keys for and can sign ourselves.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Wallet.BalanceType[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Wallet.BalanceType valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CompletionException.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CompletionException.html new file mode 100644 index 000000000..46de4756d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CompletionException.html @@ -0,0 +1,166 @@ + + + + +Wallet.CompletionException (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.CompletionException

+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
org.bitcoinj.wallet.Wallet.CompletionException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Direct Known Subclasses:
+
Wallet.BadWalletEncryptionKeyException, Wallet.CouldNotAdjustDownwards, Wallet.DustySendRequested, Wallet.ExceededMaxTransactionSize, Wallet.MultipleOpReturnRequested
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.CompletionException +extends RuntimeException
+
Class of exceptions thrown in Wallet.completeTx(SendRequest).
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CompletionException

      +
      public CompletionException()
      +
      +
    • +
    • +
      +

      CompletionException

      +
      public CompletionException(Throwable throwable)
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CouldNotAdjustDownwards.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CouldNotAdjustDownwards.html new file mode 100644 index 000000000..a81ddd4a9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.CouldNotAdjustDownwards.html @@ -0,0 +1,158 @@ + + + + +Wallet.CouldNotAdjustDownwards (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.CouldNotAdjustDownwards

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.CouldNotAdjustDownwards +extends Wallet.CompletionException
+
Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after + being reduced for the fee was smaller than the min payment. Note that the missing field will be null in this + case.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      CouldNotAdjustDownwards

      +
      public CouldNotAdjustDownwards()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.DustySendRequested.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.DustySendRequested.html new file mode 100644 index 000000000..f20ed21a3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.DustySendRequested.html @@ -0,0 +1,156 @@ + + + + +Wallet.DustySendRequested (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.DustySendRequested

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.DustySendRequested +extends Wallet.CompletionException
+
Thrown if the resultant transaction would violate the dust rules (an output that's too small to be worthwhile).
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      DustySendRequested

      +
      public DustySendRequested()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.ExceededMaxTransactionSize.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.ExceededMaxTransactionSize.html new file mode 100644 index 000000000..40c5727dd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.ExceededMaxTransactionSize.html @@ -0,0 +1,156 @@ + + + + +Wallet.ExceededMaxTransactionSize (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.ExceededMaxTransactionSize

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.ExceededMaxTransactionSize +extends Wallet.CompletionException
+
Thrown if the resultant transaction is too big for Bitcoin to process. Try breaking up the amounts of value.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      ExceededMaxTransactionSize

      +
      public ExceededMaxTransactionSize()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MissingSigsMode.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MissingSigsMode.html new file mode 100644 index 000000000..8ce99bb6e --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MissingSigsMode.html @@ -0,0 +1,243 @@ + + + + +Wallet.MissingSigsMode (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class Wallet.MissingSigsMode

+
+
java.lang.Object +
java.lang.Enum<Wallet.MissingSigsMode> +
org.bitcoinj.wallet.Wallet.MissingSigsMode
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<Wallet.MissingSigsMode>, Constable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static enum Wallet.MissingSigsMode +extends Enum<Wallet.MissingSigsMode>
+
Enumerates possible resolutions for missing signatures.
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static Wallet.MissingSigsMode[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static Wallet.MissingSigsMode valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MultipleOpReturnRequested.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MultipleOpReturnRequested.html new file mode 100644 index 000000000..e870bbc22 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.MultipleOpReturnRequested.html @@ -0,0 +1,156 @@ + + + + +Wallet.MultipleOpReturnRequested (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.MultipleOpReturnRequested

+
+ +
+
+
All Implemented Interfaces:
+
Serializable
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.MultipleOpReturnRequested +extends Wallet.CompletionException
+
Thrown if there is more than one OP_RETURN output for the resultant transaction.
+
+
See Also:
+
+ +
+
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      MultipleOpReturnRequested

      +
      public MultipleOpReturnRequested()
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.SendResult.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.SendResult.html new file mode 100644 index 000000000..8d3856aea --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.SendResult.html @@ -0,0 +1,191 @@ + + + + +Wallet.SendResult (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet.SendResult

+
+
java.lang.Object +
org.bitcoinj.wallet.Wallet.SendResult
+
+
+
+
Enclosing class:
+
Wallet
+
+
+
public static class Wallet.SendResult +extends Object
+
A SendResult is returned to you as part of sending coins to a recipient.
+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      tx

      +
      public final Transaction tx
      +
      The Bitcoin transaction message that moves the money.
      +
      +
    • +
    • +
      +

      broadcastComplete

      +
      public final com.google.common.util.concurrent.ListenableFuture<Transaction> broadcastComplete
      +
      A future that will complete once the tx message has been successfully broadcast to the network. This is just the result of calling broadcast.future()
      +
      +
    • +
    • +
      +

      broadcast

      +
      public final TransactionBroadcast broadcast
      +
      The broadcast object returned by the linked TransactionBroadcaster
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.html b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.html new file mode 100644 index 000000000..27f433f47 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/Wallet.html @@ -0,0 +1,4259 @@ + + + + +Wallet (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Wallet

+
+ +
+
+
All Implemented Interfaces:
+
NewBestBlockListener, ReorganizeListener, TransactionReceivedInBlockListener, PeerFilterProvider, TransactionBag, TaggableObject, KeyBag
+
+
+ +

A Wallet stores keys and a record of transactions that send and receive value from those keys. Using these, + it is able to create new transactions that spend the recorded transactions, and this is the fundamental operation + of the Bitcoin protocol.

+ +

To learn more about this class, read + working with the wallet.

+ +

To fill up a Wallet with transactions, you need to use it in combination with a BlockChain and various + other objects, see the Getting started tutorial + on the website to learn more about how to set everything up.

+ +

Wallets can be serialized using protocol buffers. You need to save the wallet whenever it changes, there is an + auto-save feature that simplifies this for you although you're still responsible for manually triggering a save when + your app is about to quit because the auto-save feature waits a moment before actually committing to disk to avoid IO + thrashing when the wallet is changing very fast (eg due to a block chain sync). See + autosaveToFile(File, long, TimeUnit, WalletFiles.Listener) + for more information about this.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    + +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      createDeterministic

      +
      public static Wallet createDeterministic(NetworkParameters params, + Script.ScriptType outputScriptType)
      +
      Creates a new, empty wallet with a randomly chosen seed and no transactions. Make sure to provide for sufficient + backup! Any keys will be derived from the seed. If you want to restore a wallet from disk instead, see + loadFromFile(java.io.File, org.bitcoinj.wallet.WalletExtension...).
      +
      +
      Parameters:
      +
      params - network parameters
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      +
      +
    • +
    • +
      +

      createDeterministic

      +
      public static Wallet createDeterministic(Context context, + Script.ScriptType outputScriptType)
      +
      Creates a new, empty wallet with a randomly chosen seed and no transactions. Make sure to provide for sufficient + backup! Any keys will be derived from the seed. If you want to restore a wallet from disk instead, see + loadFromFile(java.io.File, org.bitcoinj.wallet.WalletExtension...).
      +
      +
      Parameters:
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      +
      +
    • +
    • +
      +

      createBasic

      +
      public static Wallet createBasic(NetworkParameters params)
      +
      Creates a new, empty wallet with just a basic keychain and no transactions. No deterministic chains will be created + automatically. This is meant for when you just want to import a few keys and operate on them.
      +
      +
      Parameters:
      +
      params - network parameters
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      public static Wallet fromSeed(NetworkParameters params, + DeterministicSeed seed, + Script.ScriptType outputScriptType)
      +
      +
      Parameters:
      +
      params - network parameters
      +
      seed - deterministic seed
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      Returns:
      +
      a wallet from a deterministic seed with a default account path
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      public static Wallet fromSeed(NetworkParameters params, + DeterministicSeed seed, + Script.ScriptType outputScriptType, + KeyChainGroupStructure structure)
      +
      +
      Parameters:
      +
      params - network parameters
      +
      seed - deterministic seed
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      structure - structure for your wallet
      +
      Returns:
      +
      a wallet from a deterministic seed with a default account path
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      @Deprecated +public static Wallet fromSeed(NetworkParameters params, + DeterministicSeed seed)
      + +
      +
      Parameters:
      +
      params - network parameters
      +
      seed - deterministic seed
      +
      Returns:
      +
      a wallet from a deterministic seed with a + 0 hardened path
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      public static Wallet fromSeed(NetworkParameters params, + DeterministicSeed seed, + Script.ScriptType outputScriptType, + List<ChildNumber> accountPath)
      +
      +
      Parameters:
      +
      params - network parameters
      +
      seed - deterministic seed
      +
      outputScriptType - type of addresses (aka output scripts) to generate for receiving
      +
      accountPath - account path to generate receiving addresses on
      +
      Returns:
      +
      an instance of a wallet from a deterministic seed.
      +
      +
      +
    • +
    • +
      +

      fromSeed

      +
      @Deprecated +public static Wallet fromSeed(NetworkParameters params, + DeterministicSeed seed, + List<ChildNumber> accountPath)
      + +
      +
      Parameters:
      +
      params - network parameters
      +
      seed - deterministic seed
      +
      accountPath - account path
      +
      Returns:
      +
      an instance of a wallet from a deterministic seed.
      +
      +
      +
    • +
    • +
      +

      fromWatchingKey

      +
      public static Wallet fromWatchingKey(NetworkParameters params, + DeterministicKey watchKey, + Script.ScriptType outputScriptType)
      +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key. This HAS + to be an account key as returned by DeterministicKeyChain.getWatchingKey().
      +
      +
    • +
    • +
      +

      fromWatchingKey

      +
      @Deprecated +public static Wallet fromWatchingKey(NetworkParameters params, + DeterministicKey watchKey)
      + +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key. This HAS + to be an account key as returned by DeterministicKeyChain.getWatchingKey().
      +
      +
    • +
    • +
      +

      fromWatchingKeyB58

      +
      public static Wallet fromWatchingKeyB58(NetworkParameters params, + String watchKeyB58, + long creationTimeSeconds)
      +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key. The + account path is specified. The key is specified in base58 notation and the creation time of the key. If you don't + know the creation time, you can pass DeterministicHierarchy.BIP32_STANDARDISATION_TIME_SECS.
      +
      +
    • +
    • +
      +

      fromSpendingKey

      +
      public static Wallet fromSpendingKey(NetworkParameters params, + DeterministicKey spendKey, + Script.ScriptType outputScriptType)
      +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key. This HAS + to be an account key as returned by DeterministicKeyChain.getWatchingKey(). This wallet can also spend.
      +
      +
    • +
    • +
      +

      fromSpendingKey

      +
      @Deprecated +public static Wallet fromSpendingKey(NetworkParameters params, + DeterministicKey spendKey)
      + +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key. This HAS + to be an account key as returned by DeterministicKeyChain.getWatchingKey(). This wallet can also spend.
      +
      +
    • +
    • +
      +

      fromSpendingKeyB58

      +
      public static Wallet fromSpendingKeyB58(NetworkParameters params, + String spendingKeyB58, + long creationTimeSeconds)
      +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key. + The key is specified in base58 notation and the creation time of the key. If you don't know the creation time, + you can pass DeterministicHierarchy.BIP32_STANDARDISATION_TIME_SECS.
      +
      +
    • +
    • +
      +

      fromMasterKey

      +
      public static Wallet fromMasterKey(NetworkParameters params, + DeterministicKey masterKey, + Script.ScriptType outputScriptType, + ChildNumber accountNumber)
      +
      Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given spending key. This HAS + to be an account key as returned by DeterministicKeyChain.getWatchingKey().
      +
      +
    • +
    • +
      +

      fromKeys

      +
      @Deprecated +public static Wallet fromKeys(NetworkParameters params, + List<ECKey> keys)
      + +
      +
    • +
    • +
      +

      getNetworkParameters

      +
      public NetworkParameters getNetworkParameters()
      +
      +
    • +
    • +
      +

      getActiveKeyChains

      +
      public List<DeterministicKeyChain> getActiveKeyChains()
      +
      Gets the active keychains via KeyChainGroup.getActiveKeyChains(long).
      +
      +
    • +
    • +
      +

      getActiveKeyChain

      +
      public DeterministicKeyChain getActiveKeyChain()
      +
      Gets the default active keychain via KeyChainGroup.getActiveKeyChain().
      +
      +
    • +
    • +
      +

      addTransactionSigner

      +
      public final void addTransactionSigner(TransactionSigner signer)
      +

      Adds given transaction signer to the list of signers. It will be added to the end of the signers list, so if + this wallet already has some signers added, given signer will be executed after all of them.

      +

      Transaction signer should be fully initialized before adding to the wallet, otherwise IllegalStateException + will be thrown

      +
      +
    • +
    • +
      +

      getTransactionSigners

      +
      public List<TransactionSigner> getTransactionSigners()
      +
      +
    • +
    • +
      +

      currentKey

      +
      public DeterministicKey currentKey(KeyChain.KeyPurpose purpose)
      +
      Returns a key that hasn't been seen in a transaction yet, and which is suitable for displaying in a wallet + user interface as "a convenient key to receive funds on" when the purpose parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS. The returned key is stable until + it's actually seen in a pending or confirmed transaction, at which point this method will start returning + a different key (for each purpose independently).
      +
      +
    • +
    • +
      +

      currentReceiveKey

      +
      public DeterministicKey currentReceiveKey()
      +
      An alias for calling currentKey(KeyChain.KeyPurpose) with + KeyChain.KeyPurpose.RECEIVE_FUNDS as the parameter.
      +
      +
    • +
    • +
      +

      currentAddress

      +
      public Address currentAddress(KeyChain.KeyPurpose purpose)
      +
      Returns address for a currentKey(KeyChain.KeyPurpose)
      +
      +
    • +
    • +
      +

      currentReceiveAddress

      +
      public Address currentReceiveAddress()
      +
      An alias for calling currentAddress(KeyChain.KeyPurpose) with + KeyChain.KeyPurpose.RECEIVE_FUNDS as the parameter.
      +
      +
    • +
    • +
      +

      freshKey

      +
      public DeterministicKey freshKey(KeyChain.KeyPurpose purpose)
      +
      Returns a key that has not been returned by this method before (fresh). You can think of this as being + a newly created key, although the notion of "create" is not really valid for a + DeterministicKeyChain. When the parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS the returned key is suitable for being put + into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key out + to someone who wishes to send money.
      +
      +
    • +
    • +
      +

      freshKeys

      +
      public List<DeterministicKey> freshKeys(KeyChain.KeyPurpose purpose, + int numberOfKeys)
      +
      Returns a key/s that has not been returned by this method before (fresh). You can think of this as being + a newly created key/s, although the notion of "create" is not really valid for a + DeterministicKeyChain. When the parameter is + KeyChain.KeyPurpose.RECEIVE_FUNDS the returned key is suitable for being put + into a receive coins wizard type UI. You should use this when the user is definitely going to hand this key/s out + to someone who wishes to send money.
      +
      +
    • +
    • +
      +

      freshReceiveKey

      +
      public DeterministicKey freshReceiveKey()
      +
      An alias for calling freshKey(KeyChain.KeyPurpose) with + KeyChain.KeyPurpose.RECEIVE_FUNDS as the parameter.
      +
      +
    • +
    • +
      +

      freshAddress

      +
      public Address freshAddress(KeyChain.KeyPurpose purpose)
      +
      Returns address for a freshKey(KeyChain.KeyPurpose)
      +
      +
    • +
    • +
      +

      freshReceiveAddress

      +
      public Address freshReceiveAddress()
      +
      An alias for calling freshAddress(KeyChain.KeyPurpose) with + KeyChain.KeyPurpose.RECEIVE_FUNDS as the parameter.
      +
      +
    • +
    • +
      +

      freshReceiveAddress

      +
      public Address freshReceiveAddress(Script.ScriptType scriptType)
      +

      Returns a fresh receive address for a given Script.ScriptType.

      +

      This method is meant for when you really need a fallback address. Normally, you should be + using freshAddress(KeyChain.KeyPurpose) or + currentAddress(KeyChain.KeyPurpose).

      +
      +
    • +
    • +
      +

      getIssuedReceiveKeys

      +
      public List<ECKey> getIssuedReceiveKeys()
      +
      Returns only the keys that have been issued by freshReceiveKey(), freshReceiveAddress(), + currentReceiveKey() or currentReceiveAddress().
      +
      +
    • +
    • +
      +

      getIssuedReceiveAddresses

      +
      public List<Address> getIssuedReceiveAddresses()
      +
      Returns only the addresses that have been issued by freshReceiveKey(), freshReceiveAddress(), + currentReceiveKey() or currentReceiveAddress().
      +
      +
    • +
    • +
      +

      upgradeToDeterministic

      +
      @Deprecated +public void upgradeToDeterministic(@Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey)
      + +
      +
    • +
    • +
      +

      upgradeToDeterministic

      +
      public void upgradeToDeterministic(Script.ScriptType outputScriptType, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws DeterministicUpgradeRequiresPassword
      +
      Upgrades the wallet to be deterministic (BIP32). You should call this, possibly providing the users encryption + key, after loading a wallet produced by previous versions of bitcoinj. If the wallet is encrypted the key + must be provided, due to the way the seed is derived deterministically from private key bytes: failing + to do this will result in an exception being thrown. For non-encrypted wallets, the upgrade will be done for + you automatically the first time a new key is requested (this happens when spending due to the change address).
      +
      +
      Throws:
      +
      DeterministicUpgradeRequiresPassword
      +
      +
      +
    • +
    • +
      +

      upgradeToDeterministic

      +
      public void upgradeToDeterministic(Script.ScriptType outputScriptType, + KeyChainGroupStructure structure, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey) + throws DeterministicUpgradeRequiresPassword
      +
      Upgrades the wallet to be deterministic (BIP32). You should call this, possibly providing the users encryption + key, after loading a wallet produced by previous versions of bitcoinj. If the wallet is encrypted the key + must be provided, due to the way the seed is derived deterministically from private key bytes: failing + to do this will result in an exception being thrown. For non-encrypted wallets, the upgrade will be done for + you automatically the first time a new key is requested (this happens when spending due to the change address).
      +
      +
      Throws:
      +
      DeterministicUpgradeRequiresPassword
      +
      +
      +
    • +
    • +
      +

      isDeterministicUpgradeRequired

      +
      @Deprecated +public boolean isDeterministicUpgradeRequired()
      + +
      +
    • +
    • +
      +

      isDeterministicUpgradeRequired

      +
      public boolean isDeterministicUpgradeRequired(Script.ScriptType outputScriptType)
      +
      Returns true if the wallet contains random keys and no HD chains, in which case you should call + upgradeToDeterministic(ScriptType, KeyParameter) before attempting to do anything + that would require a new address or key.
      +
      +
    • +
    • +
      +

      getWatchedScripts

      +
      public List<Script> getWatchedScripts()
      +
      Returns a snapshot of the watched scripts. This view is not live.
      +
      +
    • +
    • +
      +

      removeKey

      +
      public boolean removeKey(ECKey key)
      +
      Removes the given key from the basicKeyChain. Be very careful with this - losing a private key destroys the + money associated with it.
      +
      +
      Returns:
      +
      Whether the key was removed or not.
      +
      +
      +
    • +
    • +
      +

      getKeyChainGroupSize

      +
      public int getKeyChainGroupSize()
      +
      Returns the number of keys in the key chain group, including lookahead keys.
      +
      +
    • +
    • +
      +

      getKeyChainGroupCombinedKeyLookaheadEpochs

      +
      public int getKeyChainGroupCombinedKeyLookaheadEpochs()
      +
      +
    • +
    • +
      +

      getImportedKeys

      +
      public List<ECKey> getImportedKeys()
      +
      Returns a list of the non-deterministic keys that have been imported into the wallet, or the empty list if none.
      +
      +
    • +
    • +
      +

      currentChangeAddress

      +
      public Address currentChangeAddress()
      +
      Returns the address used for change outputs. Note: this will probably go away in future.
      +
      +
    • +
    • +
      +

      importKey

      +
      public boolean importKey(ECKey key)
      +

      Imports the given ECKey to the wallet.

      + +

      If the wallet is configured to auto save to a file, triggers a save immediately. Runs the onKeysAdded event + handler. If the key already exists in the wallet, does nothing and returns false.

      +
      +
    • +
    • +
      +

      importKeys

      +
      public int importKeys(List<ECKey> keys)
      +
      Imports the given keys to the wallet. + If autosaveToFile(File, long, TimeUnit, WalletFiles.Listener) + has been called, triggers an auto save bypassing the normal coalescing delay and event handlers. + Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key + in the list that was not already present.
      +
      +
    • +
    • +
      +

      importKeysAndEncrypt

      +
      public int importKeysAndEncrypt(List<ECKey> keys, + CharSequence password)
      +
      Takes a list of keys and a password, then encrypts and imports them in one step using the current keycrypter.
      +
      +
    • +
    • +
      +

      importKeysAndEncrypt

      +
      public int importKeysAndEncrypt(List<ECKey> keys, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter.
      +
      +
    • +
    • +
      +

      addAndActivateHDChain

      +
      public void addAndActivateHDChain(DeterministicKeyChain chain)
      +
      Add a pre-configured keychain to the wallet. Useful for setting up a complex keychain, + such as for a married wallet. For example: + + MarriedKeyChain chain = MarriedKeyChain.builder() + .random(new SecureRandom()) + .followingKeys(followingKeys) + .threshold(2).build(); + wallet.addAndActivateHDChain(chain); +
      +
      +
    • +
    • +
      +

      getKeyChainGroupLookaheadSize

      +
      public int getKeyChainGroupLookaheadSize()
      + +
      +
    • +
    • +
      +

      getKeyChainGroupLookaheadThreshold

      +
      public int getKeyChainGroupLookaheadThreshold()
      + +
      +
    • +
    • +
      +

      getWatchingKey

      +
      public DeterministicKey getWatchingKey()
      +
      Returns a public-only DeterministicKey that can be used to set up a watching wallet: that is, a wallet that + can import transactions from the block chain just as the normal wallet can, but which cannot spend. Watching + wallets are very useful for things like web servers that accept payments. This key corresponds to the account + zero key in the recommended BIP32 hierarchy.
      +
      +
    • +
    • +
      +

      isWatching

      +
      public boolean isWatching()
      +
      Returns whether this wallet consists entirely of watching keys (unencrypted keys with no private part). Mixed + wallets are forbidden.
      +
      +
      Throws:
      +
      IllegalStateException - if there are no keys, or if there is a mix between watching and non-watching keys.
      +
      +
      +
    • +
    • +
      +

      isAddressWatched

      +
      public boolean isAddressWatched(Address address)
      +
      Return true if we are watching this address.
      +
      +
    • +
    • +
      +

      addWatchedAddress

      +
      public boolean addWatchedAddress(Address address)
      +
      Same as addWatchedAddress(Address, long) with the current time as the creation time.
      +
      +
    • +
    • +
      +

      addWatchedAddress

      +
      public boolean addWatchedAddress(Address address, + long creationTime)
      +
      Adds the given address to the wallet to be watched. Outputs can be retrieved by getWatchedOutputs(boolean).
      +
      +
      Parameters:
      +
      creationTime - creation time in seconds since the epoch, for scanning the blockchain
      +
      Returns:
      +
      whether the address was added successfully (not already present)
      +
      +
      +
    • +
    • +
      +

      addWatchedAddresses

      +
      public int addWatchedAddresses(List<Address> addresses, + long creationTime)
      +
      Adds the given address to the wallet to be watched. Outputs can be retrieved + by getWatchedOutputs(boolean).
      +
      +
      Returns:
      +
      how many addresses were added successfully
      +
      +
      +
    • +
    • +
      +

      addWatchedScripts

      +
      public int addWatchedScripts(List<Script> scripts)
      +
      Adds the given output scripts to the wallet to be watched. Outputs can be retrieved by getWatchedOutputs(boolean). + If a script is already being watched, the object is replaced with the one in the given list. As Script + equality is defined in terms of program bytes only this lets you update metadata such as creation time. Note that + you should be careful not to add scripts with a creation time of zero (the default!) because otherwise it will + disable the important wallet checkpointing optimisation.
      +
      +
      Returns:
      +
      how many scripts were added successfully
      +
      +
      +
    • +
    • +
      +

      removeWatchedAddress

      +
      public boolean removeWatchedAddress(Address address)
      +
      Removes the given output scripts from the wallet that were being watched.
      +
      +
      Returns:
      +
      true if successful
      +
      +
      +
    • +
    • +
      +

      removeWatchedAddresses

      +
      public boolean removeWatchedAddresses(List<Address> addresses)
      +
      Removes the given output scripts from the wallet that were being watched.
      +
      +
      Returns:
      +
      true if successful
      +
      +
      +
    • +
    • +
      +

      removeWatchedScripts

      +
      public boolean removeWatchedScripts(List<Script> scripts)
      +
      Removes the given output scripts from the wallet that were being watched.
      +
      +
      Returns:
      +
      true if successful
      +
      +
      +
    • +
    • +
      +

      getWatchedAddresses

      +
      public List<Address> getWatchedAddresses()
      +
      Returns all addresses watched by this wallet.
      +
      +
    • +
    • +
      +

      findKeyFromPubHash

      +
      @Deprecated +public ECKey findKeyFromPubHash(byte[] pubKeyHash)
      + +
      +
    • +
    • +
      +

      findKeyFromPubKeyHash

      +
      @Nullable +public ECKey findKeyFromPubKeyHash(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Locates a keypair from the basicKeyChain given the hash of the public key. This is needed when finding out which + key we need to use to redeem a transaction output.
      +
      +
      Specified by:
      +
      findKeyFromPubKeyHash in interface KeyBag
      +
      Parameters:
      +
      pubKeyHash - hash of the keypair to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or + Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      ECKey object or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      hasKey

      +
      public boolean hasKey(ECKey key)
      +
      Returns true if the given key is in the wallet, false otherwise. Currently an O(N) operation.
      +
      +
    • +
    • +
      +

      isAddressMine

      +
      public boolean isAddressMine(Address address)
      +
      Returns true if the address is belongs to this wallet.
      +
      +
    • +
    • +
      +

      isPubKeyHashMine

      +
      @Deprecated +public boolean isPubKeyHashMine(byte[] pubKeyHash)
      + +
      +
    • +
    • +
      +

      isPubKeyHashMine

      +
      public boolean isPubKeyHashMine(byte[] pubKeyHash, + @Nullable + Script.ScriptType scriptType)
      +
      Description copied from interface: TransactionBag
      +
      Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.
      +
      +
      Specified by:
      +
      isPubKeyHashMine in interface TransactionBag
      +
      Parameters:
      +
      pubKeyHash - hash of the public key to look for
      +
      scriptType - only look for given usage (currently Script.ScriptType.P2PKH or Script.ScriptType.P2WPKH) or null if we don't care
      +
      Returns:
      +
      true if hash was found
      +
      +
      +
    • +
    • +
      +

      isWatchedScript

      +
      public boolean isWatchedScript(Script script)
      +
      Description copied from interface: TransactionBag
      +
      Returns true if this wallet is watching transactions for outputs with the script.
      +
      +
      Specified by:
      +
      isWatchedScript in interface TransactionBag
      +
      +
      +
    • +
    • +
      +

      findKeyFromAddress

      +
      public ECKey findKeyFromAddress(Address address)
      +
      Locates a keypair from the wallet given the corresponding address.
      +
      +
      Returns:
      +
      ECKey or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      findKeyFromPubKey

      +
      @Nullable +public ECKey findKeyFromPubKey(byte[] pubKey)
      +
      Locates a keypair from the basicKeyChain given the raw public key bytes.
      +
      +
      Specified by:
      +
      findKeyFromPubKey in interface KeyBag
      +
      Returns:
      +
      ECKey or null if no such key was found.
      +
      +
      +
    • +
    • +
      +

      isPubKeyMine

      +
      public boolean isPubKeyMine(byte[] pubKey)
      +
      Description copied from interface: TransactionBag
      +
      Returns true if this wallet contains a keypair with the given public key.
      +
      +
      Specified by:
      +
      isPubKeyMine in interface TransactionBag
      +
      +
      +
    • +
    • +
      +

      findRedeemDataFromScriptHash

      +
      @Nullable +public RedeemData findRedeemDataFromScriptHash(byte[] payToScriptHash)
      +
      Locates a redeem data (redeem script and keys) from the keyChainGroup given the hash of the script. + Returns RedeemData object or null if no such data was found.
      +
      +
      Specified by:
      +
      findRedeemDataFromScriptHash in interface KeyBag
      +
      +
      +
    • +
    • +
      +

      isPayToScriptHashMine

      +
      public boolean isPayToScriptHashMine(byte[] payToScriptHash)
      +
      Description copied from interface: TransactionBag
      +
      Returns true if this wallet knows the script corresponding to the given hash.
      +
      +
      Specified by:
      +
      isPayToScriptHashMine in interface TransactionBag
      +
      +
      +
    • +
    • +
      +

      getKeyChainSeed

      +
      public DeterministicSeed getKeyChainSeed()
      +
      Returns the immutable seed for the current active HD chain.
      +
      +
      Throws:
      +
      ECKey.MissingPrivateKeyException - if the seed is unavailable (watching wallet)
      +
      +
      +
    • +
    • +
      +

      getKeyByPath

      +
      public DeterministicKey getKeyByPath(List<ChildNumber> path)
      +
      Returns a key for the given HD path, assuming it's already been derived. You normally shouldn't use this: + use currentReceiveKey/freshReceiveKey instead.
      +
      +
    • +
    • +
      +

      encrypt

      +
      public void encrypt(CharSequence password)
      +
      Convenience wrapper around encrypt(KeyCrypter, org.bouncycastle.crypto.params.KeyParameter) which uses the default Scrypt key derivation algorithm and + parameters to derive a key from the given password.
      +
      +
    • +
    • +
      +

      encrypt

      +
      public void encrypt(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Encrypt the wallet using the KeyCrypter and the AES key. A good default KeyCrypter to use is + KeyCrypterScrypt.
      +
      +
      Parameters:
      +
      keyCrypter - The KeyCrypter that specifies how to encrypt/ decrypt a key
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to create from a password)
      +
      Throws:
      +
      KeyCrypterException - Thrown if the wallet encryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public void decrypt(CharSequence password) + throws Wallet.BadWalletEncryptionKeyException
      +
      Decrypt the wallet with the wallets keyCrypter and password.
      +
      +
      Throws:
      +
      Wallet.BadWalletEncryptionKeyException - Thrown if the given password is wrong. If so, the wallet state is unchanged.
      +
      KeyCrypterException - Thrown if the wallet decryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      decrypt

      +
      public void decrypt(org.bouncycastle.crypto.params.KeyParameter aesKey) + throws Wallet.BadWalletEncryptionKeyException
      +
      Decrypt the wallet with the wallets keyCrypter and AES key.
      +
      +
      Parameters:
      +
      aesKey - AES key to use (normally created using KeyCrypter#deriveKey and cached as it is time consuming to create from a password)
      +
      Throws:
      +
      Wallet.BadWalletEncryptionKeyException - Thrown if the given aesKey is wrong. If so, the wallet state is unchanged.
      +
      KeyCrypterException - Thrown if the wallet decryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      checkPassword

      +
      public boolean checkPassword(CharSequence password)
      +
      Check whether the password can decrypt the first key in the wallet. + This can be used to check the validity of an entered password.
      +
      +
      Returns:
      +
      boolean true if password supplied can decrypt the first private key in the wallet, false otherwise.
      +
      Throws:
      +
      IllegalStateException - if the wallet is not encrypted.
      +
      +
      +
    • +
    • +
      +

      checkAESKey

      +
      public boolean checkAESKey(org.bouncycastle.crypto.params.KeyParameter aesKey)
      +
      Check whether the AES key can decrypt the first encrypted key in the wallet.
      +
      +
      Returns:
      +
      boolean true if AES key supplied can decrypt the first encrypted private key in the wallet, false otherwise.
      +
      +
      +
    • +
    • +
      +

      getKeyCrypter

      +
      @Nullable +public KeyCrypter getKeyCrypter()
      +
      Get the wallet's KeyCrypter, or null if the wallet is not encrypted. + (Used in encrypting/ decrypting an ECKey).
      +
      +
    • +
    • +
      +

      getEncryptionType

      +
      public Protos.Wallet.EncryptionType getEncryptionType()
      +
      Get the type of encryption used for this wallet. + + (This is a convenience method - the encryption type is actually stored in the keyCrypter).
      +
      +
    • +
    • +
      +

      isEncrypted

      +
      public boolean isEncrypted()
      +
      Returns true if the wallet is encrypted using any scheme, false if not.
      +
      +
    • +
    • +
      +

      changeEncryptionPassword

      +
      public void changeEncryptionPassword(CharSequence currentPassword, + CharSequence newPassword) + throws Wallet.BadWalletEncryptionKeyException
      +
      Changes wallet encryption password, this is atomic operation.
      +
      +
      Throws:
      +
      Wallet.BadWalletEncryptionKeyException - Thrown if the given currentPassword is wrong. If so, the wallet state is unchanged.
      +
      KeyCrypterException - Thrown if the wallet decryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      changeEncryptionKey

      +
      public void changeEncryptionKey(KeyCrypter keyCrypter, + org.bouncycastle.crypto.params.KeyParameter currentAesKey, + org.bouncycastle.crypto.params.KeyParameter newAesKey) + throws Wallet.BadWalletEncryptionKeyException
      +
      Changes wallet AES encryption key, this is atomic operation.
      +
      +
      Throws:
      +
      Wallet.BadWalletEncryptionKeyException - Thrown if the given currentAesKey is wrong. If so, the wallet state is unchanged.
      +
      KeyCrypterException - Thrown if the wallet decryption fails. If so, the wallet state is unchanged.
      +
      +
      +
    • +
    • +
      +

      serializeKeyChainGroupToProtobuf

      +
      public List<Protos.Key> serializeKeyChainGroupToProtobuf()
      +
      Internal use only.
      +
      +
    • +
    • +
      +

      saveToFile

      +
      public void saveToFile(File temp, + File destFile) + throws IOException
      +
      Saves the wallet first to the given temp file, then renames to the dest file.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      saveToFile

      +
      public void saveToFile(File f) + throws IOException
      +
      Uses protobuf serialization to save the wallet to the given file. To learn more about this file format, see + WalletProtobufSerializer. Writes out first to a temporary file in the same directory and then renames + once written.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      setAcceptRiskyTransactions

      +
      public void setAcceptRiskyTransactions(boolean acceptRiskyTransactions)
      +

      Whether or not the wallet will ignore pending transactions that fail the selected + RiskAnalysis. By default, if a transaction is considered risky then it won't enter the wallet + and won't trigger any event listeners. If you set this property to true, then all transactions will + be allowed in regardless of risk. For example, the DefaultRiskAnalysis checks for non-finality of + transactions.

      + +

      Note that this property is not serialized. You have to set it each time a Wallet object is constructed, + even if it's loaded from a protocol buffer.

      +
      +
    • +
    • +
      +

      isAcceptRiskyTransactions

      +
      public boolean isAcceptRiskyTransactions()
      +
      See setAcceptRiskyTransactions(boolean) for an explanation of this property.
      +
      +
    • +
    • +
      +

      setRiskAnalyzer

      +
      public void setRiskAnalyzer(RiskAnalysis.Analyzer analyzer)
      +
      Sets the RiskAnalysis implementation to use for deciding whether received pending transactions are risky + or not. If the analyzer says a transaction is risky, by default it will be dropped. You can customize this + behaviour with setAcceptRiskyTransactions(boolean).
      +
      +
    • +
    • +
      +

      getRiskAnalyzer

      +
      public RiskAnalysis.Analyzer getRiskAnalyzer()
      +
      Gets the current RiskAnalysis implementation. The default is DefaultRiskAnalysis.
      +
      +
    • +
    • +
      +

      autosaveToFile

      +
      public WalletFiles autosaveToFile(File f, + long delayTime, + TimeUnit timeUnit, + @Nullable + WalletFiles.Listener eventListener)
      +

      Sets up the wallet to auto-save itself to the given file, using temp files with atomic renames to ensure + consistency. After connecting to a file, you no longer need to save the wallet manually, it will do it + whenever necessary. Protocol buffer serialization will be used.

      + +

      If delayTime is set, a background thread will be created and the wallet will only be saved to + disk every so many time units. If no changes have occurred for the given time period, nothing will be written. + In this way disk IO can be rate limited. It's a good idea to set this as otherwise the wallet can change very + frequently, eg if there are a lot of transactions in it or during block sync, and there will be a lot of redundant + writes. Note that when a new key is added, that always results in an immediate save regardless of + delayTime. You should still save the wallet manually using saveToFile(File) when your program + is about to shut down as the JVM will not wait for the background thread.

      + +

      An event listener can be provided. If a delay greater than 0 was specified, it will be called on a background thread + with the wallet locked when an auto-save occurs. If delay is zero or you do something that always triggers + an immediate save, like adding a key, the event listener will be invoked on the calling threads.

      +
      +
      Parameters:
      +
      f - The destination file to save to.
      +
      delayTime - How many time units to wait until saving the wallet on a background thread.
      +
      timeUnit - the unit of measurement for delayTime.
      +
      eventListener - callback to be informed when the auto-save thread does things, or null
      +
      +
      +
    • +
    • +
      +

      shutdownAutosaveAndWait

      +
      public void shutdownAutosaveAndWait()
      +

      + Disables auto-saving, after it had been enabled with + autosaveToFile(File, long, TimeUnit, WalletFiles.Listener) + before. This method blocks until finished. +

      +
      +
    • +
    • +
      +

      saveLater

      +
      protected void saveLater()
      +
      Requests an asynchronous save on a background thread
      +
      +
    • +
    • +
      +

      saveNow

      +
      protected void saveNow()
      +
      If auto saving is enabled, do an immediate sync write to disk ignoring any delays.
      +
      +
    • +
    • +
      +

      saveToFileStream

      +
      public void saveToFileStream(OutputStream f) + throws IOException
      +
      Uses protobuf serialization to save the wallet to the given file stream. To learn more about this file format, see + WalletProtobufSerializer.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      getParams

      +
      public NetworkParameters getParams()
      +
      Returns the parameters this wallet was created with.
      +
      +
    • +
    • +
      +

      getContext

      +
      public Context getContext()
      +
      Returns the API context that this wallet was created with.
      +
      +
    • +
    • +
      +

      loadFromFile

      +
      public static Wallet loadFromFile(File file, + @Nullable + WalletExtension... walletExtensions) + throws UnreadableWalletException
      +

      Returns a wallet deserialized from the given file. Extensions previously saved with the wallet can be + deserialized by calling @WalletExtension.deserializeWalletExtension(Wallet, byte[])}

      +
      +
      Parameters:
      +
      file - the wallet file to read
      +
      walletExtensions - extensions possibly added to the wallet.
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      isConsistent

      +
      public boolean isConsistent()
      +
      Returns if this wallet is structurally consistent, so e.g. no duplicate transactions. First inconsistency and a + dump of the wallet will be logged.
      +
      +
    • +
    • +
      +

      isConsistentOrThrow

      +
      public void isConsistentOrThrow() + throws IllegalStateException
      +
      Variant of isConsistent() that throws an IllegalStateException describing the first + inconsistency.
      +
      +
      Throws:
      +
      IllegalStateException
      +
      +
      +
    • +
    • +
      +

      loadFromFileStream

      +
      public static Wallet loadFromFileStream(InputStream stream, + @Nullable + WalletExtension... walletExtensions) + throws UnreadableWalletException
      +
      Returns a wallet deserialized from the given input stream and wallet extensions.
      +
      +
      Throws:
      +
      UnreadableWalletException
      +
      +
      +
    • +
    • +
      +

      notifyTransactionIsInBlock

      +
      public boolean notifyTransactionIsInBlock(Sha256Hash txHash, + StoredBlock block, + AbstractBlockChain.NewBlockType blockType, + int relativityOffset) + throws VerificationException
      +
      Called by the BlockChain when we receive a new filtered block that contains a transactions previously + received by a call to receivePending(org.bitcoinj.core.Transaction, java.util.List<org.bitcoinj.core.Transaction>, boolean).

      + + This is necessary for the internal book-keeping Wallet does. When a transaction is received that sends us + coins it is added to a pool so we can use it later to create spends. When a transaction is received that + consumes outputs they are marked as spent so they won't be used in future.

      + + A transaction that spends our own coins can be received either because a spend we created was accepted by the + network and thus made it into a block, or because our keys are being shared between multiple instances and + some other node spent the coins instead. We still have to know about that to avoid accidentally trying to + double spend.

      + + A transaction may be received multiple times if is included into blocks in parallel chains. The blockType + parameter describes whether the containing block is on the main/best chain or whether it's on a presently + inactive side chain. We must still record these transactions and the blocks they appear in because a future + block might change which chain is best causing a reorganize. A re-org can totally change our balance!

      +
      +
      Specified by:
      +
      notifyTransactionIsInBlock in interface TransactionReceivedInBlockListener
      +
      Returns:
      +
      whether the transaction is known about i.e. was considered relevant previously.
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      receivePending

      +
      public void receivePending(Transaction tx, + @Nullable + List<Transaction> dependencies, + boolean overrideIsRelevant) + throws VerificationException
      +

      Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet + and want to record it. Note that we cannot verify these transactions at all, they may spend fictional + coins or be otherwise invalid. They are useful to inform the user about coins they can expect to receive soon, + and if you trust the sender of the transaction you can choose to assume they are in fact valid and will not + be double spent as an optimization.

      + +

      This is the same as receivePending(Transaction, List) but allows you to override the + isPendingTransactionRelevant(Transaction) sanity-check to keep track of transactions that are not + spendable or spend our coins. This can be useful when you want to keep track of transaction confidence on + arbitrary transactions. Note that transactions added in this way will still be relayed to peers and appear in + transaction lists like any other pending transaction (even when not relevant).

      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      isTransactionRisky

      +
      public boolean isTransactionRisky(Transaction tx, + @Nullable + List<Transaction> dependencies)
      +
      Given a transaction and an optional list of dependencies (recursive/flattened), returns true if the given + transaction would be rejected by the analyzer, or false otherwise. The result of this call is independent + of the value of isAcceptRiskyTransactions(). Risky transactions yield a logged warning. If you + want to know the reason why a transaction is risky, create an instance of the RiskAnalysis yourself + using the factory returned by getRiskAnalyzer() and use it directly.
      +
      +
    • +
    • +
      +

      receivePending

      +
      public void receivePending(Transaction tx, + @Nullable + List<Transaction> dependencies) + throws VerificationException
      +

      Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet + and want to record it. Note that we cannot verify these transactions at all, they may spend fictional + coins or be otherwise invalid. They are useful to inform the user about coins they can expect to receive soon, + and if you trust the sender of the transaction you can choose to assume they are in fact valid and will not + be double spent as an optimization.

      + +

      Before this method is called, isPendingTransactionRelevant(Transaction) should have been + called to decide whether the wallet cares about the transaction - if it does, then this method expects the + transaction and any dependencies it has which are still in the memory pool.

      +
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      isPendingTransactionRelevant

      +
      public boolean isPendingTransactionRelevant(Transaction tx) + throws ScriptException
      +
      This method is used by a Peer to find out if a transaction that has been announced is interesting, + that is, whether we should bother downloading its dependencies and exploring the transaction to decide how + risky it is. If this method returns true then receivePending(Transaction, List) + will soon be called with the transactions dependencies as well.
      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      isTransactionRelevant

      +
      public boolean isTransactionRelevant(Transaction tx) + throws ScriptException
      +

      Returns true if the given transaction sends coins to any of our keys, or has inputs spending any of our outputs, + and also returns true if tx has inputs that are spending outputs which are + not ours but which are spent by pending transactions.

      + +

      Note that if the tx has inputs containing one of our keys, but the connected transaction is not in the wallet, + it will not be considered relevant.

      +
      +
      Throws:
      +
      ScriptException
      +
      +
      +
    • +
    • +
      +

      receiveFromBlock

      +
      public void receiveFromBlock(Transaction tx, + StoredBlock block, + AbstractBlockChain.NewBlockType blockType, + int relativityOffset) + throws VerificationException
      +
      Called by the BlockChain when we receive a new block that sends coins to one of our addresses or + spends coins from one of our addresses (note that a single transaction can do both).

      + + This is necessary for the internal book-keeping Wallet does. When a transaction is received that sends us + coins it is added to a pool so we can use it later to create spends. When a transaction is received that + consumes outputs they are marked as spent so they won't be used in future.

      + + A transaction that spends our own coins can be received either because a spend we created was accepted by the + network and thus made it into a block, or because our keys are being shared between multiple instances and + some other node spent the coins instead. We still have to know about that to avoid accidentally trying to + double spend.

      + + A transaction may be received multiple times if is included into blocks in parallel chains. The blockType + parameter describes whether the containing block is on the main/best chain or whether it's on a presently + inactive side chain. We must still record these transactions and the blocks they appear in because a future + block might change which chain is best causing a reorganize. A re-org can totally change our balance!

      +
      +
      Specified by:
      +
      receiveFromBlock in interface TransactionReceivedInBlockListener
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      notifyNewBestBlock

      +
      public void notifyNewBestBlock(StoredBlock block) + throws VerificationException
      +

      Called by the BlockChain when a new block on the best chain is seen, AFTER relevant wallet + transactions are extracted and sent to us UNLESS the new block caused a re-org, in which case this will + not be called (the reorganize(StoredBlock, List, List) method will + call this one in that case).

      +

      Used to update confidence data in each transaction and last seen block hash. Triggers auto saving. + Invokes the onWalletChanged event listener if there were any affected transactions.

      +
      +
      Specified by:
      +
      notifyNewBestBlock in interface NewBestBlockListener
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      maybeCommitTx

      +
      public boolean maybeCommitTx(Transaction tx) + throws VerificationException
      +
      Updates the wallet with the given transaction: puts it into the pending pool, sets the spent flags and runs + the onCoinsSent/onCoinsReceived event listener. +

      + Triggers an auto save (if enabled.) +

      + Unlike commitTx(org.bitcoinj.core.Transaction) this method does not throw an exception if the transaction + was already added to the wallet, instead it will return false

      +
      +
      Parameters:
      +
      tx - transaction to commit
      +
      Returns:
      +
      true if the tx was added to the wallet, or false if it was already in the pending pool
      +
      Throws:
      +
      VerificationException - If transaction fails to verify
      +
      +
      +
    • +
    • +
      +

      commitTx

      +
      public void commitTx(Transaction tx) + throws VerificationException
      +
      Updates the wallet with the given transaction: puts it into the pending pool, sets the spent flags and runs + the onCoinsSent/onCoinsReceived event listener. Used in two situations: +

      +

        +
      1. When we have just successfully transmitted the tx we created to the network.
      2. +
      3. When we receive a pending transaction that didn't appear in the chain yet, and we did not create it.
      4. +
      +

      + Triggers an auto save (if enabled.) +

      + Unlike maybeCommitTx(org.bitcoinj.core.Transaction) commitTx throws an exception if the transaction + was already added to the wallet.

      +
      +
      Parameters:
      +
      tx - transaction to commit
      +
      Throws:
      +
      VerificationException - if transaction was already in the pending pool
      +
      +
      +
    • +
    • +
      +

      addChangeEventListener

      +
      public void addChangeEventListener(WalletChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when something interesting happens, + like receiving money. Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addChangeEventListener

      +
      public void addChangeEventListener(Executor executor, + WalletChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when something interesting happens, + like receiving money. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addCoinsReceivedEventListener

      +
      public void addCoinsReceivedEventListener(WalletCoinsReceivedEventListener listener)
      +
      Adds an event listener object called when coins are received. + Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addCoinsReceivedEventListener

      +
      public void addCoinsReceivedEventListener(Executor executor, + WalletCoinsReceivedEventListener listener)
      +
      Adds an event listener object called when coins are received. + The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addCoinsSentEventListener

      +
      public void addCoinsSentEventListener(WalletCoinsSentEventListener listener)
      +
      Adds an event listener object called when coins are sent. + Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addCoinsSentEventListener

      +
      public void addCoinsSentEventListener(Executor executor, + WalletCoinsSentEventListener listener)
      +
      Adds an event listener object called when coins are sent. + The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addKeyChainEventListener

      +
      public void addKeyChainEventListener(KeyChainEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when keys are + added. The listener is executed in the user thread.
      +
      +
    • +
    • +
      +

      addKeyChainEventListener

      +
      public void addKeyChainEventListener(Executor executor, + KeyChainEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when keys are + added. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addCurrentKeyChangeEventListener

      +
      public void addCurrentKeyChangeEventListener(CurrentKeyChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when a current key and/or address + changes. The listener is executed in the user thread.
      +
      +
    • +
    • +
      +

      addCurrentKeyChangeEventListener

      +
      public void addCurrentKeyChangeEventListener(Executor executor, + CurrentKeyChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when a current key and/or address + changes. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addReorganizeEventListener

      +
      public void addReorganizeEventListener(WalletReorganizeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when something interesting happens, + like receiving money. Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addReorganizeEventListener

      +
      public void addReorganizeEventListener(Executor executor, + WalletReorganizeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when something interesting happens, + like receiving money. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addScriptsChangeEventListener

      +
      public void addScriptsChangeEventListener(ScriptsChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when scripts + watched by this wallet change. Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addScriptsChangeEventListener

      +
      public void addScriptsChangeEventListener(Executor executor, + ScriptsChangeEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when scripts + watched by this wallet change. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      addTransactionConfidenceEventListener

      +
      public void addTransactionConfidenceEventListener(TransactionConfidenceEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when confidence + of a transaction changes. Runs the listener methods in the user thread.
      +
      +
    • +
    • +
      +

      addTransactionConfidenceEventListener

      +
      public void addTransactionConfidenceEventListener(Executor executor, + TransactionConfidenceEventListener listener)
      +
      Adds an event listener object. Methods on this object are called when confidence + of a transaction changes. The listener is executed by the given executor.
      +
      +
    • +
    • +
      +

      removeChangeEventListener

      +
      public boolean removeChangeEventListener(WalletChangeEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeCoinsReceivedEventListener

      +
      public boolean removeCoinsReceivedEventListener(WalletCoinsReceivedEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeCoinsSentEventListener

      +
      public boolean removeCoinsSentEventListener(WalletCoinsSentEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeKeyChainEventListener

      +
      public boolean removeKeyChainEventListener(KeyChainEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeCurrentKeyChangeEventListener

      +
      public boolean removeCurrentKeyChangeEventListener(CurrentKeyChangeEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that + listener was never added.
      +
      +
    • +
    • +
      +

      removeReorganizeEventListener

      +
      public boolean removeReorganizeEventListener(WalletReorganizeEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeScriptsChangeEventListener

      +
      public boolean removeScriptsChangeEventListener(ScriptsChangeEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      removeTransactionConfidenceEventListener

      +
      public boolean removeTransactionConfidenceEventListener(TransactionConfidenceEventListener listener)
      +
      Removes the given event listener object. Returns true if the listener was removed, false if that listener + was never added.
      +
      +
    • +
    • +
      +

      maybeQueueOnWalletChanged

      +
      protected void maybeQueueOnWalletChanged()
      +
      +
    • +
    • +
      +

      queueOnCoinsReceived

      +
      protected void queueOnCoinsReceived(Transaction tx, + Coin balance, + Coin newBalance)
      +
      +
    • +
    • +
      +

      queueOnCoinsSent

      +
      protected void queueOnCoinsSent(Transaction tx, + Coin prevBalance, + Coin newBalance)
      +
      +
    • +
    • +
      +

      queueOnReorganize

      +
      protected void queueOnReorganize()
      +
      +
    • +
    • +
      +

      queueOnScriptsChanged

      +
      protected void queueOnScriptsChanged(List<Script> scripts, + boolean isAddingScripts)
      +
      +
    • +
    • +
      +

      getTransactions

      +
      public Set<Transaction> getTransactions(boolean includeDead)
      +
      Returns a set of all transactions in the wallet.
      +
      +
      Parameters:
      +
      includeDead - If true, transactions that were overridden by a double spend are included.
      +
      +
      +
    • +
    • +
      +

      getWalletTransactions

      +
      public Iterable<WalletTransaction> getWalletTransactions()
      +
      Returns a set of all WalletTransactions in the wallet.
      +
      +
    • +
    • +
      +

      addWalletTransaction

      +
      public void addWalletTransaction(WalletTransaction wtx)
      +
      Adds a transaction that has been associated with a particular wallet pool. This is intended for usage by + deserialization code, such as the WalletProtobufSerializer class. It isn't normally useful for + applications. It does not trigger auto saving.
      +
      +
    • +
    • +
      +

      getTransactionsByTime

      +
      public List<Transaction> getTransactionsByTime()
      +
      Returns all non-dead, active transactions ordered by recency.
      +
      +
    • +
    • +
      +

      getRecentTransactions

      +
      public List<Transaction> getRecentTransactions(int numTransactions, + boolean includeDead)
      +

      Returns an list of N transactions, ordered by increasing age. Transactions on side chains are not included. + Dead transactions (overridden by double spends) are optionally included.

      +

      Note: the current implementation is O(num transactions in wallet). Regardless of how many transactions are + requested, the cost is always the same. In future, requesting smaller numbers of transactions may be faster + depending on how the wallet is implemented (eg if backed by a database).

      +
      +
    • +
    • +
      +

      getTransaction

      +
      @Nullable +public Transaction getTransaction(Sha256Hash hash)
      +
      Returns a transaction object given its hash, if it exists in this wallet, or null otherwise.
      +
      +
    • +
    • +
      +

      getTransactionPool

      +
      public Map<Sha256Hash,Transaction> getTransactionPool(WalletTransaction.Pool pool)
      +
      Description copied from interface: TransactionBag
      +
      Returns transactions from a specific pool.
      +
      +
      Specified by:
      +
      getTransactionPool in interface TransactionBag
      +
      +
      +
    • +
    • +
      +

      reset

      +
      public void reset()
      +
      Prepares the wallet for a blockchain replay. Removes all transactions (as they would get in the way of the + replay) and makes the wallet think it has never seen a block. WalletChangeEventListener.onWalletChanged(org.bitcoinj.wallet.Wallet) will + be fired.
      +
      +
    • +
    • +
      +

      clearTransactions

      +
      public void clearTransactions(int fromHeight)
      +
      Deletes transactions which appeared above the given block height from the wallet, but does not touch the keys. + This is useful if you have some keys and wish to replay the block chain into the wallet in order to pick them up. + Triggers auto saving.
      +
      +
    • +
    • +
      +

      getWatchedOutputs

      +
      public List<TransactionOutput> getWatchedOutputs(boolean excludeImmatureCoinbases)
      +
      Returns all the outputs that match addresses or scripts added via addWatchedAddress(Address) or + addWatchedScripts(java.util.List).
      +
      +
      Parameters:
      +
      excludeImmatureCoinbases - Whether to ignore outputs that are unspendable due to being immature.
      +
      +
      +
    • +
    • +
      +

      cleanup

      +
      public void cleanup()
      +
      Clean up the wallet. Currently, it only removes risky pending transaction from the wallet and only if their + outputs have not been spent.
      +
      +
    • +
    • +
      +

      getPoolSize

      +
      public int getPoolSize(WalletTransaction.Pool pool)
      +
      +
    • +
    • +
      +

      poolContainsTxHash

      +
      public boolean poolContainsTxHash(WalletTransaction.Pool pool, + Sha256Hash txHash)
      +
      +
    • +
    • +
      +

      getUnspents

      +
      public List<TransactionOutput> getUnspents()
      +
      Returns a copy of the internal unspent outputs list
      +
      +
    • +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      toString

      +
      @Deprecated +public String toString(boolean includePrivateKeys, + boolean includeTransactions, + boolean includeExtensions, + @Nullable + AbstractBlockChain chain)
      + +
      +
    • +
    • +
      +

      toString

      +
      @Deprecated +public String toString(boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + boolean includeTransactions, + boolean includeExtensions, + @Nullable + AbstractBlockChain chain)
      + +
      +
    • +
    • +
      +

      toString

      +
      public String toString(boolean includeLookahead, + boolean includePrivateKeys, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + boolean includeTransactions, + boolean includeExtensions, + @Nullable + AbstractBlockChain chain)
      +
      Formats the wallet as a human readable piece of text. Intended for debugging, the format is not meant to be + stable or human readable.
      +
      +
      Parameters:
      +
      includeLookahead - Wether lookahead keys should be included.
      +
      includePrivateKeys - Whether raw private key data should be included.
      +
      aesKey - for decrypting private key data for if the wallet is encrypted.
      +
      includeTransactions - Whether to print transaction data.
      +
      includeExtensions - Whether to print extension data.
      +
      chain - If set, will be used to estimate lock times for block timelocked transactions.
      +
      +
      +
    • +
    • +
      +

      getPendingTransactions

      +
      public Collection<Transaction> getPendingTransactions()
      +
      Returns an immutable view of the transactions currently waiting for network confirmations.
      +
      +
    • +
    • +
      +

      getEarliestKeyCreationTime

      +
      public long getEarliestKeyCreationTime()
      +
      Returns the earliest creation time of keys or watched scripts in this wallet, in seconds since the epoch, ie the min + of ECKey.getCreationTimeSeconds(). This can return zero if at least one key does + not have that data (was created before key timestamping was implemented).

      + + This method is most often used in conjunction with PeerGroup.setFastCatchupTimeSecs(long) in order to + optimize chain download for new users of wallet apps. Backwards compatibility notice: if you get zero from this + method, you can instead use the time of the first release of your software, as it's guaranteed no users will + have wallets pre-dating this time.

      + + If there are no keys in the wallet, the current time is returned.

      +
      +
      Specified by:
      +
      getEarliestKeyCreationTime in interface PeerFilterProvider
      +
      +
      +
    • +
    • +
      +

      getLastBlockSeenHash

      +
      @Nullable +public Sha256Hash getLastBlockSeenHash()
      +
      Returns the hash of the last seen best-chain block, or null if the wallet is too old to store this data.
      +
      +
    • +
    • +
      +

      setLastBlockSeenHash

      +
      public void setLastBlockSeenHash(@Nullable + Sha256Hash lastBlockSeenHash)
      +
      +
    • +
    • +
      +

      setLastBlockSeenHeight

      +
      public void setLastBlockSeenHeight(int lastBlockSeenHeight)
      +
      +
    • +
    • +
      +

      setLastBlockSeenTimeSecs

      +
      public void setLastBlockSeenTimeSecs(long timeSecs)
      +
      +
    • +
    • +
      +

      getLastBlockSeenTimeSecs

      +
      public long getLastBlockSeenTimeSecs()
      +
      Returns the UNIX time in seconds since the epoch extracted from the last best seen block header. This timestamp + is not the local time at which the block was first observed by this application but rather what the block + (i.e. miner) self declares. It is allowed to have some significant drift from the real time at which the block + was found, although most miners do use accurate times. If this wallet is old and does not have a recorded + time then this method returns zero.
      +
      +
    • +
    • +
      +

      getLastBlockSeenTime

      +
      @Nullable +public Date getLastBlockSeenTime()
      +
      Returns a Date representing the time extracted from the last best seen block header. This timestamp + is not the local time at which the block was first observed by this application but rather what the block + (i.e. miner) self declares. It is allowed to have some significant drift from the real time at which the block + was found, although most miners do use accurate times. If this wallet is old and does not have a recorded + time then this method returns null.
      +
      +
    • +
    • +
      +

      getLastBlockSeenHeight

      +
      public int getLastBlockSeenHeight()
      +
      Returns the height of the last seen best-chain block. Can be 0 if a wallet is brand new or -1 if the wallet + is old and doesn't have that data.
      +
      +
    • +
    • +
      +

      getVersion

      +
      public int getVersion()
      +
      Get the version of the Wallet. + This is an int you can use to indicate which versions of wallets your code understands, + and which come from the future (and hence cannot be safely loaded).
      +
      +
    • +
    • +
      +

      setVersion

      +
      public void setVersion(int version)
      +
      Set the version number of the wallet. See getVersion().
      +
      +
    • +
    • +
      +

      setDescription

      +
      public void setDescription(String description)
      +
      Set the description of the wallet. + This is a Unicode encoding string typically entered by the user as descriptive text for the wallet.
      +
      +
    • +
    • +
      +

      getDescription

      +
      public String getDescription()
      +
      Get the description of the wallet. See setDescription(String)
      +
      +
    • +
    • +
      +

      getBalance

      +
      public Coin getBalance()
      +
      Returns the AVAILABLE balance of this wallet. See Wallet.BalanceType.AVAILABLE for details on what this + means.
      +
      +
    • +
    • +
      +

      getBalance

      +
      public Coin getBalance(Wallet.BalanceType balanceType)
      +
      Returns the balance of this wallet as calculated by the provided balanceType.
      +
      +
    • +
    • +
      +

      getBalance

      +
      public Coin getBalance(CoinSelector selector)
      +
      Returns the balance that would be considered spendable by the given coin selector, including watched outputs + (i.e. balance includes outputs we don't have the private keys for). Just asks it to select as many coins as + possible and returns the total.
      +
      +
    • +
    • +
      +

      getBalanceFuture

      +
      public com.google.common.util.concurrent.ListenableFuture<Coin> getBalanceFuture(Coin value, + Wallet.BalanceType type)
      +

      Returns a future that will complete when the balance of the given type has becom equal or larger to the given + value. If the wallet already has a large enough balance the future is returned in a pre-completed state. Note + that this method is not blocking, if you want to actually wait immediately, you have to call .get() on + the result.

      + +

      Also note that by the time the future completes, the wallet may have changed yet again if something else + is going on in parallel, so you should treat the returned balance as advisory and be prepared for sending + money to fail! Finally please be aware that any listeners on the future will run either on the calling thread + if it completes immediately, or eventually on a background thread if the balance is not yet at the right + level. If you do something that means you know the balance should be sufficient to trigger the future, + you can use Threading.waitForUserCode() to block until the future had a + chance to be updated.

      +
      +
    • +
    • +
      +

      getTotalReceived

      +
      public Coin getTotalReceived()
      +
      Returns the amount of bitcoin ever received via output. This is not the balance! If an output spends from a + transaction whose inputs are also to our wallet, the input amounts are deducted from the outputs contribution, with a minimum of zero + contribution. The idea behind this is we avoid double counting money sent to us.
      +
      +
      Returns:
      +
      the total amount of satoshis received, regardless of whether it was spent or not.
      +
      +
      +
    • +
    • +
      +

      getTotalSent

      +
      public Coin getTotalSent()
      +
      Returns the amount of bitcoin ever sent via output. If an output is sent to our own wallet, because of change or + rotating keys or whatever, we do not count it. If the wallet was + involved in a shared transaction, i.e. there is some input to the transaction that we don't have the key for, then + we multiply the sum of the output values by the proportion of satoshi coming in to our inputs. Essentially we treat + inputs as pooling into the transaction, becoming fungible and being equally distributed to all outputs.
      +
      +
      Returns:
      +
      the total amount of satoshis sent by us
      +
      +
      +
    • +
    • +
      +

      createSend

      + +

      Statelessly creates a transaction that sends the given value to address. The change is sent to + currentChangeAddress(), so you must have added at least one key.

      + +

      If you just want to send money quickly, you probably want + sendCoins(TransactionBroadcaster, Address, Coin) instead. That will create the sending + transaction, commit to the wallet and broadcast it to the network all in one go. This method is lower level + and lets you see the proposed transaction before anything is done with it.

      + +

      This is a helper method that is equivalent to using SendRequest.to(Address, Coin) + followed by completeTx(SendRequest) and returning the requests transaction object. + Note that this means a fee may be automatically added if required, if you want more control over the process, + just do those two steps yourself.

      + +

      IMPORTANT: This method does NOT update the wallet. If you call createSend again you may get two transactions + that spend the same coins. You have to call commitTx(Transaction) on the created transaction to + prevent this, but that should only occur once the transaction has been accepted by the network. This implies + you cannot have more than one outstanding sending tx at once.

      + +

      You MUST ensure that the value is not smaller than TransactionOutput.getMinNonDustValue() or the transaction + will almost certainly be rejected by the network as dust.

      +
      +
      Parameters:
      +
      address - The Bitcoin address to send the money to.
      +
      value - How much currency to send.
      +
      Returns:
      +
      either the created Transaction or null if there are insufficient coins.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      createSend

      +
      public Transaction createSend(Address address, + Coin value, + boolean allowUnconfirmed) + throws InsufficientMoneyException, +Wallet.BadWalletEncryptionKeyException
      +

      Statelessly creates a transaction that sends the given value to address. The change is sent to + currentChangeAddress(), so you must have added at least one key.

      + +

      If you just want to send money quickly, you probably want + sendCoins(TransactionBroadcaster, Address, Coin) instead. That will create the sending + transaction, commit to the wallet and broadcast it to the network all in one go. This method is lower level + and lets you see the proposed transaction before anything is done with it.

      + +

      This is a helper method that is equivalent to using SendRequest.to(Address, Coin) + followed by completeTx(SendRequest) and returning the requests transaction object. + Note that this means a fee may be automatically added if required, if you want more control over the process, + just do those two steps yourself.

      + +

      IMPORTANT: This method does NOT update the wallet. If you call createSend again you may get two transactions + that spend the same coins. You have to call commitTx(Transaction) on the created transaction to + prevent this, but that should only occur once the transaction has been accepted by the network. This implies + you cannot have more than one outstanding sending tx at once.

      + +

      You MUST ensure that the value is not smaller than TransactionOutput.getMinNonDustValue() or the transaction + will almost certainly be rejected by the network as dust.

      +
      +
      Parameters:
      +
      address - The Bitcoin address to send the money to.
      +
      value - How much currency to send.
      +
      allowUnconfirmed - Wether to allow spending unconfirmed outputs.
      +
      Returns:
      +
      either the created Transaction or null if there are insufficient coins.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      sendCoinsOffline

      + +
      Sends coins to the given address but does not broadcast the resulting pending transaction. It is still stored + in the wallet, so when the wallet is added to a PeerGroup or Peer the transaction will be + announced to the network. The given SendRequest is completed first using + completeTx(SendRequest) to make it valid.
      +
      +
      Returns:
      +
      the Transaction that was created
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      IllegalArgumentException - if you try and complete the same SendRequest twice
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      sendCoins

      + +

      Sends coins to the given address, via the given PeerGroup. Change is returned to + currentChangeAddress(). Note that a fee may be automatically added if one may be required for the + transaction to be confirmed.

      + +

      The returned object provides both the transaction, and a future that can be used to learn when the broadcast + is complete. Complete means, if the PeerGroup is limited to only one connection, when it was written out to + the socket. Otherwise when the transaction is written out and we heard it back from a different peer.

      + +

      Note that the sending transaction is committed to the wallet immediately, not when the transaction is + successfully broadcast. This means that even if the network hasn't heard about your transaction you won't be + able to spend those same coins again.

      + +

      You MUST ensure that value is not smaller than TransactionOutput.getMinNonDustValue() or the transaction will + almost certainly be rejected by the network as dust.

      +
      +
      Parameters:
      +
      broadcaster - a TransactionBroadcaster to use to send the transactions out.
      +
      to - Which address to send coins to.
      +
      value - How much value to send.
      +
      Returns:
      +
      An object containing the transaction that was created, and a future for the broadcast of it.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      sendCoins

      + +

      Sends coins according to the given request, via the given TransactionBroadcaster.

      + +

      The returned object provides both the transaction, and a future that can be used to learn when the broadcast + is complete. Complete means, if the PeerGroup is limited to only one connection, when it was written out to + the socket. Otherwise when the transaction is written out and we heard it back from a different peer.

      + +

      Note that the sending transaction is committed to the wallet immediately, not when the transaction is + successfully broadcast. This means that even if the network hasn't heard about your transaction you won't be + able to spend those same coins again.

      +
      +
      Parameters:
      +
      broadcaster - the target to use for broadcast.
      +
      request - the SendRequest that describes what to do, get one using static methods on SendRequest itself.
      +
      Returns:
      +
      An object containing the transaction that was created, and a future for the broadcast of it.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      IllegalArgumentException - if you try and complete the same SendRequest twice
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      sendCoins

      + +
      Satisfies the given SendRequest using the default transaction broadcaster configured either via + PeerGroup.addWallet(Wallet) or directly with setTransactionBroadcaster(TransactionBroadcaster).
      +
      +
      Parameters:
      +
      request - the SendRequest that describes what to do, get one using static methods on SendRequest itself.
      +
      Returns:
      +
      An object containing the transaction that was created, and a future for the broadcast of it.
      +
      Throws:
      +
      IllegalStateException - if no transaction broadcaster has been configured.
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      IllegalArgumentException - if you try and complete the same SendRequest twice
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      sendCoins

      + +
      Sends coins to the given address, via the given Peer. Change is returned to currentChangeAddress(). + If an exception is thrown by PeerSocketHandler.sendMessage(Message) the transaction is still committed, so the + pending transaction must be broadcast by you at some other time. Note that a fee may be automatically added + if one may be required for the transaction to be confirmed.
      +
      +
      Returns:
      +
      The Transaction that was created or null if there was insufficient balance to send the coins.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      IllegalArgumentException - if you try and complete the same SendRequest twice
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      completeTx

      + +
      Given a spend request containing an incomplete transaction, makes it valid by adding outputs and signed inputs + according to the instructions in the request. The transaction in the request is modified by this method.
      +
      +
      Parameters:
      +
      req - a SendRequest that contains the incomplete transaction and details for how to make it valid.
      +
      Throws:
      +
      InsufficientMoneyException - if the request could not be completed due to not enough balance.
      +
      IllegalArgumentException - if you try and complete the same SendRequest twice
      +
      Wallet.DustySendRequested - if the resultant transaction would violate the dust rules.
      +
      Wallet.CouldNotAdjustDownwards - if emptying the wallet was requested and the output can't be shrunk for fees without violating a protocol rule.
      +
      Wallet.ExceededMaxTransactionSize - if the resultant transaction is too big for Bitcoin to process.
      +
      Wallet.MultipleOpReturnRequested - if there is more than one OP_RETURN output for the resultant transaction.
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      signTransaction

      +
      public void signTransaction(SendRequest req) + throws Wallet.BadWalletEncryptionKeyException
      +

      Given a send request containing transaction, attempts to sign it's inputs. This method expects transaction + to have all necessary inputs connected or they will be ignored.

      +

      Actual signing is done by pluggable signers and it's not guaranteed that + transaction will be complete in the end.

      +
      +
      Throws:
      +
      Wallet.BadWalletEncryptionKeyException - if the supplied SendRequest.aesKey is wrong.
      +
      +
      +
    • +
    • +
      +

      calculateAllSpendCandidates

      +
      public List<TransactionOutput> calculateAllSpendCandidates()
      +
      Returns a list of the outputs that can potentially be spent, i.e. that we have the keys for and are unspent + according to our knowledge of the block chain.
      +
      +
    • +
    • +
      +

      calculateAllSpendCandidates

      +
      public List<TransactionOutput> calculateAllSpendCandidates(boolean excludeImmatureCoinbases, + boolean excludeUnsignable)
      +
      Returns a list of all outputs that are being tracked by this wallet either from the UTXOProvider + (in this case the existence or not of private keys is ignored), or the wallets internal storage (the default) + taking into account the flags.
      +
      +
      Parameters:
      +
      excludeImmatureCoinbases - Whether to ignore coinbase outputs that we will be able to spend in future once they mature.
      +
      excludeUnsignable - Whether to ignore outputs that we are tracking but don't have the keys to sign for.
      +
      +
      +
    • +
    • +
      +

      canSignFor

      +
      public boolean canSignFor(Script script)
      +
      Returns true if this wallet has at least one of the private keys needed to sign for this scriptPubKey. Returns + false if the form of the script is not known or if the script is OP_RETURN.
      +
      +
    • +
    • +
      +

      calculateAllSpendCandidatesFromUTXOProvider

      +
      protected LinkedList<TransactionOutput> calculateAllSpendCandidatesFromUTXOProvider(boolean excludeImmatureCoinbases)
      +
      Returns the spendable candidates from the UTXOProvider based on keys that the wallet contains.
      +
      +
      Returns:
      +
      The list of candidates.
      +
      +
      +
    • +
    • +
      +

      getStoredOutputsFromUTXOProvider

      +
      protected List<UTXO> getStoredOutputsFromUTXOProvider() + throws UTXOProviderException
      +
      Get all the UTXO's from the UTXOProvider based on keys that the + wallet contains.
      +
      +
      Returns:
      +
      The list of stored outputs.
      +
      Throws:
      +
      UTXOProviderException
      +
      +
      +
    • +
    • +
      +

      getCoinSelector

      +
      public CoinSelector getCoinSelector()
      +
      Returns the default CoinSelector object that is used by this wallet if no custom selector is specified.
      +
      +
    • +
    • +
      +

      getUTXOProvider

      +
      @Nullable +public UTXOProvider getUTXOProvider()
      +
      Get the UTXOProvider.
      +
      +
      Returns:
      +
      The UTXO provider.
      +
      +
      +
    • +
    • +
      +

      setUTXOProvider

      +
      public void setUTXOProvider(@Nullable + UTXOProvider provider)
      +
      Set the UTXOProvider. + +

      The wallet will query the provider for spendable candidates, i.e. outputs controlled exclusively + by private keys contained in the wallet.

      + +

      Note that the associated provider must be reattached after a wallet is loaded from disk. + The association is not serialized.

      +
      +
    • +
    • +
      +

      reorganize

      +
      public void reorganize(StoredBlock splitPoint, + List<StoredBlock> oldBlocks, + List<StoredBlock> newBlocks) + throws VerificationException
      +

      Don't call this directly. It's not intended for API users.

      + +

      Called by the BlockChain when the best chain (representing total work done) has changed. This can + cause the number of confirmations of a transaction to go higher, lower, drop to zero and can even result in + a transaction going dead (will never confirm) due to a double spend.

      + +

      The oldBlocks/newBlocks lists are ordered height-wise from top first to bottom last.

      +
      +
      Specified by:
      +
      reorganize in interface ReorganizeListener
      +
      Throws:
      +
      VerificationException
      +
      +
      +
    • +
    • +
      +

      beginBloomFilterCalculation

      +
      public void beginBloomFilterCalculation()
      +
      Description copied from interface: PeerFilterProvider
      +
      Called on all registered filter providers before PeerFilterProvider.getBloomFilterElementCount() and + PeerFilterProvider.getBloomFilter(int, double, long) are called. Once called, the provider should ensure that the items + it will want to insert into the filter don't change. The reason is that all providers will have their element + counts queried, and then a filter big enough for all of them will be specified. So the provider must use + consistent state. There is guaranteed to be a matching call to PeerFilterProvider.endBloomFilterCalculation() that can + be used to e.g. unlock a lock.
      +
      +
      Specified by:
      +
      beginBloomFilterCalculation in interface PeerFilterProvider
      +
      +
      +
    • +
    • +
      +

      endBloomFilterCalculation

      +
      public void endBloomFilterCalculation()
      +
      Description copied from interface: PeerFilterProvider
      + +
      +
      Specified by:
      +
      endBloomFilterCalculation in interface PeerFilterProvider
      +
      +
      +
    • +
    • +
      +

      getBloomFilterElementCount

      +
      public int getBloomFilterElementCount()
      +
      Returns the number of distinct data items (note: NOT keys) that will be inserted into a bloom filter, when it + is constructed.
      +
      +
      Specified by:
      +
      getBloomFilterElementCount in interface PeerFilterProvider
      +
      +
      +
    • +
    • +
      +

      getBloomFilter

      +
      public BloomFilter getBloomFilter(double falsePositiveRate)
      +
      Gets a bloom filter that contains all of the public keys from this wallet, and which will provide the given + false-positive rate. See the docs for BloomFilter for a brief explanation of anonymity when using filters.
      +
      +
    • +
    • +
      +

      getBloomFilter

      +
      public BloomFilter getBloomFilter(int size, + double falsePositiveRate, + long nTweak)
      +

      Gets a bloom filter that contains all of the public keys from this wallet, and which will provide the given + false-positive rate if it has size elements. Keep in mind that you will get 2 elements in the bloom filter for + each key in the wallet, for the public key and the hash of the public key (address form).

      + +

      This is used to generate a BloomFilter which can be BloomFilter.merge(BloomFilter)d with another. + It could also be used if you have a specific target for the filter's size.

      + +

      See the docs for BloomFilter(int, double, long, BloomFilter.BloomUpdate) for a brief explanation of anonymity when using bloom + filters.

      +
      +
      Specified by:
      +
      getBloomFilter in interface PeerFilterProvider
      +
      +
      +
    • +
    • +
      +

      checkForFilterExhaustion

      +
      public boolean checkForFilterExhaustion(FilteredBlock block)
      +
      Used by Peer to decide whether or not to discard this block and any blocks building upon it, in case + the Bloom filter used to request them may be exhausted, that is, not have sufficient keys in the deterministic + sequence within it to reliably find relevant transactions.
      +
      +
    • +
    • +
      +

      addExtension

      +
      public void addExtension(WalletExtension extension)
      +
      By providing an object implementing the WalletExtension interface, you can save and load arbitrary + additional data that will be stored with the wallet. Each extension is identified by an ID, so attempting to + add the same extension twice (or two different objects that use the same ID) will throw an IllegalStateException.
      +
      +
    • +
    • +
      +

      addOrGetExistingExtension

      +
      public WalletExtension addOrGetExistingExtension(WalletExtension extension)
      +
      Atomically adds extension or returns an existing extension if there is one with the same id already present.
      +
      +
    • +
    • +
      +

      addOrUpdateExtension

      +
      public void addOrUpdateExtension(WalletExtension extension)
      +
      Either adds extension as a new extension or replaces the existing extension if one already exists with the same + id. This also triggers wallet auto-saving, so may be useful even when called with the same extension as is + already present.
      +
      +
    • +
    • +
      +

      getExtensions

      +
      public Map<String,WalletExtension> getExtensions()
      +
      Returns a snapshot of all registered extension objects. The extensions themselves are not copied.
      +
      +
    • +
    • +
      +

      deserializeExtension

      +
      public void deserializeExtension(WalletExtension extension, + byte[] data) + throws Exception
      +
      Deserialize the wallet extension with the supplied data and then install it, replacing any existing extension + that may have existed with the same ID. If an exception is thrown then the extension is removed from the wallet, + if already present.
      +
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    • +
      +

      setTag

      +
      public void setTag(String tag, + com.google.protobuf.ByteString value)
      +
      Description copied from interface: TaggableObject
      +
      Associates the given immutable byte array with the string tag. See the docs for TaggableObject to learn more.
      +
      +
      Specified by:
      +
      setTag in interface TaggableObject
      +
      Overrides:
      +
      setTag in class BaseTaggableObject
      +
      +
      +
    • +
    • +
      +

      setTransactionBroadcaster

      +
      public void setTransactionBroadcaster(@Nullable + TransactionBroadcaster broadcaster)
      +

      Specifies that the given TransactionBroadcaster, typically a PeerGroup, should be used for + sending transactions to the Bitcoin network by default. Some sendCoins methods let you specify a broadcaster + explicitly, in that case, they don't use this broadcaster. If null is specified then the wallet won't attempt + to broadcast transactions itself.

      + +

      You don't normally need to call this. A PeerGroup will automatically set itself as the wallets + broadcaster when you use PeerGroup.addWallet(Wallet). A wallet can use the broadcaster when you ask + it to send money, but in future also at other times to implement various features that may require asynchronous + re-organisation of the wallet contents on the block chain. For instance, in future the wallet may choose to + optimise itself to reduce fees or improve privacy.

      +
      +
    • +
    • +
      +

      setKeyRotationTime

      +
      public void setKeyRotationTime(@Nullable + Date time)
      +

      + When a key rotation time is set, any money controlled by keys created before the given timestamp T will be + respent to any key that was created after T. This can be used to recover from a situation where a set of keys is + believed to be compromised. The rotation time is persisted to the wallet. You can stop key rotation by calling + this method again with null as the argument. +

      + +

      + Once set up, calling doMaintenance(KeyParameter, boolean) will create and possibly send rotation + transactions: but it won't be done automatically (because you might have to ask for the users password). This may + need to be repeated regularly in case new coins keep coming in on rotating addresses/keys. +

      + +

      + The given time cannot be in the future. +

      +
      +
    • +
    • +
      +

      setKeyRotationTime

      +
      public void setKeyRotationTime(long unixTimeSeconds)
      +

      + When a key rotation time is set, any money controlled by keys created before the given timestamp T will be + respent to any key that was created after T. This can be used to recover from a situation where a set of keys is + believed to be compromised. The rotation time is persisted to the wallet. You can stop key rotation by calling + this method again with 0 as the argument. +

      + +

      + Once set up, calling doMaintenance(KeyParameter, boolean) will create and possibly send rotation + transactions: but it won't be done automatically (because you might have to ask for the users password). This may + need to be repeated regularly in case new coins keep coming in on rotating addresses/keys. +

      + +

      + The given time cannot be in the future. +

      +
      +
    • +
    • +
      +

      getKeyRotationTime

      +
      @Nullable +public Date getKeyRotationTime()
      +
      Returns the key rotation time, or null if unconfigured. See setKeyRotationTime(Date) for a description + of the field.
      +
      +
    • +
    • +
      +

      isKeyRotating

      +
      public boolean isKeyRotating(ECKey key)
      +
      Returns whether the keys creation time is before the key rotation time, if one was set.
      +
      +
    • +
    • +
      +

      doMaintenance

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Transaction>> doMaintenance(@Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + boolean signAndSend) + throws DeterministicUpgradeRequiresPassword
      +
      A wallet app should call this from time to time in order to let the wallet craft and send transactions needed + to re-organise coins internally. A good time to call this would be after receiving coins for an unencrypted + wallet, or after sending money for an encrypted wallet. If you have an encrypted wallet and just want to know + if some maintenance needs doing, call this method with andSend set to false and look at the returned list of + transactions. Maintenance might also include internal changes that involve some processing or work but + which don't require making transactions - these will happen automatically unless the password is required + in which case an exception will be thrown.
      +
      +
      Parameters:
      +
      aesKey - the users password, if any.
      +
      signAndSend - if true, send the transactions via the tx broadcaster and return them, if false just return them.
      +
      Returns:
      +
      A list of transactions that the wallet just made/will make for internal maintenance. Might be empty.
      +
      Throws:
      +
      DeterministicUpgradeRequiresPassword - if key rotation requires the users password.
      +
      +
      +
    • +
    • +
      +

      doMaintenance

      +
      public com.google.common.util.concurrent.ListenableFuture<List<Transaction>> doMaintenance(KeyChainGroupStructure structure, + @Nullable + org.bouncycastle.crypto.params.KeyParameter aesKey, + boolean signAndSend) + throws DeterministicUpgradeRequiresPassword
      +
      A wallet app should call this from time to time in order to let the wallet craft and send transactions needed + to re-organise coins internally. A good time to call this would be after receiving coins for an unencrypted + wallet, or after sending money for an encrypted wallet. If you have an encrypted wallet and just want to know + if some maintenance needs doing, call this method with andSend set to false and look at the returned list of + transactions. Maintenance might also include internal changes that involve some processing or work but + which don't require making transactions - these will happen automatically unless the password is required + in which case an exception will be thrown.
      +
      +
      Parameters:
      +
      structure - to derive the account path from if a new seed needs to be created
      +
      aesKey - the users password, if any.
      +
      signAndSend - if true, send the transactions via the tx broadcaster and return them, if false just return them.
      +
      Returns:
      +
      A list of transactions that the wallet just made/will make for internal maintenance. Might be empty.
      +
      Throws:
      +
      DeterministicUpgradeRequiresPassword - if key rotation requires the users password.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletExtension.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletExtension.html new file mode 100644 index 000000000..03f74e938 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletExtension.html @@ -0,0 +1,182 @@ + + + + +WalletExtension (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletExtension

+
+
+
+
public interface WalletExtension
+

An object implementing this interface can be added to a Wallet and provide arbitrary byte arrays that will + be serialized alongside the wallet. Extensions can be mandatory, in which case applications that don't know how to + read the given data will refuse to load the wallet at all. Extensions identify themselves with a string ID that + should use a Java-style reverse DNS identifier to avoid being mixed up with other kinds of extension. To use an + extension, add an object that implements this interface to the wallet using Wallet.addExtension(WalletExtension) + before you load it (to read existing data) and ensure it's present when the wallet is save (to write the data).

+ +

Note that extensions are singletons - you cannot add two objects that provide the same ID to the same wallet.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    deserializeWalletExtension(Wallet containingWallet, + byte[] data)
    +
    +
    Loads the contents of this object from the wallet.
    +
    + + +
    +
    Returns a Java package/class style name used to disambiguate this extension from others.
    +
    +
    boolean
    + +
    +
    If this returns true, the mandatory flag is set when the wallet is serialized and attempts to load it without + the extension being in the wallet will throw an exception.
    +
    +
    byte[]
    + +
    +
    Returns bytes that will be saved in the wallet.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getWalletExtensionID

      +
      String getWalletExtensionID()
      +
      Returns a Java package/class style name used to disambiguate this extension from others.
      +
      +
    • +
    • +
      +

      isWalletExtensionMandatory

      +
      boolean isWalletExtensionMandatory()
      +
      If this returns true, the mandatory flag is set when the wallet is serialized and attempts to load it without + the extension being in the wallet will throw an exception. This method should not change its result during + the objects lifetime.
      +
      +
    • +
    • +
      +

      serializeWalletExtension

      +
      byte[] serializeWalletExtension()
      +
      Returns bytes that will be saved in the wallet.
      +
      +
    • +
    • +
      +

      deserializeWalletExtension

      +
      void deserializeWalletExtension(Wallet containingWallet, + byte[] data) + throws Exception
      +
      Loads the contents of this object from the wallet.
      +
      +
      Throws:
      +
      Exception
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.Listener.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.Listener.html new file mode 100644 index 000000000..df18485a4 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.Listener.html @@ -0,0 +1,147 @@ + + + + +WalletFiles.Listener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletFiles.Listener

+
+
+
+
Enclosing class:
+
WalletFiles
+
+
+
public static interface WalletFiles.Listener
+
Implementors can do pre/post treatment of the wallet file. Useful for adjusting permissions and other things.
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onAfterAutoSave(File newlySavedFile)
    +
    +
    Called on the auto-save thread after the newly created temporary file has been filled with data and renamed.
    +
    +
    void
    + +
    +
    Called on the auto-save thread when a new temporary file is created but before the wallet data is saved + to it.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onBeforeAutoSave

      +
      void onBeforeAutoSave(File tempFile)
      +
      Called on the auto-save thread when a new temporary file is created but before the wallet data is saved + to it. If you want to do something here like adjust permissions, go ahead and do so.
      +
      +
    • +
    • +
      +

      onAfterAutoSave

      +
      void onAfterAutoSave(File newlySavedFile)
      +
      Called on the auto-save thread after the newly created temporary file has been filled with data and renamed.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.html new file mode 100644 index 000000000..8b8c6490c --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletFiles.html @@ -0,0 +1,248 @@ + + + + +WalletFiles (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class WalletFiles

+
+
java.lang.Object +
org.bitcoinj.wallet.WalletFiles
+
+
+
+
public class WalletFiles +extends Object
+
A class that handles atomic and optionally delayed writing of the wallet file to disk. In future: backups too. + It can be useful to delay writing of a wallet file to disk on slow devices where disk and serialization overhead + can come to dominate the chain processing speed, i.e. on Android phones. By coalescing writes and doing serialization + and disk IO on a background thread performance can be improved.
+
+
+
    + +
  • +
    +

    Nested Class Summary

    +
    Nested Classes
    +
    +
    Modifier and Type
    +
    Class
    +
    Description
    +
    static interface 
    + +
    +
    Implementors can do pre/post treatment of the wallet file.
    +
    +
    +
    +
  • + +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    +
    WalletFiles(Wallet wallet, + File file, + long delay, + TimeUnit delayTimeUnit)
    +
    +
    Initialize atomic and optionally delayed writing of the wallet file to disk.
    +
    +
    +
    +
  • + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    Get the Wallet this WalletFiles is managing.
    +
    +
    void
    + +
    +
    Queues up a save in the background.
    +
    +
    void
    + +
    +
    Actually write the wallet file to disk, using an atomic rename when possible.
    +
    +
    void
    + +
    +
    The given listener will be called on the autosave thread before and after the wallet is saved to disk.
    +
    +
    void
    + +
    +
    Shut down auto-saving.
    +
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      WalletFiles

      +
      public WalletFiles(Wallet wallet, + File file, + long delay, + TimeUnit delayTimeUnit)
      +
      Initialize atomic and optionally delayed writing of the wallet file to disk. Note the initial wallet state isn't + saved automatically. The Wallet calls saveNow() or saveLater() as wallet state changes, + depending on the urgency of the changes.
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getWallet

      +
      public Wallet getWallet()
      +
      Get the Wallet this WalletFiles is managing.
      +
      +
    • +
    • +
      +

      setListener

      +
      public void setListener(@Nonnull + WalletFiles.Listener listener)
      +
      The given listener will be called on the autosave thread before and after the wallet is saved to disk.
      +
      +
    • +
    • +
      +

      saveNow

      +
      public void saveNow() + throws IOException
      +
      Actually write the wallet file to disk, using an atomic rename when possible. Runs on the current thread.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      saveLater

      +
      public void saveLater()
      +
      Queues up a save in the background. Useful for not very important wallet changes.
      +
      +
    • +
    • +
      +

      shutdownAndWait

      +
      public void shutdownAndWait()
      +
      Shut down auto-saving.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.WalletFactory.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.WalletFactory.html new file mode 100644 index 000000000..e60c04750 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.WalletFactory.html @@ -0,0 +1,131 @@ + + + + +WalletProtobufSerializer.WalletFactory (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletProtobufSerializer.WalletFactory

+
+
+
+
Enclosing class:
+
WalletProtobufSerializer
+
+
+
public static interface WalletProtobufSerializer.WalletFactory
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.html new file mode 100644 index 000000000..6f074a5bd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletProtobufSerializer.html @@ -0,0 +1,507 @@ + + + + +WalletProtobufSerializer (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class WalletProtobufSerializer

+
+
java.lang.Object +
org.bitcoinj.wallet.WalletProtobufSerializer
+
+
+
+
public class WalletProtobufSerializer +extends Object
+
Serialize and de-serialize a wallet to a byte stream containing a + protocol buffer. Protocol buffers are + a data interchange format developed by Google with an efficient binary representation, a type safe specification + language and compilers that generate code to work with those data structures for many languages. Protocol buffers + can have their format evolved over time: conceptually they represent data using (tag, length, value) tuples. The + format is defined by the wallet.proto file in the bitcoinj source distribution.

+ + This class is used through its static methods. The most common operations are writeWallet and readWallet, which do + the obvious operations on Output/InputStreams. You can use a ByteArrayInputStream and equivalent + ByteArrayOutputStream if you'd like byte arrays instead. The protocol buffer can also be manipulated + in its object form if you'd like to modify the flattened data structure before serialization to binary.

+ + You can extend the wallet format with additional fields specific to your application if you want, but make sure + to either put the extra data in the provided extension areas, or select tag numbers that are unlikely to be used + by anyone else.

+
+
+ +
+
+
    + +
  • +
    +

    Field Details

    +
      +
    • +
      +

      CURRENT_WALLET_VERSION

      +
      public static final int CURRENT_WALLET_VERSION
      +
      Current version used for serializing wallets. A version higher than this is considered from the future.
      +
      +
    • +
    • +
      +

      txMap

      +
      protected Map<com.google.protobuf.ByteString,Transaction> txMap
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Constructor Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      setKeyChainFactory

      +
      public void setKeyChainFactory(KeyChainFactory keyChainFactory)
      +
      +
    • +
    • +
      +

      setRequireMandatoryExtensions

      +
      public void setRequireMandatoryExtensions(boolean value)
      +
      If this property is set to false, then unknown mandatory extensions will be ignored instead of causing load + errors. You should only use this if you know exactly what you are doing, as the extension data will NOT be + round-tripped, possibly resulting in a corrupted wallet if you save it back out again.
      +
      +
    • +
    • +
      +

      setRequireAllExtensionsKnown

      +
      public void setRequireAllExtensionsKnown(boolean value)
      +
      If this property is set to true, the wallet will fail to load if any found extensions are unknown..
      +
      +
    • +
    • +
      +

      setWalletWriteBufferSize

      +
      public void setWalletWriteBufferSize(int walletWriteBufferSize)
      +
      Change buffer size for writing wallet to output stream. Default is CodedOutputStream.DEFAULT_BUFFER_SIZE
      +
      +
      Parameters:
      +
      walletWriteBufferSize - - buffer size in bytes
      +
      +
      +
    • +
    • +
      +

      writeWallet

      +
      public void writeWallet(Wallet wallet, + OutputStream output) + throws IOException
      +
      Formats the given wallet (transactions and keys) to the given output stream in protocol buffer format.

      + + Equivalent to walletToProto(wallet).writeTo(output);

      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      walletToText

      +
      public String walletToText(Wallet wallet)
      +
      Returns the given wallet formatted as text. The text format is that used by protocol buffers and + it is designed more for debugging than storage. It is not well specified and wallets are largely binary data + structures anyway, consisting as they do of keys (large random numbers) and Transactions which also + mostly contain keys and hashes.
      +
      +
    • +
    • +
      +

      walletToProto

      +
      public Protos.Wallet walletToProto(Wallet wallet)
      +
      Converts the given wallet to the object representation of the protocol buffers. This can be modified, or + additional data fields set, before serialization takes place.
      +
      +
    • +
    • +
      +

      hashToByteString

      +
      public static com.google.protobuf.ByteString hashToByteString(Sha256Hash hash)
      +
      +
    • +
    • +
      +

      byteStringToHash

      +
      public static Sha256Hash byteStringToHash(com.google.protobuf.ByteString bs)
      +
      +
    • +
    • +
      +

      readWallet

      +
      public Wallet readWallet(InputStream input, + @Nullable + WalletExtension... walletExtensions) + throws UnreadableWalletException
      +

      Loads wallet data from the given protocol buffer and inserts it into the given Wallet object. This is primarily + useful when you wish to pre-register extension objects. Note that if loading fails the provided Wallet object + may be in an indeterminate state and should be thrown away.

      + +

      A wallet can be unreadable for various reasons, such as inability to open the file, corrupt data, internally + inconsistent data, a wallet extension marked as mandatory that cannot be handled and so on. You should always + handle UnreadableWalletException and communicate failure to the user in an appropriate manner.

      +
      +
      Throws:
      +
      UnreadableWalletException - thrown in various error conditions (see description).
      +
      +
      +
    • +
    • +
      +

      readWallet

      +
      public Wallet readWallet(InputStream input, + boolean forceReset, + @Nullable + WalletExtension[] extensions) + throws UnreadableWalletException
      +

      Loads wallet data from the given protocol buffer and inserts it into the given Wallet object. This is primarily + useful when you wish to pre-register extension objects. Note that if loading fails the provided Wallet object + may be in an indeterminate state and should be thrown away. Do not simply call this method again on the same + Wallet object with forceReset set true. It won't work.

      + +

      If forceReset is true, then no transactions are loaded from the wallet, and it is configured + to replay transactions from the blockchain (as if the wallet had been loaded and Wallet.reset() + had been called immediately thereafter). + +

      A wallet can be unreadable for various reasons, such as inability to open the file, corrupt data, internally + inconsistent data, a wallet extension marked as mandatory that cannot be handled and so on. You should always + handle UnreadableWalletException and communicate failure to the user in an appropriate manner.

      +
      +
      Throws:
      +
      UnreadableWalletException - thrown in various error conditions (see description).
      +
      +
      +
    • +
    • +
      +

      readWallet

      +
      public Wallet readWallet(NetworkParameters params, + @Nullable + WalletExtension[] extensions, + Protos.Wallet walletProto) + throws UnreadableWalletException
      +

      Loads wallet data from the given protocol buffer and inserts it into the given Wallet object. This is primarily + useful when you wish to pre-register extension objects. Note that if loading fails the provided Wallet object + may be in an indeterminate state and should be thrown away.

      + +

      A wallet can be unreadable for various reasons, such as inability to open the file, corrupt data, internally + inconsistent data, a wallet extension marked as mandatory that cannot be handled and so on. You should always + handle UnreadableWalletException and communicate failure to the user in an appropriate manner.

      +
      +
      Throws:
      +
      UnreadableWalletException - thrown in various error conditions (see description).
      +
      +
      +
    • +
    • +
      +

      readWallet

      +
      public Wallet readWallet(NetworkParameters params, + @Nullable + WalletExtension[] extensions, + Protos.Wallet walletProto, + boolean forceReset) + throws UnreadableWalletException
      +

      Loads wallet data from the given protocol buffer and inserts it into the given Wallet object. This is primarily + useful when you wish to pre-register extension objects. Note that if loading fails the provided Wallet object + may be in an indeterminate state and should be thrown away. Do not simply call this method again on the same + Wallet object with forceReset set true. It won't work.

      + +

      If forceReset is true, then no transactions are loaded from the wallet, and it is configured + to replay transactions from the blockchain (as if the wallet had been loaded and Wallet.reset() + had been called immediately thereafter). + +

      A wallet can be unreadable for various reasons, such as inability to open the file, corrupt data, internally + inconsistent data, a wallet extension marked as mandatory that cannot be handled and so on. You should always + handle UnreadableWalletException and communicate failure to the user in an appropriate manner.

      +
      +
      Throws:
      +
      UnreadableWalletException - thrown in various error conditions (see description).
      +
      +
      +
    • +
    • +
      +

      parseToProto

      +
      public static Protos.Wallet parseToProto(InputStream input) + throws IOException
      +
      Returns the loaded protocol buffer from the given byte stream. You normally want + Wallet.loadFromFile(File, WalletExtension...) instead - this method is designed for low level + work involving the wallet file format itself.
      +
      +
      Throws:
      +
      IOException
      +
      +
      +
    • +
    • +
      +

      isWallet

      +
      public static boolean isWallet(InputStream is)
      +
      Cheap test to see if input stream is a wallet. This checks for a magic value at the beginning of the stream.
      +
      +
      Parameters:
      +
      is - input stream to test
      +
      Returns:
      +
      true if input stream is a wallet
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.Pool.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.Pool.html new file mode 100644 index 000000000..033f5eaf9 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.Pool.html @@ -0,0 +1,238 @@ + + + + +WalletTransaction.Pool (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Enum Class WalletTransaction.Pool

+
+
java.lang.Object +
java.lang.Enum<WalletTransaction.Pool> +
org.bitcoinj.wallet.WalletTransaction.Pool
+
+
+
+
+
All Implemented Interfaces:
+
Serializable, Comparable<WalletTransaction.Pool>, Constable
+
+
+
Enclosing class:
+
WalletTransaction
+
+
+
public static enum WalletTransaction.Pool +extends Enum<WalletTransaction.Pool>
+
+
+ +
+
+
    + +
  • +
    +

    Enum Constant Details

    + +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      values

      +
      public static WalletTransaction.Pool[] values()
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      Returns:
      +
      an array containing the constants of this enum class, in the order they are declared
      +
      +
      +
    • +
    • +
      +

      valueOf

      +
      public static WalletTransaction.Pool valueOf(String name)
      +
      Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
      +
      +
      Parameters:
      +
      name - the name of the enum constant to be returned.
      +
      Returns:
      +
      the enum constant with the specified name
      +
      Throws:
      +
      IllegalArgumentException - if this enum class has no constant with the specified name
      +
      NullPointerException - if the argument is null
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.html b/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.html new file mode 100644 index 000000000..3c58a04dc --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/WalletTransaction.html @@ -0,0 +1,186 @@ + + + + +WalletTransaction (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class WalletTransaction

+
+
java.lang.Object +
org.bitcoinj.wallet.WalletTransaction
+
+
+
+
public class WalletTransaction +extends Object
+
Stores data about a transaction that is only relevant to the Wallet class.
+
+
+ +
+
+ +
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/AbstractKeyChainEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/AbstractKeyChainEventListener.html new file mode 100644 index 000000000..f13710b9d --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/AbstractKeyChainEventListener.html @@ -0,0 +1,175 @@ + + + + +AbstractKeyChainEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AbstractKeyChainEventListener

+
+
java.lang.Object +
org.bitcoinj.wallet.listeners.AbstractKeyChainEventListener
+
+
+
+
All Implemented Interfaces:
+
KeyChainEventListener
+
+
+
public class AbstractKeyChainEventListener +extends Object +implements KeyChainEventListener
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      AbstractKeyChainEventListener

      +
      public AbstractKeyChainEventListener()
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onKeysAdded

      +
      public void onKeysAdded(List<ECKey> keys)
      +
      Description copied from interface: KeyChainEventListener
      +
      Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation. See the documentation for your KeyChain implementation for details on what + can trigger this event.
      +
      +
      Specified by:
      +
      onKeysAdded in interface KeyChainEventListener
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/CurrentKeyChangeEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/CurrentKeyChangeEventListener.html new file mode 100644 index 000000000..f473336b3 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/CurrentKeyChangeEventListener.html @@ -0,0 +1,128 @@ + + + + +CurrentKeyChangeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface CurrentKeyChangeEventListener

+
+
+
+
public interface CurrentKeyChangeEventListener
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called by KeyChainGroup whenever a current key and/or address changes.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onCurrentKeyChanged

      +
      void onCurrentKeyChanged()
      +
      Called by KeyChainGroup whenever a current key and/or address changes.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/KeyChainEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/KeyChainEventListener.html new file mode 100644 index 000000000..b1c2f12cd --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/KeyChainEventListener.html @@ -0,0 +1,135 @@ + + + + +KeyChainEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface KeyChainEventListener

+
+
+
+
All Known Implementing Classes:
+
AbstractKeyChainEventListener, NativeKeyChainEventListener
+
+
+
public interface KeyChainEventListener
+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onKeysAdded

      +
      void onKeysAdded(List<ECKey> keys)
      +
      Called whenever a new key is added to the key chain, whether that be via an explicit addition or due to some + other automatic derivation. See the documentation for your KeyChain implementation for details on what + can trigger this event.
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/ScriptsChangeEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/ScriptsChangeEventListener.html new file mode 100644 index 000000000..609587086 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/ScriptsChangeEventListener.html @@ -0,0 +1,142 @@ + + + + +ScriptsChangeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ScriptsChangeEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeScriptsChangeEventListener
+
+
+
public interface ScriptsChangeEventListener
+

Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onScriptsChanged(Wallet wallet, + List<Script> scripts, + boolean isAddingScripts)
    +
    +
    Called whenever a new watched script is added to the wallet.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onScriptsChanged

      +
      void onScriptsChanged(Wallet wallet, + List<Script> scripts, + boolean isAddingScripts)
      +
      Called whenever a new watched script is added to the wallet.
      +
      +
      Parameters:
      +
      isAddingScripts - will be true if added scripts, false if removed scripts.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletChangeEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletChangeEventListener.html new file mode 100644 index 000000000..24f479f21 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletChangeEventListener.html @@ -0,0 +1,149 @@ + + + + +WalletChangeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletChangeEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeWalletChangeEventListener
+
+
+
public interface WalletChangeEventListener
+

Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    Designed for GUI applications to refresh their transaction lists.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onWalletChanged

      +
      void onWalletChanged(Wallet wallet)
      +

      Designed for GUI applications to refresh their transaction lists. This callback is invoked in the following + situations:

      + +
        +
      1. A new block is received (and thus building transactions got more confidence)
      2. +
      3. A pending transaction is received
      4. +
      5. A pending transaction changes confidence due to some non-new-block related event, such as being + announced by more peers or by a double-spend conflict being observed.
      6. +
      7. A re-organize occurs. Call occurs only if the re-org modified any of our transactions.
      8. +
      9. A new spend is committed to the wallet.
      10. +
      11. The wallet is reset and all transactions removed.
      12. +
      + +

      When this is called you can refresh the UI contents from the wallet contents. It's more efficient to use + this rather than onTransactionConfidenceChanged() + onReorganize() because you only get one callback per block + rather than one per transaction per block. Note that this is not called when a key is added.

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsReceivedEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsReceivedEventListener.html new file mode 100644 index 000000000..55de6d717 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsReceivedEventListener.html @@ -0,0 +1,153 @@ + + + + +WalletCoinsReceivedEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletCoinsReceivedEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeWalletCoinsReceivedEventListener
+
+
+
public interface WalletCoinsReceivedEventListener
+

Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onCoinsReceived(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
    +
    +
    This is called when a transaction is seen that sends coins to this wallet, either because it + was broadcast across the network or because a block was received.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onCoinsReceived

      +
      void onCoinsReceived(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
      +
      This is called when a transaction is seen that sends coins to this wallet, either because it + was broadcast across the network or because a block was received. If a transaction is seen when it was broadcast, + onCoinsReceived won't be called again when a block containing it is received. If you want to know when such a + transaction receives its first confirmation, register a TransactionConfidence event listener using + the object retrieved via Transaction.getConfidence(). It's safe to modify the + wallet in this callback, for example, by spending the transaction just received.
      +
      +
      Parameters:
      +
      wallet - The wallet object that received the coins
      +
      tx - The transaction which sent us the coins.
      +
      prevBalance - Balance before the coins were received.
      +
      newBalance - Current balance of the wallet. This is the 'estimated' balance.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsSentEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsSentEventListener.html new file mode 100644 index 000000000..dc5de777b --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletCoinsSentEventListener.html @@ -0,0 +1,156 @@ + + + + +WalletCoinsSentEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletCoinsSentEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeWalletCoinsSentEventListener
+
+
+
public interface WalletCoinsSentEventListener
+

Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    +
    onCoinsSent(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
    +
    +
    This is called when a transaction is seen that sends coins from this wallet, either + because it was broadcast across the network or because a block was received.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onCoinsSent

      +
      void onCoinsSent(Wallet wallet, + Transaction tx, + Coin prevBalance, + Coin newBalance)
      +
      This is called when a transaction is seen that sends coins from this wallet, either + because it was broadcast across the network or because a block was received. This may at first glance seem + useless, because in the common case you already know about such transactions because you created them with + the Wallets createSend/sendCoins methods. However when you have a wallet containing only keys, and you wish + to replay the block chain to fill it with transactions, it's useful to find out when a transaction is discovered + that sends coins from the wallet.

      + + It's safe to modify the wallet from inside this callback, but if you're replaying the block chain you should + be careful to avoid such modifications. Otherwise your changes may be overridden by new data from the chain.

      +
      +
      Parameters:
      +
      wallet - The wallet object that this callback relates to (that sent the coins).
      +
      tx - The transaction that sent the coins to someone else.
      +
      prevBalance - The wallets balance before this transaction was seen.
      +
      newBalance - The wallets balance after this transaction was seen. This is the 'estimated' balance.
      +
      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletReorganizeEventListener.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletReorganizeEventListener.html new file mode 100644 index 000000000..2cbf8fac1 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/WalletReorganizeEventListener.html @@ -0,0 +1,140 @@ + + + + +WalletReorganizeEventListener (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface WalletReorganizeEventListener

+
+
+
+
All Known Implementing Classes:
+
NativeWalletReorganizeEventListener
+
+
+
public interface WalletReorganizeEventListener
+

Implementors are called when the wallet is reorganized.

+
+
+
    + +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    void
    + +
    +
    This is called when a block is received that triggers a block chain re-organization.
    +
    +
    +
    +
    +
    +
  • +
+
+
+
    + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      onReorganize

      +
      void onReorganize(Wallet wallet)
      +

      This is called when a block is received that triggers a block chain re-organization.

      + +

      A re-organize means that the consensus (chain) of the network has diverged and now changed from what we + believed it was previously. Usually this won't matter because the new consensus will include all our old + transactions assuming we are playing by the rules. However it's theoretically possible for our balance to + change in arbitrary ways, most likely, we could lose some money we thought we had.

      + +

      It is safe to use methods of wallet whilst inside this callback.

      +
      +
    • +
    +
    +
  • +
+
+ +
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-summary.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-summary.html new file mode 100644 index 000000000..15fa5bb76 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-summary.html @@ -0,0 +1,132 @@ + + + + +org.bitcoinj.wallet.listeners (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.wallet.listeners

+
+
+
package org.bitcoinj.wallet.listeners
+
+
    +
  • + +
  • +
  • +
    +
    +
    +
    +
    Class
    +
    Description
    + +
     
    + +
     
    + +
     
    + +
    +
    Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
    +
    + +
    +
    Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
    +
    + +
    +
    Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
    +
    + +
    +
    Implementors are called when the contents of the wallet changes, for instance due to receiving/sending money + or a block chain re-organize.
    +
    + +
    +
    Implementors are called when the wallet is reorganized.
    +
    +
    +
    +
    +
  • +
+
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-tree.html b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-tree.html new file mode 100644 index 000000000..22dbe7824 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/listeners/package-tree.html @@ -0,0 +1,84 @@ + + + + +org.bitcoinj.wallet.listeners Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.wallet.listeners

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/package-summary.html b/javadoc/0.16.3/org/bitcoinj/wallet/package-summary.html new file mode 100644 index 000000000..6b2092912 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/package-summary.html @@ -0,0 +1,541 @@ + + + + +org.bitcoinj.wallet (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package org.bitcoinj.wallet

+
+
+
package 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.
+
+
+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/org/bitcoinj/wallet/package-tree.html b/javadoc/0.16.3/org/bitcoinj/wallet/package-tree.html new file mode 100644 index 000000000..9dc2d09a6 --- /dev/null +++ b/javadoc/0.16.3/org/bitcoinj/wallet/package-tree.html @@ -0,0 +1,251 @@ + + + + +org.bitcoinj.wallet Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package org.bitcoinj.wallet

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/overview-summary.html b/javadoc/0.16.3/overview-summary.html new file mode 100644 index 000000000..9241db5ca --- /dev/null +++ b/javadoc/0.16.3/overview-summary.html @@ -0,0 +1,26 @@ + + + + +bitcoinj-core 0.16.3 API + + + + + + + + + + + +
+ +

index.html

+
+ + diff --git a/javadoc/0.16.3/overview-tree.html b/javadoc/0.16.3/overview-tree.html new file mode 100644 index 000000000..0cd9a305e --- /dev/null +++ b/javadoc/0.16.3/overview-tree.html @@ -0,0 +1,762 @@ + + + + +Class Hierarchy (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
+ +
+
+ +
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/javadoc/0.16.3/package-search-index.js b/javadoc/0.16.3/package-search-index.js new file mode 100644 index 000000000..dc29e4448 --- /dev/null +++ b/javadoc/0.16.3/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"org.bitcoin"},{"l":"org.bitcoin.crawler"},{"l":"org.bitcoin.protocols.payments"},{"l":"org.bitcoinj.core"},{"l":"org.bitcoinj.core.listeners"},{"l":"org.bitcoinj.crypto"},{"l":"org.bitcoinj.jni"},{"l":"org.bitcoinj.kits"},{"l":"org.bitcoinj.net"},{"l":"org.bitcoinj.net.discovery"},{"l":"org.bitcoinj.params"},{"l":"org.bitcoinj.protocols.payments"},{"l":"org.bitcoinj.script"},{"l":"org.bitcoinj.signers"},{"l":"org.bitcoinj.store"},{"l":"org.bitcoinj.uri"},{"l":"org.bitcoinj.utils"},{"l":"org.bitcoinj.wallet"},{"l":"org.bitcoinj.wallet.listeners"}];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/0.16.3/resources/glass.png b/javadoc/0.16.3/resources/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f591f467a1c0c949bbc510156a0c1afb860a6e GIT binary patch literal 499 zcmVJoRsvExf%rEN>jUL}qZ_~k#FbE+Q;{`;0FZwVNX2n-^JoI; zP;4#$8DIy*Yk-P>VN(DUKmPse7mx+ExD4O|;?E5D0Z5($mjO3`*anwQU^s{ZDK#Lz zj>~{qyaIx5K!t%=G&2IJNzg!ChRpyLkO7}Ry!QaotAHAMpbB3AF(}|_f!G-oI|uK6 z`id_dumai5K%C3Y$;tKS_iqMPHg<*|-@e`liWLAggVM!zAP#@l;=c>S03;{#04Z~5 zN_+ss=Yg6*hTr59mzMwZ@+l~q!+?ft!fF66AXT#wWavHt30bZWFCK%!BNk}LN?0Hg z1VF_nfs`Lm^DjYZ1(1uD0u4CSIr)XAaqW6IT{!St5~1{i=i}zAy76p%_|w8rh@@c0Axr!ns=D-X+|*sY6!@wacG9%)Qn*O zl0sa739kT-&_?#oVxXF6tOnqTD)cZ}2vi$`ZU8RLAlo8=_z#*P3xI~i!lEh+Pdu-L zx{d*wgjtXbnGX_Yf@Tc7Q3YhLhPvc8noGJs2DA~1DySiA&6V{5JzFt ojAY1KXm~va;tU{v7C?Xj0BHw!K;2aXV*mgE07*qoM6N<$f;4TDA^-pY literal 0 HcmV?d00001 diff --git a/javadoc/0.16.3/script-dir/jquery-3.6.1.min.js b/javadoc/0.16.3/script-dir/jquery-3.6.1.min.js new file mode 100644 index 000000000..2c69bc908 --- /dev/null +++ b/javadoc/0.16.3/script-dir/jquery-3.6.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("
    ").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("
    ").text(i))},100))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("
    ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(x("
    ").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e))},100))}});x.ui.autocomplete}); \ No newline at end of file diff --git a/javadoc/0.16.3/script.js b/javadoc/0.16.3/script.js new file mode 100644 index 000000000..864989cf4 --- /dev/null +++ b/javadoc/0.16.3/script.js @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'search.js'); + + createElem(doc, tag, 'module-search-index.js'); + createElem(doc, tag, 'package-search-index.js'); + createElem(doc, tag, 'type-search-index.js'); + createElem(doc, tag, 'member-search-index.js'); + createElem(doc, tag, 'tag-search-index.js'); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(tableId, selected, columns) { + if (tableId !== selected) { + document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')') + .forEach(function(elem) { + elem.style.display = 'none'; + }); + } + document.querySelectorAll('div.' + selected) + .forEach(function(elem, index) { + elem.style.display = ''; + var isEvenRow = index % (columns * 2) < columns; + elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor); + elem.classList.add(isEvenRow ? evenRowColor : oddRowColor); + }); + updateTabs(tableId, selected); +} + +function updateTabs(tableId, selected) { + document.querySelector('div#' + tableId +' .summary-table') + .setAttribute('aria-labelledby', selected); + document.querySelectorAll('button[id^="' + tableId + '"]') + .forEach(function(tab, index) { + if (selected === tab.id || (tableId === selected && index === 0)) { + tab.className = activeTableTab; + tab.setAttribute('aria-selected', true); + tab.setAttribute('tabindex',0); + } else { + tab.className = tableTab; + tab.setAttribute('aria-selected', false); + tab.setAttribute('tabindex',-1); + } + }); +} + +function switchTab(e) { + var selected = document.querySelector('[aria-selected=true]'); + if (selected) { + if ((e.keyCode === 37 || e.keyCode === 38) && selected.previousSibling) { + // left or up arrow key pressed: move focus to previous tab + selected.previousSibling.click(); + selected.previousSibling.focus(); + e.preventDefault(); + } else if ((e.keyCode === 39 || e.keyCode === 40) && selected.nextSibling) { + // right or down arrow key pressed: move focus to next tab + selected.nextSibling.click(); + selected.nextSibling.focus(); + e.preventDefault(); + } + } +} + +var updateSearchResults = function() {}; + +function indexFilesLoaded() { + return moduleSearchIndex + && packageSearchIndex + && typeSearchIndex + && memberSearchIndex + && tagSearchIndex; +} + +// Workaround for scroll position not being included in browser history (8249133) +document.addEventListener("DOMContentLoaded", function(e) { + var contentDiv = document.querySelector("div.flex-content"); + window.addEventListener("popstate", function(e) { + if (e.state !== null) { + contentDiv.scrollTop = e.state; + } + }); + window.addEventListener("hashchange", function(e) { + history.replaceState(contentDiv.scrollTop, document.title); + }); + contentDiv.addEventListener("scroll", function(e) { + var timeoutID; + if (!timeoutID) { + timeoutID = setTimeout(function() { + history.replaceState(contentDiv.scrollTop, document.title); + timeoutID = null; + }, 100); + } + }); + if (!location.hash) { + history.replaceState(contentDiv.scrollTop, document.title); + } +}); diff --git a/javadoc/0.16.3/search.js b/javadoc/0.16.3/search.js new file mode 100644 index 000000000..db3b2f4a6 --- /dev/null +++ b/javadoc/0.16.3/search.js @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var noResult = {l: "No results found"}; +var loading = {l: "Loading search index..."}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Classes and Interfaces"; +var catMembers = "Members"; +var catSearchTags = "Search Tags"; +var highlight = "$&"; +var searchPattern = ""; +var fallbackPattern = ""; +var RANKING_THRESHOLD = 2; +var NO_MATCH = 0xffff; +var MIN_RESULTS = 3; +var MAX_RESULTS = 500; +var UNNAMED = ""; +function escapeHtml(str) { + return str.replace(//g, ">"); +} +function getHighlightedText(item, matcher, fallbackMatcher) { + var escapedItem = escapeHtml(item); + var highlighted = escapedItem.replace(matcher, highlight); + if (highlighted === escapedItem) { + highlighted = escapedItem.replace(fallbackMatcher, highlight) + } + return highlighted; +} +function getURLPrefix(ui) { + var urlPrefix=""; + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if (ui.item.category === catTypes || ui.item.category === catMembers) { + if (ui.item.m) { + urlPrefix = ui.item.m + slash; + } else { + $.each(packageSearchIndex, function(index, item) { + if (item.m && ui.item.p === item.l) { + urlPrefix = item.m + slash; + } + }); + } + } + return urlPrefix; +} +function createSearchPattern(term) { + var pattern = ""; + var isWordToken = false; + term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { + if (index > 0) { + // whitespace between identifiers is significant + pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; + } + var tokens = w.split(/(?=[A-Z,.()<>[\/])/); + for (var i = 0; i < tokens.length; i++) { + var s = tokens[i]; + if (s === "") { + continue; + } + pattern += $.ui.autocomplete.escapeRegex(s); + isWordToken = /\w$/.test(s); + if (isWordToken) { + pattern += "([a-z0-9_$<>\\[\\]]*?)"; + } + } + }); + return pattern; +} +function createMatcher(pattern, flags) { + var isCamelCase = /[A-Z]/.test(pattern); + return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); +} +var watermark = 'Search'; +$(function() { + var search = $("#search-input"); + var reset = $("#reset-button"); + search.val(''); + search.prop("disabled", false); + reset.prop("disabled", false); + search.val(watermark).addClass('watermark'); + search.blur(function() { + if ($(this).val().length === 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + search.on('click keydown paste', function() { + if ($(this).val() === watermark) { + $(this).val('').removeClass('watermark'); + } + }); + reset.click(function() { + search.val('').focus(); + }); + search.focus()[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this; + var currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.category && item.category !== currentCategory) { + ul.append("
  • " + item.category + "
  • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "result-item"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "result-item"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + var matcher = createMatcher(escapeHtml(searchPattern), "g"); + var fallbackMatcher = new RegExp(fallbackPattern, "gi") + if (item.category === catModules) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catPackages) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catTypes) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catMembers) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.c + "." + item.l, matcher, fallbackMatcher); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else { + label = item.l; + } + var li = $("
  • ").appendTo(ul); + var div = $("
    ").appendTo(li); + if (item.category === catSearchTags && item.h) { + if (item.d) { + div.html(label + " (" + item.h + ")
    " + + item.d + "
    "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + if (item.m) { + div.html(item.m + "/" + label); + } else { + div.html(label); + } + } + return li; + } +}); +function rankMatch(match, category) { + if (!match) { + return NO_MATCH; + } + var index = match.index; + var input = match.input; + var leftBoundaryMatch = 2; + var periferalMatch = 0; + // make sure match is anchored on a left word boundary + if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) { + leftBoundaryMatch = 0; + } else if ("_" === input[index - 1] || (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) { + leftBoundaryMatch = 1; + } + var matchEnd = index + match[0].length; + var leftParen = input.indexOf("("); + var endOfName = leftParen > -1 ? leftParen : input.length; + // exclude peripheral matches + if (category !== catModules && category !== catSearchTags) { + var delim = category === catPackages ? "/" : "."; + if (leftParen > -1 && leftParen < index) { + periferalMatch += 2; + } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { + periferalMatch += 2; + } + } + var delta = match[0].length === endOfName ? 0 : 1; // rank full match higher than partial match + for (var i = 1; i < match.length; i++) { + // lower ranking if parts of the name are missing + if (match[i]) + delta += match[i].length; + } + if (category === catTypes) { + // lower ranking if a type name contains unmatched camel-case parts + if (/[A-Z]/.test(input.substring(matchEnd))) + delta += 5; + if (/[A-Z]/.test(input.substring(0, index))) + delta += 5; + } + return leftBoundaryMatch + periferalMatch + (delta / 200); + +} +function doSearch(request, response) { + var result = []; + searchPattern = createSearchPattern(request.term); + fallbackPattern = createSearchPattern(request.term.toLowerCase()); + if (searchPattern === "") { + return this.close(); + } + var camelCaseMatcher = createMatcher(searchPattern, ""); + var fallbackMatcher = new RegExp(fallbackPattern, "i"); + + function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) { + if (indexArray) { + var newResults = []; + $.each(indexArray, function (i, item) { + item.category = category; + var ranking = rankMatch(matcher.exec(nameFunc(item)), category); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ranking: ranking, item: item}); + } + return newResults.length <= MAX_RESULTS; + }); + return newResults.sort(function(e1, e2) { + return e1.ranking - e2.ranking; + }).map(function(e) { + return e.item; + }); + } + return []; + } + function searchIndex(indexArray, category, nameFunc) { + var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); + result = result.concat(primaryResults); + if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { + var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); + result = result.concat(secondaryResults.filter(function (item) { + return primaryResults.indexOf(item) === -1; + })); + } + } + + searchIndex(moduleSearchIndex, catModules, function(item) { return item.l; }); + searchIndex(packageSearchIndex, catPackages, function(item) { + return (item.m && request.term.indexOf("/") > -1) + ? (item.m + "/" + item.l) : item.l; + }); + searchIndex(typeSearchIndex, catTypes, function(item) { + return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l; + }); + searchIndex(memberSearchIndex, catMembers, function(item) { + return request.term.indexOf(".") > -1 + ? item.p + "." + item.c + "." + item.l : item.l; + }); + searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l; }); + + if (!indexFilesLoaded()) { + updateSearchResults = function() { + doSearch(request, response); + } + result.unshift(loading); + } else { + updateSearchResults = function() {}; + } + response(result); +} +$(function() { + $("#search-input").catcomplete({ + minLength: 1, + delay: 300, + source: doSearch, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search-input").empty(); + } + }, + autoFocus: true, + focus: function(event, ui) { + return false; + }, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.category) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + url += "module-summary.html"; + } else if (ui.item.category === catPackages) { + if (ui.item.u) { + url = ui.item.u; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.u) { + url = ui.item.u; + } else if (ui.item.p === UNNAMED) { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === UNNAMED) { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.u) { + url += ui.item.u; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search-input").focus(); + } + } + }); +}); diff --git a/javadoc/0.16.3/serialized-form.html b/javadoc/0.16.3/serialized-form.html new file mode 100644 index 000000000..7b10804e6 --- /dev/null +++ b/javadoc/0.16.3/serialized-form.html @@ -0,0 +1,1009 @@ + + + + +Serialized Form (bitcoinj-core 0.16.3 API) + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Serialized Form

    +
    + +
    +
    +
    + + diff --git a/javadoc/0.16.3/stylesheet.css b/javadoc/0.16.3/stylesheet.css new file mode 100644 index 000000000..4a576bd24 --- /dev/null +++ b/javadoc/0.16.3/stylesheet.css @@ -0,0 +1,869 @@ +/* + * Javadoc style sheet + */ + +@import url('resources/fonts/dejavu.css'); + +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:#bb7a2a; +} +a[name] { + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; +} +h4 { + font-size:15px; +} +h5 { + font-size:14px; +} +h6 { + font-size:13px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; +} +:not(h1, h2, h3, h4, h5, h6) > code, +:not(h1, h2, h3, h4, h5, h6) > tt { + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +.summary-table dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +button { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size: 14px; +} +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + +/* + * Styles for document title and copyright. + */ +.clear { + clear:both; + height:0; + overflow:hidden; +} +.about-language { + float:right; + padding:0 21px 8px 8px; + font-size:11px; + margin-top:-9px; + height:2.9em; +} +.legal-copy { + margin-left:.5em; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* + * Styles for navigation bar. + */ +@media screen { + .flex-box { + position:fixed; + display:flex; + flex-direction:column; + height: 100%; + width: 100%; + } + .flex-header { + flex: 0 0 auto; + } + .flex-content { + flex: 1 1 auto; + overflow-y: auto; + } +} +.top-nav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + min-height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.sub-nav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.sub-nav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list { + padding-top:5px; +} +ul.nav-list { + display:block; + margin:0 25px 0 0; + padding:0; +} +ul.sub-nav-list { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.nav-list li { + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list-search { + float:right; + margin:0 0 0 0; + padding:5px 6px; + clear:none; +} +.nav-list-search label { + position:relative; + right:-16px; +} +ul.sub-nav-list li { + list-style:none; + float:left; + padding-top:10px; +} +.top-nav a:link, .top-nav a:active, .top-nav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.top-nav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.nav-bar-cell1-rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skip-nav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Hide navigation links and search box in print layout + */ +@media print { + ul.nav-list, div.sub-nav { + display:none; + } +} +/* + * Styles for page header and footer. + */ +.title { + color:#2c4557; + margin:10px 0; +} +.sub-title { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* + * Styles for headings. + */ +body.class-declaration-page .summary h2, +body.class-declaration-page .details h2, +body.class-use-page h2, +body.module-declaration-page .block-list h2 { + font-style: italic; + padding:0; + margin:15px 0; +} +body.class-declaration-page .summary h3, +body.class-declaration-page .details h3, +body.class-declaration-page .summary .inherited-list h2 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +/* + * Styles for page layout containers. + */ +main { + clear:both; + padding:10px 20px; + position:relative; +} +dl.notes > dt { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +dl.notes > dd { + margin:5px 10px 10px 0; + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +dl.name-value > dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +dl.name-value > dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +div.inheritance { + margin:0; + padding:0; +} +div.inheritance div.inheritance { + margin-left:2em; +} +ul.block-list, +ul.details-list, +ul.member-list, +ul.summary-list { + margin:10px 0 10px 0; + padding:0; +} +ul.block-list > li, +ul.details-list > li, +ul.member-list > li, +ul.summary-list > li { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +.summary-table dl, .summary-table dl dt, .summary-table dl dd { + margin-top:0; + margin-bottom:1px; +} +ul.see-list, ul.see-list-long { + padding-left: 0; + list-style: none; +} +ul.see-list li { + display: inline; +} +ul.see-list li:not(:last-child):after, +ul.see-list-long li:not(:last-child):after { + content: ", "; + white-space: pre-wrap; +} +/* + * Styles for tables. + */ +.summary-table, .details-table { + width:100%; + border-spacing:0; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; + padding:0; +} +.caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0; + padding-top:10px; + padding-left:1px; + margin:0; + white-space:pre; +} +.caption a:link, .caption a:visited { + color:#1f389c; +} +.caption a:hover, +.caption a:active { + color:#FFFFFF; +} +.caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +div.table-tabs { + padding:10px 0 0 1px; + margin:0; +} +div.table-tabs > button { + border: none; + cursor: pointer; + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 3px; +} +div.table-tabs > button.active-table-tab { + background: #F8981D; + color: #253441; +} +div.table-tabs > button.table-tab { + background: #4D7A97; + color: #FFFFFF; +} +.two-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); +} +.three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto); +} +.four-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto); +} +@media screen and (max-width: 600px) { + .two-column-summary { + display: grid; + grid-template-columns: 1fr; + } +} +@media screen and (max-width: 800px) { + .three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(25%, auto); + } + .three-column-summary .col-last { + grid-column-end: span 2; + } +} +@media screen and (max-width: 1000px) { + .four-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); + } +} +.summary-table > div, .details-table > div { + text-align:left; + padding: 8px 3px 3px 7px; +} +.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { + vertical-align:top; + padding-right:0; + padding-top:8px; + padding-bottom:3px; +} +.table-header { + background:#dee3e9; + font-weight: bold; +} +.col-first, .col-first { + font-size:13px; +} +.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { + font-size:13px; +} +.col-first, .col-second, .col-constructor-name { + vertical-align:top; + overflow: auto; +} +.col-last { + white-space:normal; +} +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-constructor-name a:link, .col-constructor-name a:visited, +.col-summary-item-name a:link, .col-summary-item-name a:visited, +.constant-values-container a:link, .constant-values-container a:visited, +.all-classes-container a:link, .all-classes-container a:visited, +.all-packages-container a:link, .all-packages-container a:visited { + font-weight:bold; +} +.table-sub-heading-color { + background-color:#EEEEFF; +} +.even-row-color, .even-row-color .table-header { + background-color:#FFFFFF; +} +.odd-row-color, .odd-row-color .table-header { + background-color:#EEEEEF; +} +/* + * Styles for contents. + */ +.deprecated-content { + margin:0; + padding:10px 0; +} +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +.col-last div { + padding-top:0; +} +.col-last a { + padding-bottom:3px; +} +.module-signature, +.package-signature, +.type-signature, +.member-signature { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + margin:14px 0; + white-space: pre-wrap; +} +.module-signature, +.package-signature, +.type-signature { + margin-top: 0; +} +.member-signature .type-parameters-long, +.member-signature .parameters, +.member-signature .exceptions { + display: inline-block; + vertical-align: top; + white-space: pre; +} +.member-signature .type-parameters { + white-space: normal; +} +/* + * Styles for formatting effect. + */ +.source-line-no { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:0 10px 5px 0; + color:#474747; +} +.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { + font-weight:bold; +} +.deprecation-comment, .help-footnote, .preview-comment { + font-style:italic; +} +.deprecation-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +.preview-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment { + font-style:normal; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#4D7A97; + color:#FFFFFF; +} +.result-item { + font-size:13px; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; + background-color: #FFFFFF; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.result-highlight { + font-weight:bold; +} +.ui-autocomplete .result-item { + font-size: inherit; +} +#search-input { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; + width:400px; +} +#reset-button { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:16px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.search-tag-desc-result { + font-style:italic; + font-size:11px; +} +.search-tag-holder-result { + font-style:italic; + font-size:12px; +} +.search-tag-result:target { + background-color:yellow; +} +.module-graph span { + display:none; + position:absolute; +} +.module-graph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.inherited-list { + margin: 10px 0 10px 0; +} +section.class-description { + line-height: 1.4; +} +.summary section[class$="-summary"], .details section[class$="-details"], +.class-uses .detail, .serialized-class-details { + padding: 0px 20px 5px 10px; + border: 1px solid #ededed; + background-color: #f8f8f8; +} +.inherited-list, section[class$="-details"] .detail { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +.vertical-separator { + padding: 0 5px; +} +ul.help-section-list { + margin: 0; +} +ul.help-subtoc > li { + display: inline-block; + padding-right: 5px; + font-size: smaller; +} +ul.help-subtoc > li::before { + content: "\2022" ; + padding-right:2px; +} +span.help-note { + font-style: italic; +} +/* + * Indicator icon for external links. + */ +main a[href*="://"]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + background-size:100% 100%; + width:7px; + height:7px; + margin-left:2px; + margin-bottom:4px; +} +main a[href*="://"]:hover::after, +main a[href*="://"]:focus::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} + +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} +/** + * Tweak font sizes and paddings for small screens. + */ +@media screen and (max-width: 1050px) { + #search-input { + width: 300px; + } +} +@media screen and (max-width: 800px) { + #search-input { + width: 200px; + } + .top-nav, + .bottom-nav { + font-size: 11px; + padding-top: 6px; + } + .sub-nav { + font-size: 11px; + } + .about-language { + padding-right: 16px; + } + ul.nav-list li, + .sub-nav .nav-list-search { + padding: 6px; + } + ul.sub-nav-list li { + padding-top: 5px; + } + main { + padding: 10px; + } + .summary section[class$="-summary"], .details section[class$="-details"], + .class-uses .detail, .serialized-class-details { + padding: 0 8px 5px 8px; + } + body { + -webkit-text-size-adjust: none; + } +} +@media screen and (max-width: 500px) { + #search-input { + width: 150px; + } + .top-nav, + .bottom-nav { + font-size: 10px; + } + .sub-nav { + font-size: 10px; + } + .about-language { + font-size: 10px; + padding-right: 12px; + } +} diff --git a/javadoc/0.16.3/tag-search-index.js b/javadoc/0.16.3/tag-search-index.js new file mode 100644 index 000000000..bf10aaf6d --- /dev/null +++ b/javadoc/0.16.3/tag-search-index.js @@ -0,0 +1 @@ +tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"},{"l":"Serialized Form","h":"","u":"serialized-form.html"}];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/0.16.3/type-search-index.js b/javadoc/0.16.3/type-search-index.js new file mode 100644 index 000000000..48fb492f4 --- /dev/null +++ b/javadoc/0.16.3/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"p":"org.bitcoinj.params","l":"AbstractBitcoinNetParams"},{"p":"org.bitcoinj.core","l":"AbstractBlockChain"},{"p":"org.bitcoinj.wallet.listeners","l":"AbstractKeyChainEventListener"},{"p":"org.bitcoinj.core.listeners","l":"AbstractPeerDataEventListener"},{"p":"org.bitcoinj.net","l":"AbstractTimeoutHandler"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocol.Ack"},{"p":"org.bitcoinj.core","l":"Address"},{"p":"org.bitcoinj.core","l":"AddressFormatException"},{"p":"org.bitcoinj.core","l":"AddressMessage"},{"p":"org.bitcoinj.core","l":"AddressV1Message"},{"p":"org.bitcoinj.core","l":"AddressV2Message"},{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"org.bitcoinj.wallet","l":"AllowUnconfirmedCoinSelector"},{"p":"org.bitcoinj.wallet","l":"AllRandomKeysRotating"},{"p":"org.bitcoinj.wallet","l":"DefaultRiskAnalysis.Analyzer"},{"p":"org.bitcoinj.wallet","l":"RiskAnalysis.Analyzer"},{"p":"org.bitcoinj.utils","l":"AppDataDirectory"},{"p":"org.bitcoin","l":"NativeSecp256k1Util.AssertFailException"},{"p":"org.bitcoinj.crypto","l":"BIP38PrivateKey.BadPassphraseException"},{"p":"org.bitcoinj.wallet","l":"UnreadableWalletException.BadPassword"},{"p":"org.bitcoinj.wallet","l":"Wallet.BadWalletEncryptionKeyException"},{"p":"org.bitcoinj.wallet","l":"Wallet.BalanceType"},{"p":"org.bitcoinj.core","l":"Base58"},{"p":"org.bitcoinj.utils","l":"BaseTaggableObject"},{"p":"org.bitcoinj.wallet","l":"BasicKeyChain"},{"p":"org.bitcoinj.core","l":"Bech32"},{"p":"org.bitcoinj.core","l":"Bech32.Bech32Data"},{"p":"org.bitcoinj.crypto","l":"BIP38PrivateKey"},{"p":"org.bitcoinj.core","l":"BitcoinSerializer.BitcoinPacketHeader"},{"p":"org.bitcoinj.core","l":"BitcoinSerializer"},{"p":"org.bitcoinj.uri","l":"BitcoinURI"},{"p":"org.bitcoinj.uri","l":"BitcoinURIParseException"},{"p":"org.bitcoinj.core","l":"Block"},{"p":"org.bitcoinj.core","l":"BlockChain"},{"p":"org.bitcoinj.utils","l":"BlockFileLoader"},{"p":"org.bitcoinj.net","l":"BlockingClient"},{"p":"org.bitcoinj.net","l":"BlockingClientManager"},{"p":"org.bitcoinj.core","l":"BlockLocator"},{"p":"org.bitcoinj.core.listeners","l":"BlocksDownloadedEventListener"},{"p":"org.bitcoinj.store","l":"BlockStore"},{"p":"org.bitcoinj.store","l":"BlockStoreException"},{"p":"org.bitcoinj.core","l":"VerificationException.BlockVersionOutOfDate"},{"p":"org.bitcoinj.core","l":"BloomFilter"},{"p":"org.bitcoinj.core","l":"BloomFilter.BloomUpdate"},{"p":"org.bitcoinj.utils","l":"BriefLogFormatter"},{"p":"org.bitcoinj.utils","l":"BtcAutoFormat"},{"p":"org.bitcoinj.utils","l":"BtcFixedFormat"},{"p":"org.bitcoinj.utils","l":"BtcFormat"},{"p":"org.bitcoinj.utils","l":"BtcFormat.Builder"},{"p":"org.bitcoinj.wallet","l":"DeterministicKeyChain.Builder"},{"p":"org.bitcoinj.wallet","l":"KeyChainGroup.Builder"},{"p":"org.bitcoinj.wallet","l":"MarriedKeyChain.Builder"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeedData.Builder"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeeds.Builder"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.SignedPeerSeeds.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.DeterministicKey.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.EncryptedData.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.ExchangeRate.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Extension.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Key.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.Output.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.Payment.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentACK.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentDetails.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentRequest.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.PeerAddress.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Script.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.ScriptWitness.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.ScryptParameters.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Tag.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Transaction.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionConfidence.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionInput.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionOutput.Builder"},{"p":"org.bitcoinj.wallet","l":"Protos.Wallet.Builder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.X509Certificates.Builder"},{"p":"org.bitcoinj.core.listeners","l":"ChainDownloadStartedEventListener"},{"p":"org.bitcoinj.store","l":"ChainFileLockedException"},{"p":"org.bitcoinj.core","l":"TransactionConfidence.Listener.ChangeReason"},{"p":"org.bitcoinj.core","l":"CheckpointManager"},{"p":"org.bitcoinj.core","l":"ChildMessage"},{"p":"org.bitcoinj.crypto","l":"ChildNumber"},{"p":"org.bitcoinj.net","l":"ClientConnectionManager"},{"p":"org.bitcoinj.core","l":"Coin"},{"p":"org.bitcoinj.core","l":"VerificationException.CoinbaseHeightMismatch"},{"p":"org.bitcoinj.core","l":"VerificationException.CoinbaseScriptSizeOutOfRange"},{"p":"org.bitcoinj.wallet","l":"CoinSelection"},{"p":"org.bitcoinj.wallet","l":"CoinSelector"},{"p":"org.bitcoinj.wallet","l":"Wallet.CompletionException"},{"p":"org.bitcoinj.core","l":"TransactionConfidence.ConfidenceType"},{"p":"org.bitcoinj.core","l":"TransactionInput.ConnectionResult"},{"p":"org.bitcoinj.core","l":"TransactionInput.ConnectMode"},{"p":"org.bitcoinj.core","l":"Context"},{"p":"org.bitcoinj.utils","l":"ContextPropagatingThreadFactory"},{"p":"org.bitcoinj.wallet","l":"Wallet.CouldNotAdjustDownwards"},{"p":"org.bitcoinj.wallet.listeners","l":"CurrentKeyChangeEventListener"},{"p":"org.bitcoinj.signers","l":"CustomTransactionSigner"},{"p":"org.bitcoinj.utils","l":"DaemonThreadFactory"},{"p":"org.bitcoinj.store","l":"DatabaseFullPrunedBlockStore"},{"p":"org.bitcoinj.wallet","l":"DecryptingKeyBag"},{"p":"org.bitcoinj.wallet","l":"DefaultCoinSelector"},{"p":"org.bitcoinj.wallet","l":"DefaultKeyChainFactory"},{"p":"org.bitcoinj.wallet","l":"DefaultRiskAnalysis"},{"p":"org.bitcoinj.crypto","l":"TrustStoreLoader.DefaultTrustStoreLoader"},{"p":"org.bitcoinj.net.discovery","l":"HttpDiscovery.Details"},{"p":"org.bitcoinj.crypto","l":"DeterministicHierarchy"},{"p":"org.bitcoinj.crypto","l":"DeterministicKey"},{"p":"org.bitcoinj.wallet","l":"Protos.DeterministicKey"},{"p":"org.bitcoinj.wallet","l":"DeterministicKeyChain"},{"p":"org.bitcoinj.wallet","l":"Protos.DeterministicKeyOrBuilder"},{"p":"org.bitcoinj.wallet","l":"DeterministicSeed"},{"p":"org.bitcoinj.wallet","l":"DeterministicUpgradeRequiredException"},{"p":"org.bitcoinj.wallet","l":"DeterministicUpgradeRequiresPassword"},{"p":"org.bitcoinj.net.discovery","l":"DnsDiscovery"},{"p":"org.bitcoinj.net.discovery","l":"DnsDiscovery.DnsSeedDiscovery"},{"p":"org.bitcoinj.core.listeners","l":"DownloadProgressTracker"},{"p":"org.bitcoinj.crypto","l":"DRMWorkaround"},{"p":"org.bitcoinj.core","l":"DumpedPrivateKey"},{"p":"org.bitcoinj.core","l":"VerificationException.DuplicatedOutPoint"},{"p":"org.bitcoinj.wallet","l":"Wallet.DustySendRequested"},{"p":"org.bitcoinj.core","l":"ECKey.ECDSASignature"},{"p":"org.bitcoinj.core","l":"ECKey"},{"p":"org.bitcoinj.core","l":"VerificationException.EmptyInputsOrOutputs"},{"p":"org.bitcoinj.core","l":"EmptyMessage"},{"p":"org.bitcoinj.core","l":"Bech32.Encoding"},{"p":"org.bitcoinj.crypto","l":"EncryptableItem"},{"p":"org.bitcoinj.wallet","l":"EncryptableKeyChain"},{"p":"org.bitcoinj.crypto","l":"EncryptedData"},{"p":"org.bitcoinj.wallet","l":"Protos.EncryptedData"},{"p":"org.bitcoinj.wallet","l":"Protos.EncryptedDataOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.Wallet.EncryptionType"},{"p":"org.bitcoinj.wallet","l":"Wallet.ExceededMaxTransactionSize"},{"p":"org.bitcoinj.core","l":"VerificationException.ExcessiveValue"},{"p":"org.bitcoinj.utils","l":"ExchangeRate"},{"p":"org.bitcoinj.wallet","l":"Protos.ExchangeRate"},{"p":"org.bitcoinj.wallet","l":"Protos.ExchangeRateOrBuilder"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.Expired"},{"p":"org.bitcoinj.utils","l":"ExponentialBackoff"},{"p":"org.bitcoinj.wallet","l":"Protos.Extension"},{"p":"org.bitcoinj.wallet","l":"Protos.ExtensionOrBuilder"},{"p":"org.bitcoinj.core","l":"TransactionConfidence.Factory"},{"p":"org.bitcoinj.core","l":"FeeFilterMessage"},{"p":"org.bitcoinj.utils","l":"Fiat"},{"p":"org.bitcoinj.crypto","l":"TrustStoreLoader.FileTrustStoreLoader"},{"p":"org.bitcoinj.core","l":"FilteredBlock"},{"p":"org.bitcoinj.wallet","l":"FilteringCoinSelector"},{"p":"org.bitcoinj.net","l":"FilterMerger"},{"p":"org.bitcoinj.core","l":"PeerGroup.FilterRecalculateMode"},{"p":"org.bitcoinj.core","l":"FullPrunedBlockChain"},{"p":"org.bitcoinj.store","l":"FullPrunedBlockStore"},{"p":"org.bitcoinj.wallet","l":"UnreadableWalletException.FutureVersion"},{"p":"org.bitcoinj.core","l":"GetAddrMessage"},{"p":"org.bitcoinj.core","l":"GetBlocksMessage"},{"p":"org.bitcoinj.core.listeners","l":"GetDataEventListener"},{"p":"org.bitcoinj.core","l":"GetDataMessage"},{"p":"org.bitcoinj.core","l":"GetHeadersMessage"},{"p":"org.bitcoinj.core","l":"GetUTXOsMessage"},{"p":"org.bitcoinj.store","l":"H2FullPrunedBlockStore"},{"p":"org.bitcoinj.crypto","l":"HDDerivationException"},{"p":"org.bitcoinj.crypto","l":"HDKeyDerivation"},{"p":"org.bitcoinj.crypto","l":"HDPath"},{"p":"org.bitcoinj.crypto","l":"HDUtils"},{"p":"org.bitcoinj.core","l":"HeadersMessage"},{"p":"org.bitcoinj.net.discovery","l":"HttpDiscovery"},{"p":"org.bitcoinj.core","l":"InsufficientMoneyException"},{"p":"org.bitcoinj.core","l":"AddressFormatException.InvalidCharacter"},{"p":"org.bitcoinj.core","l":"AddressFormatException.InvalidChecksum"},{"p":"org.bitcoinj.crypto","l":"KeyCrypterException.InvalidCipherText"},{"p":"org.bitcoinj.core","l":"AddressFormatException.InvalidDataLength"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidNetwork"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidOutputs"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidPaymentRequestURL"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidPaymentURL"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidPkiData"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidPkiType"},{"p":"org.bitcoinj.core","l":"AddressFormatException.InvalidPrefix"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.InvalidVersion"},{"p":"org.bitcoinj.core","l":"InventoryItem"},{"p":"org.bitcoinj.core","l":"InventoryMessage"},{"p":"org.bitcoinj.wallet","l":"Protos.Key"},{"p":"org.bitcoinj.wallet","l":"KeyBag"},{"p":"org.bitcoinj.wallet","l":"KeyChain"},{"p":"org.bitcoinj.wallet.listeners","l":"KeyChainEventListener"},{"p":"org.bitcoinj.wallet","l":"KeyChainFactory"},{"p":"org.bitcoinj.wallet","l":"KeyChainGroup"},{"p":"org.bitcoinj.wallet","l":"KeyChainGroupStructure"},{"p":"org.bitcoinj.crypto","l":"KeyCrypter"},{"p":"org.bitcoinj.crypto","l":"KeyCrypterException"},{"p":"org.bitcoinj.crypto","l":"KeyCrypterScrypt"},{"p":"org.bitcoinj.core","l":"ECKey.KeyIsEncryptedException"},{"p":"org.bitcoinj.wallet","l":"Protos.KeyOrBuilder"},{"p":"org.bitcoinj.wallet","l":"KeyChain.KeyPurpose"},{"p":"org.bitcoinj.wallet","l":"KeyTimeCoinSelector"},{"p":"org.bitcoinj.core","l":"VerificationException.LargerThanMaxBlockSize"},{"p":"org.bitcoinj.crypto","l":"LazyECPoint"},{"p":"org.bitcoinj.core","l":"LegacyAddress"},{"p":"org.bitcoinj.store","l":"LevelDBBlockStore"},{"p":"org.bitcoinj.store","l":"LevelDBFullPrunedBlockStore"},{"p":"org.bitcoinj.crypto","l":"LinuxSecureRandom"},{"p":"org.bitcoinj.core","l":"TransactionConfidence.Listener"},{"p":"org.bitcoinj.wallet","l":"WalletFiles.Listener"},{"p":"org.bitcoinj.utils","l":"ListenerRegistration"},{"p":"org.bitcoinj.core","l":"ListMessage"},{"p":"org.bitcoinj.signers","l":"LocalTransactionSigner"},{"p":"org.bitcoinj.store","l":"LevelDBFullPrunedBlockStore.LRUCache"},{"p":"org.bitcoinj.params","l":"MainNetParams"},{"p":"org.bitcoinj.wallet","l":"MarriedKeyChain"},{"p":"org.bitcoinj.store","l":"MemoryBlockStore"},{"p":"org.bitcoinj.store","l":"MemoryFullPrunedBlockStore"},{"p":"org.bitcoinj.core","l":"MemoryPoolMessage"},{"p":"org.bitcoinj.core","l":"Message"},{"p":"org.bitcoinj.core","l":"MessageSerializer"},{"p":"org.bitcoinj.net","l":"MessageWriteTarget"},{"p":"org.bitcoinj.core","l":"ECKey.MissingPrivateKeyException"},{"p":"org.bitcoinj.signers","l":"TransactionSigner.MissingSignatureException"},{"p":"org.bitcoinj.signers","l":"MissingSigResolutionSigner"},{"p":"org.bitcoinj.wallet","l":"Wallet.MissingSigsMode"},{"p":"org.bitcoinj.crypto","l":"MnemonicException.MnemonicChecksumException"},{"p":"org.bitcoinj.crypto","l":"MnemonicCode"},{"p":"org.bitcoinj.crypto","l":"MnemonicException"},{"p":"org.bitcoinj.crypto","l":"MnemonicException.MnemonicLengthException"},{"p":"org.bitcoinj.crypto","l":"MnemonicException.MnemonicWordException"},{"p":"org.bitcoinj.core","l":"Monetary"},{"p":"org.bitcoinj.utils","l":"MonetaryFormat"},{"p":"org.bitcoinj.wallet","l":"Wallet.MultipleOpReturnRequested"},{"p":"org.bitcoinj.net.discovery","l":"MultiplexingDiscovery"},{"p":"org.bitcoinj.store","l":"MySQLFullPrunedBlockStore"},{"p":"org.bitcoinj.jni","l":"NativeBlockChainListener"},{"p":"org.bitcoinj.jni","l":"NativeFutureCallback"},{"p":"org.bitcoinj.jni","l":"NativeKeyChainEventListener"},{"p":"org.bitcoinj.jni","l":"NativeScriptsChangeEventListener"},{"p":"org.bitcoin","l":"NativeSecp256k1"},{"p":"org.bitcoin","l":"NativeSecp256k1Util"},{"p":"org.bitcoinj.jni","l":"NativeTransactionConfidenceEventListener"},{"p":"org.bitcoinj.jni","l":"NativeTransactionConfidenceListener"},{"p":"org.bitcoinj.jni","l":"NativeWalletChangeEventListener"},{"p":"org.bitcoinj.jni","l":"NativeWalletCoinsReceivedEventListener"},{"p":"org.bitcoinj.jni","l":"NativeWalletCoinsSentEventListener"},{"p":"org.bitcoinj.jni","l":"NativeWalletReorganizeEventListener"},{"p":"org.bitcoinj.core","l":"VerificationException.NegativeValueOutput"},{"p":"org.bitcoinj.core","l":"NetworkParameters"},{"p":"org.bitcoinj.params","l":"Networks"},{"p":"org.bitcoinj.core.listeners","l":"NewBestBlockListener"},{"p":"org.bitcoinj.core","l":"AbstractBlockChain.NewBlockType"},{"p":"org.bitcoinj.net","l":"NioClient"},{"p":"org.bitcoinj.net","l":"NioClientManager"},{"p":"org.bitcoinj.net","l":"NioServer"},{"p":"org.bitcoinj.core","l":"VerificationException.NoncanonicalSignature"},{"p":"org.bitcoinj.core","l":"NotFoundMessage"},{"p":"org.bitcoinj.core.listeners","l":"OnTransactionBroadcastListener"},{"p":"org.bitcoinj.uri","l":"OptionalFieldValidationException"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocol.Output"},{"p":"org.bitcoin.protocols.payments","l":"Protos.Output"},{"p":"org.bitcoin.protocols.payments","l":"Protos.OutputOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.Key.OutputScriptType"},{"p":"org.bitcoinj.utils","l":"ExponentialBackoff.Params"},{"p":"org.bitcoinj.core","l":"PartialMerkleTree"},{"p":"org.bitcoin.protocols.payments","l":"Protos.Payment"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentACK"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentACKOrBuilder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentDetails"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentDetailsOrBuilder"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentOrBuilder"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocol"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentRequest"},{"p":"org.bitcoin.protocols.payments","l":"Protos.PaymentRequestOrBuilder"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentSession"},{"p":"org.bitcoinj.crypto","l":"PBKDF2SHA512"},{"p":"org.bitcoinj.core","l":"Peer"},{"p":"org.bitcoinj.core","l":"PeerAddress"},{"p":"org.bitcoinj.wallet","l":"Protos.PeerAddress"},{"p":"org.bitcoinj.wallet","l":"Protos.PeerAddressOrBuilder"},{"p":"org.bitcoinj.core.listeners","l":"PeerConnectedEventListener"},{"p":"org.bitcoinj.core.listeners","l":"PeerDataEventListener"},{"p":"org.bitcoinj.core.listeners","l":"PeerDisconnectedEventListener"},{"p":"org.bitcoinj.core.listeners","l":"PeerDiscoveredEventListener"},{"p":"org.bitcoinj.net.discovery","l":"PeerDiscovery"},{"p":"org.bitcoinj.net.discovery","l":"PeerDiscoveryException"},{"p":"org.bitcoinj.core","l":"PeerException"},{"p":"org.bitcoinj.core","l":"PeerFilterProvider"},{"p":"org.bitcoinj.core","l":"PeerGroup"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeedData"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeedDataOrBuilder"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeeds"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.PeerSeedsOrBuilder"},{"p":"org.bitcoinj.core","l":"PeerSocketHandler"},{"p":"org.bitcoinj.core","l":"Ping"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocol.PkiVerificationData"},{"p":"org.bitcoinj.protocols.payments","l":"PaymentProtocolException.PkiVerificationException"},{"p":"org.bitcoinj.core","l":"Pong"},{"p":"org.bitcoinj.wallet","l":"Protos.Transaction.Pool"},{"p":"org.bitcoinj.wallet","l":"WalletTransaction.Pool"},{"p":"org.bitcoinj.store","l":"PostgresFullPrunedBlockStore"},{"p":"org.bitcoinj.core","l":"PrefixedChecksummedBytes"},{"p":"org.bitcoinj.core.listeners","l":"PreMessageReceivedEventListener"},{"p":"org.bitcoinj.core","l":"TransactionBroadcast.ProgressCallback"},{"p":"org.bitcoinj.signers","l":"TransactionSigner.ProposedTransaction"},{"p":"org.bitcoinj.core","l":"ProtocolException"},{"p":"org.bitcoinj.core","l":"NetworkParameters.ProtocolVersion"},{"p":"org.bitcoin.protocols.payments","l":"Protos"},{"p":"org.bitcoinj.wallet","l":"Protos"},{"p":"org.bitcoinj.core","l":"PrunedException"},{"p":"org.bitcoinj.crypto","l":"HDKeyDerivation.PublicDeriveMode"},{"p":"org.bitcoinj.crypto","l":"KeyCrypterException.PublicPrivateMismatch"},{"p":"org.bitcoinj.wallet","l":"Protos.Transaction.Purpose"},{"p":"org.bitcoinj.core","l":"Transaction.Purpose"},{"p":"org.bitcoinj.crypto","l":"HDKeyDerivation.RawKeyBytes"},{"p":"org.bitcoinj.wallet","l":"RedeemData"},{"p":"org.bitcoinj.params","l":"RegTestParams"},{"p":"org.bitcoinj.core","l":"RejectMessage.RejectCode"},{"p":"org.bitcoinj.core","l":"RejectedTransactionException"},{"p":"org.bitcoinj.core","l":"RejectMessage"},{"p":"org.bitcoinj.core.listeners","l":"ReorganizeListener"},{"p":"org.bitcoinj.uri","l":"RequiredFieldValidationException"},{"p":"org.bitcoinj.net","l":"FilterMerger.Result"},{"p":"org.bitcoinj.wallet","l":"RiskAnalysis.Result"},{"p":"org.bitcoinj.wallet","l":"RiskAnalysis"},{"p":"org.bitcoinj.wallet","l":"DefaultRiskAnalysis.RuleViolation"},{"p":"org.bitcoinj.wallet","l":"Protos.Script"},{"p":"org.bitcoinj.script","l":"Script"},{"p":"org.bitcoinj.script","l":"ScriptBuilder"},{"p":"org.bitcoinj.script","l":"ScriptChunk"},{"p":"org.bitcoinj.script","l":"ScriptError"},{"p":"org.bitcoinj.script","l":"ScriptException"},{"p":"org.bitcoinj.script","l":"ScriptOpCodes"},{"p":"org.bitcoinj.wallet","l":"Protos.ScriptOrBuilder"},{"p":"org.bitcoinj.script","l":"ScriptPattern"},{"p":"org.bitcoinj.wallet.listeners","l":"ScriptsChangeEventListener"},{"p":"org.bitcoinj.script","l":"Script.ScriptType"},{"p":"org.bitcoinj.wallet","l":"Protos.ScriptWitness"},{"p":"org.bitcoinj.wallet","l":"Protos.ScriptWitnessOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.ScryptParameters"},{"p":"org.bitcoinj.wallet","l":"Protos.ScryptParametersOrBuilder"},{"p":"org.bitcoin","l":"Secp256k1Context"},{"p":"org.bitcoinj.net.discovery","l":"SeedPeers"},{"p":"org.bitcoinj.core","l":"SegwitAddress"},{"p":"org.bitcoinj.core","l":"SendAddrV2Message"},{"p":"org.bitcoinj.core","l":"SendHeadersMessage"},{"p":"org.bitcoinj.wallet","l":"SendRequest"},{"p":"org.bitcoinj.wallet","l":"Wallet.SendResult"},{"p":"org.bitcoinj.core","l":"Sha256Hash"},{"p":"org.bitcoinj.core","l":"Transaction.SigHash"},{"p":"org.bitcoinj.signers","l":"CustomTransactionSigner.SignatureAndKey"},{"p":"org.bitcoinj.core","l":"SignatureDecodeException"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.SignedPeerSeeds"},{"p":"org.bitcoin.crawler","l":"PeerSeedProtos.SignedPeerSeedsOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionConfidence.Source"},{"p":"org.bitcoinj.core","l":"TransactionConfidence.Source"},{"p":"org.bitcoinj.store","l":"SPVBlockStore"},{"p":"org.bitcoinj.wallet","l":"BasicKeyChain.State"},{"p":"org.bitcoinj.core","l":"StoredBlock"},{"p":"org.bitcoinj.store","l":"MemoryFullPrunedBlockStore.StoredBlockAndWasUndoableFlag"},{"p":"org.bitcoinj.core","l":"StoredUndoableBlock"},{"p":"org.bitcoinj.net","l":"StreamConnection"},{"p":"org.bitcoinj.net","l":"StreamConnectionFactory"},{"p":"org.bitcoinj.utils","l":"BtcAutoFormat.Style"},{"p":"org.bitcoinj.wallet","l":"Protos.Tag"},{"p":"org.bitcoinj.utils","l":"TaggableObject"},{"p":"org.bitcoinj.wallet","l":"Protos.TagOrBuilder"},{"p":"org.bitcoinj.params","l":"TestNet3Params"},{"p":"org.bitcoinj.utils","l":"Threading"},{"p":"org.bitcoinj.wallet","l":"Protos.Transaction"},{"p":"org.bitcoinj.core","l":"Transaction"},{"p":"org.bitcoinj.core","l":"TransactionBag"},{"p":"org.bitcoinj.core","l":"TransactionBroadcast"},{"p":"org.bitcoinj.core","l":"TransactionBroadcaster"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionConfidence"},{"p":"org.bitcoinj.core","l":"TransactionConfidence"},{"p":"org.bitcoinj.core.listeners","l":"TransactionConfidenceEventListener"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionConfidenceOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionInput"},{"p":"org.bitcoinj.core","l":"TransactionInput"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionInputOrBuilder"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionOrBuilder"},{"p":"org.bitcoinj.core","l":"TransactionOutPoint"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionOutput"},{"p":"org.bitcoinj.core","l":"TransactionOutput"},{"p":"org.bitcoinj.core","l":"TransactionOutputChanges"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionOutputOrBuilder"},{"p":"org.bitcoinj.core.listeners","l":"TransactionReceivedInBlockListener"},{"p":"org.bitcoinj.crypto","l":"TransactionSignature"},{"p":"org.bitcoinj.signers","l":"TransactionSigner"},{"p":"org.bitcoinj.core","l":"TransactionWitness"},{"p":"org.bitcoinj.crypto","l":"TrustStoreLoader"},{"p":"org.bitcoinj.core","l":"TxConfidenceTable"},{"p":"org.bitcoinj.core","l":"InventoryItem.Type"},{"p":"org.bitcoinj.wallet","l":"Protos.Key.Type"},{"p":"org.bitcoinj.wallet","l":"Protos.TransactionConfidence.Type"},{"p":"org.bitcoinj.core","l":"VerificationException.UnexpectedCoinbaseInput"},{"p":"org.bitcoinj.core","l":"AddressFormatException.UnexpectedWitnessVersion"},{"p":"org.bitcoinj.params","l":"UnitTestParams"},{"p":"org.bitcoinj.core","l":"UnknownMessage"},{"p":"org.bitcoinj.wallet","l":"UnreadableWalletException"},{"p":"org.bitcoinj.core","l":"UnsafeByteArrayOutputStream"},{"p":"org.bitcoinj.utils","l":"Threading.UserThread"},{"p":"org.bitcoinj.core","l":"Utils"},{"p":"org.bitcoinj.core","l":"UTXO"},{"p":"org.bitcoinj.core","l":"UTXOProvider"},{"p":"org.bitcoinj.core","l":"UTXOProviderException"},{"p":"org.bitcoinj.core","l":"UTXOsMessage"},{"p":"org.bitcoinj.core","l":"VarInt"},{"p":"org.bitcoinj.core","l":"VerificationException"},{"p":"org.bitcoinj.core","l":"Block.VerifyFlag"},{"p":"org.bitcoinj.script","l":"Script.VerifyFlag"},{"p":"org.bitcoinj.core","l":"VersionAck"},{"p":"org.bitcoinj.core","l":"VersionMessage"},{"p":"org.bitcoinj.utils","l":"VersionTally"},{"p":"org.bitcoinj.wallet","l":"Protos.Wallet"},{"p":"org.bitcoinj.wallet","l":"Wallet"},{"p":"org.bitcoinj.kits","l":"WalletAppKit"},{"p":"org.bitcoinj.wallet.listeners","l":"WalletChangeEventListener"},{"p":"org.bitcoinj.wallet.listeners","l":"WalletCoinsReceivedEventListener"},{"p":"org.bitcoinj.wallet.listeners","l":"WalletCoinsSentEventListener"},{"p":"org.bitcoinj.wallet","l":"WalletExtension"},{"p":"org.bitcoinj.wallet","l":"WalletProtobufSerializer.WalletFactory"},{"p":"org.bitcoinj.wallet","l":"WalletFiles"},{"p":"org.bitcoinj.wallet","l":"Protos.WalletOrBuilder"},{"p":"org.bitcoinj.wallet","l":"WalletProtobufSerializer"},{"p":"org.bitcoinj.wallet.listeners","l":"WalletReorganizeEventListener"},{"p":"org.bitcoinj.wallet","l":"WalletTransaction"},{"p":"org.bitcoinj.core","l":"AddressFormatException.WrongNetwork"},{"p":"org.bitcoinj.wallet","l":"UnreadableWalletException.WrongNetwork"},{"p":"org.bitcoin.protocols.payments","l":"Protos.X509Certificates"},{"p":"org.bitcoin.protocols.payments","l":"Protos.X509CertificatesOrBuilder"},{"p":"org.bitcoinj.crypto","l":"X509Utils"}];updateSearchResults(); \ No newline at end of file diff --git a/release-notes.md b/release-notes.md index 8f7b426cd..cc933d27e 100644 --- a/release-notes.md +++ b/release-notes.md @@ -16,6 +16,15 @@ title: "Release notes" For information about upcoming releases, see the pre-release notes. +## Version 0.16.3 + +This is a bug fix and maintenance release. Notable changes: + +* Fix a bug that prevents blockchain sync of mainnet blocks 849,138 and beyond. +* Fix many cases of spurious test failures. +* Update Bouncy Castle dependency to 1.73. That version was picked as base version for the + LTS version (2.73) of Bouncy Castle. + ## Version 0.16.2 This is a bug fix and maintenance release. Notable changes: diff --git a/using-gradle.md b/using-gradle.md index 062475dd5..64afbbaac 100644 --- a/using-gradle.md +++ b/using-gradle.md @@ -11,6 +11,6 @@ If your project uses Gradle for its build, you can depend on bitcoinj by adding {% highlight xml %} dependencies { - compile 'org.bitcoinj:bitcoinj-core:0.16.2' + compile 'org.bitcoinj:bitcoinj-core:0.16.3' } {% endhighlight %} diff --git a/using-maven.md b/using-maven.md index 30217379d..2848baf83 100644 --- a/using-maven.md +++ b/using-maven.md @@ -14,7 +14,7 @@ If your project uses Maven for its build, you can depend on bitcoinj by adding t org.bitcoinj bitcoinj-core - 0.16.2 + 0.16.3 compile @@ -26,8 +26,8 @@ To get the source you can also use git and check out your own copy: git clone https://github.com/bitcoinj/bitcoinj.git cd bitcoinj git fetch --all -git checkout v0.16.2 +git checkout v0.16.3 mvn install ~~~ -This will give you v0.16.2. If PGP is your thing, you can run `git tag -v v0.16.2` to check Andreas Schildbach's signature of the release. +This will give you v0.16.3. If PGP is your thing, you can run `git tag -v v0.16.3` to check Andreas Schildbach's signature of the release.