import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Operation } from "./operation"; import { AttestationStatus } from "./status"; export declare const protobufPackage = "simplestamp.v1"; /** * SimpleStamp data models for storing attestations. * * License: Unlicense https://unlicense.org */ /** * An Attestation represents the history and details of the submission of the hash + nonce * defined in the Timestamp it is encapsulated in. */ export interface Attestation { /** The fully qualified URL of the calendar server the stamping was made on. */ calendarUrl: string; /** UNIX timestamp of when the call to the calendar server was made. */ submitted: number; /** * The sequence of operations the calendar server responded with, * performed on the original hash to get the timestamp URL on the * server for status. */ operations: Operation[]; status: AttestationStatus; /** If the attestation indicates it is on chain */ blockHeight: number; /** The merkle root of the block containing the transaction with verification */ blockMerkleRoot: Uint8Array; /** * The merkle root of all of the hashes committed to the Open Timestamps server. * This is committed to the transaction on chain as an OP_RETURN */ timestampMerkleRoot: Uint8Array; /** * The transaction ID of the on chain transaction holding the merkle root of * the calendar server data being attested. */ transactionId: Uint8Array; } export declare const Attestation: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {}; //# sourceMappingURL=attestation.d.ts.map