// package: ics23 // file: confio/proofs.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; export class ExistenceProof extends jspb.Message { getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): ExistenceProof; getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): ExistenceProof; hasLeaf(): boolean; clearLeaf(): void; getLeaf(): LeafOp | undefined; setLeaf(value?: LeafOp): ExistenceProof; clearPathList(): void; getPathList(): Array; setPathList(value: Array): ExistenceProof; addPath(value?: InnerOp, index?: number): InnerOp; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ExistenceProof.AsObject; static toObject(includeInstance: boolean, msg: ExistenceProof): ExistenceProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: ExistenceProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ExistenceProof; static deserializeBinaryFromReader(message: ExistenceProof, reader: jspb.BinaryReader): ExistenceProof; } export namespace ExistenceProof { export type AsObject = { key: Uint8Array | string, value: Uint8Array | string, leaf?: LeafOp.AsObject, pathList: Array, } } export class NonExistenceProof extends jspb.Message { getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): NonExistenceProof; hasLeft(): boolean; clearLeft(): void; getLeft(): ExistenceProof | undefined; setLeft(value?: ExistenceProof): NonExistenceProof; hasRight(): boolean; clearRight(): void; getRight(): ExistenceProof | undefined; setRight(value?: ExistenceProof): NonExistenceProof; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NonExistenceProof.AsObject; static toObject(includeInstance: boolean, msg: NonExistenceProof): NonExistenceProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: NonExistenceProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): NonExistenceProof; static deserializeBinaryFromReader(message: NonExistenceProof, reader: jspb.BinaryReader): NonExistenceProof; } export namespace NonExistenceProof { export type AsObject = { key: Uint8Array | string, left?: ExistenceProof.AsObject, right?: ExistenceProof.AsObject, } } export class CommitmentProof extends jspb.Message { hasExist(): boolean; clearExist(): void; getExist(): ExistenceProof | undefined; setExist(value?: ExistenceProof): CommitmentProof; hasNonexist(): boolean; clearNonexist(): void; getNonexist(): NonExistenceProof | undefined; setNonexist(value?: NonExistenceProof): CommitmentProof; hasBatch(): boolean; clearBatch(): void; getBatch(): BatchProof | undefined; setBatch(value?: BatchProof): CommitmentProof; hasCompressed(): boolean; clearCompressed(): void; getCompressed(): CompressedBatchProof | undefined; setCompressed(value?: CompressedBatchProof): CommitmentProof; getProofCase(): CommitmentProof.ProofCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CommitmentProof.AsObject; static toObject(includeInstance: boolean, msg: CommitmentProof): CommitmentProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: CommitmentProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CommitmentProof; static deserializeBinaryFromReader(message: CommitmentProof, reader: jspb.BinaryReader): CommitmentProof; } export namespace CommitmentProof { export type AsObject = { exist?: ExistenceProof.AsObject, nonexist?: NonExistenceProof.AsObject, batch?: BatchProof.AsObject, compressed?: CompressedBatchProof.AsObject, } export enum ProofCase { PROOF_NOT_SET = 0, EXIST = 1, NONEXIST = 2, BATCH = 3, COMPRESSED = 4, } } export class LeafOp extends jspb.Message { getHash(): HashOp; setHash(value: HashOp): LeafOp; getPrehashKey(): HashOp; setPrehashKey(value: HashOp): LeafOp; getPrehashValue(): HashOp; setPrehashValue(value: HashOp): LeafOp; getLength(): LengthOp; setLength(value: LengthOp): LeafOp; getPrefix(): Uint8Array | string; getPrefix_asU8(): Uint8Array; getPrefix_asB64(): string; setPrefix(value: Uint8Array | string): LeafOp; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LeafOp.AsObject; static toObject(includeInstance: boolean, msg: LeafOp): LeafOp.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: LeafOp, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): LeafOp; static deserializeBinaryFromReader(message: LeafOp, reader: jspb.BinaryReader): LeafOp; } export namespace LeafOp { export type AsObject = { hash: HashOp, prehashKey: HashOp, prehashValue: HashOp, length: LengthOp, prefix: Uint8Array | string, } } export class InnerOp extends jspb.Message { getHash(): HashOp; setHash(value: HashOp): InnerOp; getPrefix(): Uint8Array | string; getPrefix_asU8(): Uint8Array; getPrefix_asB64(): string; setPrefix(value: Uint8Array | string): InnerOp; getSuffix(): Uint8Array | string; getSuffix_asU8(): Uint8Array; getSuffix_asB64(): string; setSuffix(value: Uint8Array | string): InnerOp; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InnerOp.AsObject; static toObject(includeInstance: boolean, msg: InnerOp): InnerOp.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: InnerOp, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): InnerOp; static deserializeBinaryFromReader(message: InnerOp, reader: jspb.BinaryReader): InnerOp; } export namespace InnerOp { export type AsObject = { hash: HashOp, prefix: Uint8Array | string, suffix: Uint8Array | string, } } export class ProofSpec extends jspb.Message { hasLeafSpec(): boolean; clearLeafSpec(): void; getLeafSpec(): LeafOp | undefined; setLeafSpec(value?: LeafOp): ProofSpec; hasInnerSpec(): boolean; clearInnerSpec(): void; getInnerSpec(): InnerSpec | undefined; setInnerSpec(value?: InnerSpec): ProofSpec; getMaxDepth(): number; setMaxDepth(value: number): ProofSpec; getMinDepth(): number; setMinDepth(value: number): ProofSpec; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProofSpec.AsObject; static toObject(includeInstance: boolean, msg: ProofSpec): ProofSpec.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: ProofSpec, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ProofSpec; static deserializeBinaryFromReader(message: ProofSpec, reader: jspb.BinaryReader): ProofSpec; } export namespace ProofSpec { export type AsObject = { leafSpec?: LeafOp.AsObject, innerSpec?: InnerSpec.AsObject, maxDepth: number, minDepth: number, } } export class InnerSpec extends jspb.Message { clearChildOrderList(): void; getChildOrderList(): Array; setChildOrderList(value: Array): InnerSpec; addChildOrder(value: number, index?: number): number; getChildSize(): number; setChildSize(value: number): InnerSpec; getMinPrefixLength(): number; setMinPrefixLength(value: number): InnerSpec; getMaxPrefixLength(): number; setMaxPrefixLength(value: number): InnerSpec; getEmptyChild(): Uint8Array | string; getEmptyChild_asU8(): Uint8Array; getEmptyChild_asB64(): string; setEmptyChild(value: Uint8Array | string): InnerSpec; getHash(): HashOp; setHash(value: HashOp): InnerSpec; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InnerSpec.AsObject; static toObject(includeInstance: boolean, msg: InnerSpec): InnerSpec.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: InnerSpec, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): InnerSpec; static deserializeBinaryFromReader(message: InnerSpec, reader: jspb.BinaryReader): InnerSpec; } export namespace InnerSpec { export type AsObject = { childOrderList: Array, childSize: number, minPrefixLength: number, maxPrefixLength: number, emptyChild: Uint8Array | string, hash: HashOp, } } export class BatchProof extends jspb.Message { clearEntriesList(): void; getEntriesList(): Array; setEntriesList(value: Array): BatchProof; addEntries(value?: BatchEntry, index?: number): BatchEntry; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BatchProof.AsObject; static toObject(includeInstance: boolean, msg: BatchProof): BatchProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: BatchProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): BatchProof; static deserializeBinaryFromReader(message: BatchProof, reader: jspb.BinaryReader): BatchProof; } export namespace BatchProof { export type AsObject = { entriesList: Array, } } export class BatchEntry extends jspb.Message { hasExist(): boolean; clearExist(): void; getExist(): ExistenceProof | undefined; setExist(value?: ExistenceProof): BatchEntry; hasNonexist(): boolean; clearNonexist(): void; getNonexist(): NonExistenceProof | undefined; setNonexist(value?: NonExistenceProof): BatchEntry; getProofCase(): BatchEntry.ProofCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BatchEntry.AsObject; static toObject(includeInstance: boolean, msg: BatchEntry): BatchEntry.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: BatchEntry, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): BatchEntry; static deserializeBinaryFromReader(message: BatchEntry, reader: jspb.BinaryReader): BatchEntry; } export namespace BatchEntry { export type AsObject = { exist?: ExistenceProof.AsObject, nonexist?: NonExistenceProof.AsObject, } export enum ProofCase { PROOF_NOT_SET = 0, EXIST = 1, NONEXIST = 2, } } export class CompressedBatchProof extends jspb.Message { clearEntriesList(): void; getEntriesList(): Array; setEntriesList(value: Array): CompressedBatchProof; addEntries(value?: CompressedBatchEntry, index?: number): CompressedBatchEntry; clearLookupInnersList(): void; getLookupInnersList(): Array; setLookupInnersList(value: Array): CompressedBatchProof; addLookupInners(value?: InnerOp, index?: number): InnerOp; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CompressedBatchProof.AsObject; static toObject(includeInstance: boolean, msg: CompressedBatchProof): CompressedBatchProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: CompressedBatchProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CompressedBatchProof; static deserializeBinaryFromReader(message: CompressedBatchProof, reader: jspb.BinaryReader): CompressedBatchProof; } export namespace CompressedBatchProof { export type AsObject = { entriesList: Array, lookupInnersList: Array, } } export class CompressedBatchEntry extends jspb.Message { hasExist(): boolean; clearExist(): void; getExist(): CompressedExistenceProof | undefined; setExist(value?: CompressedExistenceProof): CompressedBatchEntry; hasNonexist(): boolean; clearNonexist(): void; getNonexist(): CompressedNonExistenceProof | undefined; setNonexist(value?: CompressedNonExistenceProof): CompressedBatchEntry; getProofCase(): CompressedBatchEntry.ProofCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CompressedBatchEntry.AsObject; static toObject(includeInstance: boolean, msg: CompressedBatchEntry): CompressedBatchEntry.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: CompressedBatchEntry, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CompressedBatchEntry; static deserializeBinaryFromReader(message: CompressedBatchEntry, reader: jspb.BinaryReader): CompressedBatchEntry; } export namespace CompressedBatchEntry { export type AsObject = { exist?: CompressedExistenceProof.AsObject, nonexist?: CompressedNonExistenceProof.AsObject, } export enum ProofCase { PROOF_NOT_SET = 0, EXIST = 1, NONEXIST = 2, } } export class CompressedExistenceProof extends jspb.Message { getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): CompressedExistenceProof; getValue(): Uint8Array | string; getValue_asU8(): Uint8Array; getValue_asB64(): string; setValue(value: Uint8Array | string): CompressedExistenceProof; hasLeaf(): boolean; clearLeaf(): void; getLeaf(): LeafOp | undefined; setLeaf(value?: LeafOp): CompressedExistenceProof; clearPathList(): void; getPathList(): Array; setPathList(value: Array): CompressedExistenceProof; addPath(value: number, index?: number): number; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CompressedExistenceProof.AsObject; static toObject(includeInstance: boolean, msg: CompressedExistenceProof): CompressedExistenceProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: CompressedExistenceProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CompressedExistenceProof; static deserializeBinaryFromReader(message: CompressedExistenceProof, reader: jspb.BinaryReader): CompressedExistenceProof; } export namespace CompressedExistenceProof { export type AsObject = { key: Uint8Array | string, value: Uint8Array | string, leaf?: LeafOp.AsObject, pathList: Array, } } export class CompressedNonExistenceProof extends jspb.Message { getKey(): Uint8Array | string; getKey_asU8(): Uint8Array; getKey_asB64(): string; setKey(value: Uint8Array | string): CompressedNonExistenceProof; hasLeft(): boolean; clearLeft(): void; getLeft(): CompressedExistenceProof | undefined; setLeft(value?: CompressedExistenceProof): CompressedNonExistenceProof; hasRight(): boolean; clearRight(): void; getRight(): CompressedExistenceProof | undefined; setRight(value?: CompressedExistenceProof): CompressedNonExistenceProof; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CompressedNonExistenceProof.AsObject; static toObject(includeInstance: boolean, msg: CompressedNonExistenceProof): CompressedNonExistenceProof.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: CompressedNonExistenceProof, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CompressedNonExistenceProof; static deserializeBinaryFromReader(message: CompressedNonExistenceProof, reader: jspb.BinaryReader): CompressedNonExistenceProof; } export namespace CompressedNonExistenceProof { export type AsObject = { key: Uint8Array | string, left?: CompressedExistenceProof.AsObject, right?: CompressedExistenceProof.AsObject, } } export enum HashOp { NO_HASH = 0, SHA256 = 1, SHA512 = 2, KECCAK = 3, RIPEMD160 = 4, BITCOIN = 5, } export enum LengthOp { NO_PREFIX = 0, VAR_PROTO = 1, VAR_RLP = 2, FIXED32_BIG = 3, FIXED32_LITTLE = 4, FIXED64_BIG = 5, FIXED64_LITTLE = 6, REQUIRE_32_BYTES = 7, REQUIRE_64_BYTES = 8, }