Creates a coin.
If your values do not exceed the safe integer range of JS numbers (53 bit), you can use the number type here. This is the case for all typical Cosmos SDK chains that use the default 6 decimals.
In case you need to supportr larger values, use unsigned integer strings instead.
Creates a list of coins with one element.
Decodes a pubkey in the Amino binary format to a type/value object.
Decodes a bech32 pubkey to Amino binary, which is then decoded to a type/value object. The bech32 prefix is ignored and discareded.
the bech32 encoded pubkey
Encodes a public key to binary Amino.
Encodes a public key to binary Amino and then to bech32.
the public key to encode
the bech32 prefix (human readable part)
Takes an Edd25519 public key as raw bytes and returns the Amino JSON representation of it (the type/value wrapper object).
Takes a Secp256k1 public key as raw bytes and returns the Amino JSON representation of it (the type/value wrapper object).
Takes a binary pubkey and signature to create a signature object
a compressed secp256k1 public key
a 64 byte fixed length representation of secp256k1 signature components r and s
The Cosmos Hub derivation path in the form m/44'/118'/0'/0/a
with 0-based account index a
.
Takes a coins list like "819966000ucosm,700000000ustake" and parses it.
A Stargate-ready variant of this function is available via:
import { parseCoins } from "@cosmjs/proto-signing";
// or
import { parseCoins } from "@cosmjs/stargate";
Generated using TypeDoc
https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/secp256k1/secp256k1.go#L23