Skip to content

Commit

Permalink
feat(prism-node): align Prism DID protobuf key type (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
patlo-iog committed Jan 5, 2023
1 parent f3636c8 commit a533507
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions prism-node/client/scala-client/api/grpc/node_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,24 @@ enum KeyUsage {
// to avoid malicious credentials being issued.
ISSUING_KEY = 2;

// This key-type is used for end-to-end encrypted communication, whoever wants to send a message should
// This key-type is used to establish a shared symmetric key for secure end-to end communication
// use this key-type to encrypt the content.
COMMUNICATION_KEY = 3;
KEY_AGREEMENT_KEY = 3;

// This key-type is used to authenticate requests or logging into services.
AUTHENTICATION_KEY = 4;

// This key-type is used for revoking credentials only, it should be kept in a safe place
// to avoid malicious credentials being issued.
REVOCATION_KEY = 5;

// This key-type is used to specify a verification method that might be used by the DID subject to invoke a cryptographic capability,
// such as the authorization to update the DID Document.
CAPABILITY_INVOCATION_KEY = 6;

// This is used to specify a mechanism that might be used by the DID subject to delegate a cryptographic capability to another party,
// such as delegating the authority to access a specific HTTP API to a subordinate.
CAPABILITY_DELEGATION_KEY = 7;
}

/**
Expand Down

0 comments on commit a533507

Please sign in to comment.