python-tuf/tuf/ngclient/_internal
Martin Vrachev bf12e7565f Metadata API: change meta type in Timestamp
In Timestamp, the only valid "meta" value is the dictionary representing
meta information for the snapshot file. This makes the API unnecessarily
complicated and requires validation that only information about snapshot
is available inside "meta".
Together with the python-tuf maintainers, we decided that snapshot meta
information will not be represented by a "meta" dictionary but instead
by a MetaFile instance and with this it will diverge from the
specification.
Additionally, to prevent confusion, I will rename the "meta" attribute
to "snapshot_meta" as this attribute will be related only to meta
information about snapshot.

This decision is coherent with ADR9 and the rationale
behind it is to provide easier, safer, and direct access to the
snapshot meta information.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2021-09-20 14:09:38 +03:00
..
__init__.py ngclient: Add new client code 2021-07-05 10:45:19 +03:00
requests_fetcher.py Merge pull request #1519 from sechkova/fetcher-max-length 2021-09-01 17:27:12 +03:00
trusted_metadata_set.py Metadata API: change meta type in Timestamp 2021-09-20 14:09:38 +03:00