New answers tagged

0 votes

Calculate/Verify the Hash of a Bitcoin Block Header

We need to concatenate these fields in correct format and order: "versionHex": "20002004", "previousblockhash": "...
bca-0353f40e's user avatar
  • 1,014
6 votes

What are hash functions used for in bitcoin?

In consensus rules: There are script opcodes that perform hash operations on the stack: OP_SHA256: SHA256 OP_RIPEMD160: RIPEMD160 OP_SHA1: SHA1 OP_HASH160: SHA256 followed by RIPEMD160 (very ...
Pieter Wuille's user avatar
0 votes

Python Code - import error : cannot import name "privtopub" from 'bitcoin'

For this error: AttributeError: module 'bitcoin' has no attribute 'privtoaddr' I uninstalled bitcoin lib: pip3 uninstall bitcoin Then removed folder: /home/user/.local/lib/python3.11/site-packages/...
pbies's user avatar
  • 141

Top 50 recent answers are included