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