message: move derivation scheme definition above
diff: @@ -38,6 +38,13 @@ pub enum Error {
  InvalidDerivation
  }
  +/// Ed25519-bip32 Scheme Derivation version
  +#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
  +pub enum DerivationScheme {
  + V1,
  + V2,
  +}
  +
  impl fmt::Display for Error {
  fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
  match self {
  @@ -711,12 +718,6 @@ fn add_28_mul8(x: &[u8], y: &[u8], scheme: DerivationScheme) -> [u8; 32] {
  }
  }
  -#[derive(Clone, Copy)]
  -pub enum DerivationScheme {
  - V1,
  - V2,
  -}
  -
  fn derive_private(xprv: &XPrv, index: DerivationIndex, scheme: DerivationScheme) -> XPrv {
  /*
  * If so (hardened child):
  