Skip to content

ChorusOne/cosmos-bech32-convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmos-bech32-convertor

A Bech32 address convertor for Cosmos SDK

Motivation

Cosmos SDK implemented changes to the format of the bech32 address used on the Cosmos network between the 0.24.2 and 0.25 releases. This script enables users to convert between legacy (pre-0.25) cosmos-sdk bech32 addresses, and the 0.25+ format.

The script should be compatible with both python2 and python3.

This script was made possible using the bech32 python library, written by Pieter Wuille which can be found here

Usage

python convert.py <legacy bech32 address>

Example

$ python3 convert.py cosmosaccpub1addwnpepqg5ec06deee7rk3s0xmwn0f3e66wv65l2xc07ynxzj67z9ld5dcwv6ljvv9

Bech32 convertor v0.1
By Chorus One Inc. [ joe@chorus.one | https://chorus.one ]

Old Key: cosmosaccpub1addwnpepqg5ec06deee7rk3s0xmwn0f3e66wv65l2xc07ynxzj67z9ld5dcwv6ljvv9
New Key: cosmospub1addwnpepqg5ec06deee7rk3s0xmwn0f3e66wv65l2xc07ynxzj67z9ld5dcwvwgyrcu

About

Bech32 address convertor for Cosmos SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages