You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue proposes the implementation of a new RPC endpoint to facilitate generating a lightning network invoice for receiving tap assets over a lightning channel.
Arguments
The RPC endpoint should accept the following parameters:
AssetId: Identifier for the asset the receiving node wishes to receive.
Amt: Amount of the specified asset that the receiving node wishes to receive.
RoutingPeer: A serialized, compressed Bitcoin public key (route.Vertex) identifying the routing peer. This peer acts as the final hop in the BTC payment channel, converting BTC into the AssetId and paying the invoice-generating node in the specified tap asset.
Invoice Generation Functionality
The tapd node should execute the following steps to generate an invoice:
Check the given AssetId. If the asset is unknown, retrieve asset details from a known universe.
Utilize the RFQ (Request for Quote) service to negotiate and finalize a quote with the specified routing peer. This step is crucial for determining the scid (short channel ID) for the invoice, the BTC amount to be used in the invoice, and the final expiry time of the invoice.
Interface with lnd to generate an invoice based on the agreed terms.
Amend the last hop hint in the generated invoice using the RFQ quote to specify the routing peer, ensuring correct routing and asset conversion.
The endpoint should return the modified lightning invoice to the caller.
The text was updated successfully, but these errors were encountered:
This RPC endpoint should return a status channel instead of directly providing an invoice, given that invoice generation can be time-consuming due to processes like RFQ negotiation, universe synchronization, and calls to LND. Implementing a status channel in this endpoint will prevent the caller from being blocked while these operations are executed.
Description
This issue proposes the implementation of a new RPC endpoint to facilitate generating a lightning network invoice for receiving tap assets over a lightning channel.
Arguments
The RPC endpoint should accept the following parameters:
AssetId
: Identifier for the asset the receiving node wishes to receive.Amt
: Amount of the specified asset that the receiving node wishes to receive.RoutingPeer
: A serialized, compressed Bitcoin public key (route.Vertex
) identifying the routing peer. This peer acts as the final hop in the BTC payment channel, converting BTC into theAssetId
and paying the invoice-generating node in the specified tap asset.Invoice Generation Functionality
The
tapd
node should execute the following steps to generate an invoice:AssetId
. If the asset is unknown, retrieve asset details from a known universe.scid
(short channel ID) for the invoice, the BTC amount to be used in the invoice, and the final expiry time of the invoice.lnd
to generate an invoice based on the agreed terms.The endpoint should return the modified lightning invoice to the caller.
The text was updated successfully, but these errors were encountered: