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

Support Email Identity in client-api and client-sdk #3085

Merged
merged 7 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tee-worker/identity/client-api/parachain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Update for version [parachain-release v0.9.20-03](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.20-03)

### Added

- `LinkedIdentities` entry in `Assertion` enum.
- New `Email` identity. Consequent updates on `LitentryIdentity` and `Web2ValidationData`.

## [0.9.19-07] - 2024-08-26

Matching version for [parachain-release v0.9.19-07](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.19-07)
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/identity/client-api/parachain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.19-07",
"version": "0.9.20-03-next.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jonalvarezz what does this "next.0" mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BillyWooo, good question – it signals that this is a preview version of upcoming releases as it contains non-released features (i.e., Email identity).

See https://github.com/litentry/litentry-parachain/blob/dev/tee-worker/identity/client-sdk/packages/enclave/README.md#versions

"scripts": {
"clean": "rm -rf dist build node_modules",
"update-metadata": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9944 > prepare-build/litentry-parachain-metadata.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
Evm: "Address20",
Bitcoin: "Address33",
Solana: "Address32",
Email: "IdentityString",
},
},
Address32: "[u8;32]",
Expand Down Expand Up @@ -66,6 +67,7 @@ export default {
_enum: {
Twitter: "TwitterValidationData",
Discord: "DiscordValidationData",
Email: "EmailValidationData",
},
},
TwitterValidationData: {
Expand Down Expand Up @@ -97,6 +99,10 @@ export default {
code: "Vec<u8>",
redirect_uri: "Vec<u8>",
},
EmailValidationData: {
email: "Text",
verification_code: "Text",
},
Web3ValidationData: {
_enum: {
Substrate: "Web3CommonValidationData",
Expand Down
2 changes: 2 additions & 0 deletions tee-worker/identity/client-api/sidechain-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Update for version [parachain-release v0.9.20-03](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.20-03)

## [0.9.19-07] - 2024-08-26

Matching version for [parachain-release v0.9.19-07](https://github.com/litentry/litentry-parachain/releases/tag/v0.9.19-07)
Expand Down
2 changes: 1 addition & 1 deletion tee-worker/identity/client-api/sidechain-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"sideEffects": false,
"version": "0.9.19-07",
"version": "0.9.20-03-next.0",
"scripts": {
"clean": "rm -rf dist build node_modules",
"update-metadata": "../../bin/litentry-cli print-sgx-metadata-raw > prepare-build/litentry-sidechain-metadata.json",
Expand Down
Loading