protoc and update everything

This commit is contained in:
Ethan Buchman
2018-05-23 22:20:35 -04:00
parent 8bb04d7ef7
commit 3dbdc87edb
13 changed files with 263 additions and 911 deletions

16
types/pubkey.go Normal file
View File

@ -0,0 +1,16 @@
package types
const (
PubKeyEd25519 = "ed25519"
)
func Ed25519Validator(pubkey []byte, power int64) Validator {
return Validator{
// Address:
PubKey: PubKey{
Type: PubKeyEd25519,
Data: pubkey,
},
Power: power,
}
}