Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
4481875
Topic
404321
Board
Announcements (Altcoins)
Re: [ANN] Nxt Bounty for working JavaScript code that signs and verifies signatures
by
hoax
on
13/01/2014, 09:18:22 UTC
Quote from: BloodyRookie on January 13, 2014, 09:16:09 AM
Quote from: hoax on January 13, 2014, 07:53:38 AM
Yep, i also mean approach from
https://github.com/kosta/confidential-publishing/blob/master/js/curve25519/curve25519.js
And your version of
verify
also return false for
Code:
var message = "Hello World!";
var secretPhrase = "secretPhrase";
Interesting...
And the original Java code also returns false on verifying
Yep, just noticed that. Damn, i spend a lot of time for fixing wrong testcase!
Ok, but your
verify
also return false for:
Quote from: Come-from-Beyond on January 06, 2014, 02:50:25 PM
Quote from: wesleyh on January 06, 2014, 02:41:55 PM
Can you give some input and expected output?
Verification:
public key = "7c3ff12215636a7b246dea25d5e446a91fa59a9150c6ed50d8126ee86a648b68"
message = "0000a9d63800a0057c3ff12215636a7b246dea25d5e446a91fa59a9150c6ed50d8126ee86a648b6
87e2fad81dbf18f2da0860100640000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000"
signature = "4f0626ccd4edebb17e9d06e928b5b4e944aa7ef88a111081919794a3e265c206f9d9b0ce42a8d2e
7f6d902a172159bcd39dcaab8468373258fccea9e5d2ed319"
output = true
(The data from
http://localhost:7874/nxt?requestType=getTransaction&transaction=14039483471941095190
and
http://localhost:7874/nxt?requestType=getTransactionBytes&transaction=14039483471941095190
)
Signing:
Similar, but take values from a transaction signed by ur account. This requires to reveal a secret phrase.
So, let's examine this approach further.