1.0.8 • Published 9 months ago

encrypted-arweave v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago