create-bitcoin-address-from-ecdsa-publickey

command
v0.0.0-...-a2a1f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 12 Imported by: 0

README

create-bitcoin-address-from-ecdsa-publickey example

Create a bitcoin address from your ecdsa public key using the crypto/ecdsa standard package.

Table of Contents,

GitHub Webpage

PREREQUISITES

go get -v -u github.com/btcsuite/btcutil/base58
go get -v -u golang.org/x/crypto/ripemd160

OVERVIEW

This code is broken up as follows,

  • generateECDSAKeys()
    • encodeKeys()
    • decodeKeys()
  • generateBitcoinAddress()
    • hashPublicKey()
    • checksumKeyHash()
    • encodeKeyHash()

This illustration may help,

IMAGE - create-bitcoin-address-from-ecdsa-publickey - IMAGE

RUN

go run create-bitcoin-address-from-ecdsa-publickey.go

A website I used to test my code here.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL