bnonni
bnonni
Is it possible to send attachments via your API? If so, I'll happily work on a PR for that feature. However, I'm wondering if this is something you tried to...
Add docs to dwn.ts `processMessage(rawMessage: object, ctx: Context) ` https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/dwn.ts#L82-L88
Add docs to `DIDResolver` class https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/did/did-resolver.ts#L3-L8
Add JSDoc to validator.ts `validate(schemaName: string, payload: any)` https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/validation/validator.ts#L13-L20
Change type of `query` https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/store/message-store.ts#L32-L34
Replace with JSON Schema based validation for `JsonWebKey2020`. More info about the `JsonWebKey2020` type can be found here: https://www.w3.org/TR/did-spec-registries/#jsonwebkey2020 https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/jose/jws/general/verifier.ts#L66-L73
Replace with JSON Schema based validation for `publicJwk`. More info about the `publicJwk` property can be found here: https://www.w3.org/TR/did-spec-registries/#publicJwk https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/jose/jws/general/verifier.ts#L74-L84
Add logic to prevent validating duplicate signatures https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/jose/jws/general/verifier.ts#L14-L44
Should we add an explicit check to ensure that there's only 1 signer? https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/interfaces/permissions/handlers/permissions-request.ts#L21-L28
Figure out if we need to support ALL verification method properties. https://github.com/TBD54566975/dwn-sdk-js/blob/fcea84929e12dd3e3ef0e8866b0e592a025786fa/src/did/did-resolver.ts#L97-L112