Commit Graph

24 Commits

Author SHA1 Message Date
willclarktech
3a5877452e
amino: Export signature functions/type 2021-03-23 17:41:46 +01:00
willclarktech
a75b299ec5
amino: Copy signature encoding from launchpad 2021-03-23 17:40:48 +01:00
willclarktech
a7c8bb8238
amino: Add @cosmjs/math dependency 2021-03-23 15:49:45 +01:00
Simon Warta
8e9cd145cd Use hex representations for bytes 2021-03-23 14:28:07 +01:00
Simon Warta
599113da83 Add more ordering tests 2021-03-23 14:28:06 +01:00
Simon Warta
e81cb3b017 Inprove createMultisigThresholdPubkey threshold testing 2021-03-23 13:37:26 +01:00
Simon Warta
2655531891 Fix typos 2021-03-23 13:37:26 +01:00
Simon Warta
e0716fac21 Use locale independent sorting 2021-03-23 13:37:26 +01:00
Simon Warta
5fe0f5582e Check threashold against number of pubkeys 2021-03-23 13:37:25 +01:00
Simon Warta
7255af4186 Create createMultisigThresholdPubkey 2021-03-23 13:37:25 +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
18fcd841a4 Let multisig test test multisig 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
7819836387 Create test with custom sorting 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
feef588431 Add 2/2 multisig 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
61aa989fb3 Add MultisigThresholdPubkey/isMultisigThresholdPubkey 2021-03-23 13:37:23 +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