interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
52 lines (51 loc) • 1.67 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../binary";
import { DeepPartial } from "../../helpers";
/**
* PublicKey defines the keys available for use with Validators
* @name PublicKey
* @package tendermint.crypto
* @see proto type: tendermint.crypto.PublicKey
*/
export interface PublicKey {
ed25519?: Uint8Array;
secp256k1?: Uint8Array;
}
export interface PublicKeyProtoMsg {
typeUrl: "/tendermint.crypto.PublicKey";
value: Uint8Array;
}
/**
* PublicKey defines the keys available for use with Validators
* @name PublicKeyAmino
* @package tendermint.crypto
* @see proto type: tendermint.crypto.PublicKey
*/
export interface PublicKeyAmino {
ed25519?: string;
secp256k1?: string;
}
export interface PublicKeyAminoMsg {
type: "/tendermint.crypto.PublicKey";
value: PublicKeyAmino;
}
/**
* PublicKey defines the keys available for use with Validators
* @name PublicKey
* @package tendermint.crypto
* @see proto type: tendermint.crypto.PublicKey
*/
export declare const PublicKey: {
typeUrl: string;
is(o: any): o is PublicKey;
isAmino(o: any): o is PublicKeyAmino;
encode(message: PublicKey, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): PublicKey;
fromPartial(object: DeepPartial<PublicKey>): PublicKey;
fromAmino(object: PublicKeyAmino): PublicKey;
toAmino(message: PublicKey): PublicKeyAmino;
fromAminoMsg(object: PublicKeyAminoMsg): PublicKey;
fromProtoMsg(message: PublicKeyProtoMsg): PublicKey;
toProto(message: PublicKey): Uint8Array;
toProtoMsg(message: PublicKey): PublicKeyProtoMsg;
registerTypeUrl(): void;
};