Jaguar0625 (OP)
|
|
January 20, 2014, 01:06:03 AM |
|
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: Public Key 6.904ms Sign 14.396ms Verify 11.795ms
|
NEM - nem.io
|
|
|
Jaguar0625 (OP)
|
|
January 20, 2014, 04:32:13 AM |
|
Finally finished my implementation: https://github.com/Jaguar0625/JavaScriptNrs. Here are the numbers from my machine: 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 .
|
NEM - nem.io
|
|
|
BloodyRookie
|
|
January 20, 2014, 10:02:58 AM |
|
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
Activity: 866
Merit: 1002
|
|
January 20, 2014, 10:31:10 AM |
|
Can I get some consolation prize?
|
|
|
|
BloodyRookie
|
|
January 20, 2014, 10:52:06 AM |
|
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 .
|
Nothing Else Matters NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ NXT: 11095639652683007953
|
|
|
gimre
Legendary
Offline
Activity: 866
Merit: 1002
|
|
January 20, 2014, 12:45:29 PM |
|
who invested a lot of time
...heh, much more than I expected + wanted but it was fun
|
|
|
|
hoax
Newbie
Offline
Activity: 36
Merit: 0
|
|
January 20, 2014, 03:11:00 PM |
|
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 . I think it is fair.
|
|
|
|
BloodyRookie
|
|
January 20, 2014, 07:47:13 PM |
|
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 . 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
Activity: 866
Merit: 1002
|
|
January 21, 2014, 06:48:44 PM |
|
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 . 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
|
|
|
|
BloodyRookie
|
|
January 21, 2014, 07:04:51 PM |
|
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 . 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
|
Nothing Else Matters NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ NXT: 11095639652683007953
|
|
|
Jaguar0625 (OP)
|
|
January 22, 2014, 12:36:09 AM |
|
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 . You can send my next to the address in my signature. Thanks!
|
NEM - nem.io
|
|
|
gimre
Legendary
Offline
Activity: 866
Merit: 1002
|
|
January 22, 2014, 06:54:27 AM |
|
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
|
|
|
|
BloodyRookie
|
|
January 22, 2014, 08:45:44 AM |
|
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
|
|
January 22, 2014, 11:24:20 AM |
|
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
Activity: 866
Merit: 1002
|
|
March 11, 2014, 08:01:03 AM |
|
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)
|
|
|
|
San1ty
|
|
June 03, 2014, 07:44:36 PM |
|
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
|
|
|
|