Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function validatorsUpdate(
  2. address[] memory newValidators,
  3. uint[] memory signers,
  4. uint8[] memory vs,
  5. bytes32[] memory rs,
  6. bytes32[] memory ss
  7. ) public {
  8. // validators should not sign a set that is equal to the current one to prevent spamming
  9. bytes32 message = keccak256(abi.encodePacked(newValidators, _nonce, _contractId, "V"));
  10. validateSignatures(message, signers, vs, rs, ss);
  11. _validators = newValidators;
  12. _nonce += 1;
  13. emit newValidatorsEvent(newValidators);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement