Newer
Older

Igor Markin
committed
import VerificationError from "./services/VerificationService/VerificationError";
hashAlg: string;
export interface IpfsContentData {
cid: string;
key: string;
head: string;
}
export interface IpfsAttachmentData {
cid: string;
key: string;
contentHash: string;
head: string;

Alexey Lunin
committed
contentType: string;

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

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

Igor Markin
committed
timestamp: number;
export interface BatchVerificationDetails {
export interface StatusesBatchData {
verificationMethod: string;
hash: string;
items: Array<string>;
}
export interface VerificationData {
statusData?: StatusData;
blockData?: BlockData;
batchVerificationDetails?: BatchVerificationDetails;

Igor Markin
committed
verificationError?: VerificationError;
}
export interface BlockData {
blockHeight: number;
timestamp: number;
confirmationsAmount: number;
}
export interface TxData {
hash: string;
blockHeight: number;
blockHash: string;
time?: number;
export interface DecodedCallData {
key: string;
value: string;
export interface AttachmentSignature {
value: string;
preSignHashAlgorithm: string;
}
export interface SenderStatusObject {
signatureTime: number;
attachmentsSignatures: { [key: string]: { list: AttachmentSignature[] } };
messageSignatureHashingAlgorithm: string;
senderSystem: string;
htmlPartsSignature?: string;
plainPartsSignature?: string;
pseudoPlainPartsSignature?: string;
}
export interface RecipientStatusObjectData {
gatewayDomainHash: string;
randomToken: string;
emailHash: string;
iv: string;
encryptedContent: string;
decryptors: { [key: string]: string };
export interface QrCodeData {
encryptedKey: Uint8Array;
encryptedData: Uint8Array;
nonce: Uint8Array;
}
export type StatusObject = SenderStatusObject | RecipientStatusObject;
// Types
export interface KeyDataPair {
key: string;
data: string;
}
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
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>;
ipfs?: IpfsContentData;
}
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;
}