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
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
We need to decide how the SDK will support persistence.
My preference is we find an elegant way to let the application decide how to persist the state.
I think this would look like:
Adding an event handler to the agent that returns a copy of the state whenever is has changed, or for the sake of safety, whenever the agent calls a function on the channel.
Moving the changing state of a channel into a type that has all its fields exported so the state of the channel can be easily copied out and is accessible to the caller.
The text was updated successfully, but these errors were encountered:
Store the starting sequence in the open agreement.
The starting sequence is an assumed value that implicitly forms part of the agreement, however it would be better if it was an explicit part of the agreement and stored there rather than store inside the channel as a global value.
As a bonus this lets an escrow account holder to state that the open will occur at some future sequence number. On the surface this might be a cause for concern for the responder but it doesn't really change the security of anything since the initiator could always shift their sequence number after starting the open handshake. This just provides some flexibility and improves the debug-ability in cases that the two participants for some reason think the starting sequence is different.
I didn't plan on doing this now except that was I work on #227 (#273) it is inconvenient that the escrow accounts have their sequence numbers stored and what is stored there is important, so that led me to moving this up.
We need to decide how the SDK will support persistence.
My preference is we find an elegant way to let the application decide how to persist the state.
I think this would look like:
The text was updated successfully, but these errors were encountered: