-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: updates for cbor all the things #955
base: main
Are you sure you want to change the base?
Conversation
* remove use of /tmp in favour of current working directory. tmp breaks the examples for macos * note that indexing and retrieval for the meta map is a future release thing. * describe how to capture the leaf hash from registration so verification can be accomplished directly * purposefuly don't get into the details of computing the leaf hash
and update for the improved output format for register_statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits, have a look
This can merge monday 16th but not before |
Signed-off-by: Steve Lasker <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting a temp block untill backend changes merge, confirming the docs work with production.
python3 -m datatrails_scitt_samples.scripts.register_signed_statement --signed-statement-file $SIGNED_STATEMENT_FILE --output-file $TRANSPARENT_STATEMENT_FILE --log-level INFO
INFO:register-statement:submit_statement: signed-statement.cbor
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/steve/demos/scitt-demos/datatrails-scitt-samples/datatrails_scitt_samples/scripts/register_signed_statement.py", line 154, in <module>
main()
File "/home/steve/demos/scitt-demos/datatrails-scitt-samples/datatrails_scitt_samples/scripts/register_signed_statement.py", line 104, in main
op_id = submit_statement_from_file(ctx, args.signed_statement_file)
File "/home/steve/demos/scitt-demos/datatrails-scitt-samples/datatrails_scitt_samples/statement_registration.py", line 65, in submit_statement_from_file
return submit_statement(ctx, data_file.read())
File "/home/steve/demos/scitt-demos/datatrails-scitt-samples/datatrails_scitt_samples/statement_registration.py", line 46, in submit_statement
msg = decode_cbor_data(response.content)
File "/home/steve/demos/scitt-demos/datatrails-scitt-samples/datatrails_scitt_samples/statement_registration.py", line 20, in decode_cbor_data
return cbor2.loads(data)
_cbor2.CBORDecodeEOF: premature end of stream (expected to read 65536 bytes, got 116 instead)
Signed-off-by: Steve Lasker <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
Signed-off-by: Steve Lasker <[email protected]>
Signed-off-by: steve lasker <[email protected]>
Signed-off-by: steve lasker <[email protected]>
Signed-off-by: steve lasker <[email protected]>
@robinbryce, can you please verify: a67cc43 |
${SCRIPTS}
in favour ofpython -m
which works on all platforms