mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
17 lines
251 B
Go
17 lines
251 B
Go
package types
|
|
|
|
const (
|
|
PubKeyEd25519 = "ed25519"
|
|
)
|
|
|
|
func Ed25519ValidatorUpdate(pubkey []byte, power int64) ValidatorUpdate {
|
|
return ValidatorUpdate{
|
|
// Address:
|
|
PubKey: PubKey{
|
|
Type: PubKeyEd25519,
|
|
Data: pubkey,
|
|
},
|
|
Power: power,
|
|
}
|
|
}
|