Created
April 26, 2021 06:37
-
-
Save jazzyjackson/e603cebc78f2e6f3bd80e803d2867ce7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printOurSailor(allPublicKeys, candidatesSeed){ | |
for(var candidateSeed of candidatesSeed){ | |
let keychain = this.CryptoService.mnemonicToKeychain(candidateSeed) | |
let seedHex = this.CryptoService.keychainToSeedHex(keychain) | |
let privateKey = this.CryptoService.seedHexToPrivateKey(seedHex) | |
let publicKey = this.CryptoService.privateKeyToBitcloutPublicKey(privateKey, "mainnet") | |
if(allPublicKeys.has(publicKey)){ | |
console.log("Our sailor is" + publicKey + " mnemonic: " + candidateSeed) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment