Package fr. acinq. lightning. serialization. v3
Types
Aborted
Link copied to clipboard
data class Aborted(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates) : ChannelState
Content copied to clipboard
Abstract Btc Serializable KSerializer
Link copied to clipboard
Block Header KSerializer
Link copied to clipboard
object BlockHeaderKSerializer : AbstractBtcSerializableKSerializer<BlockHeader>
Content copied to clipboard
Byte Vector32KSerializer
Link copied to clipboard
Byte Vector64KSerializer
Link copied to clipboard
Byte Vector KSerializer
Link copied to clipboard
Channel Config
Link copied to clipboard
Channel Features
Link copied to clipboard
Channel State
Link copied to clipboard
sealed class ChannelState
Content copied to clipboard
Channel State With Commitments
Link copied to clipboard
Channel Type
Link copied to clipboard
Closed
Link copied to clipboard
Closing
Link copied to clipboard
data class Closing(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, fundingTx: Transaction?, waitingSinceBlock: Long, mutualCloseProposed: List<Transactions.TransactionWithInputInfo.ClosingTx>, mutualClosePublished: List<Transactions.TransactionWithInputInfo.ClosingTx>, localCommitPublished: LocalCommitPublished?, remoteCommitPublished: RemoteCommitPublished?, nextRemoteCommitPublished: RemoteCommitPublished?, futureRemoteCommitPublished: RemoteCommitPublished?, revokedCommitPublished: List<RevokedCommitPublished>) : ChannelStateWithCommitments
Content copied to clipboard
Closing Feerates
Link copied to clipboard
data class ClosingFeerates(preferred: FeeratePerKw, min: FeeratePerKw, max: FeeratePerKw)
Content copied to clipboard
Closing Tx Proposed
Link copied to clipboard
data class ClosingTxProposed(unsignedTx: Transactions.TransactionWithInputInfo.ClosingTx, localClosingSigned: ClosingSigned)
Content copied to clipboard
Commitments
Link copied to clipboard
data class Commitments(channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, localParams: LocalParams, remoteParams: RemoteParams, channelFlags: Byte, localCommit: LocalCommit, remoteCommit: RemoteCommit, localChanges: LocalChanges, remoteChanges: RemoteChanges, localNextHtlcId: Long, remoteNextHtlcId: Long, payments: Map<Long, UUID>, remoteNextCommitInfo: Either<WaitingForRevocation, PublicKey>, commitInput: Transactions.InputInfo, remotePerCommitmentSecrets: ShaChain, channelId: ByteVector32, remoteChannelData: EncryptedChannelData)
Content copied to clipboard
Commitment Spec
Link copied to clipboard
data class CommitmentSpec(htlcs: Set<DirectedHtlc>, feerate: FeeratePerKw, toLocal: MilliSatoshi, toRemote: MilliSatoshi)
Content copied to clipboard
Directed Htlc
Link copied to clipboard
sealed class DirectedHtlc
Content copied to clipboard
Error Information Leak
Link copied to clipboard
data class ErrorInformationLeak(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments) : ChannelStateWithCommitments
Content copied to clipboard
Extended Private Key KSerializer
Link copied to clipboard
object ExtendedPrivateKeyKSerializer : KSerializer<DeterministicWallet.ExtendedPrivateKey>
Content copied to clipboard
Extended Public Key KSerializer
Link copied to clipboard
object ExtendedPublicKeyKSerializer : KSerializer<DeterministicWallet.ExtendedPublicKey>
Content copied to clipboard
Htlc Tx And Sigs
Link copied to clipboard
data class HtlcTxAndSigs(txinfo: Transactions.TransactionWithInputInfo.HtlcTx, localSig: ByteVector64, remoteSig: ByteVector64)
Content copied to clipboard
Incoming Htlc
Link copied to clipboard
Init Funder
Link copied to clipboard
data class InitFunder(temporaryChannelId: ByteVector32, fundingAmount: Satoshi, pushAmount: MilliSatoshi, initialFeerate: FeeratePerKw, fundingTxFeerate: FeeratePerKw, localParams: LocalParams, remoteInit: Init, channelFlags: Byte, channelConfig: ChannelConfig, channelType: ChannelType)
Content copied to clipboard
Key Path KSerializer
Link copied to clipboard
Local Changes
Link copied to clipboard
data class LocalChanges(proposed: List<UpdateMessage>, signed: List<UpdateMessage>, acked: List<UpdateMessage>)
Content copied to clipboard
Local Commit
Link copied to clipboard
data class LocalCommit(index: Long, spec: CommitmentSpec, publishableTxs: PublishableTxs)
Content copied to clipboard
Local Commit Published
Link copied to clipboard
data class LocalCommitPublished(commitTx: Transaction, claimMainDelayedOutputTx: Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx?, htlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.HtlcTx?>, claimHtlcDelayedTxs: List<Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)
Content copied to clipboard
Local Params
Link copied to clipboard
data class LocalParams(nodeId: PublicKey, fundingKeyPath: KeyPath, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, isFunder: Boolean, defaultFinalScriptPubKey: ByteVector, features: Features)
Content copied to clipboard
README: by design, we do not include channel private keys and secret here, so they won't be included in our backups (local files, encrypted peer backup, ...), so even if these backups were compromised channel private keys would not be leaked unless the main seed was also compromised. This means that they will be recomputed once when we convert serialized data to their "live" counterparts.
Negotiating
Link copied to clipboard
data class Negotiating(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, localShutdown: Shutdown, remoteShutdown: Shutdown, closingTxProposed: List<List<ClosingTxProposed>>, bestUnpublishedClosingTx: Transactions.TransactionWithInputInfo.ClosingTx?, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
Content copied to clipboard
Normal
Link copied to clipboard
data class Normal(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, shortChannelId: ShortChannelId, buried: Boolean, channelAnnouncement: ChannelAnnouncement?, channelUpdate: ChannelUpdate, remoteChannelUpdate: ChannelUpdate?, localShutdown: Shutdown?, remoteShutdown: Shutdown?, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
Content copied to clipboard
Offline
Link copied to clipboard
On Chain Feerates
Link copied to clipboard
data class OnChainFeerates(mutualCloseFeerate: FeeratePerKw, claimMainFeerate: FeeratePerKw, fastFeerate: FeeratePerKw)
Content copied to clipboard
Outgoing Htlc
Link copied to clipboard
Out Point KSerializer
Link copied to clipboard
object OutPointKSerializer : AbstractBtcSerializableKSerializer<OutPoint>
Content copied to clipboard
Private Key KSerializer
Link copied to clipboard
Public Key KSerializer
Link copied to clipboard
Publishable Txs
Link copied to clipboard
data class PublishableTxs(commitTx: Transactions.TransactionWithInputInfo.CommitTx, htlcTxsAndSigs: List<HtlcTxAndSigs>)
Content copied to clipboard
Remote Changes
Link copied to clipboard
data class RemoteChanges(proposed: List<UpdateMessage>, acked: List<UpdateMessage>, signed: List<UpdateMessage>)
Content copied to clipboard
Remote Commit
Link copied to clipboard
data class RemoteCommit(index: Long, spec: CommitmentSpec, txid: ByteVector32, remotePerCommitmentPoint: PublicKey)
Content copied to clipboard
Remote Commit Published
Link copied to clipboard
data class RemoteCommitPublished(commitTx: Transaction, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, claimHtlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.ClaimHtlcTx?>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)
Content copied to clipboard
Remote Params
Link copied to clipboard
data class RemoteParams(nodeId: PublicKey, dustLimit: Satoshi, maxHtlcValueInFlightMsat: Long, channelReserve: Satoshi, htlcMinimum: MilliSatoshi, toSelfDelay: CltvExpiryDelta, maxAcceptedHtlcs: Int, fundingPubKey: PublicKey, revocationBasepoint: PublicKey, paymentBasepoint: PublicKey, delayedPaymentBasepoint: PublicKey, htlcBasepoint: PublicKey, features: Features)
Content copied to clipboard
Revoked Commit Published
Link copied to clipboard
data class RevokedCommitPublished(commitTx: Transaction, remotePerCommitmentSecret: PrivateKey, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, mainPenaltyTx: Transactions.TransactionWithInputInfo.MainPenaltyTx?, htlcPenaltyTxs: List<Transactions.TransactionWithInputInfo.HtlcPenaltyTx>, claimHtlcDelayedPenaltyTxs: List<Transactions.TransactionWithInputInfo.ClaimHtlcDelayedOutputPenaltyTx>, irrevocablySpent: Map<OutPoint, Transaction>)
Content copied to clipboard
Satoshi KSerializer
Link copied to clipboard
Script Witness KSerializer
Link copied to clipboard
object ScriptWitnessKSerializer : AbstractBtcSerializableKSerializer<ScriptWitness>
Content copied to clipboard
Serialization
Link copied to clipboard
object Serialization
Content copied to clipboard
Sha Chain Serializer
Link copied to clipboard
Shutting Down
Link copied to clipboard
data class ShuttingDown(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, localShutdown: Shutdown, remoteShutdown: Shutdown, closingFeerates: ClosingFeerates?) : ChannelStateWithCommitments
Content copied to clipboard
Static Params
Link copied to clipboard
data class StaticParams(chainHash: ByteVector32, remoteNodeId: PublicKey)
Content copied to clipboard
Syncing
Link copied to clipboard
data class Syncing(state: ChannelStateWithCommitments, waitForTheirReestablishMessage: Boolean) : ChannelState
Content copied to clipboard
Transaction KSerializer
Link copied to clipboard
object TransactionKSerializer : AbstractBtcSerializableKSerializer<Transaction>
Content copied to clipboard
Tx In KSerializer
Link copied to clipboard
Tx Out KSerializer
Link copied to clipboard
Wait For Accept Channel
Link copied to clipboard
data class WaitForAcceptChannel(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, initFunder: InitFunder, lastSent: OpenChannel) : ChannelState
Content copied to clipboard
Wait For Funding Confirmed
Link copied to clipboard
data class WaitForFundingConfirmed(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, fundingTx: Transaction?, waitingSinceBlock: Long, deferred: FundingLocked?, lastSent: Either<FundingCreated, FundingSigned>) : ChannelStateWithCommitments
Content copied to clipboard
Wait For Funding Created
Link copied to clipboard
data class WaitForFundingCreated(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingAmount: Satoshi, pushAmount: MilliSatoshi, initialFeerate: FeeratePerKw, remoteFirstPerCommitmentPoint: PublicKey, channelFlags: Byte, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, lastSent: AcceptChannel) : ChannelState
Content copied to clipboard
Wait For Funding Internal
Link copied to clipboard
data class WaitForFundingInternal(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingAmount: Satoshi, pushAmount: MilliSatoshi, initialFeerate: FeeratePerKw, remoteFirstPerCommitmentPoint: PublicKey, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, lastSent: OpenChannel) : ChannelState
Content copied to clipboard
Wait For Funding Locked
Link copied to clipboard
data class WaitForFundingLocked(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, shortChannelId: ShortChannelId, lastSent: FundingLocked) : ChannelStateWithCommitments
Content copied to clipboard
Wait For Funding Signed
Link copied to clipboard
data class WaitForFundingSigned(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, channelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingTx: Transaction, fundingTxFee: Satoshi, localSpec: CommitmentSpec, localCommitTx: Transactions.TransactionWithInputInfo.CommitTx, remoteCommit: RemoteCommit, channelFlags: Byte, channelConfig: ChannelConfig, channelFeatures: ChannelFeatures, lastSent: FundingCreated) : ChannelState
Content copied to clipboard
Wait For Init
Link copied to clipboard
data class WaitForInit(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates) : ChannelState
Content copied to clipboard
Wait For Open Channel
Link copied to clipboard
data class WaitForOpenChannel(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteInit: Init) : ChannelState
Content copied to clipboard
Wait For Remote Publish Future Commitment
Link copied to clipboard
data class WaitForRemotePublishFutureCommitment(staticParams: StaticParams, currentTip: Pair<Int, BlockHeader>, currentOnChainFeerates: OnChainFeerates, commitments: Commitments, remoteChannelReestablish: ChannelReestablish) : ChannelStateWithCommitments
Content copied to clipboard
Waiting For Revocation
Link copied to clipboard
data class WaitingForRevocation(nextRemoteCommit: RemoteCommit, sent: CommitSig, sentAfterLocalCommitIndex: Long, reSignAsap: Boolean)
Content copied to clipboard