precompiledContracts

package
v0.0.0-...-d4bb699 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContractsMaxAddress = 16

Variables

View Source
var Contracts = [ContractsMaxAddress]PrecompiledContract{
	1:  &ecRecover{},
	2:  &sha256hash{},
	3:  &ripemd160hash{},
	4:  &dataCopy{},
	5:  &bigModExp{},
	6:  &bn256AddIstanbul{},
	7:  &bn256ScalarMulIstanbul{},
	8:  &bn256PairingIstanbul{},
	9:  &blake2F{},
	10: &senderOrgId{},
	11: &senderRole{},
	12: &senderPk{},
	13: &creatorOrgId{},
	14: &creatorRole{},
	15: &creatorPk{},
}

Functions

func IsPrecompiledContract

func IsPrecompiledContract(address *evmutils.Int) bool

Types

type PrecompiledContract

type PrecompiledContract interface {
	//SetValue(v string)
	GasCost(input []byte) uint64
	Execute(input []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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