interledger / interledger-rs

An easy-to-use, high-performance Interledger implementation written in Rust
http://interledger.rs
Other
201 stars 70 forks source link

Add tracking info #735

Open KristianWahlroos opened 2 years ago

KristianWahlroos commented 2 years ago

There is now get_spsp_with_tracking

darentuzi commented 2 years ago

This change allows for payment initiators to append some metadata to a payment. Currently an SPSP request GET http://url/accounts/main_account/spsp/ would be transformed into a reply containing ilp address test.example.main_account

with this additional method, the new code supports the old format but also an optional format like GET http://url/accounts/main_account/spsp/key_value~orAnyOtherBlobOfText would be transformed into a reply containing ilp address test.example.main_account.key_value~orAnyOtherBlobOfText

The extra information is appended as ILP address interaction as defined by https://interledger.org/rfcs/0015-ilp-addresses/