wesleyh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:26:43 PM |
|
First one (left) is total crap: /* v = x - h k mod q * returns v != 0 */ int sign25519(k25519 v, const k25519 h, const priv25519 x, const priv25519 k) { uint8_t tmp[65]; unsigned w, i; for (i = 0; i < 32; i++) tmp = x; for (i = 32; i < 64; i++) tmp = 0; mula32(tmp, h, k, 32, -1); divmod(tmp+32, tmp, 64, order25519, 32); for (w = 0, i = 0; i < 32; i++) w |= v = tmp; return w != 0; }
Second one is the one we use in Nxt. /* v = (x - h) s mod q */ int sign25519(k25519 v, const k25519 h, const priv25519 x, const spriv25519 s) { uint8_t tmp[65]; unsigned w; int i; for (i = 0; i < 32; i++) v = 0; i = mula_small(v, x, 0, h, 32, -1); mula_small(v, v, 0, order25519, 32, (15-(int8_t) v[31])/16); for (i = 0; i < 64; i++) tmp = 0; mula32(tmp, v, s, 32, 1); divmod(tmp+32, tmp, 64, order25519, 32); for (w = 0, i = 0; i < 32; i++) w |= v = tmp; return w != 0; }
That's bad. What about comparing outputs of NRS, ur and some other implementation, like NaCl? If ur and NaCl return the same values and NRS returns different ones then we could assume that ur implementation is correct. There is also this c# version https://github.com/hanswolff/curve25519Can't this ported to java? That one IS ported from java, and now you want to port it back? ;-)
|
|
|
|
BloodyRookie
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:27:04 PM |
|
That's bad.
What about comparing outputs of NRS, ur and some other implementation, like NaCl? If ur and NaCl return the same values and NRS returns different ones then we could assume that ur implementation is correct.
I don't have linux OS. Someone else must test that. But I am not sure that NaCl has that kind of signature/verify procedure for curve 25519.
|
Nothing Else Matters NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ NXT: 11095639652683007953
|
|
|
Eadeqa
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:27:51 PM |
|
No, but we can compare the results
|
|
|
|
BloodyRookie
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:32:09 PM |
|
That one IS ported from java, and now you want to port it back? ;-) No sign/verify in that version.
|
Nothing Else Matters NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ NXT: 11095639652683007953
|
|
|
tman10
Newbie
Offline
Activity: 21
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:35:42 PM |
|
By giving me all your nxt, I can send you one doge. Just do you a favor.
The catch is that I own 0 NXT atm. An exchange owns them. Yea...NxtChg owns some of mine...Anybody seen him?
|
|
|
|
bitcoinpaul
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:37:28 PM |
|
No, but we can compare the results We don't search for any version. In fact, we need to know if our (well, dmitry's) java version is working 100% correct. We have the original c implementation by djb - let some cryptographers (dmitry was no crypto guy!) port it for us!
|
|
|
|
klee
Legendary
Offline
Activity: 1498
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:38:52 PM |
|
Guys I need asap a plugin (or however it is called) for a site to accept donations in NXT! If it can't be linked to an actual NXT account, at least some graphics, buttons etc.
Thanks in advance.
|
|
|
|
Eadeqa
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:39:50 PM |
|
We have the original c implementation by djb - let some cryptographers (dmitry was no crypto guy!) port it for us!
The bug was in original c version. The port by dimitry is just fine.
|
|
|
|
wesleyh
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:41:14 PM |
|
Guys I need asap a plugin (or however it is called) for a site to accept donations in NXT! If it can't be linked to an actual NXT account, at least some graphics, buttons etc.
Thanks in advance.
You can use this as a base: http://nxtra.org/pay-button/ Unfinished since I'm working on a client, which is more important. Note that you'll have to finish it to either send nxt to a different address every time, or ask the user for their account ID so that you can confirm payment is received. Or if you don't care, you can use it as is... The QR code is bogus too.
|
|
|
|
opticalcarrier
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:41:45 PM |
|
Sometimes I feel a bit frustrated about the fee-system of Nxt, when I see these kind of blocks passing by: ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fi57.tinypic.com%2F14dh6rp.jpg&t=665&c=l7WvXWhAmslD2A) Fee = 0,0016% ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fi61.tinypic.com%2F2rw0o6a.jpg&t=665&c=Ip4HmL8JewG1dg) Fee = 33,33% It's not really fair and the rich are getting even richer this way. I love Nxt, but there are small flaws which needs to be addressed. The critics will talk negative about Nxt because of these kind of issues. Maybe a percentage instead of a fixed fee? Curious to hear about the options. I dont think approaching anything from the "rich getting richer" is a good idea in a 100% POS system. IMO though fee should be based on transaction byte size. And even if it were based on scale of larger transactions = larger fee, the 'rich' are more apt to mine those higher fee blocks anyways. There just doesnt seem to be a way to prevent the 'problem', as it were. Regardless, 'the critics' wont matter the more and more NXT features are released. The real concern here is people just giving up forging, or centralizing their forging power into central pools.
|
|
|
|
Daedelus
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:42:22 PM |
|
Am I right in seeing that the fees for the asset exchange get sent to the Genesis account (destroyed)?
|
|
|
|
gimre
Legendary
Offline
Activity: 866
Merit: 1002
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:43:46 PM |
|
That's bad.
What about comparing outputs of NRS, ur and some other implementation, like NaCl? If ur and NaCl return the same values and NRS returns different ones then we could assume that ur implementation is correct.
I don't have linux OS. Someone else must test that. But I am not sure that NaCl has that kind of signature/verify procedure for curve 25519. I don't remember seeing sign/verify in nacl. OT: having short break till Mon, in the meantime you guys can dump nxt price a bit ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
|
Passion_ltc
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:47:23 PM |
|
Guys I need asap a plugin (or however it is called) for a site to accept donations in NXT! If it can't be linked to an actual NXT account, at least some graphics, buttons etc.
Thanks in advance.
http://tipNXT.com/
|
|
|
|
Coinonaer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:48:42 PM |
|
What a heck is going on with BTER and Vircurex? I got 2 NXT deposits sitting in both exchanges since yesterday.. Emailed them but nobody responds.. Anyone else?
At my side its just a Vircurex Problem. They received the Nxt from Bter (Blockchain Explorer I see it) but didn´t deliver it further to my trading account.
|
|
|
|
opticalcarrier
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:49:34 PM |
|
Am I right in seeing that the fees for the asset exchange get sent to the Genesis account (destroyed)?
wow I hope thats not the case.... was hoping for some mega craziness for asset issuing, like there was for around block 22000 for alias release or it could just be that someone is forging on holms with the genesis acct. LOL
|
|
|
|
bitcoinpaul
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:49:44 PM |
|
We have the original c implementation by djb - let some cryptographers (dmitry was no crypto guy!) port it for us!
The bug was in original c version. The port by dimitry is just fine. I know one thing: we still need a cryptographer for auditing!
|
|
|
|
pinarello
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 266
Merit: 100
NXT is the future
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:50:58 PM |
|
By giving me all your nxt, I can send you one doge. Just do you a favor.
The catch is that I own 0 NXT atm. An exchange owns them. Yea...NxtChg owns some of mine...Anybody seen him? better read his posts he warned to get your NXT out of the exchange.
|
|
|
|
Come-from-Beyond
Legendary
Offline
Activity: 2142
Merit: 1010
Newbie
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:52:33 PM |
|
Am I right in seeing that the fees for the asset exchange get sent to the Genesis account (destroyed)?
No
|
|
|
|
tman10
Newbie
Offline
Activity: 21
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:52:55 PM |
|
By giving me all your nxt, I can send you one doge. Just do you a favor.
The catch is that I own 0 NXT atm. An exchange owns them. Yea...NxtChg owns some of mine...Anybody seen him? better read his posts he warned to get your NXT out of the exchange. Oh I got it out but only half....The other went "poof"
|
|
|
|
Eadeqa
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
February 12, 2014, 09:53:16 PM |
|
We have the original c implementation by djb - let some cryptographers (dmitry was no crypto guy!) port it for us!
The bug was in original c version. The port by dimitry is just fine. I know one thing: we still need a cryptographer for auditing! Yes, after implementing the fix from BloodyRookie. I think BloodyRookie patch should be implemented
|
|
|
|
|