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 ...
phantom's user avatar
  • 121
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 ...
LeaBit's user avatar
  • 448
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 ...
Andrew Chow's user avatar
  • 68.5k
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 ...
RedGrittyBrick's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible