pub struct UnsignedChannelAnnouncement {
pub features: ChannelFeatures,
pub chain_hash: BlockHash,
pub short_channel_id: u64,
pub node_id_1: PublicKey,
pub node_id_2: PublicKey,
pub bitcoin_key_1: PublicKey,
pub bitcoin_key_2: PublicKey,
/* private fields */
}
Expand description
The unsigned part of a channel_announcement
Fields
features: ChannelFeatures
The advertised channel features
chain_hash: BlockHash
The genesis hash of the blockchain where the channel is to be opened
short_channel_id: u64
The short channel ID
node_id_1: PublicKey
One of the two node_ids which are endpoints of this channel
node_id_2: PublicKey
The other of the two node_ids which are endpoints of this channel
bitcoin_key_1: PublicKey
The funding key for the first node
bitcoin_key_2: PublicKey
The funding key for the second node
Trait Implementations
sourceimpl Clone for UnsignedChannelAnnouncement
impl Clone for UnsignedChannelAnnouncement
sourcefn clone(&self) -> UnsignedChannelAnnouncement
fn clone(&self) -> UnsignedChannelAnnouncement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnsignedChannelAnnouncement
impl Debug for UnsignedChannelAnnouncement
sourceimpl PartialEq<UnsignedChannelAnnouncement> for UnsignedChannelAnnouncement
impl PartialEq<UnsignedChannelAnnouncement> for UnsignedChannelAnnouncement
sourcefn eq(&self, other: &UnsignedChannelAnnouncement) -> bool
fn eq(&self, other: &UnsignedChannelAnnouncement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Writeable for UnsignedChannelAnnouncement
impl Writeable for UnsignedChannelAnnouncement
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for UnsignedChannelAnnouncement
Auto Trait Implementations
impl RefUnwindSafe for UnsignedChannelAnnouncement
impl Send for UnsignedChannelAnnouncement
impl Sync for UnsignedChannelAnnouncement
impl Unpin for UnsignedChannelAnnouncement
impl UnwindSafe for UnsignedChannelAnnouncement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more