From 2dd585a4860bffe915231c8a2a6218f040e38da8 Mon Sep 17 00:00:00 2001 From: RangerMauve Date: Sat, 8 Sep 2018 16:04:19 -0400 Subject: Change verify function signature --- proposals/0002-hypercore.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proposals') 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) } ``` -- cgit v1.2.3