Browse Source

consolidate util.go and pubkey.go to validator.go

pull/1780/head
Ethan Buchman 6 years ago
parent
commit
fac6bcd19e
2 changed files with 15 additions and 16 deletions
  1. +0
    -16
      types/pubkey.go
  2. +15
    -0
      types/validator.go

+ 0
- 16
types/pubkey.go View File

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

types/util.go → types/validator.go View File


Loading…
Cancel
Save