precompiles

package module
v0.0.0-...-b505cfa Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

zytron-precompiles

Compile

  1. compile precompiles cargo build --release
  2. compile to geth env GO111MODULE=on go run build/ci.go install ./cmd/geth
  3. compile all make geth
  4. get file ls build/bin/geth ls target/release/libprecompiles.so

Functions

These functions need export as precompiles:

  1. anemoi hash
  2. en_on_bn254 (BabyJubjub)
  3. PlonK

License

This project is licensed under GPLv3.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrHandle

func ErrHandle(code byte) error

Types

type Anemoi

type Anemoi struct{}

func (*Anemoi) RegistryKey

func (a *Anemoi) RegistryKey() common.Address

func (*Anemoi) RequiredGas

func (a *Anemoi) RequiredGas(input []byte) uint64

func (*Anemoi) Run

func (a *Anemoi) Run(input []byte) ([]byte, error)

type EdOnBN254PointAdd

type EdOnBN254PointAdd struct{}

func (*EdOnBN254PointAdd) RegistryKey

func (a *EdOnBN254PointAdd) RegistryKey() common.Address

func (*EdOnBN254PointAdd) RequiredGas

func (a *EdOnBN254PointAdd) RequiredGas(input []byte) uint64

func (*EdOnBN254PointAdd) Run

func (a *EdOnBN254PointAdd) Run(input []byte) ([]byte, error)

type EdOnBN254ScalarMul

type EdOnBN254ScalarMul struct{}

func (*EdOnBN254ScalarMul) RegistryKey

func (a *EdOnBN254ScalarMul) RegistryKey() common.Address

func (*EdOnBN254ScalarMul) RequiredGas

func (a *EdOnBN254ScalarMul) RequiredGas(input []byte) uint64

func (*EdOnBN254ScalarMul) Run

func (a *EdOnBN254ScalarMul) Run(input []byte) ([]byte, error)

type VerifyMatchmaking

type VerifyMatchmaking struct{}

func (*VerifyMatchmaking) RegistryKey

func (m *VerifyMatchmaking) RegistryKey() common.Address

func (*VerifyMatchmaking) RequiredGas

func (m *VerifyMatchmaking) RequiredGas(input []byte) uint64

func (*VerifyMatchmaking) Run

func (m *VerifyMatchmaking) Run(input []byte) ([]byte, error)

type VerifyShuffle

type VerifyShuffle struct{}

func (*VerifyShuffle) RegistryKey

func (s *VerifyShuffle) RegistryKey() common.Address

func (*VerifyShuffle) RequiredGas

func (s *VerifyShuffle) RequiredGas(input []byte) uint64

func (*VerifyShuffle) Run

func (s *VerifyShuffle) Run(input []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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