Rust and WASM did-method-plc tools and structures

Fix DID derivation and signature generation. #1

closed
opened by zicklag.dev targeting main from fix/did-generation-and-signatures

fix: fix did derivation and signature generation.

This fixes two bugs that were affecting did derivation and signature generation.

  • The UnsignedOperation and Operation types were not serializing prev as null and were instead skipping serialization when it was None.
  • The DID was being calculated from the hash of the JSON encoding instead of the CBOR encoding.

Note that there is still an issue with using p256 keys. For some reason the did:key serialization for p256 keys is the wrong length.

0
by zicklag.dev 1 comment
expand 1 commit
fix: fix did derivation and signature generation.

Accidentally opened a PR on the wrong repo. Moved to here: https://tangled.org/smokesignal.events/atproto-plc/pulls/1.

closed without merging
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:ulg2bzgrgs7ddjjlmhtegk3v/sh.tangled.repo.pull/3maaail6bhq22