/** * @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: * * */ import * as cryptoKeys from "@keeex/crypto/keys.js"; import type * as types from "./types.js"; import type { IKeypair } from "../shared/keypair.js"; import type Unmarshaller from "@keeex/utils/marshalling/unmarshaller.js"; export declare const CHECK_KEY = "__check__"; export declare const decryptDataKey: (sharedSecret: Uint8Array, encryptedDataKey: Uint8Array) => Promise; /** Hash the key address */ export declare const prepareAddressHash: (key: IKeypair) => Promise; /** Compute a single recipient header */ export declare const computeRecipientHeader: (sharedSecret: Uint8Array, dataKeyBytes: Uint8Array, recipientKey: IKeypair) => Promise; export declare const computeOriginalHash: (data: Uint8Array) => Promise; /** Encrypt the payloads */ export declare const prepareContent: (rawInputData: types.InputData, dataKey: cryptoKeys.CryptoKey) => Promise; /** * Read a bundle V2 file (after version byte) * * Only difference is local type key string for bitcoin and the metadata signature which is stored * raw. * Payload remains the same as V1. */ export declare const loadBundleFileV2: (unmarshaller: Unmarshaller) => Promise;