Skip to content
Open
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
6 changes: 6 additions & 0 deletions parachain/primitives/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ impl Identity {
return Ok(Identity::Google(IdentityString::new(v[1].as_bytes().to_vec())));
} else if v[0] == "pumpx" {
return Ok(Identity::Pumpx(IdentityString::new(v[1].as_bytes().to_vec())));
} else if v[0] == "passkey" {
return Ok(Identity::Passkey(IdentityString::new(v[1].as_bytes().to_vec())));
} else {
return Err("Unknown did type");
}
Expand Down Expand Up @@ -628,6 +630,9 @@ impl Identity {
Web2IdentityType::Pumpx => {
Identity::Pumpx(IdentityString::new(handle.as_bytes().to_vec()))
},
Web2IdentityType::Passkey => {
Identity::Passkey(IdentityString::new(handle.as_bytes().to_vec()))
},
}
}
}
Expand All @@ -640,6 +645,7 @@ pub enum Web2IdentityType {
Email,
Google,
Pumpx,
Passkey,
}

impl From<ed25519::Public> for Identity {
Expand Down
5 changes: 5 additions & 0 deletions tee-worker/omni-executor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ omni-executor
storage_db
test_get_health_storage_db
test_get_shielding_key_storage_db

executor-storage/test_passkey_*/
executor-storage/test_passkey_integration_*/
executor-storage/test_passkey_challenge_storage_*/
executor-storage/test_passkey_storage_*/
8 changes: 8 additions & 0 deletions tee-worker/omni-executor/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tee-worker/omni-executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ log = "0.4.22"
metrics = "0.24.1"
metrics-exporter-prometheus = "0.16.2"
mockall = "0.13.1"
p256 = { version = "0.13", features = ["ecdsa"] }
parity-scale-codec = "3.6.12"
rand = "0.8.5"
regex = "1.7"
Expand Down
6 changes: 6 additions & 0 deletions tee-worker/omni-executor/executor-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ authors = ['Trust Computing GmbH <info@litentry.com>']
edition.workspace = true

[dependencies]
base64 = { workspace = true }
ciborium = { workspace = true }
ethers = { workspace = true }
hex = { workspace = true }
jsonwebtoken = { workspace = true }
p256 = { workspace = true }
parity-scale-codec = { workspace = true }
rand = { workspace = true }
ring = { workspace = true }
rsa = { workspace = true, features = ["sha2"] }
secp256k1 = { workspace = true, features = ["std", "global-context", "recovery", "rand-std"] }
serde = { workspace = true }
serde_json = { workspace = true }
serde_with = { workspace = true }
sha2 = { workspace = true }
sp-core = { workspace = true }
tracing = { workspace = true }

Expand Down
1 change: 1 addition & 0 deletions tee-worker/omni-executor/executor-crypto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pub mod aes256;
pub mod jwt;
pub mod passkey;
pub mod secp256k1;
pub mod shielding_key;
pub mod traits;
Expand Down
Loading
Loading