mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
Explicitly set length of key hash to 64.
This commit is contained in:
parent
0e5346caa1
commit
744f2c658a
@ -85,7 +85,7 @@ object NodeInfoSchemaV1 : MappedSchema(
|
||||
@Table(name = "node_info_party_cert")
|
||||
data class DBPartyAndCertificate(
|
||||
@Id
|
||||
@Column(name = "owning_key_hash")
|
||||
@Column(name = "owning_key_hash", length = 64)
|
||||
val owningKeyHash: String,
|
||||
|
||||
//@Id // TODO Do we assume that names are unique? Note: We can't have it as Id, because our toString on X500 is inconsistent.
|
||||
|
@ -36,7 +36,7 @@ class PersistentKeyManagementService(val identityService: IdentityService,
|
||||
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}our_key_pairs")
|
||||
class PersistentKey(
|
||||
@Id
|
||||
@Column(name = "public_key_hash")
|
||||
@Column(name = "public_key_hash", length = 64)
|
||||
var publicKeyHash: String,
|
||||
|
||||
@Lob
|
||||
|
@ -32,7 +32,7 @@ class PersistentNetworkMapService(network: MessagingService, networkMapCache: Ne
|
||||
@Table(name = "${NODE_DATABASE_PREFIX}network_map_nodes")
|
||||
class NetworkNode(
|
||||
@Id
|
||||
@Column(name = "node_party_key_hash")
|
||||
@Column(name = "node_party_key_hash", length = 64)
|
||||
var publicKeyHash: String,
|
||||
|
||||
@Column
|
||||
|
Loading…
Reference in New Issue
Block a user