Local Key Manager
data class LocalKeyManager(seed: ByteVector, chainHash: ByteVector32) : 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
open override fun closingPubkeyScript(fundingPubKey: PublicKey): Pair<PublicKey, ByteArray>
Content copied to clipboard
commitment Point
Link copied to clipboard
open override fun commitmentPoint(shaSeed: ByteVector32, index: Long): PublicKey
Content copied to clipboard
open override fun commitmentPoint(channelKeyPath: KeyPath, index: Long): PublicKey
Content copied to clipboard
commitment Secret
Link copied to clipboard
open override fun commitmentSecret(shaSeed: ByteVector32, index: Long): PrivateKey
Content copied to clipboard
open override fun commitmentSecret(channelKeyPath: KeyPath, index: Long): PrivateKey
Content copied to clipboard
delayed Payment Point
Link copied to clipboard
open override fun delayedPaymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
funding Public Key
Link copied to clipboard
open override fun fundingPublicKey(keyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
new Funding Key Path
Link copied to clipboard
payment Point
Link copied to clipboard
open override fun paymentPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
recover Channel Keys
Link copied to clipboard
open override 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
open override fun revocationPoint(channelKeyPath: KeyPath): DeterministicWallet.ExtendedPublicKey
Content copied to clipboard
sign
Link copied to clipboard
open override fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey): ByteVector64
Content copied to clipboard
open override 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
open override 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