lighthouse-package-fork
Version:
NPM package and CLI tool to interact with lighthouse protocol
12 lines (11 loc) • 572 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const lighthouse_encryption_sdk_browser_1 = require("lighthouse-encryption-sdk-browser");
exports.default = async (publicKey, cid, signedMessage, conditions, aggregator = undefined, chainType = 'evm') => {
// send encryption key
const { isSuccess, error } = await (0, lighthouse_encryption_sdk_browser_1.accessControl)(publicKey, cid, signedMessage, conditions, aggregator, chainType);
if (error) {
throw error;
}
return { data: { cid: cid, status: 'Success' } };
};