dwn-sdk-js
dwn-sdk-js copied to clipboard
Add cache support to avoid costly validation of the same signature
Add logic to prevent validating duplicate signatures
https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/jose/jws/general/verifier.ts#L14-L44
We've implemented an in-memory cache that can be used.
Thanks again @flothjl!