diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/request/LookupKeyById.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/request/LookupKeyById.avsc new file mode 100644 index 000000000..4d03eeeb1 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/request/LookupKeyById.avsc @@ -0,0 +1,20 @@ +{ + "type": "record", + "name": "LookUpKeyById", + "namespace": "net.corda.data.crypto.wire.ops.sync.request", + "doc": "Request to lookup for keys by their key ids. The maximum number of items is 20", + "fields": [ + { + "name": "keyIds", + "type": [ + "net.corda.data.crypto.ShortHashes", + "net.corda.data.crypto.SecureHashes" + ], + "doc": "List of key ids" + }, + { + "name": "tenantId", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdError.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdError.avsc new file mode 100644 index 000000000..d80fce93a --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdError.avsc @@ -0,0 +1,12 @@ +{ + "type": "record", + "name": "LookupKeyByIdError", + "namespace": "net.corda.data.crypto.wire.ops.sync.response", + "doc": "Error result when looking up a key by Id.", + "fields": [ + { + "name": "errorMessage", + "type": "net.corda.data.ExceptionEnvelope" + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdResponse.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdResponse.avsc new file mode 100644 index 000000000..2bef961e5 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/sync/response/LookupKeyByIdResponse.avsc @@ -0,0 +1,16 @@ +{ + "type": "record", + "name": "LookupKeyByIdResponse", + "namespace": "net.corda.data.crypto.wire.ops.sync.response", + "doc": "Result of the Lookup key by ID operation", + "fields": [ + { + "name": "response", + "type": [ + "net.corda.data.crypto.wire.CryptoSigningKeys", + "net.corda.data.crypto.wire.ops.sync.response.LookupKeyByIdError" + ], + "doc": "Response's payload, depends on the requested operation" + } + ] +} \ No newline at end of file