// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/crypto/ed25519/keys.proto (package cosmos.crypto.ed25519, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * PubKey is an ed25519 public key for handling Tendermint keys in SDK. * It's needed for Any serialization and SDK compatibility. * It must not be used in a non Tendermint key context because it doesn't implement * ADR-28. Nevertheless, you will like to use ed25519 in app user level * then you must create a new proto message and follow ADR-28 for Address construction. * * @generated from message cosmos.crypto.ed25519.PubKey */ export class PubKey extends Message { /** * @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.ed25519.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); } } /** * Deprecated: PrivKey defines a ed25519 private key. * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. * * @generated from message cosmos.crypto.ed25519.PrivKey */ export class PrivKey extends Message { /** * @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.ed25519.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); } }