Documentation
¶
Index ¶
Constants ¶
View Source
const ( USigVerifierPrecompileAddress = "0x00000000000000000000000000000000000000ca" // VerifyEd25519Gas is the gas cost for verifying an Ed25519 signature. VerifyEd25519Gas uint64 = 4000 )
View Source
const VerifyEd25519Method = "verifyEd25519"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Precompile ¶
type Precompile struct {
cmn.Precompile
}
Precompile defines the precompile
func NewPrecompile ¶
func NewPrecompile() (*Precompile, error)
func (Precompile) IsTransaction ¶
func (Precompile) IsTransaction(method *abi.Method) bool
IsTransaction checks if the given method name corresponds to a transaction or query.
func (Precompile) RequiredGas ¶
func (p Precompile) RequiredGas(input []byte) uint64
func (Precompile) VerifyEd25519 ¶
func (p Precompile) VerifyEd25519( method *abi.Method, args []interface{}, ) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.