Wednesday, September 6, 2023
HomeBitcoin Newsjavascript - Recreate Java code in python

javascript – Recreate Java code in python

Advertisement


I’ve a java code that I must go to python however I do not know which libraries to make use of and find out how to begin and should you may help me I might actually respect it

MNEMONIC = "twenty 4 mnemonic phrases hereí" ACCOUNT_KEY = "" WALLET_PRIVATE_KEY = ""


// We are  going to generate 3 parameters right here // 1. hashSecret // 2. encryptedSecret // 3. hashPublicKey

const epochTimeNow = Fecha.ahora().toString()

const secret = getDeterministicTradeSecret(MNEMONIC, epochTimeNow) // This operate is outlined under 

const hashSecret = hash160(secret)

const encryptedSecret = encryptTradeSecret (secreto, ACCOUNT_KEY, indefinido)

const publicKey = privateKeyToPublic(privateKey) 

const hashPublicKey = hash160(publicKey)

const btc_trade_secrets = {crypted_secret:cryptedSecret, hash_secret:hashedSecret,hashed_public_key:hashedPublicKey,}
 
Advertisement

Advertisement
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments