cosmos/bech32cosmos

Name: bech32cosmos

Owner: COSMOS

Description: Cosmos variant of the Bit173 Bech format developed.

Created: 2018-02-03 15:58:55.0

Updated: 2018-05-24 01:38:57.0

Pushed: 2018-05-24 01:38:56.0

Homepage: null

Size: 24

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bech32cosmos

ISC License

Package bech32cosmos provides a Go/Js implementation of the bech32cosmos format.

Bech32Cosmos encodes bits such that an error correction code will detect transcription and copy paste errors of values to prevent accidental loss of funds.

This form is derived from the format specified in BIP 173.

The Go part of project is forked from https://github.com/btcsuite/btcutil/tree/master/bech32

bech32cosmos differs from the BIP 173 in two main respect. Mixed capitalization is permitted though the string is evaluated as lowercase. The seperator character between the human readable and data parts of a bech string is : instead of 1.

In Cosmos applications, human readable bytes should be encoded using bech32 before passed to the user.

Applications should also inform users of checksum errors.

Machines to machine interfaces do not require bech32cosmos encoding.

Validator public key are encoded as cosmosvalpubkey:zcjduc3qrx5uxksw6kuftyjmj8w83pkefqs6glmud4ea8juny9qfxge9cxcspr7gqm

Account addresses are encoded as cosmosaccaddr:zgnkwr7eyyv643dllwfpdwensmgdtz89yu73zq

Installation and Updating
 get -u github.com/cosmos/bech32cosmos/go

Bech32Cosmos is Apache 2 licensed.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.