github.com/okex/exchain@v1.8.0/libs/tendermint/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  }