Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Mar 8, 2024
1 parent 9b16aed commit 300d8e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/components/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ along with their data or "state". The contract controls what state is permitted
and how it can be modified, and also how to efficiently synchronize state
between peers.

A contract's state is just a block of bytes, and can be anything from a simple
number to a complex data structure. The contract's code defines the state's
formatting. Even the serialization format is up to the contract, so it can be
anything from JSON to Bincode, or a custom binary format.

Network users can read a contract's state and subscribe to receive immediate
updates if the state is modified.

Expand Down

0 comments on commit 300d8e4

Please sign in to comment.