Interoperability with Regulated Assets (SEP-8) #34
Replies: 4 comments 9 replies
-
I think regulated assets scoped to what is defined in SEP-8 should work. As you suggest, two participants could involve a regulated asset server in the auth and deauth of their escrow accounts by having the regulated asset server sign every closing transaction. Nothing would need to change about SEP-8 or the channel protocol to support this today, except for the inclusion of allow trust operations within the setup, formation, and closing transactions. If the regulated asset server disagrees with a payment channel payment it would be just like one party disagreed (which we don't yet discuss in the SEP but we will once I get to #27). The performance aspect seems unavoidable with what we have in the protocol at the moment. There are probably some things we could do at the protocol level to allow two escrow accounts to transact freely but not allow them to transact with others, but this would be another CAP. Another place where regulated assets fall apart is if the state of the issuer account changes, such as the signers change, or the account is merged. In both cases the closing transactions would fail, so regulated assets would only be truly safe if the high threshold is set higher than all the signers combined have weight for. This would disallow merging and changing of signatures, but continue to allow the allow trust operation. Even if all the above is correct, an issuer using regulated assets who is using clawback could still break the channel. |
Beta Was this translation helpful? Give feedback.
-
Actually something to consider is that a SEP-8 server will be able to respond much faster than the network will. Network confirmation is about 5 seconds. An average web server is going to respond in under 1 second. So channels with SEP-8 would still be faster. But, if we could find a way to do the in channel updates without the SEP-8 server that would be great. |
Beta Was this translation helpful? Give feedback.
-
I think there's a lot of issues, that might not all be as critical, so I'm going to try and break them down.
|
Beta Was this translation helpful? Give feedback.
-
For issue (1), we either need:
I think preventing is hard and is just one way of saying regulated assets are incompatible. I think we need to allow clawback and revocation, but we need to make it so that if that occurs, the channel is still open for business and other assets held in the channel are unaffected, and the existing close transaction would still work and the affected payment would be ignored. I can think of a few possible solutions:
Both of these ideas have problems, the payment failing might leave the two participants in an unfair state, but at least one issuer can't lock up assets of other issuers. I think solution (2) would be relatively easy to add to the SEP. |
Beta Was this translation helpful? Give feedback.
-
The current Payment Protocol draft does not suggest anything with regards to Regulated Assets, i.e. assets whose issuer has the
Authorization Required
andAuthorization Revocable
flags set to true in their account and usually operate through the Regulated Assets Protocol (SEP-8).The authorization protocol described in SEP-8 can definitely be applied at each Payment Channel update, but this could potentially reduce the throughput, as a few extra roundtrips would be involved in the process, and an issuer of a regulated asset could effectively halt a Payment Channel.
Is this something we need to worry about for v1? @tomerweller @leighmcculloch @JakeUrban would love your thoughts on this.
(This topic originated in #20)
Beta Was this translation helpful? Give feedback.
All reactions