Pages:
Author

Topic: Nxt source code (Read 5757 times)

legendary
Activity: 2142
Merit: 1009
Newbie
December 24, 2013, 05:34:09 PM
#38
So it actually is a centralized currency?  

No. It's decentralized cryptoplatform where currency is only 1% of its features.


What is the distributed consensus mechanism?  What prevents attack?

The same as in Bitcoin. Replace coins with ASICs and think of Bitcoin.


I mean,  anyone can implement similar by grabbing a open transaction server and issuing 100 million coins.

I think u r wrong.


Oh well!!!  

...


Suckers born every minute.

Thank u for ur competent opinion.
legendary
Activity: 1498
Merit: 1000
December 24, 2013, 05:08:06 PM
#37
WTF?

Hi


It's a webapp with a bit of code that appears to manage the block chain.

It's a Java servlet that runs in a servlet container


What is the P2P protocol used?  What is on the payload?

JSON over HTTP with custom protocol. Set "communicationLoggingMask" to "7" in nxt/webapps/root/WEB-INF/web.xml to see all the payload.


How are peers discovered?

Each node has a set of well-known peers (listed in web.xml and easily changed by a user). Upon a launch a node connects to these peers and gets other peers via "getPeers" request.


Are people actually investing real money on this prototype?

Yes, but this is not a prototype.


Too many open questions.

Feel free to ask all of them.


Well, lucky for the folks who invested 21 BTC to own all of the coin!

This is impossible to launch a secure 100% PoS currency without distribution of all coins at once.


Code like bitcoinj (written in java) doesn't even cover wallets and mining and its like 20 times bigger than the code we find here for NXT.

Coz bitcoinj is an application, in Nxt most of the work is done by the container (Jetty)


Is this a complete joke?

No. This is an innovative cryptoplatform where payment transactions is just 1% of all the features.


I don't see any specialized libraries for networking (i.e. Protobuf etc).


Coz most of the work is done by the container (Jetty) and Java Virtual Machine.


So it actually is a centralized currency?  

What is the distributed consensus mechanism?  What prevents attack?

I mean,  anyone can implement similar by grabbing a open transaction server and issuing 100 million coins.

Oh well!!!  

Suckers born every minute.

You are lucky stupidity is centralised as a callus on your brain and it can be removed easily!
Ignore <- Ignore + 1
legendary
Activity: 868
Merit: 1000
Cryptotalk.org - Get paid for every post!
December 24, 2013, 05:01:07 PM
#36
WTF?

Hi


It's a webapp with a bit of code that appears to manage the block chain.

It's a Java servlet that runs in a servlet container


What is the P2P protocol used?  What is on the payload?

JSON over HTTP with custom protocol. Set "communicationLoggingMask" to "7" in nxt/webapps/root/WEB-INF/web.xml to see all the payload.


How are peers discovered?

Each node has a set of well-known peers (listed in web.xml and easily changed by a user). Upon a launch a node connects to these peers and gets other peers via "getPeers" request.


Are people actually investing real money on this prototype?

Yes, but this is not a prototype.


Too many open questions.

Feel free to ask all of them.


Well, lucky for the folks who invested 21 BTC to own all of the coin!

This is impossible to launch a secure 100% PoS currency without distribution of all coins at once.


Code like bitcoinj (written in java) doesn't even cover wallets and mining and its like 20 times bigger than the code we find here for NXT.

Coz bitcoinj is an application, in Nxt most of the work is done by the container (Jetty)


Is this a complete joke?

No. This is an innovative cryptoplatform where payment transactions is just 1% of all the features.


I don't see any specialized libraries for networking (i.e. Protobuf etc).


Coz most of the work is done by the container (Jetty) and Java Virtual Machine.


So it actually is a centralized currency?  

What is the distributed consensus mechanism?  What prevents attack?

I mean,  anyone can implement similar by grabbing a open transaction server and issuing 100 million coins.

Oh well!!!  

Suckers born every minute.
legendary
Activity: 2142
Merit: 1009
Newbie
December 24, 2013, 04:53:16 PM
#35
WTF?

Hi


It's a webapp with a bit of code that appears to manage the block chain.

It's a Java servlet that runs in a servlet container


What is the P2P protocol used?  What is on the payload?

JSON over HTTP with custom protocol. Set "communicationLoggingMask" to "7" in nxt/webapps/root/WEB-INF/web.xml to see all the payload.


How are peers discovered?

Each node has a set of well-known peers (listed in web.xml and easily changed by a user). Upon a launch a node connects to these peers and gets other peers via "getPeers" request.


Are people actually investing real money on this prototype?

Yes, but this is not a prototype.


Too many open questions.

Feel free to ask all of them.


Well, lucky for the folks who invested 21 BTC to own all of the coin!

This is impossible to launch a secure 100% PoS currency without distribution of all coins at once.


Code like bitcoinj (written in java) doesn't even cover wallets and mining and its like 20 times bigger than the code we find here for NXT.

Coz bitcoinj is an application, in Nxt most of the work is done by the container (Jetty)


Is this a complete joke?

No. This is an innovative cryptoplatform where payment transactions is just 1% of all the features.


I don't see any specialized libraries for networking (i.e. Protobuf etc).

Coz most of the work is done by the container (Jetty) and Java Virtual Machine.
legendary
Activity: 868
Merit: 1000
Cryptotalk.org - Get paid for every post!
December 24, 2013, 04:38:16 PM
#34
WTF?

It's a webapp with a bit of code that appears to manage the block chain.

What is the P2P protocol used?  What is on the payload?

How are peers discovered?

Are people actually investing real money on this prototype?

Too many open questions.

Well, lucky for the folks who invested 21 BTC to own all of the coin!

