quasar

package
v0.8.21 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: GPL-3.0, LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Gas costs (optimized for Verkle witnesses)
	VerkleVerifyGas     = 3000  // Ultra-fast with PQ finality assumption
	BLSVerifyGas        = 5000  // BLS aggregate verification
	BLSAggregateGas     = 2000  // BLS signature aggregation
	RingtailVerifyGas   = 8000  // Ringtail (ML-DSA) verification
	HybridVerifyGas     = 10000 // BLS+Ringtail hybrid verification
	CompressedVerifyGas = 1000  // Compressed witness verification

	// Precompile addresses
	VerkleVerifyAddress   = "0x0300000000000000000000000000000000000020"
	BLSVerifyAddress      = "0x0300000000000000000000000000000000000021"
	BLSAggregateAddress   = "0x0300000000000000000000000000000000000022"
	RingtailVerifyAddress = "0x0300000000000000000000000000000000000023"
	HybridVerifyAddress   = "0x0300000000000000000000000000000000000024"
	CompressedAddress     = "0x0300000000000000000000000000000000000025"
)

Variables

View Source
var (
	ErrInvalidInput     = errors.New("invalid input")
	ErrInvalidSignature = errors.New("invalid signature")
	ErrThresholdNotMet  = errors.New("threshold not met")
)

Functions

func GetAllPrecompiles

func GetAllPrecompiles() map[common.Address]contract.StatefulPrecompiledContract

GetAllPrecompiles returns all Quasar precompiles

Types

This section is empty.

Jump to

Keyboard shortcuts

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