module Bitcoin

Overview

implements the bitcoin address space

Defined in:

address.cr

Class Method Summary

Class Method Detail

def self.address_from_private(priv : String, version = "00") #

generates a bitcoin address from a private key


[View source]
def self.address_from_public_key(pub : String, version = "00") #

generates a bitcoin address for any public key; compressed and uncompressed version 0x00 = btc mainnet; pass different versions for different networks


[View source]
def self.address_from_public_point(p : Secp256k1::EC_Point, version = "00") #

generates a bitcoin address from an public key ec point


[View source]