.map(|(sig, _)| sig).ok()?
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
};
(counterparty_initial_commitment_tx, funding_signed)
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
}
).map_err(|_| ChannelError::Close("Failed to validate revocation from peer".to_owned()))?;
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
};
}), None, None))
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
}
}), signed_tx, shutdown_result))
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
}
})
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
}
})
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
} else {
}, (counterparty_commitment_txid, commitment_stats.htlcs_included)))
},
// TODO (taproot|arik)
+ #[cfg(taproot)]
_ => todo!()
}
}
assert_eq!(chan_utils::build_commitment_secret(&seed, 1),
<Vec<u8>>::from_hex("915c75942a26bb3a433a8ce2cb0427c29ec6c1775cfc78328b57f6ba7bfeaa9c").unwrap()[..]);
}
-
+
#[test]
fn test_key_derivation() {
// Test vectors from BOLT 3 Appendix E: