Object/Trait

fr.acinq.eclair.payment

IncomingPacket

Related Docs: trait IncomingPacket | package payment

Permalink

object IncomingPacket

Helpers to handle incoming payment packets.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IncomingPacket
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ChannelRelayPacket(add: UpdateAddHtlc, payload: ChannelRelayPayload, nextPacket: OnionRoutingPacket) extends RelayPacket with Product with Serializable

    Permalink

    We must relay the payment to a direct peer.

  2. case class DecodedOnionPacket[T <: PacketType](payload: T, next: OnionRoutingPacket) extends Product with Serializable

    Permalink
  3. case class FinalPacket(add: UpdateAddHtlc, payload: FinalPayload) extends IncomingPacket with Product with Serializable

    Permalink

    We are the final recipient.

  4. case class NodeRelayPacket(add: UpdateAddHtlc, outerPayload: FinalPayload, innerPayload: NodeRelayPayload, nextPacket: OnionRoutingPacket) extends RelayPacket with Product with Serializable

    Permalink

    We must relay the payment to a remote node.

  5. sealed trait RelayPacket extends IncomingPacket

    Permalink

    We are an intermediate node.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def decrypt(add: UpdateAddHtlc, privateKey: PrivateKey, features: ByteVector)(implicit log: LoggingAdapter): Either[FailureMessage, IncomingPacket]

    Permalink

    Decrypt the onion packet of a received htlc.

    Decrypt the onion packet of a received htlc. If we are the final recipient, we validate that the HTLC fields match the onion fields (this prevents intermediate nodes from sending an invalid amount or expiry).

    NB: we can't fully validate RelayPackets because it requires knowing the channel/route we'll be using, which we don't know yet. Such validation is the responsibility of downstream components.

    add

    incoming htlc

    privateKey

    this node's private key

    features

    this node's supported features

    returns

    whether the payment is to be relayed or if our node is the final recipient (or an error).

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped