UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

1 lines • 4.23 kB
{"version":3,"file":"context.mjs","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/signature-suites/ed25519/context.ts"],"sourcesContent":["import { ED25519_SUITE_CONTEXT_URL_2018 } from './constants'\n\nexport const context = {\n '@context': {\n id: '@id',\n type: '@type',\n '@protected': true,\n\n proof: {\n '@id': 'https://w3id.org/security#proof',\n '@type': '@id',\n '@container': '@graph',\n },\n Ed25519VerificationKey2018: {\n '@id': 'https://w3id.org/security#Ed25519VerificationKey2018',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n controller: {\n '@id': 'https://w3id.org/security#controller',\n '@type': '@id',\n },\n revoked: {\n '@id': 'https://w3id.org/security#revoked',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n publicKeyBase58: {\n '@id': 'https://w3id.org/security#publicKeyBase58',\n },\n },\n },\n Ed25519Signature2018: {\n '@id': 'https://w3id.org/security#Ed25519Signature2018',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n challenge: 'https://w3id.org/security#challenge',\n created: {\n '@id': 'http://purl.org/dc/terms/created',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n domain: 'https://w3id.org/security#domain',\n expires: {\n '@id': 'https://w3id.org/security#expiration',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n nonce: 'https://w3id.org/security#nonce',\n proofPurpose: {\n '@id': 'https://w3id.org/security#proofPurpose',\n '@type': '@vocab',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n assertionMethod: {\n '@id': 'https://w3id.org/security#assertionMethod',\n '@type': '@id',\n '@container': '@set',\n },\n authentication: {\n '@id': 'https://w3id.org/security#authenticationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n capabilityInvocation: {\n '@id': 'https://w3id.org/security#capabilityInvocationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n capabilityDelegation: {\n '@id': 'https://w3id.org/security#capabilityDelegationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n keyAgreement: {\n '@id': 'https://w3id.org/security#keyAgreementMethod',\n '@type': '@id',\n '@container': '@set',\n },\n },\n },\n jws: {\n '@id': 'https://w3id.org/security#jws',\n },\n verificationMethod: {\n '@id': 'https://w3id.org/security#verificationMethod',\n '@type': '@id',\n },\n },\n },\n },\n}\n\nconst ed25519Signature2018Context = new Map()\ned25519Signature2018Context.set(ED25519_SUITE_CONTEXT_URL_2018, context)\n\nexport { ed25519Signature2018Context }\n"],"mappings":";;;;;AAEA,MAAa,UAAU,EACrB,YAAY;CACV,IAAI;CACJ,MAAM;CACN,cAAc;CAEd,OAAO;EACL,OAAO;EACP,SAAS;EACT,cAAc;EACf;CACD,4BAA4B;EAC1B,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,YAAY;IACV,OAAO;IACP,SAAS;IACV;GACD,SAAS;IACP,OAAO;IACP,SAAS;IACV;GACD,iBAAiB,EACf,OAAO,6CACR;GACF;EACF;CACD,sBAAsB;EACpB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,WAAW;GACX,SAAS;IACP,OAAO;IACP,SAAS;IACV;GACD,QAAQ;GACR,SAAS;IACP,OAAO;IACP,SAAS;IACV;GACD,OAAO;GACP,cAAc;IACZ,OAAO;IACP,SAAS;IACT,YAAY;KACV,cAAc;KACd,IAAI;KACJ,MAAM;KACN,iBAAiB;MACf,OAAO;MACP,SAAS;MACT,cAAc;MACf;KACD,gBAAgB;MACd,OAAO;MACP,SAAS;MACT,cAAc;MACf;KACD,sBAAsB;MACpB,OAAO;MACP,SAAS;MACT,cAAc;MACf;KACD,sBAAsB;MACpB,OAAO;MACP,SAAS;MACT,cAAc;MACf;KACD,cAAc;MACZ,OAAO;MACP,SAAS;MACT,cAAc;MACf;KACF;IACF;GACD,KAAK,EACH,OAAO,iCACR;GACD,oBAAoB;IAClB,OAAO;IACP,SAAS;IACV;GACF;EACF;CACF,EACF;AAED,MAAM,8CAA8B,IAAI,KAAK;AAC7C,4BAA4B,IAAI,gCAAgC,QAAQ"}