bolt11

Crates.iobolt11
lib.rsbolt11
version0.1.0
sourcesrc
created_at2018-03-22 17:25:48.842501
updated_at2018-03-22 17:25:48.842501
descriptionLightning Network BOLT11 Implementation (Payment Requests)
homepage
repositoryhttps://github.com/kronolynx/bolt11-rust
max_upload_size
id56928
size87,422
Johann Og (kronolynx)

documentation

README

Lightning Payments Requests (BOLT #11) Implementation

This is an implementation of Lightning BOLT11 Specification for providing a minimal QR-code-ready format for requesting lightning payments.

Usage

Add this to your Cargo.toml:

[dependencies]
bolt11 = "0.1.0"

and this to your crate root:

extern crate bolt11;

Example

use bolt11::payment_request::PaymentRequest;

let encoded_payment_request = "lnbc2500u1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqf
    qqqsyqcyq5rqwzqfqypqdq5xysxxatsyp3k7enxv4jsxqzpuaztrnwngzn3kdzw5hydlzf03qdgm2hdq
    27cqv3agm2awhz5se903vruatfhq77w3ls4evs3ch9zw97j25emudupq63nyw24cg27h2rspfj9srp";

let payment_request = PaymentRequest::decode(encoded_payment_request);

Commit count: 88

cargo fmt