Code like bitcoinj (written in java) doesn't even cover wallets and mining and its like 20 times bigger than the code we find here for NXT.

Is this a complete joke?

I don't see any specialized libraries for networking (i.e. Protobuf etc).
hero member
Activity: 924
Merit: 1001
Unlimited Free Crypto
December 06, 2013, 10:32:43 AM
#33
If possible I want to review address generation algo, I find the domain of 10^20 is way less secure than 34 char in Base58 encoding.... I started to think I can bruteforce wallets....

https://bitcointalksearch.org/topic/m.3759147

Cool, thnx
legendary
Activity: 2142
Merit: 1009
Newbie
December 06, 2013, 08:17:19 AM
#32
If possible I want to review address generation algo, I find the domain of 10^20 is way less secure than 34 char in Base58 encoding.... I started to think I can bruteforce wallets....

https://bitcointalksearch.org/topic/m.3759147
hero member
Activity: 924
Merit: 1001
Unlimited Free Crypto
December 06, 2013, 08:05:31 AM
#31
If possible I want to review address generation algo, I find the domain of 10^20 is way less secure than 34 char in Base58 encoding.... I started to think I can bruteforce wallets....
hero member
Activity: 586
Merit: 501
December 05, 2013, 11:21:02 AM
#30
Im a java dev (not too proficient , mainly php but java too).

im a little bit surprised about the choice to make a web application with localhost browser connectivity and not some desktop application.

the java language i think its a good choice cause clients can go native in android too.
legendary
Activity: 2142
Merit: 1009
Newbie
December 03, 2013, 05:19:13 PM
#29
hi cfb

that is the meaning of variables height ? is it :
for the blockchain : the last block actually ''mining'' or compute for the whole blockchain
and for a personal account : the number of block compute since the account unlocked for the first time

?  

By example : Nxt start on 24 november :
Hypothesis : 1440 block compute per day
Suppose we are now 28 november midnight and i unlocked my account for the first time on 27 november at 0 am after midnight:
height of blockchain is 1440 * 4 days = 5760 (blocks since the start of nxt currency)
height of my account is 1440 * 2 days = 2880 (block since the first unlocked of my account)



I hope i'm clear ....

thanks

Height = number of a block counting Genesis block as Height 0. Accounts have nothing to do with block height.
newbie
Activity: 51
Merit: 0
December 03, 2013, 05:16:19 PM
#28
hi cfb

that is the meaning of variables height ? is it :
for the blockchain : the last block actually ''mining'' or compute for the whole blockchain
and for a personal account : the number of block compute since the account unlocked for the first time



By example : Nxt start on 24 november :
Hypothesis : 1440 block compute per day
Suppose we are now 28 november midnight and i unlocked my account for the first time on 27 november at 0 am after midnight:
height of blockchain is 1440 * 4 days = 5760 (blocks since the start of nxt currency)
height of my account is 1440 * 2 days = 2880 (block since the first unlocked of my account)



I hope i'm clear ....

thanks
legendary
Activity: 2142
Merit: 1009
Newbie
December 03, 2013, 09:19:34 AM
#27
I think he meant more using enums or constants so they have more meaningful context. The number 1440 by itself doesn't really have any meaning but if it's labeled BLOCK_NUMBER or something it's easier to understand it's purpose.

Ah, I see.
member
Activity: 126
Merit: 10
December 03, 2013, 09:12:51 AM
#26
There is not a single comment in the code,
this is very bad for the future ...

All constant values are hardcoded. Its better to segregate them into a separate class (or) define them at class level.

R u talking about values like 1440, 720, 60? They r set in stone.

I think he meant more using enums or constants so they have more meaningful context. The number 1440 by itself doesn't really have any meaning but if it's labeled BLOCK_NUMBER or something it's easier to understand it's purpose.
legendary
Activity: 2142
Merit: 1009
Newbie
December 03, 2013, 08:57:13 AM
#25
There is not a single comment in the code,
this is very bad for the future ...

All constant values are hardcoded. Its better to segregate them into a separate class (or) define them at class level.

R u talking about values like 1440, 720, 60? They r set in stone.
sr. member
Activity: 378
Merit: 250
December 03, 2013, 08:19:58 AM
#24
There is not a single comment in the code,
this is very bad for the future ...

All constant values are hardcoded. Its better to segregate them into a separate class (or) define them at class level.
sr. member
Activity: 248
Merit: 251
December 02, 2013, 10:15:18 AM
#23
Only beginner think not commenting is hardcore programming.

Sustainable software need comment, and open source one need even more !

Agree. That was just a sarcasm.

Ok, sorry, wasn't sure Smiley
legendary
Activity: 2142
Merit: 1009
Newbie
December 02, 2013, 09:44:23 AM
#22
Only beginner think not commenting is hardcore programming.

Sustainable software need comment, and open source one need even more !

Agree. That was just a sarcasm.
sr. member
Activity: 248
Merit: 251
December 02, 2013, 09:42:28 AM
#21
There is not a single comment in the code,
this is very bad for the future ...

Hardcore programmers don't bother with commenting.  Grin

Only beginner think not commenting is hardcore programming.

Sustainable software need comment, and open source one need even more !
legendary
Activity: 1498
Merit: 1000
December 02, 2013, 04:44:41 AM
#20
There is not a single comment in the code,
this is very bad for the future ...

Hardcore programmers don't bother with commenting.  Grin
LOL  Grin
legendary
Activity: 2142
Merit: 1009
Newbie
December 02, 2013, 03:54:02 AM
#19
There is not a single comment in the code,
this is very bad for the future ...

Hardcore programmers don't bother with commenting.  Grin
Pages:
Jump to: