mirror of
https://github.com/corda/corda.git
synced 2025-01-30 08:04:16 +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! */
|
/** The signatures that have been collected so far - might be incomplete! */
|
||||||
protected val currentSigs = arrayListOf<DigitalSignature.WithKey>()
|
protected val currentSigs = arrayListOf<DigitalSignature.WithKey>()
|
||||||
|
|
||||||
|
@Deprecated("Use ServiceHub.signInitialTransaction() instead.")
|
||||||
fun signWith(key: KeyPair): TransactionBuilder {
|
fun signWith(key: KeyPair): TransactionBuilder {
|
||||||
check(currentSigs.none { it.by == key.public }) { "This partial transaction was already signed by ${key.public}" }
|
check(currentSigs.none { it.by == key.public }) { "This partial transaction was already signed by ${key.public}" }
|
||||||
val data = toWireTransaction().id
|
val data = toWireTransaction().id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user