spruceid / ssi

Core library for decentralized identity.
https://spruceid.dev
Apache License 2.0
187 stars 59 forks source link

ucan 0.10 #510

Open chunningham opened 1 year ago

chunningham commented 1 year ago

Updates the ucan impl to match the upcoming 0.10 version of the spec. This pr also removes a lot of the IPLD stuff as that will be covered by the cacao crate. Because of this, it removes tracking of the codec and implements verification in tandem with deserialisation so that it can have the original serialisation to verify. It also depends on the as-yet unreleased ucan-capabilities-object crate.

probable TODOs:

sbihel commented 1 year ago

Looks like some tests are failing

chunningham commented 1 year ago

There's no test vectors anywhere for ucan 0.10, so I wasn't sure which to use. I will generate some.