Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLS12381_G2 unsupported from did test suite #118

Open
fqutishat opened this issue May 21, 2021 · 0 comments
Open

BLS12381_G2 unsupported from did test suite #118

fqutishat opened this issue May 21, 2021 · 0 comments

Comments

@fqutishat
Copy link
Contributor

Test case

  ● 5.x Core Properties - did:orb - DID Orb Test Suite - SecureKey › did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew › 5.2 Verification Methods - The publicKeyJwk property is OPTIONAL. If present, the value MUST be a map representing a JSON Web Key that conforms to [RFC7517].

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: false

      115 |         const {publicKeyJwk} = vm;
      116 |         if(publicKeyJwk) {
    > 117 |           expect(isValidJwk(publicKeyJwk)).toBe(true);
          |                                            ^
      118 |         }
      119 |       });
      120 |   });

      at forEach (suites/did-core-properties/did-core-properties.js:117:44)
          at Array.forEach (<anonymous>)
      at Object.<anonymous> (suites/did-core-properties/did-core-properties.js:114:27)

error

 console.log
      JOSENotSupported: unsupported EC key curve: BLS12381_G2
          at Object.<anonymous>.module.exports.jwkToPem (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jose/lib/help/key_utils.js:281:15)
          at Object.asKey (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jose/lib/jwk/import.js:66:13)
          at isValidJwk (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/suites/utils.js:29:14)
          at forEach (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:117:18)
          at Array.forEach (<anonymous>)
          at Object.<anonymous> (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/suites/did-core-properties/did-core-properties.js:114:27)
          at Object.asyncJestTest (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
          at /Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jest-jasmine2/build/queueRunner.js:45:12
          at new Promise (<anonymous>)
          at mapper (/Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
          at /Users/firas.qutishat/gopath/src/github.com/trustbloc/did-test-suite/packages/did-core-test-server/node_modules/jest-jasmine2/build/queueRunner.js:75:41
          at processTicksAndRejections (internal/process/task_queues.js:93:5) {
        code: 'ERR_JOSE_NOT_SUPPORTED'
      }
fqutishat added a commit to fqutishat/did-test-suite that referenced this issue May 21, 2021
list of did samples:

- did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q (interim did, local cas, V1 CID, P-256 JsonWebKey2020, empty service)
- did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ (canonical did, local cas, V1 CID, P-256 JsonWebKey2020, empty service)
- did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q (canonical did, local cas, V1 CID, ed25519 Ed25519VerificationKey2018, DIDComm v1 service)
- did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg (canonical did, local cas, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw (webcas did, local cas, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ (interim did, ipfs, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw (ipfs did, ipfs, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ (ipfs did, ipfs, V0 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew (ipfs did, ipfs, V0 CID, BLS12381_G2 Bls12381G2Key2020, DIDComm v2 service)
- did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg (ipfs did, ipfs, V0 CID, P-384 JsonWebKey2020, DIDComm v2 service)
- did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ay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tL3NlcnZpY2VzL29yYiIsImRlbHRhSGFzaCI6IkVpQUluS05tb0d1WDJVajI1aGFCNDdGQlF4aGpmb0lJYzc3Y2h6N0p0enJXdVEiLCJyZWNvdmVyeUNvbW1pdG1lbnQiOiJFaUNIOWF3WHZQUFZZdVBneEw2WUFQX3FaeUktMzdxclcwQkdFT2o5cnJWbHd3In19 (long-form did, V1 CID, P-256 JsonWebKey2020 ed25519 Ed25519VerificationKey2018)

Result: 16 failed, 17 todo, 1902 passed, 1935 total

1 failure related to this issue w3c#118
4 failure related to this issue w3c#116
11 failure related to this issue w3c#112

Signed-off-by: Firas Qutishat <[email protected]>
msporny pushed a commit that referenced this issue May 24, 2021
list of did samples:

- did:orb:interim:EiDHdXhNm7LuCqxo4JvAwKYKiFmpf85YFswAovxTxI_y4Q (interim did, local cas, V1 CID, P-256 JsonWebKey2020, empty service)
- did:orb:bafkreiazah4qrybzyapmrmk2dhldz24vfmavethcrgcoq7qhic63zz55ru:EiAag4cmgxAE2isL5HG3mxjS7WRq4l-xyyTgULCAcEHQQQ (canonical did, local cas, V1 CID, P-256 JsonWebKey2020, empty service)
- did:orb:bafkreihp4inweep4py7gw4j7hej5mqlbwa7br4u7mtrfxr5khfwpu3qu3m:EiB2tmdM_oWwjXj6AmVLm0RFa_8XKZHipOpNGpEODIVN8Q (canonical did, local cas, V1 CID, ed25519 Ed25519VerificationKey2018, DIDComm v1 service)
- did:orb:bafkreibcsubh3ifub7gletz27hcdyhwvrhlh5mwfth2m5fbasqua6yalay:EiA2ZtZqXjKZt-yf19ersmaCYm-gJEnlixrfk0Mi61ETTg (canonical did, local cas, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:webcas:testnet.orb.local:bafkreihdnftiso5b7bzmhhi65nzsutbcuv6mtrmuquzoqlrk7joyer45uq:EiARiEOCLK3GnRVHA_yF92tX3aoSJAVqW1bh7Enre1iDXw (webcas did, local cas, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:interim:EiCYgffdSsqLTXT6PRYLPr6vvgn9PVecJ5nFUGh9hXgOxQ (interim did, ipfs, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:bafkreiacr3ga6zilvzatpcixq5mz4uvgld7yedutgcssvnmql44o6rc7yy:EiB2k0ytmo-qi_M7jGocxvj4P9D6VQJGl6gRy4f6-UUpTw (ipfs did, ipfs, V1 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:QmfX6CHk7AC43Xq9iFK9XzgH3a7kJeAn3ewWZxEcqur2wE:EiCnmXoUEEP-04kELpPiF7Ss5GesCCedfTgRPA30SJO5KQ (ipfs did, ipfs, V0 CID, P-256 JsonWebKey2020, DIDComm v2 service)
- did:orb:ipfs:QmS4ZME5uEPtQ2DFDwhSZYtLxzFxCYjJ6kC7o3ypwanzFm:EiACG5GI9dK1fjnCMYMA6ZFhtP75HVhunEuqW-XDCAU7Ew (ipfs did, ipfs, V0 CID, BLS12381_G2 Bls12381G2Key2020, DIDComm v2 service)
- did:orb:ipfs:QmfJFePqcopDUYttpvWgec9LKeJhnwh4UjhwUJz5ZcRUqM:EiDwFxa7ooPvKDTqpemH-R-H0pNX9VzUEUzk8AZsMCf9pg (ipfs did, ipfs, V0 CID, P-384 JsonWebKey2020, DIDComm v2 service)
- did:orb:interim:EiAQ1HmY03Cx4OMhiuYHl8q-B1JYlkT1Wns-dhhccUIl5g:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJhZGQtcHVibGljLWtleXMiLCJwdWJsaWNLZXlzIjpbeyJpZCI6ImNyZWF0ZUtleSIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJILURtZmNkRVZERi1vNm80ellxdjl2YlhPcFFFcDd3RC1XUHFDbl9ELXciLCJ5IjoidnBiRGNQX2YwS1JoRW02Sm93Y0oxbWlNTldJRXo2YWVnRHFDek80WXNxSSJ9LCJwdXJwb3Nl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dFT2o5cnJWbHd3In19 (long-form did, V1 CID, P-256 JsonWebKey2020 ed25519 Ed25519VerificationKey2018)

Result: 16 failed, 17 todo, 1902 passed, 1935 total

1 failure related to this issue #118
4 failure related to this issue #116
11 failure related to this issue #112

Signed-off-by: Firas Qutishat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant