Skip to content

Cannot sign/verify digests anymore (think Merkle tree, ledger, detached payload) #120

@ivarprudnikov

Description

@ivarprudnikov

The implementation which allowed to sign the digests was removed in #100 in favor of passing raw content.

There are some cases when the user does not have content:

  • for verification - only the digest is obtained from the Merkle tree, the user does not see the content
  • for signing of sensitive content when only the digest is known, eg client constructs toBeSigned, creates a hash and sends to a service
  • for cose receipts (eg scitt receipts) where the structure toBeSigned is slightly different to the cose one

Is there a chance to extend the interfaces Signer and Verifier to allow digests again, similar to ecdsa.Sign and ecdsa.VerifyASN1?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions