sign

abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey): ByteVector64

Return

a signature generated with the input private key

Parameters

tx

input transaction

privateKey

private 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

Return

a signature generated with a private key generated from the input private key and the remote point.

Parameters

tx

input transaction

privateKey

private key

remotePoint

remote point

abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey, remoteSecret: PrivateKey): ByteVector64

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

Return

a signature generated with a private key generated from the input private key and the remote secret.

Parameters

tx

input transaction

privateKey

private key

remoteSecret

remote secret