Headless Arweave browser wallet
Warning
The Arweave wallet keyfile is encrypted with a static password and stored in the browser's local storage. Do not assume the security of this encryption.
npm install quick-wallet
yarn add quick-wallet
QuickWallet implements ArweaveInterface
. This makes it directly pluggable to compatible libraries. You can check out the type definition of ArweaveInterface
here.
🚧 WIP. Not the whole
ArweaveInterface
has been implemented.
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 ---->` },
],
});
import { downloadKeyfile } from 'quick-wallet';
// download wallet
downloadKeyfile('your-wallet.json');