diff options
author | RangerMauve <RangerMauve@hotmail.com> | 2018-09-08 16:04:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-08 16:04:19 -0400 |
commit | 2dd585a4860bffe915231c8a2a6218f040e38da8 (patch) | |
tree | 76391764ce46111e6a543b3e3b8a0e4a7c662b85 | |
parent | a5074640af3e97165335f0e175aa89bc2d4d95af (diff) | |
download | dat-deps-2dd585a4860bffe915231c8a2a6218f040e38da8.tar.gz dat-deps-2dd585a4860bffe915231c8a2a6218f040e38da8.zip |
Change verify function signature
-rw-r--r-- | proposals/0002-hypercore.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/proposals/0002-hypercore.md b/proposals/0002-hypercore.md index dcf7cd9..b5931ca 100644 --- a/proposals/0002-hypercore.md +++ b/proposals/0002-hypercore.md @@ -290,9 +290,7 @@ function sign (roots, secretKey) { return ed25519.detached.sign(hash, secretKey) } -function verify (roots, signature, publicKey) { - var hash = root_hash(roots) - +function verify (hash, signature, publicKey) { return ed25519.detached.verify(signature, publicKey) } ``` |