mirror of
https://github.com/corda/corda.git
synced 2025-06-16 14:18:20 +00:00
Fixes after os -> ent merge to networkManagement (#214)
* Quick fixes * Fix SignedNodeInfo Introduce network-management schema changes to reflect that NodeInfos can have multiple signatures. * Address Shams comments Store SignedNodeInfo as a blob for network management tool.
This commit is contained in:
committed by
Shams Asari
parent
c171237556
commit
4e80a33dea
@ -70,8 +70,8 @@ class SignedNetworkMap(val raw: SerializedBytes<NetworkMap>, val signature: Digi
|
||||
@Throws(SignatureException::class, CertPathValidatorException::class)
|
||||
fun verified(trustedRoot: X509Certificate?): NetworkMap {
|
||||
signature.by.publicKey.verify(raw.bytes, signature)
|
||||
// Assume network map cert is under the default trust root.
|
||||
if (trustedRoot != null) {
|
||||
// Assume network map cert is under the default trust root.
|
||||
X509Utilities.validateCertificateChain(trustedRoot, signature.by, trustedRoot)
|
||||
}
|
||||
return raw.deserialize()
|
||||
|
Reference in New Issue
Block a user