import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial } from "../../../helpers"; /** * PubKey defines a secp256r1 ECDSA public key. * @name PubKey * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PubKey */ export interface PubKey { /** * Point on secp256r1 curve in a compressed representation as specified in section * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 */ key: Uint8Array; } export interface PubKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256r1.PubKey"; value: Uint8Array; } /** * PubKey defines a secp256r1 ECDSA public key. * @name PubKeyAmino * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PubKey */ export interface PubKeyAmino { /** * Point on secp256r1 curve in a compressed representation as specified in section * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 */ key: string; } export interface PubKeyAminoMsg { type: "cosmos-sdk/PubKey"; value: PubKeyAmino; } /** * PrivKey defines a secp256r1 ECDSA private key. * @name PrivKey * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PrivKey */ export interface PrivKey { /** * secret number serialized using big-endian encoding */ secret: Uint8Array; } export interface PrivKeyProtoMsg { typeUrl: "/cosmos.crypto.secp256r1.PrivKey"; value: Uint8Array; } /** * PrivKey defines a secp256r1 ECDSA private key. * @name PrivKeyAmino * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PrivKey */ export interface PrivKeyAmino { /** * secret number serialized using big-endian encoding */ secret: string; } export interface PrivKeyAminoMsg { type: "cosmos-sdk/PrivKey"; value: PrivKeyAmino; } /** * PubKey defines a secp256r1 ECDSA public key. * @name PubKey * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PubKey */ export declare const PubKey: { typeUrl: string; aminoType: string; is(o: any): o is PubKey; isAmino(o: any): o is PubKeyAmino; encode(message: PubKey, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PubKey; fromPartial(object: DeepPartial): PubKey; fromAmino(object: PubKeyAmino): PubKey; toAmino(message: PubKey): PubKeyAmino; fromAminoMsg(object: PubKeyAminoMsg): PubKey; toAminoMsg(message: PubKey): PubKeyAminoMsg; fromProtoMsg(message: PubKeyProtoMsg): PubKey; toProto(message: PubKey): Uint8Array; toProtoMsg(message: PubKey): PubKeyProtoMsg; registerTypeUrl(): void; }; /** * PrivKey defines a secp256r1 ECDSA private key. * @name PrivKey * @package cosmos.crypto.secp256r1 * @see proto type: cosmos.crypto.secp256r1.PrivKey */ export declare const PrivKey: { typeUrl: string; aminoType: string; is(o: any): o is PrivKey; isAmino(o: any): o is PrivKeyAmino; encode(message: PrivKey, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PrivKey; fromPartial(object: DeepPartial): PrivKey; fromAmino(object: PrivKeyAmino): PrivKey; toAmino(message: PrivKey): PrivKeyAmino; fromAminoMsg(object: PrivKeyAminoMsg): PrivKey; toAminoMsg(message: PrivKey): PrivKeyAminoMsg; fromProtoMsg(message: PrivKeyProtoMsg): PrivKey; toProto(message: PrivKey): Uint8Array; toProtoMsg(message: PrivKey): PrivKeyProtoMsg; registerTypeUrl(): void; };