Skip to content

Commit

Permalink
Add impl From<Vec<u8>> for SignaturePublicKey (#213)
Browse files Browse the repository at this point in the history
Co-authored-by: Marta Mularczyk <[email protected]>
  • Loading branch information
mulmarta and Marta Mularczyk authored Nov 12, 2024
1 parent eb221ce commit 9f4d07f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mls-rs-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mls-rs-core"
version = "0.19.1"
version = "0.19.2"
edition = "2021"
description = "Core components and traits for mls-rs"
homepage = "https://github.com/awslabs/mls-rs"
Expand Down
6 changes: 6 additions & 0 deletions mls-rs-core/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ impl From<Vec<u8>> for SignaturePublicKey {
}
}

impl From<SignaturePublicKey> for Vec<u8> {
fn from(value: SignaturePublicKey) -> Self {
value.0
}
}

/// Byte representation of a signature key.
#[cfg_attr(
all(feature = "ffi", not(test)),
Expand Down

0 comments on commit 9f4d07f

Please sign in to comment.