Vault is a browser extension inspired by MetaMask that enables seamless interaction with the L402 protocol. It acts as a "web wallet" for managing macaroon tokens and facilitating payments over the Lightning Network. The wallet is designed to simplify the process of authenticating and paying for API services using the L402 standard.
- Macaroon Token Management: Store, retrieve, and manage macaroon tokens securely.
- Lightning Wallet Integration: Connect to a Lightning wallet to make payments and retrieve preimages.
- L402 Protocol Support: Handle the full L402 flow, including token minting, invoice payments, and token validation.
- User-Friendly Interface: A clean and intuitive UI for managing tokens, viewing payment history, and configuring wallet settings.
- Secure Storage: Encrypt sensitive data like tokens and preimages for enhanced security.
- A Lightning wallet (e.g., LND, Phoenix, or any compatible wallet).
- A server implementing the L402 protocol (e.g., amper).
-
Clone the repository:
git clone https://github.com/Byzantium-ETS/vault.git cd vault -
Install dependencies:
npm install
-
Build the extension:
npm run build
-
Load the extension into your browser:
- Open your browser's extensions page.
- Enable "Developer mode."
- Click "Load unpacked" and select the
distfolder.
- Connect your Lightning wallet in the settings page.
- Use the wallet to pay for API services that support the L402 protocol.
- Manage your macaroon tokens and view payment history in the dashboard.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push them to your fork.
- Submit a pull request.