Skip to content

Commit

Permalink
add conversion from Signature to BftSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthz committed Oct 15, 2019
1 parent 82999c7 commit ad04e4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chain-impl-mockchain/src/header/components.rs
Expand Up @@ -70,6 +70,12 @@ impl From<cstruct::BftSignature> for BftSignature {
}
}

impl From<Signature<HeaderAuth, Ed25519>> for BftSignature {
fn from(sig: Signature<HeaderAuth, Ed25519>) -> BftSignature {
BftSignature(sig)
}
}

#[derive(Clone)]
pub struct VrfProof(pub(super) cstruct::GpVrfProof);

Expand Down

0 comments on commit ad04e4f

Please sign in to comment.