mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
Marked TransactionBuilder.signWith() as deprecated.
This commit is contained in:
parent
b52d3706eb
commit
0cb41c55a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user