You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
251 B

  1. package types
  2. const (
  3. PubKeyEd25519 = "ed25519"
  4. )
  5. func Ed25519ValidatorUpdate(pubkey []byte, power int64) ValidatorUpdate {
  6. return ValidatorUpdate{
  7. // Address:
  8. PubKey: PubKey{
  9. Type: PubKeyEd25519,
  10. Data: pubkey,
  11. },
  12. Power: power,
  13. }
  14. }