encrypted-arweave
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

encrypted-arweave

A TypeScript package for encrypted data storage using CryptoJS and Arweave.

Installation

npm install encrypted-arweave

Usage

import { EncryptedArweaveService } from 'encrypted-arweave';
// path to wallet.json and encryption key
const arweaveService = new EncryptedArweaveService('wallet.json', 'test-encryption-key-32-chars-long!!');

// upload data
const transactionId = await arweaveService.uploadEncryptedJson(data);
// wait for transaction to be mined and propagated before fetching
// fetch and decrypt data
const decryptedData = await arweaveService.fetchAndDecryptJson(transactionId);

console.log('Decrypted data:', decryptedData);

Package Sidebar

Install

npm i encrypted-arweave

Weekly Downloads

33

Version

1.0.8

License

MIT

Unpacked Size

15 kB

Total Files

18

Last publish

Collaborators

  • askwhyharsh