message: add a unit test for derivation v1
diff: @@ -983,6 +983,22 @@ mod tests {
  let prv = XPrv::from_bytes(D1_H0);
  do_sign(&prv, &D1_H0_SIGNATURE);
  }
  +
  + #[test]
  + fn unit_derivation_v1() {
  + let seed = Seed::from_bytes([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
  + let xprv0 = XPrv::generate_from_seed(&seed);
  +
  + let xpub0 = xprv0.public();
  + let xpub0_ref = XPub::from_bytes([ 28, 12, 58, 225, 130, 94, 144, 182, 221, 218, 63, 64, 161, 34, 192, 7, 225, 0, 142, 131, 178, 225, 2, 193, 66, 186, 239, 183, 33, 215, 44, 26, 93, 54, 97, 222, 185, 6, 79, 45, 14, 3, 254, 133, 214, 128, 112, 178, 254, 51, 180, 145, 96, 89, 101, 142, 40, 172, 127, 127, 145, 202, 75, 18]);
  + assert_eq!(xpub0_ref, xpub0);
  +
  + let xprv1 = xprv0.derive(DerivationScheme::V1, 0x80000000);
  + let xpub1 = xprv1.public();
  + let xpub1_ref = XPub::from_bytes([ 155, 186, 125, 76, 223, 83, 124, 115, 51, 236, 62, 66, 30, 151, 236, 155, 157, 73, 110, 160, 25, 204, 222, 170, 46, 185, 166, 187, 220, 65, 18, 182, 194, 224, 222, 91, 65, 119, 17, 215, 53, 147, 168, 219, 125, 51, 13, 233, 35, 212, 226, 241, 0, 36, 245, 198, 28, 19, 91, 74, 49, 43, 106, 167]);
  +
  + assert_eq!(xpub1_ref, xpub1);
  + }
  }
  #[cfg(test)]
  