Giter Club home page Giter Club logo

lightning-api-ng's People

Contributors

crex15 avatar guggero avatar jamaljsr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lightning-api-ng's Issues

Port Typescript markdown generator to golang

Currently, the docs generation pipeline has the merger tool written in golang which ingests the protos and outputs JSON files which are consumed by the Typescript generate-docs tool which outputs the markdown files for Docusaurus.

It would make the pipeline simpler if we ported the generate-docs TS code to golang into the merger code. This would remove the intermediate step of outputting JSON and simplify the maintenance of the build pipeline going forward.

fungibility of taproot assets minted within one asset group but in multiple batches

Hello,

I'm not sure if this is really an issue with taproot-assets, or if I have misunderstood something.

I am trying to understand how to issue an asset in multiple batches, so that the total circulating supply is increased every time that I call the MintAsset API endpoint.

So far I have only managed to perform multiple mints so that I end up with multiple asset_ids, all grouped by the same group_key. I have not found a way to issue assets over multiple batches, while preserving the same asset_id over all mints. Is there any way to do this? If there is, please let me know, in which case the remainder of my question is irrelevant.

My understanding is that we can use the group_key to get the circulating supply and hot wallet balance for a group, and we can conceptually think of the group of assets to be "the asset". But if there is no way to perform multiple mints of the same asset while preserving the same asset_id, then I think this creates some problems with fungibility:

  1. When sending an asset, I have to decide which asset_id/batch to send from. If I have minted 1000 units of an asset, and then an additional 1000 units of the same asset in the same group but in a different batch, I can't just send 1100 units in one go.

  2. When generating an asset address to receive these, this is done by passing an asset_id to NewAddr. Suppose I have minted an asset over two batches. I now wish to transfer some of this asset. I generate an asset address using the first asset_id. Can I now transfer any assets minted by the second batch to that address? If not, then the assets minted between the two batches are not really fungible.

Does this problem really exist? Or have I misunderstood something regarding assets, asset groups, and minting? I would very much appreciate it if someone could explain this to me.

P.S. By the way, I have to say I'm really impressed overall with the Taproot Assets Protocol and with all of the Lightning Labs projects. Thank you all for your effort, it really adds a lot value to the Bitcoin ecosystem.

pagination for AddrReceives?

Hello,

Is some type of pagination going to be added to the AddrReceives REST API endpoint?

Maybe a minimum block height parameter, or something similar?

I am aware that is is possible to query for a specific address.

But it would be nice if we could also query for recent receives in a way that doesn't return all the receives that ever happened, in one big response.

Display multiple REST mappings if present

We use multiple REST mappings in some situations to make developer usability a bit better by circumventing some of the disadvantages of the grpc-gateway library.
Examples:

These don't currently show up in the API docs.

Add `litd` docs to the generated site

Lightning Terminal (litd) has some RPC endpoints that are currently not surfaced in the API docs for sessions and accounts. It would be great to add those.

litd Pre-requisites:

  • Add descriptive comments (including CLI commands) to the litd proto files so that info gets bubbled up into the docs
  • Implement the REST API proxy to be consistent with the other daemons

How can I get macaroon_root_key?

I want backup channel and restore channel. But I found that the recovery failed, so I guessed that it was because of different macaroons, so I found that macaroon_root_key can be set in the initwallet method. Then, I searched all the methods in the api, but I didn't find a way to get macaroon_root_key, so I want to know how to get macaroon_root_key.

Bake Macaroon root_key_id can't just be a positive number.

When trying to use a Macaroon generated by the BakeMacaroon API, failure can occur if using a root_key_id < 18441921392371827000 ([4]byte starting with {0xFF, 0xEE, 0xDD, 0xCC}).

When using a macaroon with permissions for Loop, Pool, Faraday, and Litd that was baked with a root_key_id matching the above condition, AND calling an rpc from these services, an error is returned: "proxy error with context {rpc service}: invalid macaroon: macaroon service not yet initialised". LND rpc services can still be used with this macaroon.

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.