Skip to content

Commit

Permalink
Fix info on policy entries in Identity txn fam spec
Browse files Browse the repository at this point in the history
Each policy is a list of type/key pairs (not a type and key list)

Also corrected the proto code to match the contents of protos/identity.proto

Signed-off-by: Anne Chenette <chenette@bitwise.io>
  • Loading branch information
Anne Chenette authored and annechenette committed Oct 1, 2018
1 parent 5dea422 commit e25b0d7
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ State
Policies
--------
A policy will have a name and a list of entries. Each policy entry will have a
type and a key list. The type will be either PERMIT_KEY or DENY_KEY and the key
list will be a list of public keys.
list of type/key pairs. The type will be either PERMIT_KEY or DENY_KEY.
Each key in a type/key pair will be a public key.

.. code-block:: protobuf
Expand All @@ -55,22 +55,25 @@ list will be a list of public keys.
}
message Policy {
enum Type {
PERMIT_KEY = 0;
DENY_KEY = 1;
enum EntryType {
ENTRY_TYPE_UNSET = 0;
PERMIT_KEY = 1;
DENY_KEY = 2;
}
message Entry {
// Whether this is a PERMIT_KEY or DENY_KEY entry
Type type = 1;
// This should be a public key or * to refer to all participants.
string key = 2;
EntryType type = 1;
// This should a public key or * to refer to all participants.
string key = 2;
}
// name of the policy, this should be unique.
string name = 1;
// list of Entries
// The entries will be processed in order from first to last.
repeated Entry entries = 2;
}
Expand Down

0 comments on commit e25b0d7

Please sign in to comment.