message: move AddrType
diff: @@ -39,23 +39,6 @@ impl fmt::Display for DigestBlake2b {
  }
  }
  -#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
  -pub enum AddrType {
  - ATPubKey,
  - ATScript,
  - ATRedeem
  -}
  -// [TkListLen 1, TkInt (fromEnum t)]
  -impl AddrType {
  - fn to_byte(self) -> u8 {
  - match self {
  - AddrType::ATPubKey => 0,
  - AddrType::ATScript => 1,
  - AddrType::ATRedeem => 2
  - }
  - }
  -}
  -
  pub mod cbor {
  #[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Copy, Clone)]
  pub enum MajorType {
  @@ -195,6 +178,23 @@ mod hs_cbor_util {
  }
  }
  +#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
  +pub enum AddrType {
  + ATPubKey,
  + ATScript,
  + ATRedeem
  +}
  +// [TkListLen 1, TkInt (fromEnum t)]
  +impl AddrType {
  + fn to_byte(self) -> u8 {
  + match self {
  + AddrType::ATPubKey => 0,
  + AddrType::ATScript => 1,
  + AddrType::ATRedeem => 2
  + }
  + }
  +}
  +
  #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
  pub struct StakeholderId(DigestBlake2b); // of publickey (block2b 256)
  impl StakeholderId {
  