-
Notifications
You must be signed in to change notification settings - Fork 18
Labels
D2-bugSomething isn't workingSomething isn't workingI2-mediumshould be completed within 10 working daysshould be completed within 10 working days
Description
Context
Repro-case:
- set user shielding key for "//Bob"
- request vc (e.g. A1) for "//Alice"
In tee-worker I see:
[2023-03-02T09:29:30Z DEBUG ita_stf::trusted_call_litentry] who "d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", assertion A1
[2023-03-02T09:29:30Z ERROR ita_stf::trusted_call_litentry] user shielding key is missing, "d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", A1
[2023-03-02T09:29:30Z ERROR itp_stf_executor::executor] Stf execute failed: AssertionBuildFail
which is good.
However, such error never arrives in parachain.
When I check the code, we never properly handle the errors:
https://github.com/litentry/litentry-parachain/blob/19951d385f70f3cb676653e22008638c4abdc234/tee-worker/app-libs/stf/src/trusted_call.rs#L601
Please also have ts-tests for this
✔️ Please set appropriate labels and assignees if applicable.
Metadata
Metadata
Assignees
Labels
D2-bugSomething isn't workingSomething isn't workingI2-mediumshould be completed within 10 working daysshould be completed within 10 working days