Bitcoin Forum
May 13, 2024, 08:46:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 [5]  All
  Print  
Author Topic: [ANN] Nxt Bounty for working JavaScript code that signs and verifies signatures  (Read 8353 times)
Jaguar0625 (OP)
Sr. Member
****
Offline Offline

Activity: 299
Merit: 250


View Profile
January 20, 2014, 01:06:03 AM
 #81

Could I kindly ask you to run test also on my code?

Are the inputs and outputs of all of your functions byte arrays?

almost, was it specified anywhere how input output should look like?

take a look at github, there's description of input output there.

Sorry, had a busy weekend. I just ran your code tonight:
Code:
Public Key  6.904ms
Sign          14.396ms
Verify        11.795ms

NEM - nem.io
1715590002
Hero Member
*
Offline Offline

Posts: 1715590002

View Profile Personal Message (Offline)

Ignore
1715590002
Reply with quote  #2

1715590002
Report to moderator
1715590002
Hero Member
*
Offline Offline

Posts: 1715590002

View Profile Personal Message (Offline)

Ignore
1715590002
Reply with quote  #2

1715590002
Report to moderator
1715590002
Hero Member
*
Offline Offline

Posts: 1715590002

View Profile Personal Message (Offline)

Ignore
1715590002
Reply with quote  #2

1715590002
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Jaguar0625 (OP)
Sr. Member
****
Offline Offline

Activity: 299
Merit: 250


View Profile
January 20, 2014, 04:32:13 AM
 #82

Finally finished my implementation: https://github.com/Jaguar0625/JavaScriptNrs.

Here are the numbers from my machine:
Code:
Public Key  3.027ms
Sign          6.169ms
Verify        4.371ms

The code I am using to run the timing tests is also in the repo under the browser_test subdirectory in case anyone wants to verify the numbers Smiley.

NEM - nem.io
BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 20, 2014, 10:02:58 AM
 #83

So now we have 3 implementations that are essentially equal.
If one of these implementations win, wouldn't it be fair to split?

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 20, 2014, 10:31:10 AM
 #84

Can I get some consolation prize?  Roll Eyes

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 20, 2014, 10:52:06 AM
 #85

I am willing to split among those who invested a lot of time as long as the other guys are willing to do the same Wink.

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 20, 2014, 12:45:29 PM
 #86

who invested a lot of time

...heh, much more than I expected + wanted Wink but it was fun

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
hoax
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
January 20, 2014, 03:11:00 PM
 #87

I am willing to split among those who invested a lot of time as long as the other guys are willing to do the same Wink.
I think it is fair.
BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 20, 2014, 07:47:13 PM
 #88

I am willing to split among those who invested a lot of time as long as the other guys are willing to do the same Wink.
I think it is fair.

What about you, Jaguar?

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 21, 2014, 06:48:44 PM
 #89

I am willing to split among those who invested a lot of time as long as the other guys are willing to do the same Wink.
I think it is fair.

What about you, Jaguar?

As for me, I don't think I deserve equal share, and if you don't mind splitting with me, I suggest 10/30/30/30

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 21, 2014, 07:04:51 PM
 #90

I am willing to split among those who invested a lot of time as long as the other guys are willing to do the same Wink.
I think it is fair.

What about you, Jaguar?

As for me, I don't think I deserve equal share, and if you don't mind splitting with me, I suggest 10/30/30/30

That's ok for me too Wink

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
Jaguar0625 (OP)
Sr. Member
****
Offline Offline

Activity: 299
Merit: 250


View Profile
January 22, 2014, 12:36:09 AM
 #91

I agreed to the split in the main thread. Good job to all!

@ NRS crypto algo bounty contestants:
Guys, u were talking about splitting the bounty to 4 parts. Did u come to a decision? If u r agree to split the bounty then I won't spend time on speedtests.

Well I wouldn't mind. We all spend a lot of time coding. I guess hoax and gimre don't mind too, but I haven't heard Jaguar's opinion yet.
I agree, 25% to everyone will be a fair.

I agree that a 25% split of the bounty is fair. We all spent a good amount of time on this.

Of course, I also wouldn't be opposed to one of the founders tipping the fastest implementation Wink.

You can send my next to the address in my signature.
Thanks!

NEM - nem.io
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 22, 2014, 06:54:27 AM
 #92

I guess these are proper acct numbers:

Jaguar: 14544444716689899421
hoax: 5637350814069846194
BloodyRookie: 11095639652683007953
me: 6669070404060812420


Jaguar, could you run one last batch of tests to confirm that your one is the fastest one?
I should have some time during weekend, I think we all could take one more look at it, and try push it to the limits Smiley

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 22, 2014, 08:45:44 AM
 #93

I think Jaguars version is fast in chrome. When testing with firefox, my version ist very fast.

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
freigeist
Hero Member
*****
Offline Offline

Activity: 1107
Merit: 534


View Profile
January 22, 2014, 11:24:20 AM
 #94

I think Jaguars version is fast in chrome. When testing with firefox, my version ist very fast.

Hello.

If this is the case maybe then each one of you should write in the code or
in the release notes on which platform the code has best performance.

For example a developer could implement all your scripts in his code
and load dynamically a script depending on the user platform to
achieve best performances.


gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
March 11, 2014, 08:01:03 AM
 #95

I think Jaguars version is fast in chrome. When testing with firefox, my version ist very fast.

Hello.

If this is the case maybe then each one of you should write in the code or
in the release notes on which platform the code has best performance.

For example a developer could implement all your scripts in his code
and load dynamically a script depending on the user platform to
achieve best performances.


I think web wallet on http://nxtra.org/nxt-client/ will include JS implementation.  (BloodyRookie's I guess)

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
San1ty
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
June 03, 2014, 07:44:36 PM
 #96

Anyone have any tips on getting the accountid from a public key?

static long getId(byte[] publicKey) throws Exception {
         
      byte[] publicKeyHash = MessageDigest.getInstance("SHA-256").digest(publicKey);
      BigInteger bigInteger = new BigInteger(1, new byte[] {publicKeyHash[7], publicKeyHash[6], publicKeyHash[5], publicKeyHash[4], publicKeyHash[3], publicKeyHash[2], publicKeyHash[1], publicKeyHash[0]});
      return bigInteger.longValue();
      
}

I found this snippet in the source code but trying to replicate in JS gives me no results.
Any help?

Found my posts helpful? Consider buying me a beer :-)!:
BTC - 1San1tyUGhfWRNPYBF4b6Vaurq5SjFYWk NXT - 17063113680221230777
Pages: « 1 2 3 4 [5]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!