Package

fr.acinq.eclair

wire

Permalink

package wire

Visibility
  1. Public
  2. All

Type Members

  1. case class AcceptChannel(temporaryChannelId: ByteVector32, dustLimitSatoshis: Satoshi, maxHtlcValueInFlightMsat: UInt64, channelReserveSatoshis: Satoshi, htlcMinimumMsat: MilliSatoshi, minimumDepth: Long, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubkey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, firstPerCommitmentPoint: PublicKey, upfrontShutdownScript: Option[ByteVector] = None) extends ChannelMessage with HasTemporaryChannelId with Product with Serializable

    Permalink
  2. case class AmountBelowMinimum(amount: MilliSatoshi, update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  3. case class AnnouncementSignatures(channelId: ByteVector32, shortChannelId: ShortChannelId, nodeSignature: ByteVector64, bitcoinSignature: ByteVector64) extends RoutingMessage with HasChannelId with Product with Serializable

    Permalink
  4. sealed trait BadOnion extends FailureMessage

    Permalink
  5. case class ChannelAnnouncement(nodeSignature1: ByteVector64, nodeSignature2: ByteVector64, bitcoinSignature1: ByteVector64, bitcoinSignature2: ByteVector64, features: ByteVector, chainHash: ByteVector32, shortChannelId: ShortChannelId, nodeId1: PublicKey, nodeId2: PublicKey, bitcoinKey1: PublicKey, bitcoinKey2: PublicKey, unknownFields: ByteVector = ByteVector.empty) extends RoutingMessage with HasChainHash with Product with Serializable

    Permalink
  6. case class ChannelDisabled(messageFlags: Byte, channelFlags: Byte, update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  7. sealed trait ChannelMessage extends LightningMessage

    Permalink
  8. case class ChannelReestablish(channelId: ByteVector32, nextLocalCommitmentNumber: Long, nextRemoteRevocationNumber: Long, yourLastPerCommitmentSecret: Option[PrivateKey] = None, myCurrentPerCommitmentPoint: Option[PublicKey] = None) extends ChannelMessage with HasChannelId with Product with Serializable

    Permalink
  9. case class ChannelUpdate(signature: ByteVector64, chainHash: ByteVector32, shortChannelId: ShortChannelId, timestamp: Long, messageFlags: Byte, channelFlags: Byte, cltvExpiryDelta: CltvExpiryDelta, htlcMinimumMsat: MilliSatoshi, feeBaseMsat: MilliSatoshi, feeProportionalMillionths: Long, htlcMaximumMsat: Option[MilliSatoshi], unknownFields: ByteVector = ByteVector.empty) extends RoutingMessage with HasTimestamp with HasChainHash with Product with Serializable

    Permalink
  10. case class ClosingSigned(channelId: ByteVector32, feeSatoshis: Satoshi, signature: ByteVector64) extends ChannelMessage with HasChannelId with Product with Serializable

    Permalink
  11. case class Color(r: Byte, g: Byte, b: Byte) extends Product with Serializable

    Permalink
  12. case class CommitSig(channelId: ByteVector32, signature: ByteVector64, htlcSignatures: List[ByteVector64]) extends HtlcMessage with HasChannelId with Product with Serializable

    Permalink
  13. case class EncodedShortChannelIds(encoding: EncodingType, array: List[ShortChannelId]) extends Product with Serializable

    Permalink
  14. sealed trait EncodingType extends AnyRef

    Permalink
  15. case class Error(channelId: ByteVector32, data: ByteVector) extends SetupMessage with HasChannelId with Product with Serializable

    Permalink
  16. case class ExpiryTooSoon(update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  17. sealed trait FailureMessage extends AnyRef

    Permalink

    see https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md Created by fabrice on 14/03/17.

  18. case class FeeInsufficient(amount: MilliSatoshi, update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  19. case class FinalIncorrectCltvExpiry(expiry: CltvExpiry) extends FailureMessage with Product with Serializable

    Permalink
  20. case class FinalIncorrectHtlcAmount(amount: MilliSatoshi) extends FailureMessage with Product with Serializable

    Permalink
  21. case class FundingCreated(temporaryChannelId: ByteVector32, fundingTxid: ByteVector32, fundingOutputIndex: Int, signature: ByteVector64) extends ChannelMessage with HasTemporaryChannelId with Product with Serializable

    Permalink
  22. case class FundingLocked(channelId: ByteVector32, nextPerCommitmentPoint: PublicKey) extends ChannelMessage with HasChannelId with Product with Serializable

    Permalink
  23. case class FundingSigned(channelId: ByteVector32, signature: ByteVector64) extends ChannelMessage with HasChannelId with Product with Serializable

    Permalink
  24. case class GenericTlv(tag: UInt64, value: ByteVector) extends Tlv with Product with Serializable

    Permalink

    Generic tlv type we fallback to if we don't understand the incoming tlv.

    Generic tlv type we fallback to if we don't understand the incoming tlv.

    tag

    tlv tag.

    value

    tlv value (length is implicit, and encoded as a varint).

  25. case class GossipTimestampFilter(chainHash: ByteVector32, firstTimestamp: Long, timestampRange: Long) extends RoutingMessage with HasChainHash with Product with Serializable

    Permalink
  26. sealed trait HasChainHash extends LightningMessage

    Permalink
  27. sealed trait HasChannelId extends LightningMessage

    Permalink
  28. sealed trait HasTemporaryChannelId extends LightningMessage

    Permalink
  29. sealed trait HasTimestamp extends LightningMessage

    Permalink
  30. sealed trait HtlcMessage extends LightningMessage

    Permalink
  31. case class IPv4(ipv4: Inet4Address, port: Int) extends NodeAddress with Product with Serializable

    Permalink
  32. case class IPv6(ipv6: Inet6Address, port: Int) extends NodeAddress with Product with Serializable

    Permalink
  33. case class IncorrectCltvExpiry(expiry: CltvExpiry, update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  34. case class IncorrectOrUnknownPaymentDetails(amount: MilliSatoshi, height: Long) extends Perm with Product with Serializable

    Permalink
  35. case class Init(features: ByteVector, tlvs: TlvStream[InitTlv] = TlvStream.empty) extends SetupMessage with Product with Serializable

    Permalink
  36. sealed trait InitTlv extends Tlv

    Permalink

    Tlv types used inside Init messages.

  37. case class InvalidOnionHmac(onionHash: ByteVector32) extends BadOnion with Perm with Product with Serializable

    Permalink
  38. case class InvalidOnionKey(onionHash: ByteVector32) extends BadOnion with Perm with Product with Serializable

    Permalink
  39. case class InvalidOnionPayload(tag: UInt64, offset: Int) extends Perm with Product with Serializable

    Permalink
  40. case class InvalidOnionVersion(onionHash: ByteVector32) extends BadOnion with Perm with Product with Serializable

    Permalink
  41. sealed trait LightningMessage extends AnyRef

    Permalink

    Created by PM on 15/11/2016.

  42. sealed trait Node extends FailureMessage

    Permalink
  43. sealed trait NodeAddress extends AnyRef

    Permalink
  44. case class NodeAnnouncement(signature: ByteVector64, features: ByteVector, timestamp: Long, nodeId: PublicKey, rgbColor: Color, alias: String, addresses: List[NodeAddress], unknownFields: ByteVector = ByteVector.empty) extends RoutingMessage with HasTimestamp with Product with Serializable

    Permalink
  45. sealed trait OnionAddress extends NodeAddress

    Permalink
  46. case class OnionRoutingPacket(version: Int, publicKey: ByteVector, payload: ByteVector, hmac: ByteVector32) extends Product with Serializable

    Permalink

    Created by t-bast on 05/07/2019.

  47. sealed trait OnionTlv extends Tlv

    Permalink

    Tlv types used inside onion messages.

  48. case class OpenChannel(chainHash: ByteVector32, temporaryChannelId: ByteVector32, fundingSatoshis: Satoshi, pushMsat: MilliSatoshi, dustLimitSatoshis: Satoshi, maxHtlcValueInFlightMsat: UInt64, channelReserveSatoshis: Satoshi, htlcMinimumMsat: MilliSatoshi, feeratePerKw: Long, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubkey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, firstPerCommitmentPoint: PublicKey, channelFlags: Byte, upfrontShutdownScript: Option[ByteVector] = None, tlvStream_opt: Option[TlvStream[OpenTlv]] = None) extends ChannelMessage with HasTemporaryChannelId with HasChainHash with Product with Serializable

    Permalink
  49. sealed trait OpenTlv extends Tlv

    Permalink
  50. sealed trait Perm extends FailureMessage

    Permalink
  51. case class Ping(pongLength: Int, data: ByteVector) extends SetupMessage with Product with Serializable

    Permalink
  52. case class Pong(data: ByteVector) extends SetupMessage with Product with Serializable

    Permalink
  53. case class QueryChannelRange(chainHash: ByteVector32, firstBlockNum: Long, numberOfBlocks: Long, tlvStream: TlvStream[QueryChannelRangeTlv] = TlvStream.empty) extends RoutingMessage with Product with Serializable

    Permalink
  54. sealed trait QueryChannelRangeTlv extends Tlv

    Permalink
  55. case class QueryShortChannelIds(chainHash: ByteVector32, shortChannelIds: EncodedShortChannelIds, tlvStream: TlvStream[QueryShortChannelIdsTlv] = TlvStream.empty) extends RoutingMessage with HasChainHash with Product with Serializable

    Permalink
  56. sealed trait QueryShortChannelIdsTlv extends Tlv

    Permalink
  57. case class ReplyChannelRange(chainHash: ByteVector32, firstBlockNum: Long, numberOfBlocks: Long, complete: Byte, shortChannelIds: EncodedShortChannelIds, tlvStream: TlvStream[ReplyChannelRangeTlv] = TlvStream.empty) extends RoutingMessage with Product with Serializable

    Permalink
  58. sealed trait ReplyChannelRangeTlv extends Tlv

    Permalink
  59. case class ReplyShortChannelIdsEnd(chainHash: ByteVector32, complete: Byte) extends RoutingMessage with HasChainHash with Product with Serializable

    Permalink
  60. case class RevokeAndAck(channelId: ByteVector32, perCommitmentSecret: PrivateKey, nextPerCommitmentPoint: PublicKey) extends HtlcMessage with HasChannelId with Product with Serializable

    Permalink
  61. sealed trait RoutingMessage extends LightningMessage

    Permalink
  62. sealed trait SetupMessage extends LightningMessage

    Permalink
  63. case class Shutdown(channelId: ByteVector32, scriptPubKey: ByteVector) extends ChannelMessage with HasChannelId with Product with Serializable

    Permalink
  64. case class TemporaryChannelFailure(update: ChannelUpdate) extends Update with Product with Serializable

    Permalink
  65. trait Tlv extends AnyRef

    Permalink

    Created by t-bast on 20/06/2019.

  66. case class TlvStream[T <: Tlv](records: Traversable[T], unknown: Traversable[GenericTlv] = Nil) extends Product with Serializable

    Permalink

    A tlv stream is a collection of tlv records.

    A tlv stream is a collection of tlv records. A tlv stream is constrained to a specific tlv namespace that dictates how to parse the tlv records. That namespace is provided by a trait extending the top-level tlv trait.

    T

    the stream namespace is a trait extending the top-level tlv trait.

    records

    known tlv records.

    unknown

    unknown tlv records.

  67. case class Tor2(tor2: String, port: Int) extends OnionAddress with Product with Serializable

    Permalink
  68. case class Tor3(tor3: String, port: Int) extends OnionAddress with Product with Serializable

    Permalink
  69. sealed trait UnknownFailureMessage extends FailureMessage

    Permalink

    We allow remote nodes to send us unknown failure codes (e.g.

    We allow remote nodes to send us unknown failure codes (e.g. deprecated failure codes). By reading the PERM and NODE bits we can still extract useful information for payment retry even without knowing how to decode the failure payload (but we can't extract a channel update or onion hash).

  70. sealed trait Update extends FailureMessage

    Permalink
  71. case class UpdateAddHtlc(channelId: ByteVector32, id: Long, amountMsat: MilliSatoshi, paymentHash: ByteVector32, cltvExpiry: CltvExpiry, onionRoutingPacket: OnionRoutingPacket) extends HtlcMessage with UpdateMessage with HasChannelId with Product with Serializable

    Permalink
  72. case class UpdateFailHtlc(channelId: ByteVector32, id: Long, reason: ByteVector) extends HtlcMessage with UpdateMessage with HasChannelId with Product with Serializable

    Permalink
  73. case class UpdateFailMalformedHtlc(channelId: ByteVector32, id: Long, onionHash: ByteVector32, failureCode: Int) extends HtlcMessage with UpdateMessage with HasChannelId with Product with Serializable

    Permalink
  74. case class UpdateFee(channelId: ByteVector32, feeratePerKw: Long) extends ChannelMessage with UpdateMessage with HasChannelId with Product with Serializable

    Permalink
  75. case class UpdateFulfillHtlc(channelId: ByteVector32, id: Long, paymentPreimage: ByteVector32) extends HtlcMessage with UpdateMessage with HasChannelId with Product with Serializable

    Permalink
  76. sealed trait UpdateMessage extends HtlcMessage

    Permalink

Value Members

  1. object ChannelCodecs extends Logging

    Permalink

    Created by PM on 02/06/2017.

  2. object CommandCodecs

    Permalink
  3. object CommonCodecs

    Permalink

    Created by t-bast on 20/06/2019.

  4. object EncodingType

    Permalink
  5. object Error extends Serializable

    Permalink
  6. object ExpiryTooFar extends FailureMessage with Product with Serializable

    Permalink
  7. object FailureMessageCodecs

    Permalink
  8. object InitTlv

    Permalink
  9. object InitTlvCodecs

    Permalink
  10. object InvalidRealm extends Perm with Product with Serializable

    Permalink
  11. object LightningMessageCodecs

    Permalink

    Created by PM on 15/11/2016.

  12. object NodeAddress

    Permalink
  13. object Onion

    Permalink
  14. object OnionCodecs

    Permalink
  15. object OnionTlv

    Permalink
  16. object OpenTlv

    Permalink
  17. object PaymentTimeout extends FailureMessage with Product with Serializable

    Permalink
  18. object PermanentChannelFailure extends Perm with Product with Serializable

    Permalink
  19. object PermanentNodeFailure extends Perm with Node with Product with Serializable

    Permalink
  20. object QueryChannelRangeTlv

    Permalink
  21. object QueryShortChannelIdsTlv

    Permalink
  22. object ReplyChannelRange extends Serializable

    Permalink
  23. object ReplyChannelRangeTlv

    Permalink
  24. object RequiredChannelFeatureMissing extends Perm with Product with Serializable

    Permalink
  25. object RequiredNodeFeatureMissing extends Perm with Node with Product with Serializable

    Permalink
  26. object TemporaryNodeFailure extends Node with Product with Serializable

    Permalink
  27. object TlvCodecs

    Permalink

    Created by t-bast on 20/06/2019.

  28. object TlvStream extends Serializable

    Permalink
  29. object TrampolineExpiryTooSoon extends Node with Product with Serializable

    Permalink
  30. object TrampolineFeeInsufficient extends Node with Product with Serializable

    Permalink
  31. object UnknownNextPeer extends Perm with Product with Serializable

    Permalink

Ungrouped