From 89565ee82dafcf8680845694b41474081b62fe03 Mon Sep 17 00:00:00 2001 From: Filip <filip26@gmail.com> Date: Fri, 16 Feb 2024 10:20:15 +0100 Subject: [PATCH 1/5] Fix B.3 Representation: Ed25519Signature2020 test vectors --- .../combinedHashEdSig.txt | 2 +- .../Ed25519Signature2020/proofCanonEdSig.txt | 8 +-- .../proofConfigEdSig.json | 3 +- .../Ed25519Signature2020/proofHashEdSig.txt | 2 +- .../Ed25519Signature2020/sigBTC58EdSig.txt | 2 +- .../Ed25519Signature2020/sigHexEdSig.txt | 2 +- .../Ed25519Signature2020/signedEdSig.json | 49 ++++++++++--------- 7 files changed, 35 insertions(+), 33 deletions(-) diff --git a/TestVectors/Ed25519Signature2020/combinedHashEdSig.txt b/TestVectors/Ed25519Signature2020/combinedHashEdSig.txt index fac2fb2..cef5b1f 100644 --- a/TestVectors/Ed25519Signature2020/combinedHashEdSig.txt +++ b/TestVectors/Ed25519Signature2020/combinedHashEdSig.txt @@ -1 +1 @@ -7094c8ac655f5d26034b866d14cd99eba3d32562408d9c286b64a65fb79e0b2d517744132ae165a5349155bef0bb0cf2258fff99dfe1dbd914b938d775a36017 \ No newline at end of file +5e41905a6915396ff4eb426ce26c322d0e1d870b3d75cef95612cc94e4f8bad7517744132ae165a5349155bef0bb0cf2258fff99dfe1dbd914b938d775a36017 \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/proofCanonEdSig.txt b/TestVectors/Ed25519Signature2020/proofCanonEdSig.txt index b3d1382..2a31102 100644 --- a/TestVectors/Ed25519Signature2020/proofCanonEdSig.txt +++ b/TestVectors/Ed25519Signature2020/proofCanonEdSig.txt @@ -1,4 +1,4 @@ -_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/ns/credentials/examples#Ed25519Signature2020> . -_:c14n0 <https://www.w3.org/ns/credentials/examples#created> "2023-02-24T23:36:38Z" . -_:c14n0 <https://www.w3.org/ns/credentials/examples#proofPurpose> "assertionMethod" . -_:c14n0 <https://www.w3.org/ns/credentials/examples#verificationMethod> "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2" . +_:c14n0 <http://purl.org/dc/terms/created> "2023-02-24T23:36:38Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . +_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#Ed25519Signature2020> . +_:c14n0 <https://w3id.org/security#proofPurpose> <https://w3id.org/security#assertionMethod> . +_:c14n0 <https://w3id.org/security#verificationMethod> <https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2> . \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json index a7dd187..e20dfa6 100644 --- a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json +++ b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json @@ -5,6 +5,7 @@ "proofPurpose": "assertionMethod", "@context": [ "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2" + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" ] } \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/proofHashEdSig.txt b/TestVectors/Ed25519Signature2020/proofHashEdSig.txt index 5f4b5c7..9f87f77 100644 --- a/TestVectors/Ed25519Signature2020/proofHashEdSig.txt +++ b/TestVectors/Ed25519Signature2020/proofHashEdSig.txt @@ -1 +1 @@ -7094c8ac655f5d26034b866d14cd99eba3d32562408d9c286b64a65fb79e0b2d \ No newline at end of file +5e41905a6915396ff4eb426ce26c322d0e1d870b3d75cef95612cc94e4f8bad7 \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/sigBTC58EdSig.txt b/TestVectors/Ed25519Signature2020/sigBTC58EdSig.txt index 0afb56f..5f23a19 100644 --- a/TestVectors/Ed25519Signature2020/sigBTC58EdSig.txt +++ b/TestVectors/Ed25519Signature2020/sigBTC58EdSig.txt @@ -1 +1 @@ -z2PC6JBDG1otY3PfnxGnvHCuh8tEqPPNpDggvsnzjr2yKxszQg5bJXsQhV1ZUTG6KBNGdvWVzVqFxtLagbdoRUjf6 \ No newline at end of file +z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/sigHexEdSig.txt b/TestVectors/Ed25519Signature2020/sigHexEdSig.txt index 6210e41..85a31ba 100644 --- a/TestVectors/Ed25519Signature2020/sigHexEdSig.txt +++ b/TestVectors/Ed25519Signature2020/sigHexEdSig.txt @@ -1 +1 @@ -4527642e1538a97ef38db08fd45cf2d4d04d510231bb83c5991d7a74bcfe9cc5213f956537cc3a7eda1e372e184a9f32285808a0d1ec75db3dc5268727ed0a01 \ No newline at end of file +d6310be6e26c28c327abc6f9e392c9f91c4e5f71252a8a3bc6acfedcc62a1c216e8979afdbb1badaa57e4ed8ad362af447ac6e649a074d5ea99788e3343b980b \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/signedEdSig.json b/TestVectors/Ed25519Signature2020/signedEdSig.json index e7957bc..b35641c 100644 --- a/TestVectors/Ed25519Signature2020/signedEdSig.json +++ b/TestVectors/Ed25519Signature2020/signedEdSig.json @@ -1,26 +1,27 @@ { - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2" - ], - "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", - "type": [ - "VerifiableCredential", - "AlumniCredential" - ], - "name": "Alumni Credential", - "description": "A minimum viable example of an Alumni Credential.", - "issuer": "https://vc.example/issuers/5678", - "validFrom": "2023-01-01T00:00:00Z", - "credentialSubject": { - "id": "did:example:abcdefgh", - "alumniOf": "The School of Examples" - }, - "proof": { - "type": "Ed25519Signature2020", - "created": "2023-02-24T23:36:38Z", - "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", - "proofPurpose": "assertionMethod", - "proofValue": "z2PC6JBDG1otY3PfnxGnvHCuh8tEqPPNpDggvsnzjr2yKxszQg5bJXsQhV1ZUTG6KBNGdvWVzVqFxtLagbdoRUjf6" - } + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" + ], + "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", + "type": [ + "VerifiableCredential", + "AlumniCredential" + ], + "name": "Alumni Credential", + "description": "A minimum viable example of an Alumni Credential.", + "issuer": "https://vc.example/issuers/5678", + "validFrom": "2023-01-01T00:00:00Z", + "credentialSubject": { + "id": "did:example:abcdefgh", + "alumniOf": "The School of Examples" + }, + "proof": { + "type": "Ed25519Signature2020", + "created": "2023-02-24T23:36:38Z", + "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", + "proofPurpose": "assertionMethod", + "proofValue": "z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL" + } } \ No newline at end of file From 54c2f28001f9bb68aaad12abf0bca2dced15e354 Mon Sep 17 00:00:00 2001 From: Filip <filip26@gmail.com> Date: Fri, 16 Feb 2024 10:22:39 +0100 Subject: [PATCH 2/5] Fix formatting --- .../proofConfigEdSig.json | 19 +++---- .../Ed25519Signature2020/signedEdSig.json | 50 +++++++++---------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json index e20dfa6..0c03c0d 100644 --- a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json +++ b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json @@ -1,11 +1,12 @@ { - "type": "Ed25519Signature2020", - "created": "2023-02-24T23:36:38Z", - "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", - "proofPurpose": "assertionMethod", - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2", - "https://w3id.org/security/suites/ed25519-2020/v1" - ] + "type": "Ed25519Signature2020", + "created": "2023-02-24T23:36:38Z", + "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", + "proofPurpose": "assertionMethod", + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" + ] } \ No newline at end of file diff --git a/TestVectors/Ed25519Signature2020/signedEdSig.json b/TestVectors/Ed25519Signature2020/signedEdSig.json index b35641c..9573ed1 100644 --- a/TestVectors/Ed25519Signature2020/signedEdSig.json +++ b/TestVectors/Ed25519Signature2020/signedEdSig.json @@ -1,27 +1,27 @@ { - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2", - "https://w3id.org/security/suites/ed25519-2020/v1" - ], - "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", - "type": [ - "VerifiableCredential", - "AlumniCredential" - ], - "name": "Alumni Credential", - "description": "A minimum viable example of an Alumni Credential.", - "issuer": "https://vc.example/issuers/5678", - "validFrom": "2023-01-01T00:00:00Z", - "credentialSubject": { - "id": "did:example:abcdefgh", - "alumniOf": "The School of Examples" - }, - "proof": { - "type": "Ed25519Signature2020", - "created": "2023-02-24T23:36:38Z", - "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", - "proofPurpose": "assertionMethod", - "proofValue": "z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL" - } + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" + ], + "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", + "type": [ + "VerifiableCredential", + "AlumniCredential" + ], + "name": "Alumni Credential", + "description": "A minimum viable example of an Alumni Credential.", + "issuer": "https://vc.example/issuers/5678", + "validFrom": "2023-01-01T00:00:00Z", + "credentialSubject": { + "id": "did:example:abcdefgh", + "alumniOf": "The School of Examples" + }, + "proof": { + "type": "Ed25519Signature2020", + "created": "2023-02-24T23:36:38Z", + "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", + "proofPurpose": "assertionMethod", + "proofValue": "z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL" + } } \ No newline at end of file From c9452a526a83ec78861c2ab30b94dd733574d667 Mon Sep 17 00:00:00 2001 From: Filip <filip26@gmail.com> Date: Fri, 16 Feb 2024 10:24:12 +0100 Subject: [PATCH 3/5] Fix typo --- TestVectors/Ed25519Signature2020/proofConfigEdSig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json index 0c03c0d..cbe35e0 100644 --- a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json +++ b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json @@ -6,7 +6,6 @@ "@context": [ "https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/examples/v2", - "https://www.w3.org/ns/credentials/examples/v2", "https://w3id.org/security/suites/ed25519-2020/v1" ] } \ No newline at end of file From f21acd935e00f705dbac2bd9d5b66ba4dc5b5084 Mon Sep 17 00:00:00 2001 From: Filip <filip26@gmail.com> Date: Tue, 27 Feb 2024 18:39:40 +0100 Subject: [PATCH 4/5] Replace tabs with spaces(2) --- .../Ed25519Signature2020/proofConfigEdSig.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json index cbe35e0..e20dfa6 100644 --- a/TestVectors/Ed25519Signature2020/proofConfigEdSig.json +++ b/TestVectors/Ed25519Signature2020/proofConfigEdSig.json @@ -1,11 +1,11 @@ { - "type": "Ed25519Signature2020", - "created": "2023-02-24T23:36:38Z", - "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", - "proofPurpose": "assertionMethod", - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2", - "https://w3id.org/security/suites/ed25519-2020/v1" - ] + "type": "Ed25519Signature2020", + "created": "2023-02-24T23:36:38Z", + "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", + "proofPurpose": "assertionMethod", + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" + ] } \ No newline at end of file From 52110f69ec30de4ad51abe4ca200811f4a1cd973 Mon Sep 17 00:00:00 2001 From: Filip <filip26@gmail.com> Date: Tue, 27 Feb 2024 18:40:27 +0100 Subject: [PATCH 5/5] Replace tabs with spaces(2) --- .../Ed25519Signature2020/signedEdSig.json | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/TestVectors/Ed25519Signature2020/signedEdSig.json b/TestVectors/Ed25519Signature2020/signedEdSig.json index 9573ed1..624e760 100644 --- a/TestVectors/Ed25519Signature2020/signedEdSig.json +++ b/TestVectors/Ed25519Signature2020/signedEdSig.json @@ -1,27 +1,27 @@ { - "@context": [ - "https://www.w3.org/ns/credentials/v2", - "https://www.w3.org/ns/credentials/examples/v2", - "https://w3id.org/security/suites/ed25519-2020/v1" - ], - "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", - "type": [ - "VerifiableCredential", - "AlumniCredential" - ], - "name": "Alumni Credential", - "description": "A minimum viable example of an Alumni Credential.", - "issuer": "https://vc.example/issuers/5678", - "validFrom": "2023-01-01T00:00:00Z", - "credentialSubject": { - "id": "did:example:abcdefgh", - "alumniOf": "The School of Examples" - }, - "proof": { - "type": "Ed25519Signature2020", - "created": "2023-02-24T23:36:38Z", - "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", - "proofPurpose": "assertionMethod", - "proofValue": "z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL" - } + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2", + "https://w3id.org/security/suites/ed25519-2020/v1" + ], + "id": "urn:uuid:58172aac-d8ba-11ed-83dd-0b3aef56cc33", + "type": [ + "VerifiableCredential", + "AlumniCredential" + ], + "name": "Alumni Credential", + "description": "A minimum viable example of an Alumni Credential.", + "issuer": "https://vc.example/issuers/5678", + "validFrom": "2023-01-01T00:00:00Z", + "credentialSubject": { + "id": "did:example:abcdefgh", + "alumniOf": "The School of Examples" + }, + "proof": { + "type": "Ed25519Signature2020", + "created": "2023-02-24T23:36:38Z", + "verificationMethod": "https://vc.example/issuers/5678#z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6pvBQ7XJPt4swbTQ2", + "proofPurpose": "assertionMethod", + "proofValue": "z5HNuvc5WbWYsRRt97kXJ6SoKgb1tMwtkQND4pnobZE26JGnohdWVpzashF9d8FRzhzm8oYRSivKACTakeE4DzdHL" + } } \ No newline at end of file