Documentation ¶
Overview ¶
Elliptic curve cryptography is used to generate public keys and Bitcoin addresses.
The public key can be generated by multiplying the private key and the generator point on the Elliptic curve.
K = k * G
G is the generator point on the Elliptic curve. k is a private key in the form of a randomly generated number. K is a public key.
How to generate Bitcoin address ¶
Pulick Key --> SHA256 --> RIPEMD160 --> Base58Check Encoding --> Bitcoin Address
Base58Check Encoding 1. Payload 2. Version + Payload 3. (Version + Payload) --> SHA256 --> SHA256 --> First 4bytes --> Checksum 3. Version + Payload + Checksum 4. (Version + Payload + Checksum) --> Base58 encode
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58Decode ¶
func Base58Encode ¶
func DistanceXor ¶
func DistanceXor2 ¶
func HashPubKey ¶
func ValidateAddress ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.