pub struct RemoteKeyset {
pub funding_pubkey: PublicKey,
pub revocation_basepoint: PublicKey,
pub payment_basepoint: PublicKey,
pub delayed_payment_basepoint: PublicKey,
pub htlc_basepoint: PublicKey,
pub first_per_commitment_point: PublicKey,
pub shutdown_scriptpubkey: Option<PubkeyScript>,
pub static_remotekey: bool,
}
Expand description
Set of keys used by the core of the channel. It does not include HTLC
basepoint which is managed separately by super::Htlc
extension.
Fields§
§funding_pubkey: PublicKey
Public key used in the funding outpoint multisig
revocation_basepoint: PublicKey
Base point for deriving keys used for penalty spending paths
payment_basepoint: PublicKey
Base point for deriving keys in to_remote
delayed_payment_basepoint: PublicKey
Base point for deriving keys in to_local
time-locked spending paths
htlc_basepoint: PublicKey
Base point for deriving HTLC-related keys
first_per_commitment_point: PublicKey
Base point for deriving keys used for penalty spending paths
shutdown_scriptpubkey: Option<PubkeyScript>
Allows the sending node to commit to where funds will go on mutual close, which the remote node should enforce even if a node is compromised later.
static_remotekey: bool
If option_static_remotekey
or option_anchors
is negotiated, the
remotepubkey is simply the remote node’s payment_basepoint, otherwise
it is calculated as above using the remote node’s payment_basepoint.
Trait Implementations§
Source§impl Clone for RemoteKeyset
impl Clone for RemoteKeyset
Source§fn clone(&self) -> RemoteKeyset
fn clone(&self) -> RemoteKeyset
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RemoteKeyset
impl Debug for RemoteKeyset
Source§impl<'de> Deserialize<'de> for RemoteKeyset
impl<'de> Deserialize<'de> for RemoteKeyset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for RemoteKeyset
impl Display for RemoteKeyset
Source§impl DumbDefault for RemoteKeyset
impl DumbDefault for RemoteKeyset
Source§fn dumb_default() -> Self
fn dumb_default() -> Self
Source§impl From<&AcceptChannel> for RemoteKeyset
impl From<&AcceptChannel> for RemoteKeyset
Source§fn from(accept_channel: &AcceptChannel) -> Self
fn from(accept_channel: &AcceptChannel) -> Self
Source§impl From<&OpenChannel> for RemoteKeyset
impl From<&OpenChannel> for RemoteKeyset
Source§fn from(open_channel: &OpenChannel) -> Self
fn from(open_channel: &OpenChannel) -> Self
Source§impl PartialEq for RemoteKeyset
impl PartialEq for RemoteKeyset
Source§impl Serialize for RemoteKeyset
impl Serialize for RemoteKeyset
Source§impl StrictDecode for RemoteKeyset
impl StrictDecode for RemoteKeyset
Source§fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
std::io::Read
instance; must either
construct an instance or return implementation-specific error type.Source§fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
StrictDecode::strict_decode
. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed
. Use io::Cursor
over the buffer and
StrictDecode::strict_decode
to avoid such failures.Source§fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
path
and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed
if file contains remaining
data after the object reconstruction.Source§impl StrictEncode for RemoteKeyset
impl StrictEncode for RemoteKeyset
Source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.Source§fn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
StrictEncode::strict_encode
functionSource§impl ToYamlString for RemoteKeyset
Available on crate feature serde
only.
impl ToYamlString for RemoteKeyset
serde
only.Source§fn to_yaml_string(&self) -> String
fn to_yaml_string(&self) -> String
self
into a YAML-encoded stringimpl Eq for RemoteKeyset
impl StructuralPartialEq for RemoteKeyset
Auto Trait Implementations§
impl Freeze for RemoteKeyset
impl RefUnwindSafe for RemoteKeyset
impl Send for RemoteKeyset
impl Sync for RemoteKeyset
impl Unpin for RemoteKeyset
impl UnwindSafe for RemoteKeyset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.