diff --git a/test-vectors/basicmessage-2_0-Hello_World-return_route_all/ScalaDid-v0.1 b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/ScalaDid-v0.1 new file mode 100644 index 00000000..8917b8dd --- /dev/null +++ b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/ScalaDid-v0.1 @@ -0,0 +1 @@ +{"ciphertext":"WSuUAyqGmVhDJL44myQ2n5gB_OGD35LXPAm5QsuWZwC3yCDVKXL1DmW0b6NV87Wo2RoQq2gkQFzzw1D0rlZdAMxqa72tX5AULoJY9_dfILAzDc3dQCWUFNB8WC3zMkGkG5j8uF9p-GegA662MVE07Gm9k7u12nbSxpn6qcv4Ph4iYeo0mqDi99tts_1u-P4zSBDpNACgQDUdwiP9ewUI9Y5yAwe6zRlVa1Z0DckIPk3yn-d0LIfrycMd8oApTs0Wi2R0WK_ZbVSjChdQUKnVvw","protected":"eyJlcGsiOnsia3R5IjoiT0tQIiwiY3J2IjoiWDI1NTE5IiwieCI6IlVjN0ttQU15SDZOZWpaVXZaR2tZcXF1dktrN2pWdFg4VkRtVy1VTkNEblUifSwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInNraWQiOiJkaWQ6ZXhhbXBsZTphbGljZSNrZXkteDI1NTE5LTEiLCJhcHUiOiJaR2xrT21WNFlXMXdiR1U2WVd4cFkyVWphMlY1TFhneU5UVXhPUzB4IiwidHlwIjoiYXBwbGljYXRpb24vZGlkY29tbS1lbmNyeXB0ZWQranNvbiIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJhbGciOiJFQ0RILTFQVStBMjU2S1cifQ","recipients":[{"encrypted_key":"YkUHsL4p_iL0kGpjP2N9rfqoI-CpU5c0h9S_KJmMh7JKDqx51rHJhky0C7v3IAhvzA18VHHpA0q74Qjqbw4OvLnp5J_V5sSv","header":{"kid":"did:example:bob#key-x25519-1"}},{"encrypted_key":"jQSGiKE8VBzPub1BcoabBYS2MFikUzgMAreOU_nWDBXXcaQjfeQ-oiV6x2aDw4yg2u0fyzJ3bfpH91z7SsTXvJ_Qcs8Ldt8s","header":{"kid":"did:example:bob#key-x25519-3"}},{"encrypted_key":"6pV8naf_7Cvr6dVdJNtJzP2BEtA86hmlDrH0NHs85BeOMHZ2khWm3kDw3SJ9P4A6qclkDcSzHulRIbJmg9u3q6UUVDXEg0Hz","header":{"kid":"did:example:bob#key-x25519-2"}}],"tag":"n9sYuuFSIS6KYLUKAdb-_VIByYe_Z0HhUtRBxcOQrrE","iv":"TS5sFIWHly4rMX9R6EM_lg"} diff --git a/test-vectors/basicmessage-2_0-Hello_World-return_route_all/expected b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/expected new file mode 100644 index 00000000..28a0998f --- /dev/null +++ b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/expected @@ -0,0 +1,12 @@ +{ + "id" : "bf4a022c-f6f0-48b1-8e98-cdf2c37b027a", + "type" : "https://didcomm.org/basicmessage/2.0/message", + "to" : [ + "did:example:bob" + ], + "from" : "did:example:alice", + "body" : { + "content" : "Hello, World!" + }, + "return_route" : "all" +} diff --git a/test-vectors/basicmessage-2_0-Hello_World-return_route_all/notes b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/notes new file mode 100644 index 00000000..498a031d --- /dev/null +++ b/test-vectors/basicmessage-2_0-Hello_World-return_route_all/notes @@ -0,0 +1 @@ +This example of 'https://didcomm.org/basicmessage/2.0/message' is using the extention 'return_route'. diff --git a/test-vectors/basicmessage-2_0-Hello_World/ScalaDid-v0.1 b/test-vectors/basicmessage-2_0-Hello_World/ScalaDid-v0.1 new file mode 100644 index 00000000..8a642f14 --- /dev/null +++ b/test-vectors/basicmessage-2_0-Hello_World/ScalaDid-v0.1 @@ -0,0 +1 @@ +{"ciphertext":"s23zSlwO-F4bW6qnQgy4fyxmQ7UJQiNVJnHBDz8OdngK-54a_TUXscZ9ahQk_EWy1ZWfHL74UC6alNgGvMicMScBpMJaDdD3Jr5Gb0pfHuKU_wMVNjSUwHLxHbEYe1OcDKBnmPwIsR8pewhkmixqlfFchUvRXUNqjnshPsmeA69qhN9DQWlqycTcN6eNmxE6-krQSHyBIQPceQ_vctHC-plsltesXvpN7-conMa486fkcKmoSOT0hFkbLtJjh-6d","protected":"eyJlcGsiOnsia3R5IjoiT0tQIiwiY3J2IjoiWDI1NTE5IiwieCI6InBvZFZtRlBYemRUV19qVXZVREJXSnktZ3RLcE9EUUh1YjE3UFR2OHNsMG8ifSwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInNraWQiOiJkaWQ6ZXhhbXBsZTphbGljZSNrZXkteDI1NTE5LTEiLCJhcHUiOiJaR2xrT21WNFlXMXdiR1U2WVd4cFkyVWphMlY1TFhneU5UVXhPUzB4IiwidHlwIjoiYXBwbGljYXRpb24vZGlkY29tbS1lbmNyeXB0ZWQranNvbiIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJhbGciOiJFQ0RILTFQVStBMjU2S1cifQ","recipients":[{"encrypted_key":"psm182MyGdzoHMmL1LkmJ0GLyYdGZzK8Hz9j5eidDkNr55XgUgdcGZNfQ8nG-O6DNDpHQRuE3la2piSRrNiH2X3tbDxn8vin","header":{"kid":"did:example:bob#key-x25519-1"}},{"encrypted_key":"h3ULSgiq5WyLNrpMdlThVHwqHAvsXxelWxDRxyGyvBvipBxtDbcXAepxPQDGVtMEb-w4nC-QBV4A-WbKtH4UZHOJmB9kzp5w","header":{"kid":"did:example:bob#key-x25519-3"}},{"encrypted_key":"_L61c6uUP_Thc6NNxQ4afx0_N8TPK94o71DXGaZRJymB0gytXE3wLYXMMbyo3IP6qtezo05XUl4bDH-m_ZY3NtxlnCVy4j7Q","header":{"kid":"did:example:bob#key-x25519-2"}}],"tag":"rKqKzvtJq56QfSVAfFDzAeP1UqpN3VPFjM5VwTdhBBM","iv":"_F9enLt8J6gmbpADJ_yOsA"} diff --git a/test-vectors/basicmessage-2_0-Hello_World/expected b/test-vectors/basicmessage-2_0-Hello_World/expected new file mode 100644 index 00000000..194e23b3 --- /dev/null +++ b/test-vectors/basicmessage-2_0-Hello_World/expected @@ -0,0 +1,11 @@ +{ + "id" : "bf4a022c-f6f0-48b1-8e98-cdf2c37b027a", + "type" : "https://didcomm.org/basicmessage/2.0/message", + "to" : [ + "did:example:bob" + ], + "from" : "did:example:alice", + "body" : { + "content" : "Hello, World!" + } +} diff --git a/test-vectors/coordinate-mediation-2_0-mediate-deny/ScalaDid-v0.1 b/test-vectors/coordinate-mediation-2_0-mediate-deny/ScalaDid-v0.1 new file mode 100644 index 00000000..14f4d99e --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-deny/ScalaDid-v0.1 @@ -0,0 +1 @@ +{"ciphertext":"j03xL2Loyx9WygoDZsX9xSR0WsktsMGcDeiofOmuKDwSXLhPqSHzYw4HnozgcJ3pPjgRfJL-UAZu1h9S_G3PyfZUx7IQP2eX43En__lzBgmWpJ3EOktFRt9c_074CrBbcbHvcELx-NZnOuEdPbUKqDZ5JyxtVJRVyN-4IX2NdF_OMSni7Z9RvbUT-F7zAqWBRG6jUdeXM18FvstWzEDOA6zpN_xdlU8-k7pbBYoffyePKkeEzclx2a44WgCMKMdZXarZVENgBKHS7whqpmw5oCG-JGKepIyjOTYQMXEQxDMvhEUgDMqIigsYwOn9IUccJL3c7N6zd4IZgp8x4CcsX8G7DR-RJwlMsm8g0jVtwCivcLHn5RkS9W26Of3UPqIpsv3BKIaHgjDk11W38Em9wiUsBmJJ1osGAS3gNCsay3I3ioPRxVLLs4Dqrfd1ghjgrX7pxH4Jm6Wc2_oS7TNdfB9Vk5z_J9ZJVGSIXMJjqA11-8awf-cmC7O27it-nd2Szi99IvURtvSokmo8DwVjyY6-e2TkSwDd5FddGNmCnXRbNA9ZOWWtWJWx7X33zP7573FDI82AgumBNN26IoC9Ni_KuGBveWdkDQoudEIRryiqNUeIgaKYbnOlJ7b-KQsxM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VXBrWmxFak5reFRaMmgzVTBVME16ZDNia1JGTVhCME0xZzJhRlpFVlZGNlUycHpTSHBwYm5CWU0xaEdkazFxVWtGdE4zayIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiRUNESC0xUFUrQTI1NktXIn0","recipients":[{"encrypted_key":"qsprRYeglQUjqeZATfbdBNmvzdqpVK-0SHdMHM-p4Na3lZAWz_wZHpQ0RaEOXD_CE1DbBk8nNbvmI_20tPX1Oc4vjPVM5rN3","header":{"kid":"did:peer:2.Ez6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ.Vz6Mkjdwvf9hWc6ibZndW9B97si92DSk9hWAhGYBgP9kUFk8Z.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9ib2IuZGlkLmZtZ3AuYXBwLyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0#6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ"}}],"tag":"Ul3sRb5__NflLH15rG3wMnU1s8S2nDoiYSA_Jf3qJBQ","iv":"UAOtib0CUj13X1Q_nQfNMA"} \ No newline at end of file diff --git a/test-vectors/coordinate-mediation-2_0-mediate-deny/expected b/test-vectors/coordinate-mediation-2_0-mediate-deny/expected new file mode 100644 index 00000000..5e12b30b --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-deny/expected @@ -0,0 +1,10 @@ +{ + "id" : "509414c1-c03a-4bf2-a11b-1a86f3201ff2", + "type" : "https://didcomm.org/coordinate-mediation/2.0/mediate-deny", + "to" : [ + "did:peer:2.Ez6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ.Vz6Mkjdwvf9hWc6ibZndW9B97si92DSk9hWAhGYBgP9kUFk8Z.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9ib2IuZGlkLmZtZ3AuYXBwLyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0" + ], + "from" : "did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9hbGljZS5kaWQuZm1ncC5hcHAvIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ", + "thid" : "thid-responding-to-msg-id", + "body" : {} +} \ No newline at end of file diff --git a/test-vectors/coordinate-mediation-2_0-mediate-grant/ScalaDid-v0.1 b/test-vectors/coordinate-mediation-2_0-mediate-grant/ScalaDid-v0.1 new file mode 100644 index 00000000..a1c84319 --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-grant/ScalaDid-v0.1 @@ -0,0 +1 @@ +{"ciphertext":"uwwOdStGslsXtGd_lyMZTjmyiR_lF8ilPfOL0pQeA-ULOaXKZBGKZTfLr0sa1QWyV0iJXDSPEduSRXjm35lKF52ZNke_lcuVcT1ZMXSXpaO9DfrAXFzd80GUZJl_2yBewBD5L6avm-AeIPqPV-qlVukf0tgBMTXuO15rf05EIR_CtjR6JrqduxVRg5jt-MVkuuvQheVD3eLlds1vyEAqZKCiUKIsM6SDoT6HkC8Nk0kPRpLD7t8JhhvtlCyUpeO_X0HSCmHl7VHS9PU2zEE0zrhX9toAX5f17AbrfHPmD5d3e2Xm_E9C-Mxrzkrvi1yCyTDtSRPheRA-KFPMPVHJAGjmJSGbdpa6ojIc5T_5eZ8iB4IDKif-_r0XwpAYN9vsehnZaWfTlEJaaRW6YbliRkTQ3Qd-BRTFNYHd-h0FSfhcbI9I-BFTQKyPFbs-srxeu0uIlgrUoG_6FuT161RDizR1mhYU9tn2FEq2jb0Ba-eQyLw-nSgDrHWPd8BeiD9i4qf4bAy4WR3lslIvd4tDZJ21D7YIBDUjJpWhl9j04wINWQr7gnD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git a/test-vectors/coordinate-mediation-2_0-mediate-grant/expected b/test-vectors/coordinate-mediation-2_0-mediate-grant/expected new file mode 100644 index 00000000..ee6512e1 --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-grant/expected @@ -0,0 +1,14 @@ +{ + "id" : "996f8256-bbcc-4489-92b4-3d9ace85c683", + "type" : "https://didcomm.org/coordinate-mediation/2.0/mediate-grant", + "to" : [ + "did:peer:2.Ez6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ.Vz6Mkjdwvf9hWc6ibZndW9B97si92DSk9hWAhGYBgP9kUFk8Z.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9ib2IuZGlkLmZtZ3AuYXBwLyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0" + ], + "from" : "did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9hbGljZS5kaWQuZm1ncC5hcHAvIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ", + "thid" : "thid-responding-to-msg-id", + "body" : { + "routing_did" : [ + "did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9hbGljZS5kaWQuZm1ncC5hcHAvIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ" + ] + } +} \ No newline at end of file diff --git a/test-vectors/coordinate-mediation-2_0-mediate-request/ScalaDid-v0.1 b/test-vectors/coordinate-mediation-2_0-mediate-request/ScalaDid-v0.1 new file mode 100644 index 00000000..9ff08854 --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-request/ScalaDid-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0iLCJzIjoiaHR0cHM6Ly9ib2IuZGlkLmZtZ3AuYXBwLyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0#6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ"}}],"tag":"2RLxOtc3A9EvyV8tY9QE0vwSyBVn8cJWG0uNUNTHFUg","iv":"K4W7Bcy44uP5FAPzIP3_gw"} \ No newline at end of file diff --git a/test-vectors/coordinate-mediation-2_0-mediate-request/expected b/test-vectors/coordinate-mediation-2_0-mediate-request/expected new file mode 100644 index 00000000..daa655fd --- /dev/null +++ b/test-vectors/coordinate-mediation-2_0-mediate-request/expected @@ -0,0 +1,9 @@ +{ + "id": "99f45431-7660-4a04-9041-4e1c2e644aa0", + "type": "https://didcomm.org/coordinate-mediation/2.0/mediate-request", + "to": [ + "did:peer:2.Ez6LSkGy3e2z54uP4U9HyXJXRpaF2ytsnTuVgh6SNNmCyGZQZ.Vz6Mkjdwvf9hWc6ibZndW9B97si92DSk9hWAhGYBgP9kUFk8Z.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9ib2IuZGlkLmZtZ3AuYXBwLyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0" + ], + "from": "did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9hbGljZS5kaWQuZm1ncC5hcHAvIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ", + "body": {} +} \ No newline at end of file diff --git a/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve-x25519 b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve-x25519 new file mode 100644 index 00000000..ba22787d --- /dev/null +++ b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve-x25519 @@ -0,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SwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiRUNESC1FUytBMjU2S1cifQ","recipients":[{"encrypted_key":"6tbvMTeKKXS9Z-H_OfM6n0Y_HUv3Zn2LW-obBsrhAZVw709-b-SkucWtu5SdzyycksxR_sWFRFG-YnOm0AUuhA2544U13Lkt","header":{"kid":"did:example:bob#key-x25519-1"}},{"encrypted_key":"8shhNDrS7O9n35Y8uXs4w9YRSF9mWZn8Lad1iaK2BF2SiQ1w3FaWSh6VPOd2tGSIZEXldjVjrh_Flwbt4Wz6DkR_EuQgt8ld","header":{"kid":"did:example:bob#key-x25519-2"}},{"encrypted_key":"o_NqpSNsSIA-q6P_9Y6eDfGCVbI1YgA9gz812aziGGRtdvd0Vwsm6urJVnGulnepz6FkXDUyztMSpWyx6Pd-KOF1OzK-LJ2Q","header":{"kid":"did:example:bob#key-x25519-3"}}],"tag":"MHu2gTsTpghMlUpOkzGevcPe8BAtVstas4_ZAwCOcJA","iv":"iABUP8ZArpxeUNF_yNgHww"} diff --git a/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p256 b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p256 new file mode 100644 index 00000000..7dbf8635 --- /dev/null +++ b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p256 @@ -0,0 +1 @@ +{"ciphertext":"DAQBuM9yguPYCiknJdSGh2_a25V_J2CxwldtTXsBFvzFKrxh0-R8wgdZpcE1-a2rs367Togey76mUwvty960dPNEB-XTU9wnE1ng-l9FfpM4pyB7lhcbCyZmSLAsrG2pg2NZIj0KywqgavLtQJxgAtOpmsVTCGNnej-BikwDtCSR1wsdpy8KxuK5mjZlpyaxd6HpGctb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iwiYWxnIjoiRUNESC1FUytBMjU2S1cifQ","recipients":[{"encrypted_key":"mTms8qAQWlzqpc5QGQ8nTvblRFDfPDehtPm7gD8qRh06Vw9po8xWML9aXQ3640-VZ_o_kITdnOGNpyJVaP5EnM6jtfWUIwro","header":{"kid":"did:example:bob#key-p256-2"}},{"encrypted_key":"IqnVu6xbYeZLPKumkuAgL15XAQQmsM9RdAen6iDlrkWUNawQ4LzxQSSiUDV7OjV-ASDuZsgevByGwlpawYUfE-MmmjRI04Ak","header":{"kid":"did:example:bob#key-p256-1"}}],"tag":"v7OIHaSvlLvIeZ2LRmJpAm82gQVJKMdsLCtSYlZC8_8","iv":"5DmKsdI0j3zBbAhGVHjWMw"} diff --git a/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p521 b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p521 new file mode 100644 index 00000000..f000ad9c --- /dev/null +++ b/test-vectors/forward-2_0-to_bob_next_bob/ScalaDid-v0.1-curve_p521 @@ -0,0 +1 @@ +{"ciphertext":"NR8VLF537soniHyU-UIunll57VyRwZONVyCQFM1jcehg1jiO4MkYipVtW_piN_zPw_yOiqHGOgB1wkL9FkMEVeK0KGSayMXjrVQVZqUpVsdAhOHSK4T2WW5rP2ztyC6g5o434ELfYnKU4ES2erJc-kg_7ftNUBHK7_hWQbf-J1UEdIMn4FPZSpLcu2-rj85NibJCEISplZ3BnXavu1ZRO0McxlQlk_5-siZd4Si5F1g-S_oiNm2I2ICOWesSsdg-kShngwCyJ0-cQgVaOceRW8rAe9ODLVQQeH-lsjpBvvnpPcubv_JfMxU_h1byYhX8o1w6ehXlYHY77mwMsw94w8kX-Zvlfqj8Gpl4Ng_mUSWLKF-vib_NeAKjjC8QMUuNvS91PRQP60YNscxL7vb7N-yZB3nuVUMnSdBjBWMUC1Lkx_K_AAbCSr9_aEPZgiDCnbWMabXgDiv0FoYNrUCcQ-b469z3OmG-uOWnZweirvL52hrDduAo7CtidR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dF6xx5TTkJv321rvSlCBt5s6ujJp_fPmNWd04aSuLMzJBrxKAQdIV_HOnitCdYe0Kzn4E57_WCWCUR-RVjuZC-OVvs_5VWOkaq9QsFyAM7ug0n7DTXaeVoBL5X073FALy4HDrbZU0eWmol-VZqvMB6NBeeiVgXmlt1w3Xb4-LZRQc_InfN3Eqmj-hpbe8ASDHl17XIsoIpZTdp7E9-ZGhGW8MvZSrlUaWgotRvImUe_q7b2TAUaj07RuROvmKBuTaCY9xC2lF1oIDldRToCDOWHuYcnjwjUC9mMikoob3136U0ehGLb0bzDtzITHSiREc4JADlP3260sNd_kgFAxnCmcYkRj9rPzUhR2Ep6GoN8VQFn80lTlTklsdTd1xPFuCFDdDw58zhVls3FTzOTWWSb-9G9iCbYs2l7uENo4CVBPX51tSkUTzcJ1c","protected":"eyJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTUyMSIsIngiOiJBTE5RN2NlSGZFWVFjeTBfOGc0Yk1CX1lEdGppNUdVZnltbDNBNlZUanZhRWYzejB0OVFoVkNmM2lhUXFlU2dBTmJrT1RtS3RCeDZ0cDdPN1lzUXBWck5XIiwieSI6IkFMS3g0eVF3LUloYk95d3JNYXpfTjFDekhZUkRmcktOaDBQUjIyWFctZDZTVmdlUlUyYjBuNkU2X2xpMF9FUm9BZTh4M2VicWp6OHdNSmcxdUNWcDBxX24ifSwiYXB2IjoiR09lbzc2eW02TkNnOVdXTUVZZlcwZVZEVDU2Njh6RWhsMnVBSVctRS1IRSIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiRUNESC1FUytBMjU2S1cifQ","recipients":[{"encrypted_key":"2MN9lPMRUE_dA-YrT15REXm9e4bJkENToz4O_PhzRNHidJZ-ROkcKBSfm4spBVS12sZVl-QzxwmeAA0oX-qssGD4sKF3EPa0","header":{"kid":"did:example:bob#key-p521-1"}},{"encrypted_key":"XowakxxNpvYAXpdEFf71-1NDleAFj2t1MEjyhCI-oW89qfARVxWmfL3ziw7NgqMP-jqf8yaq-QAlVebOQPfMuhVS1e7WG2_r","header":{"kid":"did:example:bob#key-p521-2"}}],"tag":"Zhn0I__Gta-jPJDT2-rd0RZ8wVWyt7BbYRZMbsvqOsQ","iv":"nsv_Zra7_bdwwyTmS0uwdA"} diff --git a/test-vectors/forward-2_0-to_bob_next_bob/expected b/test-vectors/forward-2_0-to_bob_next_bob/expected new file mode 100644 index 00000000..1df42f22 --- /dev/null +++ b/test-vectors/forward-2_0-to_bob_next_bob/expected @@ -0,0 +1,43 @@ +{ + "id" : "1e51e856-6431-412e-8e03-bae5c3428a51", + "type" : "https://didcomm.org/routing/2.0/forward", + "to" : [ + "did:example:bob" + ], + "expires_time" : 987654321, + "body" : { + "next" : "did:example:bob" + }, + "attachments" : [ + { + "data" : { + "json" : { + "ciphertext" : "s23zSlwO-F4bW6qnQgy4fyxmQ7UJQiNVJnHBDz8OdngK-54a_TUXscZ9ahQk_EWy1ZWfHL74UC6alNgGvMicMScBpMJaDdD3Jr5Gb0pfHuKU_wMVNjSUwHLxHbEYe1OcDKBnmPwIsR8pewhkmixqlfFchUvRXUNqjnshPsmeA69qhN9DQWlqycTcN6eNmxE6-krQSHyBIQPceQ_vctHC-plsltesXvpN7-conMa486fkcKmoSOT0hFkbLtJjh-6d", + "protected" : "eyJlcGsiOnsia3R5IjoiT0tQIiwiY3J2IjoiWDI1NTE5IiwieCI6InBvZFZtRlBYemRUV19qVXZVREJXSnktZ3RLcE9EUUh1YjE3UFR2OHNsMG8ifSwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInNraWQiOiJkaWQ6ZXhhbXBsZTphbGljZSNrZXkteDI1NTE5LTEiLCJhcHUiOiJaR2xrT21WNFlXMXdiR1U2WVd4cFkyVWphMlY1TFhneU5UVXhPUzB4IiwidHlwIjoiYXBwbGljYXRpb24vZGlkY29tbS1lbmNyeXB0ZWQranNvbiIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJhbGciOiJFQ0RILTFQVStBMjU2S1cifQ", + "recipients" : [ + { + "encrypted_key" : "psm182MyGdzoHMmL1LkmJ0GLyYdGZzK8Hz9j5eidDkNr55XgUgdcGZNfQ8nG-O6DNDpHQRuE3la2piSRrNiH2X3tbDxn8vin", + "header" : { + "kid" : "did:example:bob#key-x25519-1" + } + }, + { + "encrypted_key" : "h3ULSgiq5WyLNrpMdlThVHwqHAvsXxelWxDRxyGyvBvipBxtDbcXAepxPQDGVtMEb-w4nC-QBV4A-WbKtH4UZHOJmB9kzp5w", + "header" : { + "kid" : "did:example:bob#key-x25519-3" + } + }, + { + "encrypted_key" : "_L61c6uUP_Thc6NNxQ4afx0_N8TPK94o71DXGaZRJymB0gytXE3wLYXMMbyo3IP6qtezo05XUl4bDH-m_ZY3NtxlnCVy4j7Q", + "header" : { + "kid" : "did:example:bob#key-x25519-2" + } + } + ], + "tag" : "rKqKzvtJq56QfSVAfFDzAeP1UqpN3VPFjM5VwTdhBBM", + "iv" : "_F9enLt8J6gmbpADJ_yOsA" + } + } + } + ] +} diff --git a/test-vectors/spec-lets_do_lunch/ScalaDid-v0.1-X25519 b/test-vectors/spec-lets_do_lunch/ScalaDid-v0.1-X25519 new file mode 100644 index 00000000..8f91afb3 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/ScalaDid-v0.1-X25519 @@ -0,0 +1 @@ +{"ciphertext":"vJZ_RKBjNLloE1cv8vxyBB2_989SNXTNttpqhC5l1ibZRyOvtnbzrOwkcd_d7jsBkEgFVbrDRsVbnzg4se7KAuzZma3YAG7_HlTqiEKxhP9g4aV0xRVkTNNRO-TicCkzuq64AFpF4v5bivmMBVu9VH231C9QmZ5u-PNl74_T3BiZ641TqnL3QWBeq3CiHJBWlwAg3cLTi_K_FL2ksuyg91VcIS06v7PBIjo8tmS5-Hy54N9vrk8SOl541V8nQ7lA8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CWU0xaEdkazFxVWtGdE4zayIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiRUNESC0xUFUrQTI1NktXIn0","recipients":[{"encrypted_key":"ZlB-SqYDdDCON1l18V7J9eX1TEhpJ5Uo6T8ga2QM92I7mqp8SXcv2vPenSv1rmkj42L4h24G0QjiR5psHIgUUnTVtu0HbChB","header":{"kid":"did:example:bob#key-x25519-1"}},{"encrypted_key":"k9VS2OL2rD4--q746U2X_Ib0vVj6Cs4Sn_31gNyG9rl_TAl1pyv2UYTXaYXLnX3wTwvqeIp-hOm4u-zMVK-DCdaJ2u5DpFV6","header":{"kid":"did:example:bob#key-x25519-3"}},{"encrypted_key":"VbKUw8_lmcoGsgVyIXAIXWrR3u77qLu_7hlRLd596FU9hTHYzf6whBCWB9FIxyD_RSHCHlm-uetPtJft_Il6leomfIvVh7Ek","header":{"kid":"did:example:bob#key-x25519-2"}}],"tag":"8s9px-uevU9eo7sIbGeNGXkPfTiXRKH225Nh4AC24Tg","iv":"i-fWygAT35L_zbS2OFIi-g"} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/expected b/test-vectors/spec-lets_do_lunch/expected new file mode 100644 index 00000000..68ab6060 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/expected @@ -0,0 +1,13 @@ +{ + "id":"1234567890", + "type":"https://example.com/protocols/lets_do_lunch/1.0/proposal", + "from":"did:example:alice", + "to":[ + "did:example:bob" + ], + "created_time":1516269022, + "expires_time":1516385931, + "body":{ + "messagespecificattribute":"and its value" + } +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ECDH1PU_X25519_A256CBCHS512 b/test-vectors/spec-lets_do_lunch/spec-ex-ECDH1PU_X25519_A256CBCHS512 new file mode 100644 index 00000000..c18d9e8d --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ECDH1PU_X25519_A256CBCHS512 @@ -0,0 +1,26 @@ +{ + "ciphertext": "MJezmxJ8DzUB01rMjiW6JViSaUhsZBhMvYtezkhmwts1qXWtDB63i4-FHZP6cJSyCI7eU-gqH8lBXO_UVuviWIqnIUrTRLaumanZ4q1dNKAnxNL-dHmb3coOqSvy3ZZn6W17lsVudjw7hUUpMbeMbQ5W8GokK9ZCGaaWnqAzd1ZcuGXDuemWeA8BerQsfQw_IQm-aUKancldedHSGrOjVWgozVL97MH966j3i9CJc3k9jS9xDuE0owoWVZa7SxTmhl1PDetmzLnYIIIt-peJtNYGdpd-FcYxIFycQNRUoFEr77h4GBTLbC-vqbQHJC1vW4O2LEKhnhOAVlGyDYkNbA4DSL-LMwKxenQXRARsKSIMn7z-ZIqTE-VCNj9vbtgR", + "protected": "eyJlcGsiOnsia3R5IjoiT0tQIiwiY3J2IjoiWDI1NTE5IiwieCI6IkdGY01vcEpsamY0cExaZmNoNGFfR2hUTV9ZQWY2aU5JMWRXREd5VkNhdzAifSwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInNraWQiOiJkaWQ6ZXhhbXBsZTphbGljZSNrZXkteDI1NTE5LTEiLCJhcHUiOiJaR2xrT21WNFlXMXdiR1U2WVd4cFkyVWphMlY1TFhneU5UVXhPUzB4IiwidHlwIjoiYXBwbGljYXRpb24vZGlkY29tbS1lbmNyeXB0ZWQranNvbiIsImVuYyI6IkEyNTZDQkMtSFM1MTIiLCJhbGciOiJFQ0RILTFQVStBMjU2S1cifQ", + "recipients": [ + { + "encrypted_key": "o0FJASHkQKhnFo_rTMHTI9qTm_m2mkJp-wv96mKyT5TP7QjBDuiQ0AMKaPI_RLLB7jpyE-Q80Mwos7CvwbMJDhIEBnk2qHVB", + "header": { + "kid": "did:example:bob#key-x25519-1" + } + }, + { + "encrypted_key": "rYlafW0XkNd8kaXCqVbtGJ9GhwBC3lZ9AihHK4B6J6V2kT7vjbSYuIpr1IlAjvxYQOw08yqEJNIwrPpB0ouDzKqk98FVN7rK", + "header": { + "kid": "did:example:bob#key-x25519-2" + } + }, + { + "encrypted_key": "aqfxMY2sV-njsVo-_9Ke9QbOf6hxhGrUVh_m-h_Aq530w3e_4IokChfKWG1tVJvXYv_AffY7vxj0k5aIfKZUxiNmBwC_QsNo", + "header": { + "kid": "did:example:bob#key-x25519-3" + } + } + ], + "tag": "uYeo7IsZjN7AnvBjUZE5lNryNENbf6_zew_VC-d4b3U", + "iv": "o02OXDQ6_-sKz2PX_6oyJg" +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P384_A256CBCHS512 b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P384_A256CBCHS512 new file mode 100644 index 00000000..a79cf78a --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P384_A256CBCHS512 @@ -0,0 +1,20 @@ +{ + "ciphertext": "HPnc9w7jK0T73Spifq_dcVJnONbT9MZ9oorDJFEBJAfmwYRqvs1rKue-udrNLTTH0qjjbeuji01xPRF5JiWyy-gSMX4LHdLhPxHxjjQCTkThY0kapofU85EjLPlI4ytbHiGcrPIezqCun4iDkmb50pwiLvL7XY1Ht6zPUUdhiV6qWoPP4qeY_8pfH74Q5u7K4TQ0uU3KP8CVZQuafrkOBbqbqpJV-lWpWIKxil44f1IT_GeIpkWvmkYxTa1MxpYBgOYa5_AUxYBumcIFP-b6g7GQUbN-1SOoP76EzxZU_louspzQ2HdEH1TzXw2LKclN8GdxD7kB0H6lZbZLT3ScDzSVSbvO1w1fXHXOeOzywuAcismmoEXQGbWZm7wJJJ2r", + "protected": "eyJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTM4NCIsIngiOiIxNjFhZ0dlYWhHZW1IZ25qSG1RX0JfU09OeUJWZzhWTGRoVGdWNVc1NFZiYWJ5bGxpc3NuWjZXNzc5SW9VcUtyIiwieSI6ImNDZXFlRmdvYm9fY1ItWTRUc1pCWlg4dTNCa2l5TnMyYi12ZHFPcU9MeUNuVmdPMmpvN25zQV9JQzNhbnQ5T1gifSwiYXB2IjoiTEpBOUVva3M1dGFtVUZWQmFsTXdCaEo2RGtEY0o4SEs0U2xYWldxRHFubyIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiRUNESC1FUytBMjU2S1cifQ", + "recipients": [ + { + "encrypted_key": "SlyWCiOaHMMH9CqSs2CHpRd2XwbueZ1-MfYgKVepXWpgmTgtsgNOAaYwV5pxK3D67HV51F-vLBFlAHke7RYp_GeGDFYhAf5s", + "header": { + "kid": "did:example:bob#key-p384-1" + } + }, + { + "encrypted_key": "5e7ChtaRgIlV4yS4NSD7kEo0iJfFmL_BFgRh3clDKBG_QoPd1eOtFlTxFJh-spE0khoaw8vEEYTcQIg4ReeFT3uQ8aayz1oY", + "header": { + "kid": "did:example:bob#key-p384-2" + } + } + ], + "tag": "bkodXkuuwRbqksnQNsCM2YLy9f0v0xNgnhSUAoFGtmE", + "iv": "aE1XaH767m7LY0JTN7RsAA" +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P521_A256GCM b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P521_A256GCM new file mode 100644 index 00000000..8f39b7fd --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_P521_A256GCM @@ -0,0 +1,20 @@ +{ + "ciphertext": "mxnFl4s8FRsIJIBVcRLv4gj4ru5R0H3BdvyBWwXV3ILhtl_moqzx9COINGomP4ueuApuY5xdMDvRHm2mLo6N-763wjNSjAibNrqVZC-EG24jjYk7RPZ26fEW4z87LHuLTicYCD4yHqilRbRgbOCT0Db5221Kec0HDZTXLzBqVwC2UMyDF4QT6Uz3fE4f_6BXTwjD-sEgM67wWTiWbDJ3Q6WyaOL3W4ukYANDuAR05-SXVehnd3WR0FOg1hVcNRao5ekyWZw4Z2ekEB1JRof3Lh6uq46K0KXpe9Pc64UzAxEID93SoJ0EaV_Sei8CXw2aJFmZUuCf8YISWKUz6QZxRvFKUfYeflldUm9U2tY96RicWgUhuXgv", + "protected": "eyJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTUyMSIsIngiOiJBRWtrc09abW1oZkZYdU90MHMybVdFYlVybVQ3OXc1SFRwUm9TLTZZNXpkYlk5T0I5b2RHb2hDYm1PeGpqY2VhWUU5ZnNaX3RaNmdpTGFBNUFEUnBrWE5VIiwieSI6IkFDaWJnLXZEMmFHVEpHbzlmRUl6Q1dXT2hSVUlObFg3Q1hGSTJqeDlKVDZmTzJfMGZ3SzM2WTctNHNUZTRpRVVSaHlnU1hQOW9TVFczTkdZTXVDMWlPQ3AifSwiYXB2IjoiR09lbzc2eW02TkNnOVdXTUVZZlcwZVZEVDU2Njh6RWhsMnVBSVctRS1IRSIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiRUNESC1FUytBMjU2S1cifQ", + "recipients": [ + { + "encrypted_key": "W4KOy5W88iPPsDEdhkJN2krZ2QAeDxOIxW-4B21H9q89SHWexocCrw", + "header": { + "kid": "did:example:bob#key-p521-1" + } + }, + { + "encrypted_key": "uxKPkF6-sIiEkdeJcUPJY4lvsRg_bvtLPIn7eIycxLJML2KM6-Llag", + "header": { + "kid": "did:example:bob#key-p521-2" + } + } + ], + "tag": "aPZeYfwht2Nx9mfURv3j3g", + "iv": "lGKCvg2xrvi8Qa_D" +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_X25519_XC20P b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_X25519_XC20P new file mode 100644 index 00000000..f27f0c91 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ECDHES_X25519_XC20P @@ -0,0 +1,26 @@ +{ + "ciphertext": "KWS7gJU7TbyJlcT9dPkCw-ohNigGaHSukR9MUqFM0THbCTCNkY-g5tahBFyszlKIKXs7qOtqzYyWbPou2q77XlAeYs93IhF6NvaIjyNqYklvj-OtJt9W2Pj5CLOMdsR0C30wchGoXd6wEQZY4ttbzpxYznqPmJ0b9KW6ZP-l4_DSRYe9B-1oSWMNmqMPwluKbtguC-riy356Xbu2C9ShfWmpmjz1HyJWQhZfczuwkWWlE63g26FMskIZZd_jGpEhPFHKUXCFwbuiw_Iy3R0BIzmXXdK_w7PZMMPbaxssl2UeJmLQgCAP8j8TukxV96EKa6rGgULvlo7qibjJqsS5j03bnbxkuxwbfyu3OxwgVzFWlyHbUH6p", + "protected": "eyJlcGsiOnsia3R5IjoiT0tQIiwiY3J2IjoiWDI1NTE5IiwieCI6IkpIanNtSVJaQWFCMHpSR193TlhMVjJyUGdnRjAwaGRIYlc1cmo4ZzBJMjQifSwiYXB2IjoiTmNzdUFuclJmUEs2OUEtcmtaMEw5WFdVRzRqTXZOQzNaZzc0QlB6NTNQQSIsInR5cCI6ImFwcGxpY2F0aW9uL2RpZGNvbW0tZW5jcnlwdGVkK2pzb24iLCJlbmMiOiJYQzIwUCIsImFsZyI6IkVDREgtRVMrQTI1NktXIn0", + "recipients": [ + { + "encrypted_key": "3n1olyBR3nY7ZGAprOx-b7wYAKza6cvOYjNwVg3miTnbLwPP_FmE1A", + "header": { + "kid": "did:example:bob#key-x25519-1" + } + }, + { + "encrypted_key": "j5eSzn3kCrIkhQAWPnEwrFPMW6hG0zF_y37gUvvc5gvlzsuNX4hXrQ", + "header": { + "kid": "did:example:bob#key-x25519-2" + } + }, + { + "encrypted_key": "TEWlqlq-ao7Lbynf0oZYhxs7ZB39SUWBCK4qjqQqfeItfwmNyDm73A", + "header": { + "kid": "did:example:bob#key-x25519-3" + } + } + ], + "tag": "6ylC_iAs4JvDQzXeY6MuYQ", + "iv": "ESpmcyGiZpRjc5urDela21TOOTW8Wqd1" +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ES256 b/test-vectors/spec-lets_do_lunch/spec-ex-ES256 new file mode 100644 index 00000000..f1b6b8a9 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ES256 @@ -0,0 +1,12 @@ +{ + "payload":"eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXBsYWluK2pzb24iLCJ0eXBlIjoiaHR0cDovL2V4YW1wbGUuY29tL3Byb3RvY29scy9sZXRzX2RvX2x1bmNoLzEuMC9wcm9wb3NhbCIsImZyb20iOiJkaWQ6ZXhhbXBsZTphbGljZSIsInRvIjpbImRpZDpleGFtcGxlOmJvYiJdLCJjcmVhdGVkX3RpbWUiOjE1MTYyNjkwMjIsImV4cGlyZXNfdGltZSI6MTUxNjM4NTkzMSwiYm9keSI6eyJtZXNzYWdlc3BlY2lmaWNhdHRyaWJ1dGUiOiJhbmQgaXRzIHZhbHVlIn19", + "signatures":[ + { + "protected":"eyJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXNpZ25lZCtqc29uIiwiYWxnIjoiRVMyNTYifQ", + "signature":"gcW3lVifhyR48mLHbbpnGZQuziskR5-wXf6IoBlpa9SzERfSG9I7oQ9pssmHZwbvJvyMvxskpH5oudw1W3X5Qg", + "header":{ + "kid":"did:example:alice#key-2" + } + } + ] +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-ES256K b/test-vectors/spec-lets_do_lunch/spec-ex-ES256K new file mode 100644 index 00000000..c3a6b9fe --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-ES256K @@ -0,0 +1,12 @@ +{ + "payload":"eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXBsYWluK2pzb24iLCJ0eXBlIjoiaHR0cDovL2V4YW1wbGUuY29tL3Byb3RvY29scy9sZXRzX2RvX2x1bmNoLzEuMC9wcm9wb3NhbCIsImZyb20iOiJkaWQ6ZXhhbXBsZTphbGljZSIsInRvIjpbImRpZDpleGFtcGxlOmJvYiJdLCJjcmVhdGVkX3RpbWUiOjE1MTYyNjkwMjIsImV4cGlyZXNfdGltZSI6MTUxNjM4NTkzMSwiYm9keSI6eyJtZXNzYWdlc3BlY2lmaWNhdHRyaWJ1dGUiOiJhbmQgaXRzIHZhbHVlIn19", + "signatures":[ + { + "protected":"eyJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXNpZ25lZCtqc29uIiwiYWxnIjoiRVMyNTZLIn0", + "signature":"EGjhIcts6tqiJgqtxaTiTY3EUvL-_rLjn9lxaZ4eRUwa1-CS1nknZoyJWbyY5NQnUafWh5nvCtQpdpMyzH3blw", + "header":{ + "kid":"did:example:alice#key-3" + } + } + ] +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA new file mode 100644 index 00000000..9e9024c0 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA @@ -0,0 +1,12 @@ +{ + "payload":"eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXBsYWluK2pzb24iLCJ0eXBlIjoiaHR0cDovL2V4YW1wbGUuY29tL3Byb3RvY29scy9sZXRzX2RvX2x1bmNoLzEuMC9wcm9wb3NhbCIsImZyb20iOiJkaWQ6ZXhhbXBsZTphbGljZSIsInRvIjpbImRpZDpleGFtcGxlOmJvYiJdLCJjcmVhdGVkX3RpbWUiOjE1MTYyNjkwMjIsImV4cGlyZXNfdGltZSI6MTUxNjM4NTkzMSwiYm9keSI6eyJtZXNzYWdlc3BlY2lmaWNhdHRyaWJ1dGUiOiJhbmQgaXRzIHZhbHVlIn19", + "signatures":[ + { + "protected":"eyJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLXNpZ25lZCtqc29uIiwiYWxnIjoiRWREU0EifQ", + "signature":"FW33NnvOHV0Ted9-F7GZbkia-vYAfBKtH4oBxbrttWAhBZ6UFJMxcGjL3lwOl4YohI3kyyd08LHPWNMgP2EVCQ", + "header":{ + "kid":"did:example:alice#key-1" + } + } + ] +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_P521_A256CBCHS512 b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_P521_A256CBCHS512 new file mode 100644 index 00000000..40e78cb9 --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_P521_A256CBCHS512 @@ -0,0 +1,20 @@ +{ + "ciphertext":"WCufCs2lMZfkxQ0JCK92lPtLFgwWk_FtRWOMj52bQISa94nEbIYqHDUohIbvLMgbSjRcJVusZO04UthDuOpSSTcV5GBi3O0cMrjyI_PZnTb1yikLXpXma1bT10D2r5TPtzRMxXF3nFsr9y0JKV1TsMtn70Df2fERx2bAGxcflmd-A2sMlSTT8b7QqPtn17Yb-pA8gr4i0Bqb2WfDzwnbfewbukpRmPA2hsEs9oLKypbniAafSpoiQjfb19oDfsYaWWXqsdjTYMflqH__DqSmW52M-SUp6or0xU0ujbHmOkRkcdh9PsR5YsPuIWAqYa2hfjz_KIrGTxvCos0DMiZ4Lh_lPIYQqBufSdFH5AGChoekFbQ1vcyIyYMFugzOHOgZ2TwEzv94GCgokBHQR4_qaU_f4Mva64KPwqOYdm5f4KX16afTJa-IV7ar7__2L-A-LyxmC5KIHeGOedV9kzZBLC7TuzRAuE3vY7pkhLB1jPE6XpTeKXldljaeOSEVcbFUQtsHOSPz9JXuhqZ1fdAx8qV7hUnSAd_YMMDR3S6SXtem8ak2m98WPvKIxhCbcto7W2qoNYMT7MPvvid-QzUvTdKtyovCvLzhyYJzMjZxmn9-EnGhZ5ITPL_xFfLyKxhSSUVz3kSwK9xuOj3KpJnrrD7xrp5FKzEaJVIHWrUW90V_9QVLjriThZ36fA3ipvs8ZJ8QSTnGAmuIQ6Z2u_r4KsjL_mGAgn47qyqRm-OSLEUE4_2qB0Q9Z7EBKakCH8VPt09hTMDR62aYZYwtmpNs9ISu0VPvFjh8UmKbFcQsVrz90-x-r-Q1fTX9JaIFcDy7aqKcI-ai3tVF_HDR60Jaiw", + "protected":"eyJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTI1NiIsIngiOiJObHJ3UHZ0SUluZWNpeUVrYTRzMi00czhPalRidEZFQVhmTC12Z2x5enFvIiwieSI6ImhiMnZkWE5zSzVCQ2U3LVhaQ0dfLTY0R21UT19rNUlNWFBaQ00xdGFUQmcifSwiYXB2Ijoiei1McXB2VlhEYl9zR1luM21qUUxwdXUyQ1FMZXdZdVpvVFdPSVhQSDNGTSIsInNraWQiOiJkaWQ6ZXhhbXBsZTphbGljZSNrZXktcDI1Ni0xIiwiYXB1IjoiWkdsa09tVjRZVzF3YkdVNllXeHBZMlVqYTJWNUxYQXlOVFl0TVEiLCJ0eXAiOiJhcHBsaWNhdGlvbi9kaWRjb21tLWVuY3J5cHRlZCtqc29uIiwiZW5jIjoiQTI1NkNCQy1IUzUxMiIsImFsZyI6IkVDREgtMVBVK0EyNTZLVyJ9", + "recipients":[ + { + "encrypted_key":"ZIL6Leligq1Xps_229nlo1xB_tGxOEVoEEMF-XTOltI0QXjyUoq_pFQBCAnVdcWNH5bmaiuzCYOmZ9lkyXBkfHO90KkGgODG", + "header":{ + "kid":"did:example:bob#key-p256-1" + } + }, + { + "encrypted_key":"sOjs0A0typIRSshhQoiJPoM4o7YpR5LA8SSieHZzmMyIDdD8ww-4JyyQhqFYuvfS4Yt37VF4z7Nd0OjYVNRL-iqPnoJ3iCOr", + "header":{ + "kid":"did:example:bob#key-p256-2" + } + } + ], + "tag":"nIpa3EQ29hgCkA2cBPde2HpKXK4_bvmL2x7h39rtVEc", + "iv":"mLqi1bZLz7VwqtVVFsDiLg" +} \ No newline at end of file diff --git a/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_X25519_A256CBCHS512__ECDHES_X25519_XC20P b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_X25519_A256CBCHS512__ECDHES_X25519_XC20P new file mode 100644 index 00000000..738287ad --- /dev/null +++ b/test-vectors/spec-lets_do_lunch/spec-ex-EdDSA_ECDH1PU_X25519_A256CBCHS512__ECDHES_X25519_XC20P @@ -0,0 +1,20 @@ +{ + "ciphertext": "lfYmR7CNas5hOePxWQEkUEwzSRds3t5GkMW4VUZKJWJ7H3y1X8a1RnUg3c0BCqdszzhZk8xE0vfQ67vJAWGdev8OWy7oGY_e1o4iAVj3mPNfnV5N7sjld6yUhrxqDsxtmVAp7LAipbJNhxqBoEXdb8hPbdPeUIov-5X0_cQHpHalSD6zMoyUPb0cCnw8bfmdN3aaVDrzsZRIkvhezZCkaQFMO75XKVEDyTzn8Eqwgpg_tzD_Hr00jHa9mTyTiDA_1ZzqleF-XSe5NEtFc7_BukgjPWMZAouPMWwIP0h-BPULxUzYcWKfC6hiU2ZuxWz8Fs8v9r6MCAaPOG37oA_yfWwE_FWl7x61sl6iZfDVQhOTkdlXNoZ0LiaC4ImXop2wSvKimkGqhysj1OefrUrpHmSx1qNz7vCWqW8Mo7fykXQCVYr6zXmcvWF5-KvXDu6DR3EFlgs6An9tWLv1flDrZWb-lS6RlL6Z8AqmLjP0Yb2r6mTopiulTTpXXpwe-Qs1_DHDGi0DfsZmcYhyra-F8YQ3tGIgy6wWCtyBh7Fq_zRy8RMvV3DkaLHYTekIle0YOoRdZRJBb3ycXHycIi7iT1ewOFlIGjsBg73Hkqa6O1weewS3uIxl4veO6cBOksfDRpC279X9tV1HDqROBolNBsWHQ2UpUD1Bat8UnfJMrwBcZkGQCjhlR9SSlZzEIqP3leRh5e2y2FGTm7wNRNwmgl6s6OUiKD-nbUnnSugGzolbavafHS80XrdfEuUyuPjnpQQQROapFfcjd7dSLd58g9OjOEqb1-Edk4KcW-yYU17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jcnlwdGVkK2pzb24iLCJlbmMiOiJYQzIwUCIsImFsZyI6IkVDREgtRVMrQTI1NktXIn0", + "recipients": [ + { + "encrypted_key": "iuVx5qAiRtijMfHnkF95_ByjHyiAmRqNTrExrEQK4p7HwW7sit1F0g", + "header": { + "kid": "did:example:bob#key-p521-1" + } + }, + { + "encrypted_key": "6OWnv-tY1ZDUBt8uRNpmteoXTVDzRGz2UF04Y2eh2-bp2jiViU8VCw", + "header": { + "kid": "did:example:bob#key-p521-2" + } + } + ], + "tag": "pEh6LS1GCTYQaWR-6vAe_Q", + "iv": "ZMHYqq1xV1X81bFzzEH_iAfBcL75fznZ" +} \ No newline at end of file