You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature is verified and tx.origin is calculated as follows:
defunsigned_tx_hash(tx: SignedBlobTransaction) ->Bytes32:
# The pre-image is prefixed with the transaction-type to avoid hash collisions with other tx hashers and typesreturnkeccak256(BLOB_TX_TYPE+ssz.serialize(tx.message))
defget_origin(tx: SignedBlobTransaction) ->Address:
sig=tx.signature# v = int(y_parity) + 27, same as EIP-1559returnecrecover(unsigned_tx_hash(tx), int(sig.y_parity)+27, sig.r, sig.s)
The hash of a signed blob transaction should be computed as:
Besides add new fields to
Transaction
type, accompanying ssz encode and decode must be implemented.They should be implemented in nim-eth.
then additional validation must be added:
tx.payload.len <= MAX_CALLDATA_SIZE = 2 ** 24
tx.accessList.len <= MAX_ACCESS_LIST_SIZE = 2 ** 24
tx.accessList[n].storageKeys.len <= MAX_ACCESS_LIST_STORAGE_KEYS = 2 ** 24
tx.blobVersionedHashes.len <= MAX_VERSIONED_HASHES_LIST_SIZE = 2 ** 24
The signature is verified and tx.origin is calculated as follows:
The hash of a signed blob transaction should be computed as:
The text was updated successfully, but these errors were encountered: