Commit Graph

15 Commits

Author SHA1 Message Date
Milan Steiner
4c8b278c1d
Create toBech32 and fromBech32 in @cosmjs/encoding (#1058)
* Create toBech32 and fromBech32

* Add changes to CHANGELOG.md

* Fix linting

* Update packages/encoding/src/bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update packages/encoding/src/bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2022-02-22 14:05:34 +01:00
Hleb Albau
ab7e4f444b #882 fix review comments p2 2021-09-30 15:11:33 +02:00
Hleb Albau
98333c5850 #882 fix review comments 2021-09-30 12:00:51 +02:00
Hleb Albau
aeedeb1c5d #882 Decode multisig pubkey 2021-09-29 20:30:09 +02:00
Simon Warta
8e9cd145cd Use hex representations for bytes 2021-03-23 14:28:07 +01:00
Simon Warta
1a533fc24d Create addresses module 2021-03-23 13:37:25 +01:00
Simon Warta
843b82badd Create pubkeyToAddress in @cosmjs/amino 2021-03-23 13:37:24 +01:00
Simon Warta
3fb79b3dd7 Add rawSecp256k1PubkeyToRawAddress to @cosmjs/amino 2021-03-23 13:37:24 +01:00
Simon Warta
4f5d919c2c Create pubkeyToRawAddress and make it work for multisig accounts 2021-03-23 13:37:24 +01:00
Simon Warta
09ce133331 Replace switch with type checks 2021-03-23 13:37:24 +01:00
Simon Warta
ae97ce76a4 Add more clarity on encodeUvarint 2021-03-23 13:37:24 +01:00
Simon Warta
99e1ac36b8 Add support for multisig in encodeAminoPubkey 2021-03-23 13:37:24 +01:00
Simon Warta
6190ca5c64 Cleanup prefix handling for decodeAminoPubkey 2021-03-23 13:37:23 +01:00
Simon Warta
810389d784 Generalize pubkey types 2021-03-23 13:37:23 +01:00
Simon Warta
f8cf23766c Pull out pubkey functionality into @cosmjs/amino 2021-03-23 13:37:18 +01:00