Skip to content

Commit

Permalink
Add copyright, license.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrizagidulin committed Jun 25, 2019
1 parent bc02d39 commit 3e2f46b
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018, Digital Bazaar, Inc.
Copyright (c) 2018-2019, Digital Bazaar, Inc.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ https://github.com/w3c/vc-test-suite/
* [Data Model](https://github.com/w3c/vc-data-model)
* [Implementation Guideline](https://github.com/w3c/vc-imp-guide)
* [Use Cases](https://github.com/w3c/vc-use-cases)

## License

[New BSD License (3-clause)](LICENSE) © Digital Bazaar
4 changes: 4 additions & 0 deletions implementations/generate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/

/**
* Generates the Verifiable Credentials Data Model Implementation Report given
* a set of *-report.json files.
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/10-basic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/20-advanced.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/35-tou.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/40-ldp.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down
11 changes: 7 additions & 4 deletions test/vc-data-model-1.0/50-jwt.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down Expand Up @@ -83,8 +86,8 @@ describe('JWT (optional)', () => {
describe('To encode a verifiable credential as a JWT, specific properties introduced by this' +
'specification MUST be either 1) encoded as standard JOSE header parameters, ' +
'2) encoded as registered JWT claim names, or 3) contained in the JWS signature part...', () => {
it('If no explicit rule is specified, properties are encoded in the same way as with a standard' +

it('If no explicit rule is specified, properties are encoded in the same way as with a standard' +
'verifiable credential, and are added to the vc property of the JWT.', async () => {
const jwtBase64 = await util.generateJwt('example-016-jwt.jsonld', getGeneratorOptions());
const jwtResult = cryptoFactory.constructJws(jwtBase64);
Expand All @@ -95,7 +98,7 @@ describe('JWT (optional)', () => {
expect(payload.vc.type !== null && payload.vc.type !== undefined).to.be.true;
expect(payload.vc.type).to.equal('VerifiableCredential');
});

it('if typ is present, it MUST be set to JWT.', async () => {
const jwtBase64 = await util.generateJwt('example-016-jwt.jsonld', getGeneratorOptions());
const jwtResult = cryptoFactory.constructJws(jwtBase64);
Expand Down Expand Up @@ -123,7 +126,7 @@ describe('JWT (optional)', () => {
// if (alg === 'RS256') {
// payload = await jwtResult.verifySignature(ecPublicKey);
// } else {
// payload = await jwtResult.verifySignature(rsaPublicKey);
// payload = await jwtResult.verifySignature(rsaPublicKey);
// }
// expect(payload !== null).to.be.true;
});
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/60-zkp.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
/*global describe, it*/
const config = require('../../config.json');
const chai = require('chai');
Expand Down
3 changes: 3 additions & 0 deletions test/vc-data-model-1.0/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*!
* Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
const path = require('path');
const util = require('util');
Expand Down

0 comments on commit 3e2f46b

Please sign in to comment.