MMDRZA Guideline Portal
HomeProductsGithub
  • Guide
    • Install Python
    • Rich Address Downloader
    • Code Signing
      • How to Sign an .exe File in Windows
  • Cryptofuzz
    • Example
      • 🗝️Decimal
      • 📝Mnemonic
      • 🔐Private Key (HEX)
      • 🔑Private Key (Wif)
    • Private Key To Bitcoin
    • Private Key To Ethereum
    • Private Key to Tron (trx)
    • Private Key To Dogecoin
    • Private Key To DASH
    • Private Key To Litecoin
    • Private Key To Bitcoin Gold
    • Private Key To Digibyte
    • Private Key To Ravencoin
  • SECP256K2
    • Profile Test
    • Decimal To Private Key (Wif)
    • Decimal to Address
    • Decimal To Ethereum
    • Decimal to RIPEMD160
    • wif Private Key To Private Key (hex)
    • Convert Private Key To Wif Compressed and Uncompressed
    • Wif to Decimal
    • Private Key (decimal) To RIPEMD160 (h160)
    • Decimal To Compressed and uncompressed Address
Powered by GitBook
On this page

Was this helpful?

  1. SECP256K2

Private Key (decimal) To RIPEMD160 (h160)

Convert Decimal Number to RIPEMD160 (HASH160)

from secp256k2 import Contactor

cont = Contactor()

privatekey = 12345678901234567891234567891234567789

ripemd160 = cont.privatekey_to_h160(privatekey)

In the code snippet above, an instance of the Contactor class from the secp256k2 library is created, which is a Python library that provides tools for working with Bitcoin's secp256k1 elliptic curve. A private key is defined as a long integer. Then, this private key is converted to a hash using the RIPEMD-160 algorithm by invoking the privatekey_to_h160 method of the Contactor object. The output, ripemd160, represents the RIPEMD-160 hash of the given private key. This process is a part of generating a Bitcoin address from a private key, where RIPEMD-160 is one of the several steps involved in the creation of a wallet address.

PreviousWif to DecimalNextDecimal To Compressed and uncompressed Address

Last updated 1 year ago

Was this helpful?