lnp-bp / invoices Goto Github PK
View Code? Open in Web Editor NEWLibraries for universal LNP/BP invoices covering Bitcoin, LN & RGB (LNPBP-38 standard)
License: MIT License
Libraries for universal LNP/BP invoices covering Bitcoin, LN & RGB (LNPBP-38 standard)
License: MIT License
The invoice protocol here is intended to act as universal payment protocol - not RGB specific. It should be compatible with other asset protocols (for instance, Liquid), as well as should work for native Bitcoin and Lightning.
Thus, I'd like to ensure we do not use anything that locks us on RGB usage.
As of now, I think that having rgb-specific list of consignment APIs is fine, as far as it has a dedicated TLV type - such that other payment protocols which may require a dedicated payment API can always use a different TLV for their purpose.
Looking at the Invoice
struct I see a consignment_endpoints
parameter that is defined as Vec<NodeAddr>
. NodeAddr
is a struct with an id
(NodeId
) and an addr
(InetSocketAddr
) and is documented as Internet P2P node address
.
We believe that consignment_endpoints
should be changed to something as (wording can be discussed) Vec<ConsignmentEndpoint>
where ConsignmentEndpoint
is defined as an enum that can be Storm(NodeAddr)
or RestProxy(Url)
. In this way in the future it will be easy and backwards-compatible to add other "protocols" that allow the transfer of consignments.
rgb-proxy-server is an example of such "rest proxy", I plan to add documentation on "protocol" APIs so that the proxy can be implemented also in other programming languages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.