KeyManager

interface KeyManager

Types

Companion
Link copied to clipboard
common
object Companion

Functions

channelKeyPath
Link copied to clipboard
common
open fun channelKeyPath(fundingKeyPath: KeyPath, channelConfig: ChannelConfig): KeyPath
open fun channelKeyPath(localParams: LocalParams, channelConfig: ChannelConfig): KeyPath
channelKeys
Link copied to clipboard
common
abstract fun channelKeys(fundingKeyPath: KeyPath): ChannelKeys

generate channel-specific keys and secrets

closingPubkeyScript
Link copied to clipboard
common
abstract fun closingPubkeyScript(fundingPubKey: PublicKey): Pair<PublicKey, ByteArray>
commitmentPoint
Link copied to clipboard
common
abstract fun commitmentPoint(shaSeed: ByteVector32, index: Long): PublicKey
abstract fun commitmentPoint(channelKeyPath: KeyPath, index: Long): PublicKey
commitmentSecret
Link copied to clipboard
common
abstract fun commitmentSecret(shaSeed: ByteVector32, index: Long): PrivateKey
abstract fun commitmentSecret(channelKeyPath: KeyPath, index: Long): PrivateKey
delayedPaymentPoint
Link copied to clipboard
common
abstract fun delayedPaymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
fundingPublicKey
Link copied to clipboard
common
abstract fun fundingPublicKey(keyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
htlcPoint
Link copied to clipboard
common
abstract fun htlcPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
newFundingKeyPath
Link copied to clipboard
common
abstract fun newFundingKeyPath(isFunder: Boolean): KeyPath
paymentPoint
Link copied to clipboard
common
abstract fun paymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
recoverChannelKeys
Link copied to clipboard
common
abstract fun recoverChannelKeys(fundingPubKey: PublicKey): RecoveredChannelKeys

generate channel-specific keys and secrets (note that we cannot re-compute the channel's funding private key)

revocationPoint
Link copied to clipboard
common
abstract fun revocationPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
sign
Link copied to clipboard
common
abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey): ByteVector64
abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey, remoteSecret: PrivateKey): ByteVector64

Ths method is used to spend revoked transactions, with the corresponding revocation key

abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey, remotePoint: PublicKey, sigHash: Int): ByteVector64

This method is used to spend funds send to htlc keys/delayed keys

Properties

legacyNodeKey
Link copied to clipboard
common
abstract val legacyNodeKey: DeterministicWallet.ExtendedPrivateKey

The node key that the same seed would have produced on the legacy eclair-based Phoenix implementation on Android. Useful to automate the migration.

nodeId
Link copied to clipboard
common
abstract val nodeId: PublicKey
nodeKey
Link copied to clipboard
common
abstract val nodeKey: DeterministicWallet.ExtendedPrivateKey

Inheritors

LocalKeyManager
Link copied to clipboard