1.0.8 • Published 7 months ago

encrypted-arweave v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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);
1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago