Skip to content

Commit

Permalink
create submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Jan 18, 2024
1 parent 474cc47 commit 1785621
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 638 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "web5-spec"]
path = web5-spec
url = https://github.com/TBD54566975/web5-spec
2 changes: 1 addition & 1 deletion packages/credentials/tests/presentation-exchange.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Validated, PresentationDefinitionV2 } from '../src/presentation-ex

import { VerifiableCredential } from '../src/verifiable-credential.js';
import { PresentationExchange } from '../src/presentation-exchange.js';
import PresentationExchangeSelectCredentialsTestVector from '../../../test-vectors/presentation_exchange/select_credentials.json' assert { type: 'json' };
import PresentationExchangeSelectCredentialsTestVector from '../../../web5-spec/web5-test-vectors/presentation_exchange/select_credentials.json' assert { type: 'json' };


class BitcoinCredential {
Expand Down
2 changes: 1 addition & 1 deletion packages/credentials/tests/verifiable-credential.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DidDhtMethod, DidKeyMethod, DidIonMethod } from '@web5/dids';

import { Jwt } from '../src/jwt.js';
import { VerifiableCredential } from '../src/verifiable-credential.js';
import CredentialsVerifyTestVector from '../../../test-vectors/credentials/verify.json' assert { type: 'json' };
import CredentialsVerifyTestVector from '../../../web5-spec/web5-test-vectors/credentials/verify.json' assert { type: 'json' };

describe('Verifiable Credential Tests', () => {
let issuerDid: PortableDid;
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/tests/primitives/ed25519.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import chaiAsPromised from 'chai-as-promised';

import type { Jwk, JwkParamsOkpPrivate } from '../../src/jose/jwk.js';

import CryptoEd25519SignTestVector from '../../../../test-vectors/crypto_ed25519/sign.json' assert { type: 'json' };
import CryptoEd25519SignTestVector from '../../../../web5-spec/web5-test-vectors/crypto_ed25519/sign.json' assert { type: 'json' };
import ed25519ComputePublicKey from '../fixtures/test-vectors/ed25519/compute-public-key.json' assert { type: 'json' };
import CryptoEd25519VerifyTestVector from '../../../../test-vectors/crypto_ed25519/verify.json' assert { type: 'json' };
import CryptoEd25519VerifyTestVector from '../../../../web5-spec/web5-test-vectors/crypto_ed25519/verify.json' assert { type: 'json' };
import ed25519BytesToPublicKey from '../fixtures/test-vectors/ed25519/bytes-to-public-key.json' assert { type: 'json' };
import ed25519PublicKeyToBytes from '../fixtures/test-vectors/ed25519/public-key-to-bytes.json' assert { type: 'json' };
import ed25519BytesToPrivateKey from '../fixtures/test-vectors/ed25519/bytes-to-private-key.json' assert { type: 'json' };
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/tests/primitives/secp256k1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import chaiAsPromised from 'chai-as-promised';

import type { Jwk, JwkParamsEcPrivate } from '../../src/jose/jwk.js';

import CryptoEs256kSignTestVector from '../../../../test-vectors/crypto_es256k/sign.json' assert { type: 'json' };
import CryptoEs256kVerifyTestVector from '../../../../test-vectors/crypto_es256k/verify.json' assert { type: 'json' };
import CryptoEs256kSignTestVector from '../../../../web5-spec/web5-test-vectors/crypto_es256k/sign.json' assert { type: 'json' };
import CryptoEs256kVerifyTestVector from '../../../../web5-spec/web5-test-vectors/crypto_es256k/verify.json' assert { type: 'json' };
import secp256k1GetCurvePoints from '../fixtures/test-vectors/secp256k1/get-curve-points.json' assert { type: 'json' };
import secp256k1BytesToPublicKey from '../fixtures/test-vectors/secp256k1/bytes-to-public-key.json' assert { type: 'json' };
import secp256k1PublicKeyToBytes from '../fixtures/test-vectors/secp256k1/public-key-to-bytes.json' assert { type: 'json' };
Expand Down
45 changes: 0 additions & 45 deletions test-vectors/credentials/verify.json

This file was deleted.

58 changes: 0 additions & 58 deletions test-vectors/crypto_ed25519/README.md

This file was deleted.

78 changes: 0 additions & 78 deletions test-vectors/crypto_ed25519/sign.json

This file was deleted.

Loading

0 comments on commit 1785621

Please sign in to comment.