mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-03 18:42:14 +00:00
This reverts commit ef79007433878cec815a2a704ec5fcfa2686412f, reversing changes made to bcfdd6dbaf10c947392e2b0a097b65b5fb247baf.
17 lines
233 B
Go
17 lines
233 B
Go
package types
|
|
|
|
const (
|
|
PubKeyEd25519 = "ed25519"
|
|
)
|
|
|
|
func Ed25519Validator(pubkey []byte, power int64) Validator {
|
|
return Validator{
|
|
// Address:
|
|
PubKey: PubKey{
|
|
Type: PubKeyEd25519,
|
|
Data: pubkey,
|
|
},
|
|
Power: power,
|
|
}
|
|
}
|