No project description provided
Project description
Macabake
A tool for creating custom macaroons
LND Config Environment Variables
Put these environment variables into your path
export CRED_PATH=/home/lnd_user/Documents/creds/awesome-node/lnd
export LND_CRED_PATH=/home/lnd_user/Documents/creds/awesome-node/lnd
export LND_NODE_IP=awesome-node.m.voltageapp.io
export LND_NODE_PORT=10009
This script expects there to be a valid admin.macaroon
and a tls.cert
file located at CRED_PATH
/LND_CRED_PATH
.
Example
Bake a custom macaroon
macabake bakemacaroon \
--apis Lightning OpenChannel \
--apis Lightning SubscribeChannelEvents \
--apis Lightning ConnectPeer \
--output_filename=mycustommacaroon.macaroon
The macaroon is saved into the same directory as admin.macaroon
, which is at the $CRED_PATH
environment variable.
The --apis
flag can be passed multiple times, and is two strings: Subsystem API_name. The subsystems are listed on the LND docs website, like in the image below or using the command:
macabake list-lnd-subsystems
You can view which APIs are in each subsystem like so:
macabake list-lnd-apis --subsystem WalletKit
LND Subsystems from LND Docs
Link to LND API Docs:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file macabake-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: macabake-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea4c79705a40a663eb01c6e86cc640630f31ef501f711b7c0a9ee98126ecb6e |
|
MD5 | de41fe21713d39446797b8121558f65a |
|
BLAKE2b-256 | 4de78b608dfb5baabcf87f03c2053046819c29cf33174bf1e282b666679cdca8 |