projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collect all lightning std::sync imports under crate::sync
[rust-lightning]
/
lightning
/
src
/
util
/
enforcing_trait_impls.rs
diff --git
a/lightning/src/util/enforcing_trait_impls.rs
b/lightning/src/util/enforcing_trait_impls.rs
index 32c17af64dd877efcd8c07a7698e0049bdc739bd..d7ddc38b3ddfee2641ba414108ca5b541878f503 100644
(file)
--- a/
lightning/src/util/enforcing_trait_impls.rs
+++ b/
lightning/src/util/enforcing_trait_impls.rs
@@
-11,8
+11,9
@@
use ln::chan_utils::{HTLCOutputInCommitment, ChannelPublicKeys, HolderCommitment
use ln::{chan_utils, msgs};
use chain::keysinterface::{Sign, InMemorySigner, BaseSign};
use ln::{chan_utils, msgs};
use chain::keysinterface::{Sign, InMemorySigner, BaseSign};
+use prelude::*;
use core::cmp;
use core::cmp;
-use s
td::s
ync::{Mutex, Arc};
+use sync::{Mutex, Arc};
use bitcoin::blockdata::transaction::{Transaction, SigHashType};
use bitcoin::util::bip143;
use bitcoin::blockdata::transaction::{Transaction, SigHashType};
use bitcoin::util::bip143;
@@
-38,6
+39,9
@@
pub const INITIAL_REVOKED_COMMITMENT_NUMBER: u64 = 1 << 48;
///
/// Eventually we will probably want to expose a variant of this which would essentially
/// be what you'd want to run on a hardware wallet.
///
/// Eventually we will probably want to expose a variant of this which would essentially
/// be what you'd want to run on a hardware wallet.
+///
+/// Note that before we do so we should ensure its serialization format has backwards- and
+/// forwards-compatibility prefix/suffixes!
#[derive(Clone)]
pub struct EnforcingSigner {
pub inner: InMemorySigner,
#[derive(Clone)]
pub struct EnforcingSigner {
pub inner: InMemorySigner,