tendermint/types/pubkey.go
Ethan Buchman 90c3a469ff Revert "Merge pull request #247 from tendermint/bucky/no-gogo"
This reverts commit ef79007433878cec815a2a704ec5fcfa2686412f, reversing
changes made to bcfdd6dbaf10c947392e2b0a097b65b5fb247baf.
2018-05-31 21:45:14 -04:00

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,
}
}