alan-turing-institute / trustchain

Trustworthy decentralised PKI
https://alan-turing-institute.github.io/trustchain/
Apache License 2.0
10 stars 5 forks source link

Update to ssi v0.6.0 #85

Closed sgreenbury closed 11 months ago

sgreenbury commented 1 year ago

Update ssi version to v0.6.0 from v0.4.0

sgreenbury commented 1 year ago
sgreenbury commented 1 year ago

Update operations currently fail with published crate due to ssi-jwt::encode_sign() adding a type field to the JWT header. At first glance, this seems at odds with ION and also returns the following error when attempting to publish an update with the ION test node:

{"code":"jws_protected_header_missing_or_unknown_property","message":"jws_protected_header_missing_or_unknown_property"}

Current workaround is to remove the type_ that from the encode_sign method in our fork and update deps to point to this. This modification has been tested and successfully publishes an attestation.