mirror of
https://github.com/corda/corda.git
synced 2025-05-02 08:43: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]. */
|
/** Generates a transaction signature over the specified transaction [txId]. */
|
||||||
protected fun sign(txId: SecureHash): TransactionSignature {
|
protected fun sign(txId: SecureHash): TransactionSignature {
|
||||||
val signableData = SignableData(txId, SignatureMetadata(services.myInfo.platformVersion, Crypto.findSignatureScheme(notaryIdentityKey).schemeNumberID))
|
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:
|
// TODO:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user