scoin.hc

package scoin.hc

Types, utils and wire codecs related to the Hosted Channels protocol.

Type members

Classlikes

case class AnnouncementSignature(nodeSignature: ByteVector64, wantsReply: Boolean) extends HostedChannelMessage
case class HostedChannelBranding(rgbColor: Color, pngIcon: Option[ByteVector], contactInfo: String) extends HostedChannelMessage
case class InitHostedChannel(maxHtlcValueInFlight: MilliSatoshi, htlcMinimum: MilliSatoshi, maxAcceptedHtlcs: Int, channelCapacity: MilliSatoshi, initialClientBalance: MilliSatoshi, features: List[Int]) extends HostedChannelMessage
case class InvokeHostedChannel(chainHash: ByteVector32, refundScriptPubKey: ByteVector, secret: ByteVector) extends HostedChannelMessage
case class LastCrossSignedState(isHost: Boolean, refundScriptPubKey: ByteVector, initHostedChannel: InitHostedChannel, blockDay: Long, localBalance: MilliSatoshi, remoteBalance: MilliSatoshi, localUpdates: Long, remoteUpdates: Long, incomingHtlcs: List[UpdateAddHtlc], outgoingHtlcs: List[UpdateAddHtlc], remoteSigOfLocal: ByteVector64, localSigOfRemote: ByteVector64) extends HostedChannelMessage
case class ResizeChannel(newCapacity: Satoshi, clientSig: ByteVector64) extends HostedChannelMessage
case class StateOverride(blockDay: Long, localBalance: MilliSatoshi, localUpdates: Long, remoteUpdates: Long, localSigOfRemoteLCSS: ByteVector64) extends HostedChannelMessage
case class StateUpdate(blockDay: Long, localUpdates: Long, remoteUpdates: Long, localSigOfRemoteLCSS: ByteVector64) extends HostedChannelMessage

Value members