2
votes
Accepted
Keep getting wrong bitcoin addresses
Some key points here:
The private key cannot reach 2**256 because you must respect the order of the curve, which is n = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141. Set the ...
2
votes
Accepted
How to get scriptPubKey from public key hash
Clarification on what is the difference between these things: public key hash, scriptPubKey, addresses.
Public key hash represents, as it name says, the hash of the public key. So you take the public ...
1
vote
I am trying to convert the 12 words into BTC addresses, but they do not match
For P2PKH, you've hashed the private key rather than the public key.
For P2SH, you've hashed the public key and used the P2SH version number, however that is not what a P2SH address should be. Rather ...
1
vote
Recreate Java code in python
I have a java code that I need to pass to python
Unless the same library has been ported to both languages, there will probably be no direct equivalent.
Instead it will probably be best to describe ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
python-bitcoinlib × 28python × 20
bitcoin-core × 6
transactions × 5
private-key × 3
segregated-witness × 2
signature × 2
raw-transaction × 2
address-generation × 2
p2sh × 2
blockcypher × 2
blockchain × 1
json-rpc × 1
bitcoin-core-development × 1
hash × 1
public-key × 1
bitcoin-cli × 1
utxo × 1
mnemonic-seed × 1
ecdsa × 1
change × 1
raw-data × 1
javascript × 1
op-return × 1
locktime × 1