We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edab7b9 commit fc243a4Copy full SHA for fc243a4
nucypher-core/src/dkg.rs
@@ -294,6 +294,15 @@ pub mod session {
294
let public_key = PublicKey::from(&self.0);
295
SessionStaticKey(public_key)
296
}
297
+
298
+ #[cfg(feature = "test_vectors")]
299
+ /// Returns the raw bytes of the secret key.
300
+ ///
301
+ /// This function is only available when the `test_vectors` feature is enabled.
302
+ /// It should only be used for test vector generation and not in production code.
303
+ pub fn to_bytes(&self) -> [u8; 32] {
304
+ self.0.to_bytes()
305
+ }
306
307
308
impl fmt::Display for SessionStaticSecret {
0 commit comments