import { Reader, Writer } from 'protobufjs/minimal'; /** * MsgAnchorDataRequest is the Msg/AnchorData request type. */ export interface MsgAnchorDataRequest { /** * sender is the address of the sender of the transaction. * The sender in StoreData is not attesting to the veracity of the underlying data. * They can simply be a intermediary providing services. */ sender: string; /** * cid is a Content Identifier for the data corresponding to the IPFS CID * specification: https://github.com/multiformats/cid. */ cid: Uint8Array; } /** * MsgAnchorDataRequest is the Msg/AnchorData response type. */ export interface MsgAnchorDataResponse { /** * timestamp is the timestamp of the block at which the data was anchored. */ timestamp?: Date; } /** * MsgSignDataRequest is the Msg/SignData request type. */ export interface MsgSignDataRequest { /** * signers are the addresses of the accounts signing the data. * By making a SignData request, the signers are attesting to the veracity * of the data referenced by the cid. The precise meaning of this may vary * depending on the underlying data. */ signers: string[]; /** * cid is a Content Identifier for the data corresponding to the IPFS CID * specification: https://github.com/multiformats/cid. */ cid: Uint8Array; } /** * MsgSignDataResponse is the Msg/SignData response type. */ export interface MsgSignDataResponse { } /** * MsgStoreDataRequest is the Msg/StoreData request type. */ export interface MsgStoreDataRequest { /** * sender is the address of the sender of the transaction. * The sender in StoreData is not attesting to the veracity of the underlying data. * They can simply be a intermediary providing services. */ sender: string; /** * cid is a Content Identifier for the data corresponding to the IPFS CID * specification: https://github.com/multiformats/cid. */ cid: Uint8Array; /** * content is the content of the data corresponding to the provided CID. * * Currently only data for CID's using sha2-256 and blake2b-256 hash algorithms * can be stored on-chain. */ content: Uint8Array; } /** * MsgStoreDataRequest is the Msg/StoreData response type. */ export interface MsgStoreDataResponse { } /** * Msg is the regen.data.v1alpha1 Msg service */ export interface Msg { /** * AnchorData "anchors" a piece of data to the blockchain based on its secure hash, * effectively providing a tamper resistant timestamp. * * The sender in AnchorData is not attesting to the veracity of the underlying data. * They can simply be a intermediary providing timestamp services. * SignData should be used to create a digital signature attesting to the veracity of some piece of data. */ AnchorData(request: MsgAnchorDataRequest): Promise; /** * SignData allows for signing of an arbitrary piece of data on the blockchain. * By "signing" data the signers are making a statement about the veracity of the * data itself. It is like signing a legal document, meaning that I agree to all * conditions and to the best of my knowledge everything is true. When anchoring * data, the sender is not attesting to the veracity of the data, they are simply * communicating that it exists. * * On-chain signatures have the following benefits: * - on-chain identities can be managed using different cryptographic keys * that change over time through key rotation practices * - an on-chain identity may represent an organization and through delegation * individual members may sign on behalf of the group * - the blockchain transaction envelope provides built-in replay protection * and timestamping * * SignData implicitly calls AnchorData if the data was not already anchored. * * SignData can be called multiple times for the same CID with different signers * and those signers will be appended to the list of signers. */ SignData(request: MsgSignDataRequest): Promise; /** * StoreData stores a piece of data corresponding to a CID on the blockchain. * * Currently only data for CID's using sha2-256 and blake2b-256 hash algorithms * can be stored on-chain. * * StoreData implicitly calls AnchorData if the data was not already anchored. * * The sender in StoreData is not attesting to the veracity of the underlying data. * They can simply be a intermediary providing storage services. * SignData should be used to create a digital signature attesting to the veracity of some piece of data. */ StoreData(request: MsgStoreDataRequest): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); AnchorData(request: MsgAnchorDataRequest): Promise; SignData(request: MsgSignDataRequest): Promise; StoreData(request: MsgStoreDataRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "regen.data.v1alpha1"; export declare const MsgAnchorDataRequest: { encode(message: MsgAnchorDataRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgAnchorDataRequest; fromJSON(object: any): MsgAnchorDataRequest; fromPartial(object: DeepPartial): MsgAnchorDataRequest; toJSON(message: MsgAnchorDataRequest): unknown; }; export declare const MsgAnchorDataResponse: { encode(message: MsgAnchorDataResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgAnchorDataResponse; fromJSON(object: any): MsgAnchorDataResponse; fromPartial(object: DeepPartial): MsgAnchorDataResponse; toJSON(message: MsgAnchorDataResponse): unknown; }; export declare const MsgSignDataRequest: { encode(message: MsgSignDataRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSignDataRequest; fromJSON(object: any): MsgSignDataRequest; fromPartial(object: DeepPartial): MsgSignDataRequest; toJSON(message: MsgSignDataRequest): unknown; }; export declare const MsgSignDataResponse: { encode(_: MsgSignDataResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSignDataResponse; fromJSON(_: any): MsgSignDataResponse; fromPartial(_: DeepPartial): MsgSignDataResponse; toJSON(_: MsgSignDataResponse): unknown; }; export declare const MsgStoreDataRequest: { encode(message: MsgStoreDataRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgStoreDataRequest; fromJSON(object: any): MsgStoreDataRequest; fromPartial(object: DeepPartial): MsgStoreDataRequest; toJSON(message: MsgStoreDataRequest): unknown; }; export declare const MsgStoreDataResponse: { encode(_: MsgStoreDataResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgStoreDataResponse; fromJSON(_: any): MsgStoreDataResponse; fromPartial(_: DeepPartial): MsgStoreDataResponse; toJSON(_: MsgStoreDataResponse): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};