Skip to content

Commit

Permalink
Serialize session secret keys
Browse files Browse the repository at this point in the history
  • Loading branch information
JobDoesburg committed Jan 29, 2025
1 parent ee28cfc commit b9f7c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/high_level/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct GlobalSecretKey(pub(crate) ScalarNonZero);
#[derive(Copy, Clone, Eq, PartialEq, Debug, Deref, From, Serialize, Deserialize)]
pub struct SessionPublicKey(pub GroupElement);
/// A session secret key used to decrypt messages with.
#[derive(Copy, Clone, Debug, From)]
#[derive(Copy, Clone, Debug, From, Serialize, Deserialize)]

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `arithmetic::ScalarNonZero: Serialize` is not satisfied

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo clippy

the trait bound `internal::arithmetic::ScalarNonZero: high_level::contexts::_::_serde::Serialize` is not satisfied

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `internal::arithmetic::ScalarNonZero: Serialize` is not satisfied

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3)

the trait bound `arithmetic::ScalarNonZero: Serialize` is not satisfied

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Serialize` is not satisfied

Check failure on line 24 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3,legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Serialize` is not satisfied
pub struct SessionSecretKey(pub(crate) ScalarNonZero);

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo clippy

the trait bound `internal::arithmetic::ScalarNonZero: high_level::contexts::_::_serde::Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo clippy

the trait bound `internal::arithmetic::ScalarNonZero: high_level::contexts::_::_serde::Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `internal::arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test

the trait bound `internal::arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3,legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

Check failure on line 25 in src/lib/high_level/keys.rs

View workflow job for this annotation

GitHub Actions / cargo test (elgamal3,legacy-pep-repo-compatible)

the trait bound `arithmetic::ScalarNonZero: Deserialize<'_>` is not satisfied

/// A trait for public keys, which can be encoded and decoded from byte arrays and hex strings.
Expand Down

0 comments on commit b9f7c02

Please sign in to comment.