Struct ChannelPublicKeys
pub struct ChannelPublicKeys {
pub funding_pubkey: PublicKey,
pub revocation_basepoint: PublicKey,
pub payment_point: PublicKey,
pub delayed_payment_basepoint: PublicKey,
pub htlc_basepoint: PublicKey,
}
Expand description
One counterparty’s public keys which do not change over the life of a channel.
Fields§
§funding_pubkey: PublicKey
The public key which is used to sign all commitment transactions, as it appears in the on-chain channel lock-in 2-of-2 multisig output.
revocation_basepoint: PublicKey
The base point which is used (with derive_public_revocation_key) to derive per-commitment revocation keys. This is combined with the per-commitment-secret generated by the counterparty to create a secret which the counterparty can reveal to revoke previous states.
payment_point: PublicKey
The public key on which the non-broadcaster (ie the countersignatory) receives an immediately spendable primary channel balance on the broadcaster’s commitment transaction. This key is static across every commitment transaction.
delayed_payment_basepoint: PublicKey
The base point which is used (with derive_public_key) to derive a per-commitment payment public key which receives non-HTLC-encumbered funds which are only available for spending after some delay (or can be claimed via the revocation path).
htlc_basepoint: PublicKey
The base point which is used (with derive_public_key) to derive a per-commitment public key which is used to encumber HTLC-in-flight outputs.
Trait Implementations§
§impl Clone for ChannelPublicKeys
impl Clone for ChannelPublicKeys
§fn clone(&self) -> ChannelPublicKeys
fn clone(&self) -> ChannelPublicKeys
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ChannelPublicKeys
impl Debug for ChannelPublicKeys
§impl Hash for ChannelPublicKeys
impl Hash for ChannelPublicKeys
§impl PartialEq for ChannelPublicKeys
impl PartialEq for ChannelPublicKeys
§impl Readable for ChannelPublicKeys
impl Readable for ChannelPublicKeys
§fn read<R>(reader: &mut R) -> Result<ChannelPublicKeys, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<ChannelPublicKeys, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for ChannelPublicKeys
impl Writeable for ChannelPublicKeys
impl Eq for ChannelPublicKeys
impl StructuralPartialEq for ChannelPublicKeys
Auto Trait Implementations§
impl Freeze for ChannelPublicKeys
impl RefUnwindSafe for ChannelPublicKeys
impl Send for ChannelPublicKeys
impl Sync for ChannelPublicKeys
impl Unpin for ChannelPublicKeys
impl UnwindSafe for ChannelPublicKeys
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request