From 12eda56fc23003788a17a1439a864da9b7a334e9 Mon Sep 17 00:00:00 2001 From: abbaskiko <72495834+abbaskiko@users.noreply.github.com> Date: Sat, 8 Jul 2023 14:25:55 +0330 Subject: [PATCH] some updatupdat --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6c90643533e..093cb27d043 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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