TalaoDAO / AltMe

Talao / Altme wallet : Open source Self Sovereign Identity wallet. Multi ecosystem support : EBSI conformant. ARF EUDI wallet implementation, DIIP and more.
https://talao.io
Apache License 2.0
40 stars 13 forks source link

issue on presentation => verification is failing on 2.5.6 but ok on 2.4.22 #2690

Closed hawkbee1 closed 1 month ago

hawkbee1 commented 1 month ago

2.4.22 body['vp_token'] "{"@context":["https://www.w3.org/2018/credentials/v1"],"id":"urn:uuid:891e4df6-cd27-4f7d-a5fe-b1e48031db3f","type":["VerifiablePresentation"],"verifiableCredential":{"@context":["https://www.w3.org/2018/credentials/v1",{"Over18":{"@context":{"@protected":true,"@version":1.1,"ageOver":"https://github.com/TalaoDAO/context#ageover","id":"@id","is_over_18":"https://github.com/TalaoDAO/context#ageover","schema":"https://schema.org/","type":"@type"},"@id":"https://github.com/TalaoDAO/context#over18"}}],"id":"urn:uuid:4b69907c-1cc3-11ef-83f1-0a1628958560","type":["VerifiableCredential","Over18"],"credentialSubject":{"id":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa","ageOver":"18","is_over_18":true,"type":"Over18"},"issuer":"did:web:app.altme.io:issuer","issuanceDate":"2024-05-28T07:18:04Z","proof":{"type":"EcdsaSecp256k1Signature2019","proofPurpose":"assertionMethod","verificationMethod":"did:web:app.altme.io:issuer#key-3","created":"2024-05-28T07:24:18.132Z","jws":"eyJhbGciOiJFUzI1NksiLCJjcml0IjpbImI2NCJdLCJiNjQiOmZhbHNlfQ..yafoQMMzkB0nwO5ZC7xudxXhi97mUKJD8AVq-ZFbznlIgzyE4JzkdMfUKbAwxls9N7hlky1YRAL8_U9M4f6QWg"},"expirationDate":"2025-05-23T07:18:04.943694Z","validUntil":"2025-05-28T07:24:18.118533Z","issued":"2024-05-28T07:24:18Z","validFrom":"2024-05-28T07:24:18Z"},"proof":{"type":"Ed25519Signature2018","proofPurpose":"authentication","challenge":"1716881065","verificationMethod":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa#z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa","created":"2024-05-28T07:24:29.781Z","domain":"Altme","jws":"eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..SyKNIO3zfUx9FwNn5O3KnSr_1Ge-jXPbkUULTTgQdvErncN00daN3smIyGYJWMTXQDuuRY03whmf9bdahVqwBQ"},"holder":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa"}"

body['presentation_submission'] "{"id":"42960f66-f762-4caf-8240-d9cfd74ee49f","definition_id":null,"descriptor_map":[{"id":null,"format":"ldp_vp","path":"$","path_nested":{"id":null,"format":"ldp_vc","path":"$.verifiableCredential"}}]}"

state 1814

hawkbee1 commented 1 month ago

2.5.6 body['presentation_submission'] "{"id":"73557227-84df-4db3-ba33-c700fbe611b7","definition_id":null,"descriptor_map":[{"id":null,"format":"ldp_vp","path":"$","path_nested":{"id":null,"format":"ldp_vc","path":"$.verifiableCredential"}}]}" body['vp_token'] "{"@context":["https://www.w3.org/2018/credentials/v1"],"id":"urn:uuid:5770f794-e5e8-47e5-a67f-5c71e5faed59","type":["VerifiablePresentation"],"verifiableCredential":{"@context":["https://www.w3.org/2018/credentials/v1",{"Over18":{"@context":{"@protected":true,"@version":1.1,"ageOver":"https://github.com/TalaoDAO/context#ageover","id":"@id","is_over_18":"https://github.com/TalaoDAO/context#ageover","schema":"https://schema.org/","type":"@type"},"@id":"https://github.com/TalaoDAO/context#over18"}}],"id":"urn:uuid:4b69907c-1cc3-11ef-83f1-0a1628958560","type":["VerifiableCredential","Over18"],"credentialSubject":{"id":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa","type":"Over18","ageOver":"18","is_over_18":true},"issuer":"did:web:app.altme.io:issuer","issuanceDate":"2024-05-28T07:18:04Z","proof":{"type":"EcdsaSecp256k1Signature2019","proofPurpose":"assertionMethod","verificationMethod":"did:web:app.altme.io:issuer#key-3","created":"2024-05-28T07:24:18.132Z","jws":"eyJhbGciOiJFUzI1NksiLCJjcml0IjpbImI2NCJdLCJiNjQiOmZhbHNlfQ..yafoQMMzkB0nwO5ZC7xudxXhi97mUKJD8AVq-ZFbznlIgzyE4JzkdMfUKbAwxls9N7hlky1YRAL8_U9M4f6QWg"},"expirationDate":"2025-05-23T07:18:04.943694Z","validFrom":"2024-05-28T07:24:18Z","validUntil":"2025-05-28T07:24:18.118533Z","issued":"2024-05-28T07:24:18Z"},"proof":{"type":"Ed25519Signature2018","proofPurpose":"assertionMethod","challenge":"1716883019","verificationMethod":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa#z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa","created":"2024-05-28T07:56:53.516511Z","domain":"Altme","jws":"eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..-8TajJSgeqQ8-FgQv9A_MJMCftxvMzbgBVoCn7DmEPA2JpEdLui8LDAXWtJgmtaXnK5fmsJkTBP6vHuDHcgiBQ"},"holder":"did:key:z6Mki4n86GScdhatRvcKPkyfUULmLx5w9m8gBshSbN5w4TPa"}"

hawkbee1 commented 1 month ago

=> difference is change from authentication to assertionMethod on the proofPurpose @ThierryThevenet