Lightning

object Lightning

Functions

nodeFee
Link copied to clipboard
common
fun nodeFee(baseFee: MilliSatoshi, proportionalFee: Long, paymentAmount: MilliSatoshi): MilliSatoshi
randomBytes
Link copied to clipboard
common
fun randomBytes(length: Int): ByteArray
randomBytes32
Link copied to clipboard
common
fun randomBytes32(): ByteVector32
randomBytes64
Link copied to clipboard
common
fun randomBytes64(): ByteVector64
randomKey
Link copied to clipboard
common
fun randomKey(): PrivateKey
randomKeyPath
Link copied to clipboard
common
fun randomKeyPath(length: Int): KeyPath
toLongId
Link copied to clipboard
common
fun toLongId(fundingTxHash: ByteVector32, fundingOutputIndex: Int): ByteVector32

Properties

secureRandom
Link copied to clipboard
common
val secureRandom: Random