Newer
Older

Igor Markin
committed
import VerificationError from "./services/VerificationService/VerificationError";
name: string;
url?: string;
size: number;
hash: string;
export interface IpfsContentData {
cid: string;
key: string;
head: string;
}
export interface IpfsDocumentContentData {
export interface IpfsAttachmentData {
cid: string;
key: string;
contentHash: string;
head: string;

Alexey Lunin
committed
contentType: string;

Alexey Lunin
committed
export declare type IpfsDataVersion = undefined | "v2";

Alexey Lunin
committed
version: IpfsDataVersion;
plaintText: IpfsContentData;
html: IpfsContentData;
attachments: Array<IpfsAttachmentData>;
}
status?: StatusObject;
statusClassName?: string;

Igor Markin
committed
timestamp: number;
export interface StatusesBatchData {
verificationMethod: string;
hash: string;
items: Array<string>;

Igor Markin
committed
verificationError?: VerificationError;
blockHeight: number;
timestamp: number;
confirmationsAmount: number;
blockHash: string;
time?: number;
export interface DecodedCallData {
key: string;
value: string;
export interface AttachmentSignature {
value: string;
preSignHashAlgorithm: string;
}
attachmentsSignatures: {
[key: string]: {
list: AttachmentSignature[];
};
messageSignatureHashingAlgorithm: string;
senderSystem: string;
htmlPartsSignature?: string;
plainPartsSignature?: string;
pseudoPlainPartsSignature?: string;
}
export interface RecipientStatusObjectData {
emailHash: string;
}
export interface RecipientStatusObject {
export interface QrCodeData {
encryptedKey: Uint8Array;
encryptedData: Uint8Array;
nonce: Uint8Array;
}
export declare type StatusObject = SenderStatusObject | RecipientStatusObject;
export interface KeyDataPair {
key: string;
data: string;
}
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
export interface ICert {
clientCertificate: boolean;
issuedBy: {
countryName: string;
organizationName: string;
commonName: string;
};
issuedTo: {
countryName: string;
organizationalUnitName: string;
organizationName: string;
commonName: string;
};
validityPeriod: {
notBefore: string;
notAfter: string;
};
pemCertificate: string;
}
export interface ISignature {
isExpired: boolean;
meta: {
certs: Array<ICert>;
reason: string;
contactInfo: string;
location: string;
signDate: string;
};
}
export interface DocumentData {
author: string;
documentTitle: string;
creationDate: string;
expired?: boolean;
signatures?: Array<ISignature>;
}
export interface DocumentStatusObject {
timestamp: number;
sealHash: string;
}
export interface SealHeadData {
key: string;
data: string;
ipfsIndexCid: string;
}
export interface SealIndexObject {
sealKey: string;
sealTailCid: string;
chain: string;
transactionId: string;
hashBatchId: string;