iotex-address

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

iotex-address

This is the golang library of the address used in IoTeX blockchain and relatant products and services.

Address Generation Algorithm

A human readable address looks like io1nyjs526mnqcsx4twa7nptkg08eclsw5c2dywp4. It takes the following steps to be constructed:

  1. Generating public key (pk) by using secp256k1's elliptic curve.
  2. Apply keccak256 hash function public key bytes, exluding the first byte (hash := keccak256(pk[1:]).
  3. Taking the late 20 bytes as the payload (payload := hash[12:]), which is the byte representation of the address.
  4. Appying bech32 encoding on the payload and adding io prefix.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bech32
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader.
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader.

Jump to

Keyboard shortcuts

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