This change introduces versioning to the identity document format. The `Version` type is introduced to capture this. Importantly, it is very restricted in its construction and API. `Version::new` provides a smart constructor to ensure that it is only ever constructed within the expected bounds of `0 < v <= IDENTITY_VERSION`, where `IDENTITY_VERSION` is the constant for the current version. Note that serializing of the `Doc::version` is skipped to preserve the `Oid` outputs of all the tests – which means that the first `version` is always implicit and is not really expected to exist in the serialized forms of the identity document. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||