Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
how to make an entropy to mnemonic converter to read a file with an array line by line in python or javascript there
var bip39 = require('bip39')
var mnemonic = bip39.entropyToMnemonic('00000000000000000000000000000000') console.log(mnemonic)
but I can't figure out how to read from the file if there is a python easier tell me
As stated by RedGrittyBlock this is really more of a web development question vs a bitcoin one. Also although it can be fun to create keys from file sources, typically it's a bad idea and should be more of a learning exercise than for actual use. To that end you should look at the built-in FileReader() API if you are seeking a simple javascript solution.
For example if you were doing a drag-drop to capture the file
holder.ondrop = function(event) { event.preventDefault(); var file = event.dataTransfer.files[0]; var reader = new FileReader(); reader.onload = function(event) { var binary = event.target.result; //Do whatever you want with the data, sha256 hash it, etc //var mnemonic = bip39.entropyToMnemonic(binary); }; reader.readAsBinaryString(file); };
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments