github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/abci/types/pubkey.go (about) 1 package types 2 3 const ( 4 PubKeyEd25519 = "ed25519" 5 ) 6 7 func Ed25519ValidatorUpdate(pubkey []byte, power int64) ValidatorUpdate { 8 return ValidatorUpdate{ 9 // Address: 10 PubKey: PubKey{ 11 Type: PubKeyEd25519, 12 Data: pubkey, 13 }, 14 Power: power, 15 } 16 }