public class DesignationContract extends ContractInterface
Role, e.g. be an oracle node or a validator node. This
contract provides the functionality to check the nodes designated under a particular role.| Constructor and Description |
|---|
DesignationContract() |
| Modifier and Type | Method and Description |
|---|---|
static void |
designateAsRole(byte role,
byte[][] publicKeys)
Designates the nodes with the given public keys to the
Role; |
static byte[][] |
getDesignatedByRole(byte role,
int index)
Gets the designates with the given
Role. |
getHashpublic static byte[][] getDesignatedByRole(byte role,
int index)
Role.role - The Role to get the designates for.index - The block index at which to get the designates for.public static void designateAsRole(byte role,
byte[][] publicKeys)
Role;role - The role of the designated nodes.publicKeys - The node's public keys.