Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
colinxu2020 authored Feb 10, 2025
1 parent 13bf35b commit 616fc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sig = kp.sign(b"Hello World!", randomize = True) # sign the message randomized
kp.verify(b"Hello World!", sig) # -> True

digest = kp.pub.digest() # generate the digest of the public key so that other device could verify the sign
pub = PublicKey.from_digest(digest) # generate public key
pub = PublicKey.from_digest(digest, shake_256f) # recovery public key
pub.verify(b"Hello World!", sig) # -> True
pub.verify(b"Hello World", sig) # -> False
```
Expand Down

0 comments on commit 616fc61

Please sign in to comment.