Bitcoin Forum
June 29, 2024, 05:49:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 21, 2014, 06:40:48 PM
Didn't have the time to read the complete Thread. So perhaps this was mentioned already.

Nevertheless try for flaw:

In verify() of Transaction we just set public key of account to public key that was contained in transaction. But we do not check if signature belongs to the public key. (This is done only at the end of the method, after we already set accounts public key).

If someone creates (invalid) transactions with public key of accounts that never made a transaction before, this accounts will never be able to make valid transactions.

Sounds to easy for the flaw, but I think this should get fixed by first checking the signature and then set the accounts public key.
 
Code:
boolean verify() throws Exception {

Account account = accounts.get(Account.getId(senderPublicKey));
if (account == null) {

return false;

} else if (account.publicKey == null) {

account.publicKey = senderPublicKey;

} else if (!Arrays.equals(senderPublicKey, account.publicKey)) {

return false;

}

byte[] data = getBytes();
for (int i = 64; i < 128; i++) {

data[i] = 0;

}

return Crypto.verify(signature, data, senderPublicKey);

}


2  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 12, 2014, 08:09:42 PM
Well I said that block contains only id of previous block and that blocks can be manipulated afterwards (this sounds close to the hashed flaw description). And no, I decompiled nothing. Nobody asked for more detailed description. But I don't rely on the coins, so no problem here. Have fun with the remaining flaws. When I have more time I will also dig into it again.
3  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 12, 2014, 06:09:17 PM
You just need to cause a collission of the block ID, which is 64bit.

Critical flaw description:
Code:
Only 64 bits of the previous block hash are used. This gives ability to inject blocks with another set of transactions.

SHA256-hash:
Code:
888f278c773d39b8334a651d84ee78871bd0e5d45e09be8fdb190ba1b2969530

Looks legit. Where to send 10K to?

Isn't it what I mentioned some time ago? Not in such detail, but this is the flaw that I meant. Here my own quotes:

Is it one of the flaws that blocks do not contain the hashcode of their previous block?

Block class does not contain hashcode of previous block, only block id and pushBlock() does not check anything into this direction. Isn't it possible to modify old blocks afterwards (By the original author of the block)?
4  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 06, 2014, 03:22:15 PM
Mh demotivating to find flaws in old code that are fixed already in the new one.
5  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 06, 2014, 03:12:18 PM
Block class does not contain hashcode of previous block, only block id and pushBlock() does not check anything into this direction. Isn't it possible to modify old blocks afterwards (By the original author of the block)?
6  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 06, 2014, 03:05:34 PM
Is it one of the flaws that blocks do not contain the hashcode of their previous block?
7  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 04, 2014, 07:33:20 PM
And who gets the fees?

This will be determined by the next block.

And how gets the forked chain joined together again?

It doesn't.

One of the two blocks will have a better cumulative difficulty (comparable to a nonce in BTC) and will "win". So the worse block becomes an orphan and every client just builds on the better block.
This process hsould happen quite often because of network latency and such.

Ah, now I found it in the code. cumulative difficulty was the buzzword I needed. Thanks a lot Come-from-Beyond and  ricot.
8  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 04, 2014, 07:03:50 PM
And who gets the fees?

This will be determined by the next block.

And how gets the forked chain joined together again?
9  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 04, 2014, 06:48:50 PM
I am new to cryptocurrencies, so please excuse my noob question:

What happens if two distinct nodes forge the same block at the same time (assume both are allowed to, though both blocks are valid)?

They'll create a fork in a chain of predictions, which is a good thing. This is why block timestamps r seconds, not milliseconds.

And who gets the fees?
10  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 04, 2014, 06:42:36 PM
I am new to cryptocurrencies, so please excuse my noob question:

What happens if two distinct nodes forge the same block at the same time (assume both are allowed to, though both blocks are valid)?
11  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Official Anoncoin chat thread (including history) on: January 04, 2014, 11:26:04 AM
Does anyone have a clue why the net hashrate of anoncoin nearly doubled the last few hours? Are there any possitive news about anoncoin that I missed? I really like anoncoin but it gets harder and harder to mine with my 700 Kh/s Sad.
The price of AnonCoin Doubled in last few days.  Thats what happened.  Smiley

But the question is why. Just someone big stumbled across anoncoin by accident? Or is it the ordinary up and down? Just want to know if I have missed some good news like e.g. a new store accepts anoncoin, clearnet or darknet. Or some new features have been announced?
12  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code flaw reports on: January 03, 2014, 09:35:15 PM
Perhaps someone would find the flaws if this code would be maintainable (e.g. JavaDoc and modularization) Tongue.
13  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Official Anoncoin chat thread (including history) on: January 03, 2014, 09:23:19 PM
Does anyone have a clue why the net hashrate of anoncoin nearly doubled the last few hours? Are there any possitive news about anoncoin that I missed? I really like anoncoin but it gets harder and harder to mine with my 700 Kh/s Sad.
14  Alternate cryptocurrencies / Altcoin Discussion / Re: Nxt source code analysis (QA) on: January 03, 2014, 09:02:08 PM
Now we know why this source code was not published before. This is a ticking time bomb. If you try to refactor this, it will explode. Do not take it personally  Smiley. Just my opininion and experience.
15  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Official Anoncoin chat thread (including history) on: December 31, 2013, 12:56:00 PM
Hi all,

I am new here, so first of all let me say thanks to all that work on anoncoin. I think there is an urgent need for a digital but also anonymous currency. This is the reason why I started mining anoncoins some weeks ago (Unfortunately not really much because difficulty is so high Sad).

But now I read the news that Zerocoin will be released as a standalone altcoin. That worries me. Isn't this a big issue for the anoncoin project. Would anoncoin be able to compete with a standalone Zerocoin? What unique selling point would remain to anoncoin?

I am looking forward to hear your thoughts about his.





16  Other / Beginners & Help / My duty as a newbie on: December 31, 2013, 12:13:06 PM
is to post something here. Well, here it is:

I am reading in this forum for some weeks and now I want also to write something. Thanks to all that make this forum possible with their blood, sweat and tears. It is a great place to meet other crypto currency fans.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!