Skip to main content

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/skorn/Documents/creds/kungmeow/lnd
export LND_CRED_PATH=/home/skorn/Documents/creds/kungmeow/lnd
export LND_NODE_IP=kungmeow.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: LND Docs Example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

macabake-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file macabake-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: macabake-0.0.2-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

Hashes for macabake-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa735c0c7fcedf1a348f38e2a36be0057741c399b04a75a7e5b9a8536f2c43c3
MD5 c011bd95f3ce4a5d6b6acca970d1ff18
BLAKE2b-256 c63de42114dfa9d8dca87d5ddbc9b4abc77346456b2b8204edd4c1904c2c430e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page