Skip to content

Instantly share code, notes, and snippets.

# sig verification in using the message hash function as `sha256(sha256('Bitcoin Signed Message:\n' + message))`
import hashlib
import base58
from ecdsa.curves import SECP256k1
from ecdsa import VerifyingKey, util
def hash160(data: bytes) -> bytes:
"""Perform SHA256 followed by RIPEMD160"""
sha = hashlib.sha256(data).digest()
ripe = hashlib.new('ripemd160', sha).digest()
@pingu-73
pingu-73 / GSoC24_blog.md
Last active April 8, 2025 05:27
Summarising my work "Rustize HPX" @ STEllAR Group

Rustize HPX

Google Summer of Code 2024 @ HPX, STEllAR Group

By - Dikshant