Key Manager
interface KeyManager
Content copied to clipboard
Types
Functions
channel Key Path
Link copied to clipboard
open fun channelKeyPath(fundingKeyPath: KeyPath, channelConfig: ChannelConfig): KeyPath
Content copied to clipboard
open fun channelKeyPath(localParams: LocalParams, channelConfig: ChannelConfig): KeyPath
Content copied to clipboard
channel Keys
Link copied to clipboard
generate channel-specific keys and secrets
closing Pubkey Script
Link copied to clipboard
abstract fun closingPubkeyScript(fundingPubKey: PublicKey): Pair<PublicKey, ByteArray>
Content copied to clipboard
commitment Point
Link copied to clipboard
abstract fun commitmentPoint(shaSeed: ByteVector32, index: Long): PublicKey
Content copied to clipboard
abstract fun commitmentPoint(channelKeyPath: KeyPath, index: Long): PublicKey
Content copied to clipboard
commitment Secret
Link copied to clipboard
abstract fun commitmentSecret(shaSeed: ByteVector32, index: Long): PrivateKey
Content copied to clipboard
abstract fun commitmentSecret(channelKeyPath: KeyPath, index: Long): PrivateKey
Content copied to clipboard
delayed Payment Point
Link copied to clipboard
abstract fun delayedPaymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
funding Public Key
Link copied to clipboard
abstract fun fundingPublicKey(keyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
new Funding Key Path
Link copied to clipboard
payment Point
Link copied to clipboard
abstract fun paymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
recover Channel Keys
Link copied to clipboard
abstract fun recoverChannelKeys(fundingPubKey: PublicKey): RecoveredChannelKeys
Content copied to clipboard
generate channel-specific keys and secrets (note that we cannot re-compute the channel's funding private key)
revocation Point
Link copied to clipboard
abstract fun revocationPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
sign
Link copied to clipboard
abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey): ByteVector64
Content copied to clipboard
abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey, remoteSecret: PrivateKey): ByteVector64
Content copied to clipboard
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
Content copied to clipboard
This method is used to spend funds send to htlc keys/delayed keys
Properties
Inheritors
LocalKeyManager
Link copied to clipboard