core

package
v0.0.0-...-3258e73 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemClock = Clock{Now: time.Now}

Functions

func ConvertBytesToQuorumNumbers

func ConvertBytesToQuorumNumbers(input []byte) []eigentypes.QuorumNum

func ConvertToBN254G1Point

func ConvertToBN254G1Point(input *bls.G1Point) taskmanager.BN254G1Point

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) taskmanager.BN254G2Point

func CreateEthClientWithCollector

func CreateEthClientWithCollector(id, url string, enableMetrics bool, registry *prometheus.Registry, logger sdklogging.Logger) (safeclient.SafeClient, error)

func HashBNG1Point

func HashBNG1Point(input taskmanager.BN254G1Point) ([32]byte, error)

func HashMessageWithPrefix

func HashMessageWithPrefix(prefix []byte, data []byte) ([32]byte, error)

func Keccak256

func Keccak256(data []byte) [32]byte

Types

type Clock

type Clock struct {
	Now func() time.Time
}

type Metricable

type Metricable interface {
	EnableMetrics(registry *prometheus.Registry) error
}

Directories

Path Synopsis
mocks
Code generated by MockGen.
Code generated by MockGen.
mocks
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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