ethereum

package
v0.0.0-...-95555d1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EcRecover

func EcRecover(Hash common.Hash, VRS []byte) (common.Address, error)

EcRecover an Ethereum secp256k1 ECDSA signature, by casting the inputs as a precompile request argument then returns the recovered ethereum address. Hash is a 32 bytes slices VRS is a 65 bytes slice.

It can be used to verify that a go implementation of ethereum signature and formatting complies with ecrecover standard through unit-tests

func PrecompiledEcRecover

func PrecompiledEcRecover(input []byte) ([]byte, error)

PrecompiledEcRecover is implemented following the precompiles implementation and thus guarantee to always return the same output as

https://github.com/ethereum/go-ethereum/blob/52f2461774bcb8cdd310f86b4bc501df5b783852/core/vm/contracts.go#L78

Types

This section is empty.

Jump to

Keyboard shortcuts

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