-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
enhancementNew feature or improvement.New feature or improvement.
Description
Describe the Feature
Hi,
It would be nice if we could have access to the not normalized yParity using _yParity similar to _s value.
that's because ethers normalizes 0x1b to 1 etc.. due to the issue reported for L2 nodes here: #4985
there is this other issue that says just use an old version that is not a good strategy long term:
#5084 (comment)
But in reality other issues show that those values are not necessarily meant to be normalized according to ethereum spec only value 0 or 1 should be okay 2 << 8
see:
- https://eips.ethereum.org/EIPS/eip-7702
- https://github.com/ethereum/execution-specs/blob/forks/amsterdam/src/ethereum/forks/prague/vm/eoa_delegation.py#L95-L96
- https://github.com/ethereum/go-ethereum/blob/master/crypto/crypto.go#L250
-https://github.com/hyperledger/besu/blob/main/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/CodeDelegation.java#L124-L128 - https://github.com/NethermindEth/nethermind/blob/master/src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs#L337-L338
Ideally it would be nice to be able to get the unnormalized/untouched yParity, if the yParity needs to be normalized for reasons i don't really understand could we have it as _yParity similar to _s for s value in other places.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvement.New feature or improvement.