Skip to content

Commit

Permalink
data specification format adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpbear committed Nov 28, 2016
1 parent b518e67 commit df90282
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions docs/specifications/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,29 @@ This document describes the serialization format for the data structures used in

Field | Type | Description
--------------------|-------------------|----------------------------------------------------------
Serialization Flags | byte | See [Block Serialization Flags](#block-serialization-flags).
Version | varint63 | Block version, equals 1.
Height | varint63 | Block serial number.
Previous Block ID | sha3-256 | [Hash](#block-id) of the previous block or all-zero string.
Timestamp | varint63 | Time of the block in milliseconds since 00:00:00 UTC Jan 1, 1970.
Block Commitment | Extensible string | Extensible commitment string. See [Block Commitment](#block-commitment).
Block Witness | Extensible string | Extensible witness string. See [Block Witness](#block-witness).
Transaction Count | varint31 | Number of transactions that follow.
Blockheader | [Blockheader] | [Blockheader](#Blockheader) include the block's attributes.
Transactions | [Transaction] | List of individual [transactions](#transaction).


### Blockheader


Field | Type | Description
--------------------|-------------------|----------------------------------------------------------
Version | uint32 | version of the block which is 0 for now.
Height | uint32 | Block serial number.
PrevBlockHash | uint256 | hash value of the previous block.
Timestamp | uint32 | Time of the block in milliseconds since 00:00:00 UTC Jan 1, 1970.
TransactionsRoot | [Hash] | Extensible commitment string. See [Block Commitment](#block-commitment).
Nonce | uint64 | random number.
Witness | [][]byte | Script used to validate the block.

### Transaction

### Hash
### Hash






0 comments on commit df90282

Please sign in to comment.