On signatures, standards, and my mom
Heyo,
Jules here, from Cyfrin.
Yesterday was Valentines day and I had a buggy date with my Soulmate.sol π.
This week
βπΌ How do blockchain signatures work?
π Cyfrin ecosystem updates
π Signature standards, replay attacks, and ECDSA algorithm
Blockchain signatures and ECDSA algorithm
Signatures are a means for authentication - allowing operations, such as sending transactions, to verify that they originated from the intended signer account.
π€·π»ββοΈ What are they used for? Validating computation performed off-chain and authorize transactions on behalf of a signer.
β‘οΈ When are signatures created?
Signing a message: Hashing the message and then combining this hash with the private key using the ECDSA algorithm.
Digital signature: Generated upon signing a message, serving as a means to verify that the signer is in fact the intended account.
Unique signature: Each distinct message produces a unique hash, resulting in a correspondingly unique signature.
πͺπ½ Why is the ECDSA algorithm important?
ECDSA creates the private key based out of an integer (i.e
[0..n-1]
) and the public key (a point in the blockchainβs ellyptic curve)ECDSA is in charge of creating signatures using a cryptographic function (i.e.
SHA256
) to generate a securely random numberECDSA verifies the signature by taking the signed message, the signature produced from the signing algorithm and the public key. The output is a
valid
boolean.
β Read more about the ECDSA and signatures here!
This week at Cyfrin
π¨ You spoke, we listened. Cyfrin Updraft now has dark mode available!
π Want to showcase your security skills? You can now add CodeHawks to your LinkedIn experience!
β¨ Sneak peek - the Cyfrin brand is getting a lil update. Stay tuned!
Related articles
βπΌ Everything you need to know about Ethereum signature standards.
β‘οΈ A replay attack happens when an attacker intercepts and manipulates data transmission over a network. Hint hint, they are connected to signatures!
π©π»βπ» How does the ECDSA algorithm create signatures?
Let us know what you thought of this new version of the newsletter here!
Sending lots of cyber love,
Jules π€Έπ»