Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: apply linters automatic fixes #1054

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/decisions/20230405-did-linked-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ As the solution is based on the latest ToIP specification, it derives all positi
#### Negative Consequences
- scalability: the specification is inspired by the Cheqd approach to store the linkedResourceMetadata inside of the DID Document
- the convention for references and the logic must be carefully reviewed:
- `schemaId` in this solution is `{didRef}/resources/{cardano_transaction_id}`, so it doesn't refer to the `id` but to the Tx where everything else is stored (it's an interesting idea for a stateless design)
- resource metadata is built according to the ToIP specification but for AnonCreds entities only: credential schema and credential definition.
- `schemaId` in this solution is `{didRef}/resources/{cardano_transaction_id}`, so it doesn't refer to the `id` but to the Tx where everything else is stored (it's an interesting idea for a stateless design)
- resource metadata is built according to the ToIP specification but for AnonCreds entities only: credential schema and credential definition.
- technology stack: it doesn't fit to current platform, but can be used for inspiration.


Expand Down Expand Up @@ -495,9 +495,9 @@ Taking into account the advantages and disadvantages of the existing solutions t
-the resource is linked to the DID by convention specified in the W3C specification, so specifying the resource in the DID URL and defining the service endpoint that exposes the resource allows to discover and fetch the resource using the Universal Resolver
- as an option, the same resource can be discovered and fetched by the Identus platform backend and SDK without loading the Universal resolver
- the resource integrity must be guaranteed by one of the following options:
- by signing the payload with one of the DID's keys or
- by publishing the resource metadata that contains the information about the resource (id, type, name, media type, hash) on-chain or
- for the resource that is less than the blockchain limitation (up to 64KB) by publishing the resource together with the hash, and/or signature
- by signing the payload with one of the DID's keys or
- by publishing the resource metadata that contains the information about the resource (id, type, name, media type, hash) on-chain or
- for the resource that is less than the blockchain limitation (up to 64KB) by publishing the resource together with the hash, and/or signature
- the resource can be stored in the cloud storage - PostgreSQL database - for indexing and lookup API

As the Identus platform can leverage the Cardano blockchain and there is a strong requirement for longevity and security - the resource together with the signature and/or hash must be stored in the Cardano blockchain.
Expand All @@ -506,9 +506,9 @@ An example of this solution will be the following (concerning the current infras

- prism-node must be able to store the generic resource payload, signature and/or hash on-chain and restore the given resource in the underlying database (PostgreSQL) for indexing and lookup API
- credential schema (or any other resource module) must be a part of the Atala SSI infrastructure and allow
- publishing the concrete resource as a generic resource using the prism-node API
- expose the API for discovery and fetching the resource by URL
- expose the API for managing the resources (create, publish, lookup with pagination)
- publishing the concrete resource as a generic resource using the prism-node API
- expose the API for discovery and fetching the resource by URL
- expose the API for managing the resources (create, publish, lookup with pagination)
- the Universal Resolver for the DID Method must be able to discover and fetch the resource by DID URL
- is needed, SDK and backend services can fetch the resources directly (not via the Universal Resolver)

Expand Down