Validation Strategies (RFC-029)
A period when the community can review the RFC (comment Docs).
Document Maintainers: Andi Gabriel Tan 2024. List of other contributors in Annex. 1.
Copyright: MIT license
Copyright © 2018-2024 Axiologic Research and Contributors.
This document is licensed under MIT license.
- Validation strategies functions
- createPresentation(validationStrategyName, …args)
- getStrategy(validationStrategyName)
- issueCredential(validationStrategyName, …args)
- registerValidationStrategy(validationStrategyName, …args)
- sign(validationStrategyName, …args)
- validatePresentation(allowedImplementationArray, useCase, environmentData, presentationSerialisation, (err, result) =>{})
- verifyCredential(validationStrategyName, …args)
- verifySignature(validationStrategyName, …args)
- Annex 1. Contributors
Validation strategies functions
| Functions | Description |
|---|---|
| createPresentation | User can create a verifiable presentation he can present to another user/organization. All claims inside the presentation are verifiable. |
| getStrategy | Get the strategy used to issue, sign and verify credentials and presentations |
| issueCredential | Issue credential with the strategy of your choice. |
| registerValidationStrategy |
| Functions | Description |
|---|---|
| createPresentation | The user can create a verifiable presentation they can present to another user/organization. All claims inside the presentation are verifiable. |
| getStrategy | Get the strategy used to issue, sign and verify credentials and presentations |
| issueCredential | Issue credential with the strategy of your choice |
| registerValidationStrategy | Register a new presentation or update an existing one from the strategy’s registry |
| sign | Sign credential or presentation with the strategy of your choice |
| validatePresentation | This function allow a verifier to validate or not a presentation that was sent to him |
| verifyCredential | Verify claims inside a credential with the strategy of your choice |
| verifySignature | Verify the signature of a credential or a presentation with the strategy of your choice |
createPresentation(validationStrategyName, …args)
Description: This function allows the user to create a verifiable presentation. Presentations can be used to combine and present a set of different verifiable credentials. They are packaged in a way that makes all the claims inside the presentation verifiable by a verifier (the one that will receive the presentation). More information is available on the w3c website.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
getStrategy(validationStrategyName)
Description: Get the strategy used to issue, sign and verify credentials and presentations.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | string | |
| …args |
issueCredential(validationStrategyName, …args)
Description: Issue credential with the strategy of your choice.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
registerValidationStrategy(validationStrategyName, …args)
Description: Register a new presentation or update an existing one from the strategy’s registry.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
sign(validationStrategyName, …args)
Description: Sign credential or presentation with the strategy of your choice.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
validatePresentation(allowedImplementationArray, useCase, environmentData, presentationSerialisation, (err, result) =>{})
Description: Get a handler to a shared ledger.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| allowedImplementationArray | string | |
| useCase | ||
| environmentData | ||
| presentationSerialisation |
Callback:
| Parameter | Type | Description |
|---|---|---|
| err | ErrorWrapper object | Contains a message and the error |
| result | boolean | If the presentation could be verified will return true. Else will return false. |
verifyCredential(validationStrategyName, …args)
Description: Verify claims inside a credential with the strategy of your choice.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
verifySignature(validationStrategyName, …args)
Description: Verify the signature of a credential or a presentation with the strategy of your choice.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| validationStrategyName | ||
| …args |
Contributors
-
Axiologic Research: New content and improvements. Original texts under PharmaLedger Association and Novartis funding. MIT licensed content accordingly with the contracts. Publish and maintain the www.opendsu.org site.
-
PharmaLedger Project: Review, feedback, observations, new content, and corrections MIT licensed accordingly with the consortium agreements.
- PrivateSky Research Project: MIT licensed content accordingly with the contracts. https://profs.info.uaic.ro/~ads/PrivateSky/
Annex 1. Contributors
| Current Editors | |
|---|---|
| Andi-Gabriel Țan | andi@axiologic.net |
| Contributors Axiologic Research | |
| Adrian Ganga | adrian@axiologic.net |
| Andi-Gabriel Țan | andi@axiologic.net |
| Cosmin Ursache | cosmin@axiologic.net |
| Daniel Sava | daniel@axiologic.net |
| Nicoleta Mihalache | nicoleta@axiologic.net |
| Valentin Gérard | valentin@axiologic.net |
| PrivateSky Contributors | |
| Alex Sofronie | alsofronie@gmail.com (DPO) |
| Cosmin Ursache | cos.ursache@gmail.com (UAIC) |
| Daniel Sava | sava.dumitru.daniel@gmail.com (HVS, AQS) |
| Daniel Visoiu | visoiu.daniel.g@gmail.com (SGiant) |
| Lenuța Alboaie | lalboaie@gmail.com (UAIC) |
| Rafael Mastaleru | rafael@rms.ro (RMS) |
| Sînică Alboaie | salboaie@gmail.com (UAIC) |
| Vlad Balmos | vlad.balmos@gmail.com (Code932) |
| PharmaLedger Contributors | |
| Ana Balan | bam@rms.ro (RMS) |
| Bogdan Mastahac | mab@rms.ro (RMS) |
| Cosmin Ursache | cos@rms.ro (RMS) |
| Rafael Mastaleru | raf@rms.ro (RMS) |