This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update samples and browser sample via webpack
- Loading branch information
Showing
27 changed files
with
6,692 additions
and
289 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/target | ||
**/*.rs.bk | ||
Cargo.lock | ||
bin/ | ||
pkg/ | ||
wasm-pack.log | ||
.idea/ | ||
/node_modules | ||
/binaryen | ||
/.DS_Store | ||
/dist | ||
/lib |
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,11 @@ | ||
# bbs-signatures-sample-browser | ||
|
||
A simple runnable sample demoing how the API can be invoked in browser, output is shown in console of browser | ||
|
||
Run the following and navigate to developer tools in browser to observe the output | ||
|
||
``` | ||
yarn install --frozen-lockfile | ||
yarn demo | ||
open http://localhost:8080 | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,315 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"VerifiableCredential": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiableCredential", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"cred": "https://www.w3.org/2018/credentials#", | ||
"sec": "https://w3id.org/security#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"credentialSchema": { | ||
"@id": "cred:credentialSchema", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"cred": "https://www.w3.org/2018/credentials#", | ||
"JsonSchemaValidator2018": "cred:JsonSchemaValidator2018" | ||
} | ||
}, | ||
"credentialStatus": { | ||
"@id": "cred:credentialStatus", | ||
"@type": "@id" | ||
}, | ||
"credentialSubject": { | ||
"@id": "cred:credentialSubject", | ||
"@type": "@id" | ||
}, | ||
"evidence": { | ||
"@id": "cred:evidence", | ||
"@type": "@id" | ||
}, | ||
"expirationDate": { | ||
"@id": "cred:expirationDate", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"holder": { | ||
"@id": "cred:holder", | ||
"@type": "@id" | ||
}, | ||
"issued": { | ||
"@id": "cred:issued", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"issuer": { | ||
"@id": "cred:issuer", | ||
"@type": "@id" | ||
}, | ||
"issuanceDate": { | ||
"@id": "cred:issuanceDate", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"proof": { | ||
"@id": "sec:proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"refreshService": { | ||
"@id": "cred:refreshService", | ||
"@type": "@id", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"cred": "https://www.w3.org/2018/credentials#", | ||
"ManualRefreshService2018": "cred:ManualRefreshService2018" | ||
} | ||
}, | ||
"termsOfUse": { | ||
"@id": "cred:termsOfUse", | ||
"@type": "@id" | ||
}, | ||
"validFrom": { | ||
"@id": "cred:validFrom", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"validUntil": { | ||
"@id": "cred:validUntil", | ||
"@type": "xsd:dateTime" | ||
} | ||
} | ||
}, | ||
"VerifiablePresentation": { | ||
"@id": "https://www.w3.org/2018/credentials#VerifiablePresentation", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"cred": "https://www.w3.org/2018/credentials#", | ||
"sec": "https://w3id.org/security#", | ||
"holder": { | ||
"@id": "cred:holder", | ||
"@type": "@id" | ||
}, | ||
"proof": { | ||
"@id": "sec:proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
}, | ||
"verifiableCredential": { | ||
"@id": "cred:verifiableCredential", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
} | ||
}, | ||
"EcdsaSecp256k1Signature2019": { | ||
"@id": "https://w3id.org/security#EcdsaSecp256k1Signature2019", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"challenge": "sec:challenge", | ||
"created": { | ||
"@id": "http://purl.org/dc/terms/created", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"domain": "sec:domain", | ||
"expires": { | ||
"@id": "sec:expiration", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"jws": "sec:jws", | ||
"nonce": "sec:nonce", | ||
"proofPurpose": { | ||
"@id": "sec:proofPurpose", | ||
"@type": "@vocab", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"assertionMethod": { | ||
"@id": "sec:assertionMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"authentication": { | ||
"@id": "sec:authenticationMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
} | ||
} | ||
}, | ||
"proofValue": "sec:proofValue", | ||
"verificationMethod": { | ||
"@id": "sec:verificationMethod", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
"EcdsaSecp256r1Signature2019": { | ||
"@id": "https://w3id.org/security#EcdsaSecp256r1Signature2019", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"challenge": "sec:challenge", | ||
"created": { | ||
"@id": "http://purl.org/dc/terms/created", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"domain": "sec:domain", | ||
"expires": { | ||
"@id": "sec:expiration", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"jws": "sec:jws", | ||
"nonce": "sec:nonce", | ||
"proofPurpose": { | ||
"@id": "sec:proofPurpose", | ||
"@type": "@vocab", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"assertionMethod": { | ||
"@id": "sec:assertionMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"authentication": { | ||
"@id": "sec:authenticationMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
} | ||
} | ||
}, | ||
"proofValue": "sec:proofValue", | ||
"verificationMethod": { | ||
"@id": "sec:verificationMethod", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
"Ed25519Signature2018": { | ||
"@id": "https://w3id.org/security#Ed25519Signature2018", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"challenge": "sec:challenge", | ||
"created": { | ||
"@id": "http://purl.org/dc/terms/created", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"domain": "sec:domain", | ||
"expires": { | ||
"@id": "sec:expiration", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"jws": "sec:jws", | ||
"nonce": "sec:nonce", | ||
"proofPurpose": { | ||
"@id": "sec:proofPurpose", | ||
"@type": "@vocab", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"assertionMethod": { | ||
"@id": "sec:assertionMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"authentication": { | ||
"@id": "sec:authenticationMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
} | ||
} | ||
}, | ||
"proofValue": "sec:proofValue", | ||
"verificationMethod": { | ||
"@id": "sec:verificationMethod", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
"RsaSignature2018": { | ||
"@id": "https://w3id.org/security#RsaSignature2018", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"challenge": "sec:challenge", | ||
"created": { | ||
"@id": "http://purl.org/dc/terms/created", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"domain": "sec:domain", | ||
"expires": { | ||
"@id": "sec:expiration", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"jws": "sec:jws", | ||
"nonce": "sec:nonce", | ||
"proofPurpose": { | ||
"@id": "sec:proofPurpose", | ||
"@type": "@vocab", | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"sec": "https://w3id.org/security#", | ||
"assertionMethod": { | ||
"@id": "sec:assertionMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"authentication": { | ||
"@id": "sec:authenticationMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
} | ||
} | ||
}, | ||
"proofValue": "sec:proofValue", | ||
"verificationMethod": { | ||
"@id": "sec:verificationMethod", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
"proof": { | ||
"@id": "https://w3id.org/security#proof", | ||
"@type": "@id", | ||
"@container": "@graph" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.