not your keys .. not your bitcoin

require 'digest'
require 'bitcoin'
passphrase = "my wonderful passphrase I need to not forget :)"
k = Digest::SHA256.hexdigest(passphrase)
key = Bitcoin::Key.new(k)
puts "Private key : #{k}"
puts "Compressed Address : #{key.addr}"

--

--

--

https://rubyrails.ninja/en/formations is a platform of advanced Ruby and Rails online courses on topics such as machine learning, blockchain, marketing, ..

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

10 Canadians To Watch in the Crypto Space

Defining Total Value Secured (TVS) In Decentralized Oracle Networks

Total Value Secured (TVS) in Oracle Protocols

ABCC Exchange — Top a Singapore crypto exchange

Cryptoindex AI Daily Predictions and News for 12/29/2019

Econometrics: Modelling the BUMP Token

ONTO + Hashbon = AMA

The blockchain platform for building fully integrated financial services — Financio

NEM, POLKADOT, KUSAMA AND SUBSTRATE — LEAD WALLET 1ST QUARTER AGENDA FOR 2021

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
RubyRailsNinja

RubyRailsNinja

https://rubyrails.ninja/en/formations is a platform of advanced Ruby and Rails online courses on topics such as machine learning, blockchain, marketing, ..

More from Medium

NFT or Non-fungible Tokens. The Cryptocurrency Phenomenon

NFT or Non-fungible Tokens. The Cryptocurrency Phenomenon

The crypto crash wasn't as bad as you might think… 📉

it won't be strange to say that in Cryptocurrency as the years goes by, new projects have…

Hello dear friends Welcome to the official CHARISMA group.