Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Admin API › gRPC API › Packages › com.digitalasset.canton.crypto.admin.v30 › Services › VaultServiceView on Canton Network Docs ↗

GenerateEncryptionKey

Shared Administration›Protobuf›com.digitalasset.canton.crypto.admin.v30›GenerateEncryptionKey

com.digitalasset.canton.crypto.admin.v30

GenerateEncryptionKey

gRPC
RPC/com.digitalasset.canton.crypto.admin.v30.VaultService/GenerateEncryptionKey

Protocol Details

ProtocolgRPC
ServiceVaultService
RPCGenerateEncryptionKey
Client streamNo
Server streamNo

Inputs

GenerateEncryptionKeyRequest

Messagecom.digitalasset.canton.crypto.admin.v30.GenerateEncryptionKeyRequest
Client streamNo
key_specEncryptionKeySpec
namestring

Outputs

GenerateEncryptionKeyResponse

Messagecom.digitalasset.canton.crypto.admin.v30.GenerateEncryptionKeyResponse
Server streamNo
public_keyEncryptionPublicKey

com.digitalasset.canton.crypto.admin.v30.GenerateEncryptionKeyRequest

key_specEncryptionKeySpec
namestring

com.digitalasset.canton.crypto.admin.v30.GenerateEncryptionKeyResponse

public_keyEncryptionPublicKey
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.crypto.admin.v30.VaultService/GenerateEncryptionKey <<'EOF'
{
  "keySpec": "string",
  "name": "string"
}
EOF
OKapplication/json
OK
{
  "publicKey": "string"
}