Compare commits

..

1 Commits

Author SHA1 Message Date
Ryan Heywood 64c75085f4
add derivation path for Shard keys 2025-04-08 15:24:58 -04:00
4 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,14 @@
# Keyfork v0.3.2
This is another bugfix release, allowing the derivation of Shard keys.
### Changes in keyfork:
```
6ffcdc3 add derivation path for Shard keys
```
# Keyfork v0.3.1
This is a bugfix release, resolving an issue with Keyfork Shard not having a

4
Cargo.lock generated
View File

@ -1797,7 +1797,7 @@ dependencies = [
[[package]]
name = "keyfork"
version = "0.3.0"
version = "0.3.2"
dependencies = [
"base64",
"card-backend-pcsc",
@ -1967,7 +1967,7 @@ dependencies = [
[[package]]
name = "keyfork-shard"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"aes-gcm",
"anyhow",

View File

@ -1,6 +1,6 @@
[package]
name = "keyfork"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
license = "AGPL-3.0-only"

View File

@ -58,6 +58,9 @@ pub enum Path {
/// The Disaster Recovery index.
DisasterRecovery,
/// The Shard index.
Shard,
}
impl std::fmt::Display for Path {
@ -71,6 +74,7 @@ impl Path {
match self {
Path::Default => "default",
Path::DisasterRecovery => "disaster-recovery",
Path::Shard => "shard",
}
}
@ -78,6 +82,7 @@ impl Path {
match self {
Self::Default => paths::OPENPGP.clone(),
Self::DisasterRecovery => paths::OPENPGP_DISASTER_RECOVERY.clone(),
Self::Shard => paths::OPENPGP_SHARD.clone(),
}
}
}