Skip to content

Commit

Permalink
remove partiall implemented ed25519 and p521 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Oct 24, 2024
1 parent 29934b3 commit 30de02c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 287 deletions.
61 changes: 23 additions & 38 deletions Cargo.lock

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

11 changes: 4 additions & 7 deletions crates/xdid-method-key/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ license.workspace = true
keywords.workspace = true

[features]
default = ["ed25519", "p256", "p384", "p521"]
ed25519 = []
p256 = ["dep:p256", "dep:rand", "dep:serde_json"]
p384 = ["dep:p384", "dep:rand", "dep:serde_json"]
p521 = ["dep:p521", "dep:rand", "dep:serde_json"]
default = ["p256", "p384"]
p256 = ["dep:p256", "dep:rand", "dep:ring", "dep:serde_json"]
p384 = ["dep:p384", "dep:rand", "dep:ring", "dep:serde_json"]

[dependencies]
jose-jwk.workspace = true
multibase = "0.9.1"
p256 = { version = "0.13.2", features = ["jwk"], optional = true }
p384 = { version = "0.13.0", features = ["jwk"], optional = true }
p521 = { version = "0.13.3", features = ["jwk"], optional = true }
rand = { version = "0.8.5", optional = true }
ring = "0.17.8"
ring = { version = "0.17.8", optional = true }
serde_json = { workspace = true, optional = true }
thiserror.workspace = true
unsigned-varint = { version = "0.8.0" }
Expand Down
88 changes: 0 additions & 88 deletions crates/xdid-method-key/src/keys/ed25519.rs

This file was deleted.

4 changes: 0 additions & 4 deletions crates/xdid-method-key/src/keys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ use xdid_core::did::{Did, MethodId, MethodName};

use crate::NAME;

#[cfg(feature = "ed25519")]
pub mod ed25519;
#[cfg(feature = "p256")]
pub mod p256;
#[cfg(feature = "p384")]
pub mod p384;
#[cfg(feature = "p521")]
pub mod p521;

pub trait Signer {
fn sign(&self, message: &[u8]) -> Result<Vec<u8>, SignError>;
Expand Down
Loading

0 comments on commit 30de02c

Please sign in to comment.