Bitcoin Forum
May 24, 2024, 12:08:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they believe that the creator of this topic displays some red flags which make them high-risk. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 [2]  All
  Print  
Author Topic: Nxt source code  (Read 5748 times)
SlyWax
Sr. Member
****
Offline Offline

Activity: 248
Merit: 251



View Profile
December 02, 2013, 01:42:28 PM
 #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 !
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 02, 2013, 01:44:23 PM
 #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.
SlyWax
Sr. Member
****
Offline Offline

Activity: 248
Merit: 251



View Profile
December 02, 2013, 02:15:18 PM
 #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
techguy
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
December 03, 2013, 12:19:58 PM
 #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.
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 03, 2013, 12:57:13 PM
 #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.
inkadnb
Member
**
Offline Offline

Activity: 126
Merit: 10


View Profile
December 03, 2013, 01:12:51 PM
 #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.

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 03, 2013, 01:19:34 PM
 #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.
arafel71
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
December 03, 2013, 09: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
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 03, 2013, 09: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.
PGPpfKkx
Hero Member
*****
Offline Offline

Activity: 586
Merit: 501


View Profile
December 05, 2013, 03:21:02 PM
 #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.
lophie
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1001

Unlimited Free Crypto


View Profile
December 06, 2013, 12:05:31 PM
 #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....

Will take me a while to climb up again, But where is a will, there is a way...
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 06, 2013, 12:17:19 PM
 #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://bitcointalk.org/index.php?topic=345619.msg3759147#msg3759147
lophie
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1001

Unlimited Free Crypto


View Profile
December 06, 2013, 02:32:43 PM
 #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://bitcointalk.org/index.php?topic=345619.msg3759147#msg3759147

Cool, thnx

Will take me a while to climb up again, But where is a will, there is a way...
FrictionlessCoin
Legendary
*
Offline Offline

Activity: 868
Merit: 1000


Cryptotalk.org - Get paid for every post!


View Profile
December 24, 2013, 08: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).

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 24, 2013, 08: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.
FrictionlessCoin
Legendary
*
Offline Offline

Activity: 868
Merit: 1000


Cryptotalk.org - Get paid for every post!


View Profile
December 24, 2013, 09: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.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
klee
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000



View Profile
December 24, 2013, 09: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
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
December 24, 2013, 09: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.
Pages: « 1 [2]  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!