mirror of
https://github.com/corda/corda.git
synced 2025-06-18 15:18:16 +00:00
Marked TransactionBuilder.signWith() as deprecated.
This commit is contained in:
@ -97,6 +97,7 @@ open class TransactionBuilder(
|
||||
/** The signatures that have been collected so far - might be incomplete! */
|
||||
protected val currentSigs = arrayListOf<DigitalSignature.WithKey>()
|
||||
|
||||
@Deprecated("Use ServiceHub.signInitialTransaction() instead.")
|
||||
fun signWith(key: KeyPair): TransactionBuilder {
|
||||
check(currentSigs.none { it.by == key.public }) { "This partial transaction was already signed by ${key.public}" }
|
||||
val data = toWireTransaction().id
|
||||
|
Reference in New Issue
Block a user