Documentation
¶
Overview ¶
Package p256verify implements an EVM precompile to verify P256 ECDSA signatures, as described in RIP-7212.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pack ¶
Pack packs the arguments into a byte slice compatible with Precompile.Run. It does NOT perform any validation on its inputs and therefore may panic if, for example, a big.Int with >256 bits is received. Keys and signatures generated with elliptic.GenerateKey and ecdsa.Sign are valid inputs.
Types ¶
type Precompile ¶
type Precompile struct{}
Precompile implements ECDSA verification on the P256 curve, as defined by RIP-7212.
func (Precompile) RequiredGas ¶
func (Precompile) RequiredGas([]byte) uint64
RequiredGas returns params.P256VerifyGas.
Click to show internal directories.
Click to hide internal directories.