/** * @license * @preserve * * KeeeX SAS Public code * https://keeex.me * Copyright 2013-2023 KeeeX All Rights Reserved. * * These computer program listings and specifications, herein, * are and remain the property of KeeeX SAS. The intellectual * and technical concepts herein are proprietary to KeeeX SAS * and may be covered by EU and foreign patents, * patents in process, trade secrets and copyright law. * * These listings are published as a way to provide third party * with the ability to process KeeeX data. * As such, support for public inquiries is limited. * They are provided "as-is", without warrany of any kind. * * They shall not be reproduced or copied or used in whole or * in part as the basis for manufacture or sale of items unless * prior written permission is obtained from KeeeX SAS. * * For a license agreement, please contact: * * */ /** The required elements for each keys */ export interface BundleKeyDefinition { addressHashFirstByte: number; addressHash?: Uint8Array; encryptedDataKey: Uint8Array; } export type BundleKeyDefinitions = Array; /** A single block of data in a bundle */ interface BundleDataContent { cipheredData: Uint8Array; originalHash: Uint8Array; } /** All available block of data in a bundle */ export type BundleDataContents = Record; /** * Provide multiple input data for a bundle. * * @public */ export type InputDataList = Record; /** Input for createBundle() */ export type InputData = InputDataList | Uint8Array; /** Data of a bundle, if blocks of data are available */ interface BundleDataPresent { content: BundleDataContents; present: true; } /** Data of a bundle, if block of data are not available */ interface BundleDataMissing { present: false; } export type BundleData = BundleDataMissing | BundleDataPresent; /** Full content of a bundle */ export interface BundleFileContent { data: BundleData; exchangeKeyType: string; exchangePublicKey: Uint8Array; headers: BundleKeyDefinitions; metadataSignature: Uint8Array; metadata: string; } /** Temporary read data when loading bundle files */ export interface TemporaryReadData { exchangeKeyType: string | undefined; exchangePublicKey: Uint8Array | undefined; metadataSignature: Uint8Array | undefined; metadata: string | undefined; } export {};