// Since: cosmos-sdk 0.43 // @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/crypto/secp256r1/keys.proto (package cosmos.crypto.secp256r1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * PubKey defines a secp256r1 ECDSA public key. * * @generated from message cosmos.crypto.secp256r1.PubKey */ export class PubKey extends Message { /** * 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 * * @generated from field: bytes key = 1; */ key = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.crypto.secp256r1.PubKey"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { return new PubKey().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { return new PubKey().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PubKey { return new PubKey().fromJsonString(jsonString, options); } static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { return proto3.util.equals(PubKey, a, b); } } /** * PrivKey defines a secp256r1 ECDSA private key. * * @generated from message cosmos.crypto.secp256r1.PrivKey */ export class PrivKey extends Message { /** * secret number serialized using big-endian encoding * * @generated from field: bytes secret = 1; */ secret = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.crypto.secp256r1.PrivKey"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "secret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { return new PrivKey().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { return new PrivKey().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PrivKey { return new PrivKey().fromJsonString(jsonString, options); } static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { return proto3.util.equals(PrivKey, a, b); } }