-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
Description
Summary
Implement a signing logic for the CatalystSignedDocument object.
Description
- Inside
Content::newmethod addcontent: Vec<u8>validation based on theContentType.
something like this
match content_type {
ContentType::Json => serde_json::from_slice::<serde_json::Value>(&content)?,
ContentType::Cbor => minicbor::decode::<minicbor::data::Token>(&content)?,
}- Add a new method
verifyforCatalystSignedDocumentstruct. which will verify the underlying signatures and all underlying Uuid types (do the conform to the v7 or v4 versions).
pub fn verify(&self, pk_getter: &impl Fn(&Kid) -> VerifyingKey) -> Result<(), ProblemReport>- Add a new method
signforCatalystSignedDocumentstruct. Which will add a new signature.
pub fn sign(&self, sk: SecretKey, kid: Kid);- some unit tests
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🔬 Ready For QA