A Java library for processing Bitcoin, stores blockchain headers only

learn more… | top users | synonyms

2
votes
1answer
32 views

With Mike Hearn quitting Bitcoin, what seems to be the future or bitcoinj?

Mike Hearn has apparently sold all his Bitcoins. So what is to be expected about the development of bitcoinj? (and Java based clients in general).
1
vote
0answers
18 views

Send BTC with attachment using BitcoinJ

is there an example of how using BitcoinJ send BTC with an attachment? Lets say I want to write to blockchain "Vaclav Bilek Born 1991". If I understand it correctly, its just about sending minimum ...
1
vote
0answers
16 views

Wallet loses the money to be restored in bitcoinj

I have a problem when using the library bitcoinj. When I restore a wallet from a backup, if it has received money in some of his addresses to synchronize with the blockchain, the money does not ...
0
votes
0answers
12 views

Decrypt my private key using KeyCrypter

I am trying to decrypt my private key bytes using the KeyCrypter interface. But i do not know how to implement and call the decrypt() function. Initially i encrypt the bytes of my Private Key of my ...
1
vote
1answer
33 views

ECKey.ECDSASignature creation

I have my ECKey key. In order to create an ECDSASignature object with BitcoinJ, we have to call ECDSASignature mySignature = key.sign(Sha256Hash input). Is the Sha256Hash input my message? Or is it ...
0
votes
0answers
11 views

Creation of P2SH MultiSig Input Script

In the createP2SHMultiSigInputScript() function of BitcoinJ according to this: public static Script createP2SHMultiSigInputScript(@NullableList signatures,Script multisigProgram) Create a program ...
0
votes
0answers
23 views

Creation of <20-byte hash of redeem Script> in a P2SH Transaction

According to this example: Redeem Script: 2 PubKey1 PubKey2 PubKey3 PubKey4 PubKey5 5 OP_CHECKMULTISIG Locking Script: OP_HASH160 <20-byte hash of redeem script> OP_EQUAL Unlocking Script: Sig1 ...
2
votes
2answers
86 views

Encoding my Bitcoin Address with Base58 encoding

I am trying to convert my Bitcoin Address with BitcoinJ in order to look like a normal address such as this: 1J7mdg5rbQyUHENYdx39WVWK7fsLpEoXZy. I haven't found anything exept for the Base58.encode() ...
1
vote
1answer
38 views

Verifing the given R/S pair (signature) against a hash using the public key

According to this function: public boolean verify(Sha256Hash sigHash, ECDSASignature signature) { return ECKey.verify(sigHash.getBytes(), signature, getPubKey()); } I do not understand ...
0
votes
0answers
16 views

Creating the Pay to PubkeyHash Transaction with bitcoinj

I want to implement the Pay to PubkeyHash Transaction without connecting to a network(for example testnet). I want to create it, to run locally. I don't know how to create my Signature from my ...
0
votes
0answers
20 views

How to use MySQLFullPrunedBlockStore with bitcoinj-core-0.13-bundled.jar

Initailly i am using bitcoinj-core-0.12.2.jar and bitcoinj-tools-0.12.2.jar on my project.Now i updated it with bitcoinj-core-0.13-bundled.jar because i am assuming that bitcoinj-core-0.13-bundled is ...
0
votes
0answers
19 views

SPV client unconfirmed transaction handling

Do SPV wallets do any validation for unconfirmed transactions like checking for DER encoding or low-S signatures? Or do they rely entirely on a full nodes mempool?
0
votes
1answer
27 views

How to get the MPK using bitcoinj and how to generate the addresses using the MPK?

I am trying to get the MPK of a wallet using bitcoinj. Can I get the DeterministicSeed, which is the seed of the wallet and get the MnemonicCode of 12 words. But I can't get the MPK. As I can make it ...
0
votes
0answers
40 views

Bitcoin multisig tutorial

I have five private keys (of type java.math.BigInteger) called a, b, c, d, e. Please provide some code template for the following. Create an address that has "3-out-of-5" spendability for the above ...
1
vote
1answer
24 views

How is a transaction verified in a micropayment channel?

Let's say Alice opens a micropayment channel with Bob and sends $10 into the multi sig transaction. How do we know that Alice has those $10? Or are we taking the risk of her double spending it?
2
votes
1answer
68 views

Bitcoin transactions reserve more coins than needed

