-
Notifications
You must be signed in to change notification settings - Fork 20
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
Keep the naming of OneBlock consistent #2432
Conversation
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.
I think it breaks CLI and ts api package. - maybe we should have more detailed labels to signal which components have breaking changes.
error: unrecognized subcommand 'oneblock'
note: subcommand 'one-block' exists
note: to pass 'oneblock' as a value, use 'litentry-cli trusted request-vc-direct -- oneblock'
While we have such documentation for requestin OneBlock vc:
// oneblock VC:
// ./bin/litentry-cli trusted -d request-vc-direct \
// did:litentry:substrate:0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 oneblock completion
Please update example usage.
IMO this is a good example to show the advantage of using enum encoding to identify the assertion type from client side - related: #2364 (comment) We changed If we had used enum encoding, then we would:
|
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.
@zhouhuitian it seems it still doesn't work :(
kziemianek@kziemianek:~/projects/litentry/litentry-parachain/tee-worker/bin$ ./litentry-cli trusted -d request-vc-direct did:litentry:substrate:0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 OneBlock completion
error: unrecognized subcommand 'OneBlock'
note: subcommand 'one-block' exists
note: to pass 'OneBlock' as a value, use 'litentry-cli trusted request-vc-direct -- OneBlock'
Usage: litentry-cli trusted request-vc-direct <DID> <COMMAND>
For more information, try '--help'.
It expects one-block
.
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.
This may be answered by Kai's reply but here goes my feedback:
Can we keep Oneblock
working as well? i.e., if clients sends Oneblock
we internally map it to OneBlock
.
I'm aiming to create layers that reduce the number of breaking changes we ship.
And in any case, could you please create the additional (sub)ticket to properly update vc-sdk too?
I get your point, but issued VCs don't include the assertion name. That improvement is coming through the new unreleased parachain version. But it could be an issue for the on-chain events which in fact (used to) hold the Assertion struct, right? |
If and What issue do I need to create? I still don't quite understand. any ideas? @BillyWooo @Kailai-Wang |
If doing it backwards compatible is not feasible, then feel free to proceed and merge. About the follow-up vc-sdk task, I just created it: https://linear.app/litentry/issue/P-506/client-sdk-update-oneblock-assertion-to-support-oneblock – this is for us not to forget to update the client-sdk before releasing this change. |
As discussed, we will merge this PR now. @jonalvarezz Please update sdk accordingly. Thank you. |
As topic.
This change may also be a breakthrough for vc-sdk.