Update README.md

This commit is contained in:
Bill Buchanan
2022-04-07 13:43:34 +01:00
committed by GitHub
parent 763d5d582c
commit 765df7d7b2

View File

@@ -167,42 +167,7 @@ What are the main advantages of having a variable key size and having a stream c
### L4
The ELLI method can be used to identify an RFID tag.
Can you run the following code and determine that it works (C and D should be the same)? Can you also explain how it works?
```Python
from os import urandom
from eccsnacks.curve25519 import scalarmult, scalarmult_base
import binascii
lamb = urandom(32)
a = scalarmult_base(lamb)
eps = urandom(32)
b = scalarmult_base(eps)
c = scalarmult(eps, a)
d = scalarmult(lamb, b)
print "RFID private key: ",binascii.hexlify(eps)
print "Reader private key: ",binascii.hexlify(lamb)
print
print "A value: ",binascii.hexlify(a)
print "B value: ",binascii.hexlify(b)
print "C value: ",binascii.hexlify(c)
print "D value: ",binascii.hexlify(d)
```
Repl.it: https://repl.it/@billbuchanan/elli
## 3 Zero-knowledge proof (ZKP)