Module eip155_signature

Source
Expand description

Replay protection logic for v part of transaction’s signature

Functions§

add_chain_replay_protection
Adds chain id into v
extract_chain_id_from_legacy_v
extract_standard_v
Returns refined v 0 if v would have been 27 under “Electrum” notation, 1 if 28 or 4 if invalid.