Skip to content

Commit

Permalink
improve clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Mar 8, 2024
1 parent 7d173b8 commit fb99ad5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/src/components/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ In mathematical jargon, a contract defines a [commutative monoid](https://mathwo
#### Efficient State Synchronization

A naive approach to state synchronization would be to transfer the entire state
between peers, but this approach is very inefficient for large states. Instead,
between peers, but this would be inefficient for large states. Instead,
Freenet contracts utilize a much more efficient and flexible approach to state
synchronization by providing an implementation of three functions:
synchronization that only transmits the difference between states.

To do this a contract implements three functions:

- `summarize_state` - Returns a concise summary of the contract's
state.
Expand All @@ -46,7 +48,7 @@ synchronization by providing an implementation of three functions:
bring it in sync with the other state.

Contracts can implement these functions however they wish depending on the
type of data being synchronized.
type of data their state contains.

##### Step-by-step

Expand Down

0 comments on commit fb99ad5

Please sign in to comment.