mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Added a TODO for combining the Notary verification logic with command sig verification
This commit is contained in:
parent
4affe7271b
commit
8f9413115b
@ -4,7 +4,6 @@ import co.paralleluniverse.fibers.Suspendable
|
||||
import com.google.common.util.concurrent.ListenableFuture
|
||||
import contracts.Cash
|
||||
import contracts.sumCashBy
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.DigitalSignature
|
||||
import core.crypto.Party
|
||||
@ -13,6 +12,8 @@ import core.messaging.SingleMessageRecipient
|
||||
import core.messaging.StateMachineManager
|
||||
import core.node.NodeInfo
|
||||
import core.protocols.ProtocolLogic
|
||||
import core.random63BitValue
|
||||
import core.seconds
|
||||
import core.utilities.ProgressTracker
|
||||
import core.utilities.trace
|
||||
import java.security.KeyPair
|
||||
@ -216,7 +217,9 @@ object TwoPartyTradeProtocol {
|
||||
|
||||
logger.trace { "Got signatures from seller, verifying ... " }
|
||||
|
||||
// TODO: figure out a way to do Notary verification along with other command signatures in SignedTransaction.verify()
|
||||
verifyCorrectNotary(stx.tx, signatures.notarySig)
|
||||
|
||||
val fullySigned = stx + signatures.sellerSig + signatures.notarySig
|
||||
fullySigned.verify()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user