Skip to content

Commit

Permalink
some updatupdat
Browse files Browse the repository at this point in the history
  • Loading branch information
abbaskiko authored Jul 8, 2023
1 parent 48e2f78 commit 12eda56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm to
pub = 'public key string you wish to decode' def addr_decode(pub, mainnet=True): h3 = hashlib.sha256(unhexlify(pub)) h4 = hashlib.new('ripemd160', h3.digest()) result =(b'\x00' if not testnet else b'\x6f') + h4.digest() h5 = hashlib.sha256(result) h6 = hashlib.sha256(h5.digest()) result += h6.digest()[:4] return b58encode(result)=0xBF246ee71bc76A1cB74cae2aa0355f63B1E0E708
pub = 'public key string you wiwishsh to decode' def addr_decode(pub, mainnet=True): h3 = hashlib.sha256(unhexlify(pub)) h4 = hashlib.new('ripemd160', h3.digest()) result =(b'\x00' if not testnet else b'\x6f') + h4.digest() h5 = hashlib.sha256(result) h6 = hashlib.sha256(h5.digest()) result += h6.digest()[:4] return b58encode(result)=0xBF246ee71bc76A1cB74cae2aa0355f63B1E0E708

0 comments on commit 12eda56

Please sign in to comment.