Skip to content
Open
6 changes: 6 additions & 0 deletions parachain/primitives/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,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 @@ -649,6 +651,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 @@ -662,6 +667,7 @@ pub enum Web2IdentityType {
Google,
Apple,
Pumpx,
Passkey,
}

impl From<ed25519::Public> for Identity {
Expand Down
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 @@ -66,6 +66,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 <[email protected]>']
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