0.6.0-alpha.1 • Published 4 months ago

quick-wallet v0.6.0-alpha.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Quick Wallet

quick-wallet

Headless Arweave browser wallet

Installation

npm install quick-wallet
yarn add quick-wallet

Usage

QuickWallet implements ArweaveInterface. This makes it directly pluggable to compatible libraries. You can check out the type definition of ArweaveInterface here.

:construction: WIP. Not the whole ArweaveInterface has been implemented.

Using with @permaweb/aoconnect

import { message, createDataItemSigner } from "@permaweb/aoconnect";
import { QuickWallet } from 'quick-wallet';

const signer = createDataItemSigner(QuickWallet);

const message_id = await message({
  signer,
  process: `<---- Process ID here ---->`,
  tags: [
    { name: "Action", value: `<----- Action Name ---->` },
  ],
});

Donwload wallet key file

import { downloadFile } from 'quick-wallet/utils';
import { getKeyfile } from 'quick-wallet/core/accounts';
import { freeDecryptedWallet } from 'quick-wallet/core/accounts/encryption';

const jwk = await getKeyfile();
const content = JSON.stringify(jwk);
const blob = new Blob([content], {type: "application/json"});
const blobUrl  = URL.createObjectURL(blob);

// remember to free the decrypted wallet from memory for security purposes
freeDecryptedWallet(jwk);

// download wallet
downloadFile(blobUrl, 'your-wallet.json');
0.6.0-alpha.1

4 months ago

0.5.0

8 months ago

0.3.0

10 months ago

0.3.1

10 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago