Browse Source

fix(block-chain): improve description of data

pull/1068/head
davhojt 2 years ago
parent
commit
0d2116bbec
No known key found for this signature in database
GPG Key ID: C8C3C515E7AF0D2D
  1. 2
      subjects/block-chain/README.md

2
subjects/block-chain/README.md

@ -11,7 +11,7 @@ A block must have the following properties:
- `index`
- `hash`: a computed hash using the `hashCode` function provided. You will need to pass it a concatenation of the block's `index`, the previous block's `hash` and the block's stringified `data`.
- `data`: any valid JSON object.
- `data`: any valid object.
- `prev`: the previous block.
- `chain`: a function that accepts `data` as an argument, and creates the next block with it.

Loading…
Cancel
Save