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
require 'digest' | |
lang = "english" | |
mnemonic = "claim snack company sea faith vacant blame card come large add" # 11-word or 23-word mnemonic phrase to be completed with checksum word | |
wordlist = File.readlines(File.join(Dir.pwd, "#{lang}.txt"), chomp: true) | |
a = mnemonic.split(" ") | |
entropy = "" | |
a.each do |word| |
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
require 'bitcoin' | |
require 'money-tree' | |
require 'eth' | |
require 'bip44' | |
require 'bip_mnemonic' | |
require 'bip44/utils' | |
require 'bip44/bitcoin' | |
require 'bip44/ethereum' | |
require 'bip44/wallet' |
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
require 'bitcoin' | |
include Bitcoin | |
include Bitcoin::Builder | |
include Bitcoin::Protocol | |
include Bitcoin::Util | |
include Bitcoin::Secp256k1 | |
base_factor = 100000000 | |
mnemonic = "beyond .. satoshi" | |
seed = BipMnemonic.to_seed(mnemonic: mnemonic) |
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
require 'bitcoin' | |
require 'money-tree' | |
require 'bip44' | |
require 'bech32' | |
include Bitcoin | |
include Bitcoin::Builder | |
include Bitcoin::Protocol | |
include Bitcoin::Util | |
include Bitcoin::Secp256k1 |
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
require 'bitcoin' | |
require 'money-tree' | |
require 'bip44' | |
require 'bech32' | |
include Bitcoin | |
include Bitcoin::Builder | |
include Bitcoin::Protocol | |
include Bitcoin::Util | |
include Bitcoin::Secp256k1 |
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
0x6517D80AA1369316 | |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFi55M0BEADfqA0//Fr91yMaTJPnBrMF2eoV4RPjRyO3UeZWKkduErJMzlLA | |
aYqkQYOOimU+h8WQXj2IJ2/ieBt8mf9qYbP7v3zGsGW2IYNIs3xAOWCGBttVwTCj | |
4TnoMLtbNtZXkAgfzSzh2ixjZkDz8zcNeHPEBxcLFnUTqy+YF78T9M9pYz1bUN2z | |
yF+a2w3GhAm2PwdDboyKCfgoGJDO5Aw6fiuJ610mR/lBOjQ/TWuHEg3HQRbQcK0y | |
gJ9vRLaeC1IXarznpmCFwooRbCrLuOX4GbRoN3khXsOkdYDz2zECVihMNnAg56Ry | |
b5Nl8jGGPfJgZWBnj8oF/cpJkoZhVXVFKtF0CRvuBlsyi/EKIUSJZ6RuhIWF445l | |
574EUUR9TLdV94r5DnS3bZYhXI0FCnbJKWgTDTTCz9toTwMppqd/EGNGnmnAE56b |
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
require 'bitcoin' | |
include Bitcoin | |
include Bitcoin::Builder | |
include Bitcoin::Protocol | |
include Bitcoin::Util | |
include Bitcoin::Secp256k1 | |
# Compute P2SH-P2WPKH address: |
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
/*! | |
* Random private key generator with colorful SVG representation | |
* This gist uses the excellent D3 javascript data visualization library, http://d3js.org | |
* Download D3 or copy this snippet to your html code <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"> | |
* | |
* Copyright Pierre Noizat, http://www.e-ducat.fr, DWTFYW License. | |
*/ | |
var dataset = []; | |
var str = ""; | |