core

package
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ReadFile added in v0.2.9

func ReadFile(path string) ([]byte, error)

func ReadYamlConfig added in v0.2.9

func ReadYamlConfig(path string, o interface{}) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL