Skip to content

Instantly share code, notes, and snippets.

@tomclose
Last active July 4, 2019 00:30
Show Gist options
  • Save tomclose/1086f13cc8da6291adb5260e14ca123f to your computer and use it in GitHub Desktop.
Save tomclose/1086f13cc8da6291adb5260e14ca123f to your computer and use it in GitHub Desktop.
Nitro State Format
Field Data type Definition / Explanation
ChainID unit256 e.g. ropsten / mainnet
Participants address[] participant addresses in signing order
ChannelNonce uint256 chosen by the participants to uniquely identify the channel
TurnNum uint256 turn number
DefaultOutcome [address, uint256][] payouts if the channel is finalized in this state
isFinal boolean used to allow instant withdrawals when channel is closed collaboratively
AppDefinition address on-chain address of library defining custom application rules
AppData bytes application-specific data
Signature [uint8, bytes32, bytes32] ECDSA signature of commitment (v, r, s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment