-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added utils function to update form for v2 and v3 (#219)
- Loading branch information
Showing
10 changed files
with
482 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "A DID Verifiable Document Form", | ||
"type": "VERIFIABLE_DOCUMENT", | ||
"defaults": { | ||
"$template": { | ||
"type": "EMBEDDED_RENDERER", | ||
"name": "CHAFTA_COO", | ||
"url": "https://generic-templates.openattestation.io" | ||
}, | ||
"issuers": [ | ||
{ | ||
"id": "did:ethr:0x123123123123123123123123123123123123", | ||
"name": "DEMO DID", | ||
"revocation": { | ||
"type": "NONE" | ||
}, | ||
"identityProof": { | ||
"type": "DID", | ||
"key": "did:ethr:0x123123123123123123123123123123123123#controller", | ||
"location": "demo-oa.openattestation.com" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "A DNS-DID Verifiable Document Form", | ||
"type": "VERIFIABLE_DOCUMENT", | ||
"defaults": { | ||
"$template": { | ||
"type": "EMBEDDED_RENDERER", | ||
"name": "CHAFTA_COO", | ||
"url": "https://generic-templates.openattestation.io" | ||
}, | ||
"issuers": [ | ||
{ | ||
"id": "did:ethr:0x123123123123123123123123123123123123", | ||
"name": "DEMO DID", | ||
"revocation": { | ||
"type": "NONE" | ||
}, | ||
"identityProof": { | ||
"type": "DNS-DID", | ||
"key": "did:ethr:0x123123123123123123123123123123123123#controller", | ||
"location": "demo-oa.openattestation.com" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "A Transferable Record Form", | ||
"type": "TRANSFERABLE_RECORD", | ||
"defaults": { | ||
"$template": { | ||
"type": "EMBEDDED_RENDERER", | ||
"name": "SAMPLE_BOL", | ||
"url": "https://generic-templates.openattestation.io" | ||
}, | ||
"issuers": [ | ||
{ | ||
"identityProof": { | ||
"type": "DNS-TXT", | ||
"location": "demo-oa.openattestation.com" | ||
}, | ||
"name": "DEMO TOKEN REGISTRY", | ||
"tokenRegistry": "0x123123123123123123123123123" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "A Verifiable Document Form", | ||
"type": "VERIFIABLE_DOCUMENT", | ||
"defaults": { | ||
"$template": { | ||
"type": "EMBEDDED_RENDERER", | ||
"name": "SIMPLE_COO", | ||
"url": "https://generic-templates.openattestation.io" | ||
}, | ||
"issuers": [ | ||
{ | ||
"identityProof": { | ||
"type": "DNS-TXT", | ||
"location": "demo-oa.openattestation.com" | ||
}, | ||
"name": "DEMO DOCUMENT STORE", | ||
"documentStore": "0x123123123123123123123123" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "A V3 DID Verifiable Document Form", | ||
"type": "VERIFIABLE_DOCUMENT", | ||
"defaults": { | ||
"version": "https://schema.openattestation.com/3.0/schema.json", | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://schemata.openattestation.com/com/openattestation/1.0/OpenAttestation.v3.json" | ||
], | ||
"type": ["VerifiableCredential", "OpenAttestationCredential"], | ||
"issuanceDate": "2010-01-01T19:23:24Z", | ||
"openAttestationMetadata": { | ||
"template": { | ||
"type": "EMBEDDED_RENDERER", | ||
"name": "CHAFTA_COO", | ||
"url": "https://generic-templates.oa.io" | ||
}, | ||
"proof": { | ||
"type": "OpenAttestationProofMethod", | ||
"method": "DID", | ||
"value": "did:ethr:0x123", | ||
"revocation": { | ||
"type": "NONE" | ||
} | ||
}, | ||
"identityProof": { | ||
"type": "DID", | ||
"identifier": "demo-oa.openattestation.com" | ||
} | ||
}, | ||
"credentialSubject": {}, | ||
"issuer": { | ||
"id": "https://example.com", | ||
"name": "DEMO DID", | ||
"type": "OpenAttestationIssuer" | ||
} | ||
} | ||
} |
Oops, something went wrong.