You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
One of the goals of this implementation is to be fully compatible with the Go implementation of a canonical JSON serializer used today in Docker and TUF/Notary, and scripts/test.sh is an early attempt at making sure the SHA256 sum of files generated by this implementation matches the one of files generated by the Go implementation.
However, the current Bash implementation is not ideal, and should be reworked into Rust tests - in order to achieve this:
add the canonical JSON representation of the files in testdata into testdata/canonical
the Rust tests would read the initial JSON, serialize in in canonical form, and calculate the SHA 256 sum of the output, then compare it with the Go implementation.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One of the goals of this implementation is to be fully compatible with the Go implementation of a canonical JSON serializer used today in Docker and TUF/Notary, and
scripts/test.sh
is an early attempt at making sure the SHA256 sum of files generated by this implementation matches the one of files generated by the Go implementation.However, the current Bash implementation is not ideal, and should be reworked into Rust tests - in order to achieve this:
testdata
intotestdata/canonical
The text was updated successfully, but these errors were encountered: