[][src]Struct lnpbp::lnp::application::message::UpdateAddHtlc

pub struct UpdateAddHtlc {
    pub channel_id: ChannelId,
    pub htlc_id: u64,
    pub amount_msat: u64,
    pub payment_hash: HashLock,
    pub cltv_expiry: u32,
    pub onion_routing_packet: OnionPacket,
    pub asset_id: Option<AssetId>,
}

Fields

channel_id: ChannelId

The channel ID

htlc_id: u64

The HTLC ID

amount_msat: u64

The HTLC value in milli-satoshi

payment_hash: HashLock

The payment hash, the pre-image of which controls HTLC redemption

cltv_expiry: u32

The expiry height of the HTLC

onion_routing_packet: OnionPacket

An obfuscated list of hops and instructions for each hop along the path. It commits to the HTLC by setting the payment_hash as associated data, i.e. includes the payment_hash in the computation of HMACs. This prevents replay attacks that would reuse a previous onion_routing_packet with a different payment_hash.

asset_id: Option<AssetId>

RGB Extension: TLV

Trait Implementations

impl Clone for UpdateAddHtlc[src]

impl Debug for UpdateAddHtlc[src]

impl Display for UpdateAddHtlc[src]

impl Eq for UpdateAddHtlc[src]

impl PartialEq<UpdateAddHtlc> for UpdateAddHtlc[src]

impl StrictDecode for UpdateAddHtlc[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for UpdateAddHtlc[src]

type Error = Error

Implementation-dependent error type

impl StructuralEq for UpdateAddHtlc[src]

impl StructuralPartialEq for UpdateAddHtlc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,