Giter Club home page Giter Club logo

invoices's People

Contributors

crisdut avatar dr-orlovsky avatar zoedberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

invoices's Issues

Payment APIs

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.

modify `consignment_endpoints` parameter

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.