ecRecover

command
v0.0.0-...-e72145b Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

README

About

Issue reported by @guidovranken

Details

For the following parameters:

v: 0 r: 55066263022277343669578718895168534326250603453777594175500187360389116729240 s: 48646907407867090349717708413934355199316407403948578780406752048212980396201 msg: 6b8d2c81b11b2d699528dde488dbdf2f94293d0d33c32e347f255fa4a6c1f0a9

Tested on go-ethereum commit 62ad17fb0046243255048fbf8cb0882f48d8d850 (26 Aug 2021)

package main

import (
"github.com/theQRL/go-zond/core/vm/runtime"
"github.com/theQRL/go-zond/common"
"github.com/theQRL/go-zond/params"
"math/big"
)

import "C"

func main() {
input := []byte{
0x60, 0x60, 0x5a, 0x1a, 0x7f, 0x6b, 0x8d, 0x2c, 0x81, 0xb1, 0x1b, 0x2d,
0x69, 0x95, 0x28, 0xdd, 0xe4, 0x88, 0xdb, 0xdf, 0x2f, 0x94, 0x29, 0x3d,
0x0d, 0x33, 0xc3, 0x2e, 0x34, 0x7f, 0x25, 0x5f, 0xa4, 0xa6, 0xc1, 0xf0,
0xa9, 0x60, 0x00, 0x52, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x1b, 0x60, 0x20, 0x52, 0x7f, 0x79, 0xbe, 0x66, 0x7e, 0xf9, 0xdc, 0xbb,
0xac, 0x55, 0xa0, 0x62, 0x95, 0xce, 0x87, 0x0b, 0x07, 0x02, 0x9b, 0xfc,
0xdb, 0x2d, 0xce, 0x28, 0xd9, 0x59, 0xf2, 0x81, 0x5b, 0x16, 0xf8, 0x17,
0x98, 0x60, 0x40, 0x52, 0x7f, 0x6b, 0x8d, 0x2c, 0x81, 0xb1, 0x1b, 0x2d,
0x69, 0x95, 0x28, 0xdd, 0xe4, 0x88, 0xdb, 0xdf, 0x2f, 0x94, 0x29, 0x3d,
0x0d, 0x33, 0xc3, 0x2e, 0x34, 0x7f, 0x25, 0x5f, 0xa4, 0xa6, 0xc1, 0xf0,
0xa9, 0x60, 0x60, 0x52, 0x60, 0x20, 0x60, 0x80, 0x60, 0x80, 0x60, 0x00,
0x60, 0x00, 0x60, 0x01, 0x62, 0x98, 0x96, 0x80, 0xf1, 0x60, 0x40, 0x52,
0x5b, 0x36, 0x3d, 0x3d, 0x60, 0x21, 0x5a, 0x07}

    runtime.Execute(input, input, &runtime.Config{
        ChainConfig: params.MainnetChainConfig,
        Origin: common.BytesToAddress([]byte{0x12, 0x34}),
        BlockNumber: new(big.Int).SetUint64(9069000),
        GasLimit: 100000,
        GasPrice: new(big.Int).SetUint64(1),
        Time: new(big.Int).SetUint64(1548947453),
        Difficulty: new(big.Int).SetUint64(2557722798171005),
    })
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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