Questions tagged [segwit]
4 questions
8
votes
0 answers
Generating a segwit address and private key with bitcoinj (paper wallet)
It is possible to generate a valid legacy bitcoin key pair with the following code which is using bitcoinj master branch:
import org.bitcoinj.core.Address;
import org.bitcoinj.core.DumpedPrivateKey;
import org.bitcoinj.core.ECKey;
import…

ccpizza
- 28,968
- 18
- 162
- 169
1
vote
2 answers
What does the new BCH regex mean?
BCH regex was recently updated (in the API) to: "address_regex": "^([13][a-km-zA-HJ-NP-Z1-9]{25,34})|^((bitcoincash:)?(q|p)[a-z0-9]{41})|^((BITCOINCASH:)?(Q|P)[A-Z0-9]{41})$"
Is this a Segwit thing?
I understand it's now saying addresses may start…

EvilJordan
- 669
- 7
- 16
0
votes
1 answer
How do I authenticate a bitcoinlib created wallet against a mnemonic phrase?
I have created a wallet using bitcoinlib. The wallet is named 'my-awesome-wallet55.' When I try to open my existing wallet with a newly generated mnemonic phrase, the behavior I expect is an exception or security error, however the wallet opens…

Sonny Parlin
- 931
- 2
- 13
- 28
-1
votes
1 answer
BitcoinJ walletTemplate P2WPKH Send payment not working
I have tried to use WalletTemplate sub-project inside bitcoinJ lib. I have tried p2pkh sends and they work fine. But then I tried to make P2WPKH payment but it failed with the following error message
org.bitcoinj.core.RejectedTransactionException:…