Flag Actor for use in payment channel protocols #249
Kubuxu
started this conversation in
Enhancements - Technical
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Filecoin Payment Channel protocol supports Hash, Min- and Max-Time locks as well as message execution conditional lock.
The message execution lock is currently limited in usability as there aren't many useful endpoints to call.
Background
Payment Channels in Filecoin operate on vouchers which can be thought of as contracts between two parties agreeing on a balance between them.
These vouchers can have additional validity conditions:
(To, Method, Param)
(embedded in the voucher) succeeds.While the first three are easy to use and fully enabled, the last one is limited by available endpoints of Filecoin actors.
Some Payment Channel Network (PCN) protocols require a global on-chain "flag", which all vouchers in a given voucher chain can refer to. See Blitz. The cleanest way to implement such a flag is the Message Execution lock and new actor type.
Flag Actor
I'm proposing a new Flag Actor, which is capable of the following:
x
. This allows checking if all flags are set or unset.x mod 2
. This allows for retractable flags.The action of clearing a flag is explicitly not supported. Most protocols using global flags require that they cannot be retracted.
Flags and flag sets can be expressed as RLE+.
A way of delaying flags needs to be investigated, with the aim of not causing significant misestimations.
Beta Was this translation helpful? Give feedback.
All reactions