Trait ophelia::PrivateKey [−][src]
pub trait PrivateKey: for<'a> TryFrom<&'a [u8], Error = Error> + Clone {
type Signature;
const LENGTH: usize;
fn generate<R: RngCore + CryptoRng>(rng: &mut R) -> Self;
fn sign_message(&self, msg: &HashValue) -> Self::Signature;
fn to_bytes(&self) -> Bytes;
}