mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58: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")
|
@Table(name = "node_info_party_cert")
|
||||||
data class DBPartyAndCertificate(
|
data class DBPartyAndCertificate(
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "owning_key_hash")
|
@Column(name = "owning_key_hash", length = 64)
|
||||||
val owningKeyHash: String,
|
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.
|
//@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")
|
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}our_key_pairs")
|
||||||
class PersistentKey(
|
class PersistentKey(
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "public_key_hash")
|
@Column(name = "public_key_hash", length = 64)
|
||||||
var publicKeyHash: String,
|
var publicKeyHash: String,
|
||||||
|
|
||||||
@Lob
|
@Lob
|
||||||
|
@ -32,7 +32,7 @@ class PersistentNetworkMapService(network: MessagingService, networkMapCache: Ne
|
|||||||
@Table(name = "${NODE_DATABASE_PREFIX}network_map_nodes")
|
@Table(name = "${NODE_DATABASE_PREFIX}network_map_nodes")
|
||||||
class NetworkNode(
|
class NetworkNode(
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "node_party_key_hash")
|
@Column(name = "node_party_key_hash", length = 64)
|
||||||
var publicKeyHash: String,
|
var publicKeyHash: String,
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
|
Loading…
Reference in New Issue
Block a user