mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
[CORDA-1119] Sign in DB transaction (#2645)
This commit is contained in:
parent
0adc203d7a
commit
147f46fbf4
@ -248,7 +248,7 @@ object BFTSMaRt {
|
||||
/** Generates a transaction signature over the specified transaction [txId]. */
|
||||
protected fun sign(txId: SecureHash): TransactionSignature {
|
||||
val signableData = SignableData(txId, SignatureMetadata(services.myInfo.platformVersion, Crypto.findSignatureScheme(notaryIdentityKey).schemeNumberID))
|
||||
return services.keyManagementService.sign(signableData, notaryIdentityKey)
|
||||
return services.database.transaction { services.keyManagementService.sign(signableData, notaryIdentityKey) }
|
||||
}
|
||||
|
||||
// TODO:
|
||||
|
Loading…
x
Reference in New Issue
Block a user