Skip to content

Instantly share code, notes, and snippets.

View ChypherC0d3's full-sized avatar
:electron:
Creating a new future, may be slow to respond.

ChyperC0d3 ChypherC0d3

:electron:
Creating a new future, may be slow to respond.
  • Risi Soru
View GitHub Profile
@circulosmeos
circulosmeos / easy-bitcoin-address-from-public-key.py
Last active January 6, 2025 17:36
Easily generate the bitcoin address from the public key using Python (compatible with Python 2 and 3)
#!/usr/bin/env python
# https://en.bitcoin.it/wiki/Protocol_documentation#Addresses
import hashlib
import base58
# ECDSA bitcoin Public Key
pubkey = '0450863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b23522cd470243453a299fa9e77237716103abc11a1df38855ed6f2ee187e9c582ba6'
# See 'compressed form' at https://en.bitcoin.it/wiki/Protocol_documentation#Signatures
compress_pubkey = False
@ChypherC0d3
ChypherC0d3 / weakentropy-bin-int-hex.ipynb
Last active December 7, 2024 12:53
WeakEntropy-Bin-Int-Hex.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ChypherC0d3
ChypherC0d3 / richestmultichainwallets.ipynb
Last active December 7, 2024 12:53
RichestMultiChainWallets.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
31-round sha256 collision.
Not my research, just a PoC script I put together with numbers plugged in from the slide at
https://twitter.com/jedisct1/status/1772647350554464448 from FSE2024
SHA256 impl follows FIPS 180-4
https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
"""