In this track: Cryptography with intuition
advanced · 4 MIN READ

Signature r, s and v fields

Signature components need a stated encoding and signing context.

LET’S PICTURE IT

A stamped authorization has mathematical fields plus information for interpreting the stamp.

SEE IT FOR YOURSELF
From a public address to a verified signatureStep 1 / 4
From a public address to a verified signaturePublic address0x0000…0001Share to receiveAnother personCan read the addressCannot sign for youPublic identifier ≠ secret authorizationLocal signerPrivate key stays hereSign the chosen requestSigned requestMessage + signatureSecret key not includedThe moving packet represents a signature, not a keySignatureCheck the exact messageCheck the signing contextVerificationAuthorization checkedIntent still mattersValidity and safety are different questionsWallet interfaceReads public dataRequests authorizationNetwork stateBalances and recordsIndependent verificationNo wallet is connected in this local illustration

An address is public receiving information. It is not the private key that authorizes actions.

Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.

Read r and s as scalars

An ECDSA signature contains r and s values. Their byte encodings are not a message or a private key, and their validity depends on the signed digest and curve rules.

Interpret recovery information

Ethereum signature conventions include recovery parity information, often exposed through a v-like field. Its representation differs across legacy transactions and message-signature APIs.

Do not assume one universal v

Legacy chain-protected transaction v values encode additional information. A message signature using 27 or 28 is a different framing convention from a simple parity value.

Parse with the expected format

Some formats use compact encodings. Confirm length, normalization and context with a maintained library instead of splitting every signature using one unqualified rule.

Inspect the distinction

Common expanded message signature: r32 || s32 || recovery byte
Other conventions exist, including compact signatures.
Specify the format before parsing.

These are local teaching values, not a signature request or a live-chain lookup.

TURN UNDERSTANDING INTO PRACTICEOpen the Keccak-256 →
QUICK CHECK · NO PRESSURE

Is every v field universally just 27 or 28?

Your progress stays in this browser.
Keep exploring the original referenceethereum.org ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.