Skip to content

Commit 330ff3e

Browse files
authored
Add version to linking metadata section (#57)
1 parent 1811301 commit 330ff3e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Linking.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,20 @@ Linking Metadata Section
107107
A linking metadata section is a user-defined section with the name
108108
"linking".
109109

110-
A linking metadata section contains a series of sub-sections layed
111-
out in the same way as the ["names"][names_sec] section:
110+
A linking metadata section begins with a version number which is then followed
111+
by a series of sub-sections laid out in the same way as the ["names"][names_sec]
112+
section:
113+
114+
| Field | Type | Description |
115+
| ----------- | ------------- | ------------------------------------ |
116+
| version | `varuint32` | the version of linking metadata contained in this
117+
section |
118+
| subsections | `subsection*` | sequence of `subsection` |
119+
120+
This `version` allows for breaking changes to be made to the format described
121+
here. Tools can then choose to reject imputs contained unexpected versions.
122+
123+
Each `subsection` is encoded as:
112124

113125
| Field | Type | Description |
114126
| ------------ | ----------- | ------------------------------------ |

0 commit comments

Comments
 (0)