Docsity

Blockchain - Digital signature, Appunti di Informatica

Toggle sidebar
bg1
Digital signature: 2 properties:
Only you can make your signature, but anyone who sees it can verify that it’s valid.
We want the signature to be tied to a particular document so that the signature cannot
be used to indicate your agreement or endorsement of a different document.
A digital signature scheme consists of 3 algorithms:
1) (sk, pk) := generateKeys(keysize) à it takes a key size and generates a key pair. The
sk is kept privately and used to sign messages. Anyone with the pk can verify your
signature.
2) sig := sign(sk, message) à it takes a message and a sk as input and outputs a signature
for message under sk.
3) isValid := verify(pk, message, sig) à it returns a boolean value, isValid, that will be
true if sig is a valid signature for message under public key pk, and false otherwise.
2 properties of the digital signature scheme:
The signature must validate correctly: the pk must validate the sk;
It has to be existentially unforgeable à unforgeability game:
An adversary/attacker (with the pk) who claims that he can forge signatures and a
challenger (with sk and pk) that will test this claim (real life conditions).
Once the attacker has seen a satisfying number of signed documents, he will attempt
to forge a signature a message for which he has not previously seen the signature.
The challenger runs the verify() algorithm to determine if the signature produced by
the attacker is a valid signature on M under the public verification key.
The signature scheme is unforgeable if and only if, no matter what algorithm the
adversary is using, his chance of successfully forging a message is extremely small.
Practical concerns: several signature algorithms are randomized and underestimating
randomness can lead to insecure algorithms; limit on the message size à sign the hash of
the message.
ECDSA: a U.S. government standard and is believed to be secure because it is very complex.
Public keys as identities: the idea is to take a public key and equate that to an identity of a
person or an actor in a system. In order for someone to speak for the identity pk, they must
know the corresponding secret key.
Why do we care? We can make new identity whenever we want with generateKeys().
Decentralized Identity Management (DIM)
Address: another name for identity, which is a hash of a public key.

Anteprima parziale del testo

Scarica Blockchain - Digital signature e più Appunti in PDF di Informatica solo su Docsity!

Digital signature : 2 properties: Only you can make your signature, but anyone who sees it can verify that it’s valid. We want the signature to be tied to a particular document so that the signature cannot be used to indicate your agreement or endorsement of a different document. A digital signature scheme consists of 3 algorithms:

  1. (sk, pk) := generateKeys(keysize) à it takes a key size and generates a key pair. The sk is kept privately and used to sign messages. Anyone with the pk can verify your signature.
  2. sig := sign(sk, message) à it takes a message and a sk as input and outputs a signature for message under sk.
  3. isValid := verify(pk, message, sig) à it returns a boolean value, isValid, that will be true if sig is a valid signature for message under public key pk, and false otherwise. 2 properties of the digital signature scheme: The signature must validate correctly: the pk must validate the sk; It has to be existentially unforgeable à unforgeability game: An adversary/attacker (with the pk) who claims that he can forge signatures and a challenger (with sk and pk) that will test this claim (real life conditions). Once the attacker has seen a satisfying number of signed documents, he will attempt to forge a signature a message for which he has not previously seen the signature. The challenger runs the verify() algorithm to determine if the signature produced by the attacker is a valid signature on M under the public verification key. The signature scheme is unforgeable if and only if, no matter what algorithm the adversary is using, his chance of successfully forging a message is extremely small. Practical concerns: several signature algorithms are randomized and underestimating randomness can lead to insecure algorithms; limit on the message size à sign the hash of the message. ECDSA: a U.S. government standard and is believed to be secure because it is very complex. Public keys as identities : the idea is to take a public key and equate that to an identity of a person or an actor in a system. In order for someone to speak for the identity pk, they must know the corresponding secret key. Why do we care? We can make new identity whenever we want with generateKeys(). Decentralized Identity Management (DIM) Address: another name for identity, which is a hash of a public key.