// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file ethermint/crypto/v1/ethsecp256k1/keys.proto (package ethermint.crypto.v1.ethsecp256k1, 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 type alias for an ecdsa.PublicKey that implements * Tendermint's PubKey interface. It represents the 33-byte compressed public * key format. * * @generated from message ethermint.crypto.v1.ethsecp256k1.PubKey */ export class PubKey extends Message { /** * key is the public key in byte form * * @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 = "ethermint.crypto.v1.ethsecp256k1.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 type alias for an ecdsa.PrivateKey that implements * Tendermint's PrivateKey interface. * * @generated from message ethermint.crypto.v1.ethsecp256k1.PrivKey */ export class PrivKey extends Message { /** * key is the private key in byte form * * @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 = "ethermint.crypto.v1.ethsecp256k1.PrivKey"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", 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); } }