@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
17 lines (16 loc) • 1.03 kB
TypeScript
import { BaseAccount } from '../../../proto/cosmos/auth/v1beta1/auth_pb';
import type { Bytes } from '@tendermint/types';
import { SignerInfo } from '../../../proto/cosmos/tx/v1beta1/tx_pb';
/** Builds the SignerInfo messages, which describes the public key and
* signing mode of a single top-level signer
* @param baseAccount: The base account used for signatures. This provides
* the signer sequence. The sequence is the sequence of the account, which
* describes the number of committed transactions signed by a given address.
* It is used to prevent replay attacks.
* @param pubKeyBytes: The public key of the signer as a Uint8Array. It is
* optional for accounts that already exist in state. If unset, the verifier
* can use the required signer address for this position and lookup the public
* key.
* reference: https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/proto/cosmos/tx/v1beta1/tx.proto#L13-L26
*/
export declare const buildSignerInfo: (baseAccount: BaseAccount, pubKeyBytes: Bytes) => SignerInfo;