Companion

object Companion

Functions

invoke
Link copied to clipboard
common
operator fun invoke(s: String): ShortChannelId
operator fun invoke(blockHeight: Int, txIndex: Int, outputIndex: Int): ShortChannelId
isPeerId
Link copied to clipboard
common
fun isPeerId(shortChannelId: ShortChannelId): Boolean
peerId
Link copied to clipboard
common
fun peerId(remoteNodeId: PublicKey): ShortChannelId

This is a trick to encode a partial hash of node id in a short channel id. We use a prefix of 0xff to make it easily distinguishable from normal short channel id.

toShortId
Link copied to clipboard
common
fun toShortId(blockHeight: Int, txIndex: Int, outputIndex: Int): Long