You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
480 B
19 lines
480 B
5 years ago
|
package staking
|
||
|
|
||
|
import (
|
||
|
"github.com/ethereum/go-ethereum/crypto"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
isValidatorKeyStr = "Harmony/IsValidator/v0"
|
||
|
isValidatorStr = "Harmony/IsAValidator/v0"
|
||
|
isNotValidatorStr = "Harmony/IsNotAValidator/v0"
|
||
|
)
|
||
|
|
||
|
// keys used to retrieve staking related informatio
|
||
|
var (
|
||
|
IsValidatorKey = crypto.Keccak256Hash([]byte(isValidatorKeyStr))
|
||
|
IsValidator = crypto.Keccak256Hash([]byte(isValidatorStr))
|
||
|
IsNotValidator = crypto.Keccak256Hash([]byte(isNotValidatorStr))
|
||
|
)
|