Documentation
¶
Index ¶
- func AbiEncodeTaskResponse(h *bindings.IChainbaseServiceManagerTaskResponse) ([]byte, error)
- func ConvertToBN254G1Point(input *bls.G1Point) bindings.BN254G1Point
- func ConvertToBN254G2Point(input *bls.G2Point) bindings.BN254G2Point
- func GenerateTaskDetails(task *TaskDetails) string
- func GetTaskResponseDigest(h *bindings.IChainbaseServiceManagerTaskResponse) ([32]byte, error)
- func ReadFile(path string) ([]byte, error)
- func ReadYamlConfig(path string, o interface{}) error
- type TaskDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbiEncodeTaskResponse ¶
func AbiEncodeTaskResponse(h *bindings.IChainbaseServiceManagerTaskResponse) ([]byte, error)
func ConvertToBN254G1Point ¶
func ConvertToBN254G1Point(input *bls.G1Point) bindings.BN254G1Point
ConvertToBN254G1Point BN254.sol is a library, so bindings for G1 Points and G2 Points are only generated in every contract that imports that library. Thus the output here will need to be type casted if G1Point is needed to interface with another contract (eg: BLSPublicKeyCompendium.sol)
func ConvertToBN254G2Point ¶
func ConvertToBN254G2Point(input *bls.G2Point) bindings.BN254G2Point
func GenerateTaskDetails ¶
func GenerateTaskDetails(task *TaskDetails) string
func GetTaskResponseDigest ¶
func GetTaskResponseDigest(h *bindings.IChainbaseServiceManagerTaskResponse) ([32]byte, error)
GetTaskResponseDigest returns the hash of the TaskResponse, which is what operators sign over
func ReadYamlConfig ¶ added in v0.2.9
Types ¶
type TaskDetails ¶
type TaskDetails struct {
Version string
Chain string
TaskType string
Method string
StartBlock int
EndBlock int
Difficulty int
Deadline int64
}
func ParseTaskDetails ¶
func ParseTaskDetails(details string) (*TaskDetails, error)
Click to show internal directories.
Click to hide internal directories.