Convenience function to convert a secret key from bytes to the StaticSecret type
(bytes: &[u8; 32])
| 176 | |
| 177 | /// Convenience function to convert a secret key from bytes to the StaticSecret type |
| 178 | pub fn secret_key_from_bytes(bytes: &[u8; 32]) -> StaticSecret { |
| 179 | StaticSecret::from(*bytes) |
| 180 | } |
| 181 | |
| 182 | #[cfg(test)] |
| 183 | mod tests { |
no outgoing calls