Convenience function to convert a public key from bytes to the PublicKey type
(bytes: &[u8; 32])
| 171 | |
| 172 | /// Convenience function to convert a public key from bytes to the PublicKey type |
| 173 | pub fn public_key_from_bytes(bytes: &[u8; 32]) -> PublicKey { |
| 174 | PublicKey::from(*bytes) |
| 175 | } |
| 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 { |
no outgoing calls