Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1signature = sign(message, priv) | AThe mistake: exposing the private key, which must stay secret | |
| 2valid = verify(message, signature, pub) | Bif valid == True: | |
| 3ECDSA uses a private key to sign and a public key to verify | Cpriv, pub = gen_keys() | |
| 4A valid signature proves the message came from the claimed signer | DThe mistake: swapping the order of the message and signature arguments | |
| 5share_publicly(priv) | ECreating a signature for a message using the private key | |
| 6valid = verify(sig, msg, pub) | FChecking a signature's authenticity using the public key |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ECDSA — A digital signature algorithm that uses a private key to sign a message and the matching public key to verify it.signature = sign(message, priv)signature = sign(message, priv)valid = verify(message, signature, pub)priv, pub = gen_keys()if valid == True: