Elliptical Curve Digital Signature Algorithm (ECDSA)

ECDSA is a digital signature algorithm that makes use of ECC to create the key pairs used in the signing and verification process of the digital signature. Because of the advantages of ECC compared to other public-key algorithms, it is commonly used in blockchain applications to sign transactions or events.

ECDSA makes use of temporary key pairs to calculate a signature pair, R and S. A temporary private key k is chosen randomly on the elliptical curve, and the corresponding public key is calculated as P = k*G. The signature is calculated as follows:

S = k-1 (Hash(m) + dA * R) mod (p)

Variables used in the signing operation are defined as follows:

  • k is the temporary private key
  • R is the ...

Get Foundations of Blockchain now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.