Make the Keypair struct inherit repr(C).

This commit is contained in:
Isis Lovecruft 2017-12-04 00:50:39 +00:00
parent 7888bfe3f8
commit 65b7a21062
Failed to extract signature

View file

@ -753,6 +753,7 @@ impl<'d> Deserialize<'d> for PublicKey {
/// An ed25519 keypair.
#[derive(Debug)]
#[repr(C)]
pub struct Keypair {
/// The secret half of this keypair.
pub secret: SecretKey,