-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Bech32-encoded state controller and governor addresses (#1044)
* Change IotaDID::parse to convert to lowercase automatically * Change address type to Bech32-encoded strings * Update Wasm bindings * Fix formatting * Update presentation test fixtures * Update Wasm api-reference.md * Fix JSON fixture causing signature verification to fail
- Loading branch information
Showing
8 changed files
with
178 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
identity_credential/tests/fixtures/signed_presentation/issuer_iota_doc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 33 additions & 60 deletions
93
identity_credential/tests/fixtures/signed_presentation/presentation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,37 @@ | ||
{ | ||
"@context": "https://www.w3.org/2018/credentials/v1", | ||
"id": "https://example.org/credentials/3732", | ||
"type": "VerifiablePresentation", | ||
"verifiableCredential": [ | ||
{ | ||
"@context": "https://www.w3.org/2018/credentials/v1", | ||
"id": "https://example.edu/credentials/3732", | ||
"type": [ | ||
"VerifiableCredential", | ||
"UniversityDegreeCredential" | ||
], | ||
"credentialSubject": { | ||
"id": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5", | ||
"GPA": "4.0", | ||
"degree": { | ||
"name": "Bachelor of Science and Arts", | ||
"type": "BachelorDegree" | ||
}, | ||
"name": "Alice" | ||
"@context": "https://www.w3.org/2018/credentials/v1", | ||
"id": "https://example.org/credentials/3732", | ||
"type": "VerifiablePresentation", | ||
"verifiableCredential": { | ||
"@context": "https://www.w3.org/2018/credentials/v1", | ||
"id": "https://example.edu/credentials/3732", | ||
"type": [ | ||
"VerifiableCredential", | ||
"UniversityDegreeCredential" | ||
], | ||
"credentialSubject": { | ||
"id": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5", | ||
"GPA": "4.0", | ||
"degree": { | ||
"name": "Bachelor of Science and Arts", | ||
"type": "BachelorDegree" | ||
}, | ||
"issuer": "did:iota:0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | ||
"issuanceDate": "2022-08-31T08:35:44Z", | ||
"expirationDate": "2050-09-01T08:35:44Z", | ||
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "did:iota:0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA#issuerKey", | ||
"signatureValue": "3d2aAPqjzaSQ2XbFtqLsauv2Ukdn4Hcevz2grNuJn4q4JbBmDHZpAvekVG12A3ZKRRTeKaBPguxXqcDaqujckWWz" | ||
} | ||
"name": "Alice" | ||
}, | ||
{ | ||
"@context": "https://www.w3.org/2018/credentials/v1", | ||
"id": "https://example.edu/credentials/3732", | ||
"type": [ | ||
"VerifiableCredential", | ||
"UniversityDegreeCredential" | ||
], | ||
"credentialSubject": { | ||
"id": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5", | ||
"GPA": "4.0", | ||
"degree": { | ||
"name": "Bachelor of Science and Arts", | ||
"type": "BachelorDegree" | ||
}, | ||
"name": "Alice" | ||
}, | ||
"issuer": "did:bar:Hyx62wPQGyvXCoihZq1BrbUjBRh2LuNxWiiqMkfAuSZr", | ||
"issuanceDate": "2022-08-31T08:35:44Z", | ||
"expirationDate": "2050-09-01T08:35:44Z", | ||
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "did:bar:Hyx62wPQGyvXCoihZq1BrbUjBRh2LuNxWiiqMkfAuSZr#root", | ||
"signatureValue": "2iAYujqHLXP5csZzabdkfurpHaKT3Q8dnJDA4TL7pSJ7gjXLCb2tN7CF4ztKkCKmvY6VYG3pTuN1PeLGEFiQvuQr" | ||
} | ||
"issuer": "did:iota:0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", | ||
"issuanceDate": "2022-08-31T08:35:44Z", | ||
"expirationDate": "2050-09-01T08:35:44Z", | ||
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "did:iota:0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa#issuerKey", | ||
"signatureValue": "2xoRHPUWRVavrBsymJCKhTUe9iYX8iEEZtPhaMjmFvVmjaybVUYXHJagw9kCFmDoPgeyvZjRVQatp2VYs1b8f2Ug" | ||
} | ||
], | ||
"holder": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5", | ||
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5#root", | ||
"signatureValue": "3tVeoKjftrEAQvV3MgpKgiydRHU6i8mYVRnPc6C85upo1TDBEdN94gyW1RzbgPESaZCGeDa582BxAUHVE4rVjaAd", | ||
"challenge": "475a7984-1bb5-4c4c-a56f-822bccd46441" | ||
} | ||
} | ||
}, | ||
"holder": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5", | ||
"proof": { | ||
"type": "JcsEd25519Signature2020", | ||
"verificationMethod": "did:foo:586Z7H2vpX9qNhN2T4e9Utugie3ogjbxzGaMtM3E6HR5#root", | ||
"signatureValue": "5xgWVFQ8J5rsYkkF2BLxzY6YDfdGoZXfT9R9rJPbq53MHc3QkLrpr49kY9aMtQQzEL53nBxJZMtihN2F5nZ44TeR", | ||
"challenge": "475a7984-1bb5-4c4c-a56f-822bccd46441" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.