- From: Matthew Collier <mcollier@digitalbazaar.com>
- Date: Thu, 1 Aug 2019 13:40:56 -0400
- To: public-credentials@w3.org
Hello All, Some people have asked for more detail about the vc-demo we published the other day: https://github.com/digitalbazaar/vc-demo **It is currently possible to:** - Generate a Ed25519 or Secp256k1 keypair. - The public key material and a controller document will automatically be uploaded as a gist to your github. - Sign a VC document of your own design, or using the provided sample. - Verify the signed VC. - The verifier retrieves controller and key documents from public gists. **Node.js Source Code** - https://github.com/digitalbazaar/vc-js-cli - https://github.com/digitalbazaar/vc-js/tree/node-12 - https://github.com/digitalbazaar/ecdsa-secp256k1-signature-2019 - https://github.com/digitalbazaar/secp256-key-pair - https://github.com/digitalbazaar/jsonld-signatures/tree/node-12 A sample signed VC looks like this. You should be able to verify this credential yourself using the vc-js-cli tool. ``` { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1" ], "id": "https://example.com/credentials/1872", "type": [ "VerifiableCredential", "AlumniCredential" ], "issuanceDate": "2010-01-01T19:23:24Z", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", "alumniOf": "Example University" }, "issuer": "https://gist.githubusercontent.com/mattcollier/bbeb042136d8c6971ec162236f0a77f2/raw", "proof": { "type": "EcdsaSecp256k1Signature2019", "created": "2019-08-01T13:49:11Z", "jws": "eyJhbGciOiJFUzI1NksiLCJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdfQ..MEQCIBjyUUdGaXJE1GRu91XOU4C1BjUDp_JyxMLSY8MzxKfxAiA9SEbcPnWZh045oLx5aPzZlZABdnApkrL5bAyev29fLA", "proofPurpose": "assertionMethod", "verificationMethod": "https://gist.githubusercontent.com/mattcollier/c0b673cef7a764a85c12c813d4ca76ad/raw" } } ```
Received on Thursday, 1 August 2019 17:41:23 UTC