sign
abstract fun sign(tx: Transactions.TransactionWithInputInfo, privateKey: PrivateKey): ByteVector64
Content copied to clipboard
Return
a signature generated with the input private key
Parameters
tx
input transaction
private Key
private 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
Return
a signature generated with a private key generated from the input private key and the remote point.
Parameters
tx
input transaction
private Key
private key
remote Point
remote point
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
Return
a signature generated with a private key generated from the input private key and the remote secret.
Parameters
tx
input transaction
private Key
private key
remote Secret
remote secret