I have a JavaWebApp wich uses bitcoinj 0.13.2 for sending bitcoins from a wallet to a particular address in a TimerTask. When the job starts, every minute I send 10000 satoshis to the address. The fee ...
2
votes
0answers
29 views

Differences between MemoryBlockStore and SPVBlockStore

What are differences between MemoryBlockStore and SPVBlockStore in bitcoinj? Which should be used for downloading the blockchain and why? Can I use same SPVChain format file for all wallets?
1
vote
0answers
31 views

Bitcoinj: Multiple wallets

In my Java application I am now required to handle multiple bitcoin wallets (HD wallets?). This means sending and receiving BTC. Unfortunately bitcoin is quite new for me, so there are some questions: ...
4
votes
2answers
43 views

SPV Bloom filter construction, are false positives taken from the blockchain or just due matching with other addresses

It is my understanding that the false positive addresses generated by an SPV bloom filter do not need to necessarily be on the blockchain (ie. be addresses that have been used already). Is that a ...
2
votes
0answers
64 views

Bitcoinj: How to fix error “You should use Context.propagate() or a ContextPropagatingThreadFactory”

I'm using bitcoinj from a Scala application... and when I start it, I always get the following errors: [error] o.b.c.Context - Performing thread fixup: you are accessing bitcoinj via a thread that ...
1
vote
0answers
169 views

Transaction still pending after 12 hours

