# ColdWallet **Repository Path**: WA2301/ColdWallet ## Basic Information - **Project Name**: ColdWallet - **Description**: Cold wallet for kinds of coins. - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-13 - **Last Updated**: 2023-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ColdWallet Cold wallet for kinds of coins. ### install: ``` sudo apt install python3-pip pip3 install ecdsa pip3 install base58check pip3 install pyqrcode pip3 install pysha3 pip3 install bech32 ``` ### usage : ``` ./run.py view # View the keytree by saved mnemonic ./run.py new # generate keytree by a New random mnemonic ./clear.sh # Delete all key [Waring] ``` | Type | Formula | | ------------- | -------------------------------------------------------------------------------------------------------------- | | P2PKH | base58( "00"+HASH160(pubkey) ) | | *~~P2SH~~* | *~~base58( "05"+HASH160(script) )~~* | | P2WPKH | bech32( "00"+HASH160(pubkey) ) | | P2WPKH-P2SH | script= "0014" + HASH160(pubkey) //P2WPKH
base58( "05"+HASH160(script) ) | | P2WSH | script = "5121"+pubkey+"51ae"
bech32( "00"+SHA256(script) ) | | P2WSH-P2SH | script'=SHA256("5121" + pubkey+"51ae") //P2WSH
script="0020" + script'
bas58( "05"+HASH160(script) ) |