use cardano_serialization_lib::StakeRegistration as RStakeRegistration;
use std::convert::{TryFrom, TryInto};

#[repr(C)]
#[derive(Copy, Clone)]
pub struct StakeRegistration {
  stake_credential: StakeCredential,
}

impl From<StakeRegistration> for RStakeRegistration {
  fn from(stake_registration: StakeRegistration) -> Self {
    RStakeRegistration::new(&stake_registration.stake_credential.into())
  }
}