About 12 hours ago I sent BTC 0.06304568 to my test wallet... and the transactions is still pending: { "receiveAddress": "1KU9VwJ992UisoAYiPbRdSXDRVUCq4wdW1", "balance": 0, "net": "prod", ...
2
votes
1answer
78 views

Bitcoinj: How to get notified when coins are received

I need to know when my local wallet receives coins... but onCoinsReceived is invoked as soon as a transaction on my wallet is visible. How do I get notified when coins have been received and are ...
0
votes
0answers
23 views

Bip70 Server returned HTTP response code: 406 for URL

While reading BitcoinUrl I m getting 406 http error (Server returned HTTP response code: 406 for URL Here is my code. ListenableFuture future=null; if (url.startsWith("bitcoin:")) { ...
1
vote
0answers
54 views

Why I can't see the balance increasing in my wallet?

I wrote this function using bitcoinJ public Wallet getWallet(ECKey ecKey) { Wallet wallet = walletAppKit.wallet(); wallet.importKey(ecKey); wallet.addEventListener(new ...
0
votes
0answers
49 views

Implement Bitcoin BIP 70 protocol

I want to implement Bitcoin BIP 70 for an ATM machine. I am bit new to bitcoin technology. What I want to ask is, if any user wants to sell coins then this means we have to generate a QR code of our ...
1
vote
1answer
66 views

How can I get the input addresses of a transaction in Java?

I am trying to obtain the addresses of entry of a transaction when I receive money, but I have not found the way. I have tried to create an address with the bytes obtained by calling ...
2
votes
1answer
76 views

How to synchronize with the bitcoin blockchain via bitcoinJ

I'am writing my very first application using bitcoinJ api and I got a bit stuck. Maybe somebody can tell me what I am missing. My practice app wants to write a sample contract in the bitcoin ...
0
votes
2answers
143 views

Even if transaction fee is set to BTC 0.00001, transactions remain unconfirmed

I'm testing an application based on bitcoinj so I've been sending small amounts for days and it worked fine – transaction fees are set by default to BTC 0.00001. As of yesterday, these small ...
2
votes
1answer
67 views

How do I check if an address belongs to my wallet using bitcoinJ?

I'm using bitcoinJ and I want to verify if some of the destination addresses in a transaction belongs to my wallet when I receive a amount of bitcoin. How can I verify it?
1
vote
1answer
34 views

How fast is BitcoinJ for getting UTXOs(/UnspentTXOuts)?

I'm making an app where I need to be able to get unspent TX outs very quickly for addresses I do not know beforehand. Now this is supported by Bitcoins architecture in that you can have a pruned ...
0
votes
0answers
21 views

Q. What happens to dead , or deadended Bitcoins? [duplicate]

NAMASTE! please understand that I am tech challenged! ie. ignorant not stupid! I am trying to learn and sarcastic smartass comments do not help! :-) I am trying to find out what happens to Bitcoins ...
1
vote
1answer
74 views

How to get balance from a specific address in bitcoinj?

I'm trying to get the balance of a specific address in a wallet by using bitcoinj, but I don't know how. Can someone help me? Thanks in advance!!
1
vote
0answers
29 views

Problem while trying to set up bitcoinj

I'm fairly new to programming and have only built some basic java applications, so bear with me. I'm trying to run the basic wallet application from the bitcoinj repository (using intellij and maven). ...
0
votes
1answer
88 views

How to get pending balance in with bitcoinj?

I'm try get pending balance from wallet, but results do not match with pending transactions? Thanks for advice!
0
votes
0answers
59 views

How to mine using bitcoinJ?

I'm using bitcoinJ to create a custom wallet that works in Java, but I don't have any idea to mining using bitcoinJ. Anyone have any idea? Thansk for advice!!
1
vote
0answers
82 views

How to create HD Wallet using bitcoinj

Married/multi-signature wallets and pluggable signers How to create Hd Wallet using bitcoinj I have tried but not understand i got the error in this ...
0
votes
0answers
27 views

Bitcoinj Multisignature Address

In multisignature address contract, how to set multisigoutput while sending bitcoin back to the client? I tried this, byte[] bytes = ...
0
votes
0answers
39 views

Bitcoin core 64 bit has freezed

I downloaded bitcoin core 64 bit and it was synchronizing. I turn my laptop off and open the program again and now it frozen at " loading block index " . I have bitcoins on it. What should I do now ?
1
vote
2answers
89 views

Bitcoinj How to create multi-signature address using bitcoinj

Can somebody help me with step-by-step list of how to create a multi signature 2-of-3 transaction using bitcoinj api?
2
votes
1answer
103 views

Are public keys and their corresponding hash values both added to a BitcoinJ Bloom filter?

The paper, On the Privacy Provisions of Bloom Filters in Lightweight Bitcoin Clients has this to say about Bloom filters in SPV: ...Indeed, in current implementations of SPV clients [BitcoinJ], ...
3
votes
1answer
54 views

Do all implementation of Deterministic RFC6979-compliant ECDSA signatures generate the same signed transaction given the same data?

So if I were to create the same transaction using bitcoinjs and bitcoinj, the end result of the signed transaction would be the same with both libraries, is that correct?
4
votes
1answer
211 views

Creating a Deterministic Keychain from BIP32 master public key

I'm trying to create a bitcoinj determinstic key chain from a BIP32 master public key. This is the code that I have written so far: val xpub = ...
0
votes
0answers
45 views

Extract all public keys from blockchain [duplicate]

I want to extract all public keys from the blockchain. Those will probably mostly be keys that have been used to sign transactions. How would I do this?
-3
votes
1answer
79 views

How can I mine bitcoin faster? [closed]

I'm curios what kind of PC, I need to mine bitcoins. What OS system, what GPU, CPU, etc... my current specification are: CPU: Xeon e3-1230v3 GPU: GTX 780 RAM: 24gb OS: Windows 8.1(64bits) So what ...
0
votes
1answer
66 views

How do I get the address that received a payment?

I am using BitcoinJ and wondering who user that I should credit, all users have their own receiving addresses. Please post an example also, if you have time. :) Current code: ...
1
vote
0answers
73 views

How to sign a transaction using BitcoinJ

I am having problem signing the transaction using BitcoinJ library without the Wallet instance, I only have the Transaction class instance and the ECKey in order to sign the transaction. Is there a ...
1
vote
1answer
106 views

Can you generate a url from a payment request?

I am writing a java webserver that can use bitcoin as a payment method. Thanks to the helpful advice in this question, I am able to generate payment addresses for various signed up vendors. I am now ...
2
votes
2answers
95 views

Accept payments on someone else's behalf without being able to spend them

TL;DR I wish to store some sort of key in my application for each vendor account that allows for my application to generate a receiving address for clients to make payments to. I am writing some ...
0
votes
0answers
17 views

Why transaction with outputs of less than ฿0.00005460 rejected in bitcoin [duplicate]

I have created a raw transaction with the following hexstring which decodes to f2b64215963f6b1492be89765ac0e8181ca334e59c9235c2b271f96dd7e318cd and I am trying to send 0.0002 btc it is rejected with ...
0
votes
1answer
142 views

My altcoin bitcoinj fork is failing when trying to compile an Android wallet

I've been sent a bitcoinj fork which is meant to work for the android wallet I'm building. Unfortunately it seems to be causing a failure when tests are run during the wallet compile. I get the ...