Comments (3)
Please forgive me, I've been workign this most of the day and realise i have made a mistake - not injecting the custom (non default chain_id 80001 into the Eth::Signature.personal_recover method. I am now unblocked - there is no logic constraint within the code. Thankyou and apologies for any wasted thinking time !
from eth.rb.
https://github.com/q9f/eth.rb/blob/main/lib/eth/signature.rb
from eth.rb.
Inputs to this recover function :
blob (signature)
cceb4a6992bd6db76bf95f4408ab5266264234fd727204d926ac01d8fb5c124e1842964ddb622537689cb087a01080a507ff0ebbe9931302c95e1f84bb02fb2b1b
length is 130
r = cceb4a6992bd6db76bf95f4408ab5266264234fd727204d926ac01d8fb5c124e
s = 1842964ddb622537689cb087a01080a507ff0ebbe9931302c95e1f84bb02fb2b
v = 1b
v.to_i(16) = 27
chain_id = 80001
raise SignatureError, "Invalid signature v byte #{v} for chain ID #{chain_id}!" if v < chain_id
from eth.rb.
Related Issues (20)
- Not only ethereum net supporting (Gas Limit validation problem) HOT 3
- Auto set working gas fee values? HOT 2
- Personal signatures differ from metamask signatures HOT 1
- Geth version question HOT 1
- Invalid value for negative int from eth_call HOT 2
- Unpatch Geth
- missing bech32 depedency HOT 4
- client.rb is_a? Address HOT 2
- Abi::Event.decode_log raised an error HOT 1
- I can't pass an array of addresses to the smart contract.
- Signature Mismatch Issue with bytes HOT 9
- How call a method via Contract Proxy? HOT 6
- Upgrade from 0.4.X to 0.5.X Eth.configure issue HOT 3
- Unable to make ERC20 Transfer or any other transfer on self-hosted GETH Blockchain/Node HOT 6
- unable to build with clang: ./warnp.c:39:9: error: call to undeclared function 'strdup' HOT 1
- Signature Mismatch in Ruby vs. JavaScrip HOT 1
- eth call contract function get error IOError: execution reverted HOT 2
- Problem with fetching archive data HOT 2
- Unable to parse tuple response HOT 1
- ci: incompatible solc and geth version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eth.rb.