Bitcoin Forum
May 12, 2024, 10:36:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 [2193] 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 ... 2557 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2761531 times)
klee
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000



View Profile
March 13, 2014, 04:42:54 PM
 #43841

Is anything on NXT unit tested? EVER?

Dunno. Unit tests r not a panacea, more likely a modern trend between people who used to code for outsourcing. Good thing for u is that Jean-Luc decides how to test, not me.
Then why don't you write your code in assembly? Or binary?...

So Jean Luc, is the code Unit Tested?
1715553364
Hero Member
*
Offline Offline

Posts: 1715553364

View Profile Personal Message (Offline)

Ignore
1715553364
Reply with quote  #2

1715553364
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
msin
Legendary
*
Offline Offline

Activity: 1470
Merit: 1004


View Profile
March 13, 2014, 04:44:54 PM
 #43842

We shouldn't be looking at Nodecoins as a buy and sell commodity.  We should be looking at Nodecoins as a Nxt Utility coin.  For example.  If you want to use the DAC, you have to send 10 Nodecoins to retrieve Doge address, then you can transfer Doge to DAC.  If you want to use NxtCash for Mixing you have to send 10 Nodecoins to retrieve NxtCash address, then send Nxt for mixing....and so on.  We have some really great features that will be built on top of Nxt and we should charge users Nodecoins to use those features.   That will give them value.

But then you're basically inflating the currency and usurping value from Nxt as it should be the unit used for these purposes, no? These are roles that Nxt would take; doing so with nodecoin reduces Nxt's functions and in turn it's demand/value as opposed to nodecoin adding value on top of the system.
I am not sure if there is any usurping going on. Using this logic, if we started trading BTC using NXT AE, then somehow this hurts NXT? I dont think that is what would happen. I think the value of NXT would be proportional to the sum of the values of all of the NXT AE assets plus the current value. So if nodecoins become worth something, then NXT becomes incrementally more valuable.

Also, you are not taking into account the fact that without NXT, there is no nodecoin. This also seems to be what BCNext wanted from what I can remember.

If people deposit $1 billion USD into NXT and we have that much USD assets floating around inside AE, would that suck all the value out of NXT?

If nodecoins became worth $1 USD each, would that suck all the value out of NXT?

James

Trying to catch up on thread but wanted to comment on Nodecoin.  Why not make Nodecoin unlimited, is that possible in AE?  That way if you want to use DAC, NxtCash (or any Nxt service) and you don't have nodecoin, you have to run the client and mine nodecoin.  No one should have to purchase nodecoin from a miner.  

Why nodecoin would be required to use Nxt services? That would kill Nxt, i believe.

No it wouldn't, how would encouraging users to run forging clients kill Nxt?  These are optional features that have nothing to do with Nxt core.  Nodecoin shouldn't be bought or sold, it should be mined easily by running a client, then you can actually use those nodecoins.
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
March 13, 2014, 04:46:20 PM
 #43843

You should do the following:

1.) Get NXT.org in your hands!
I agree.

Quote
3.) Launch a SMF forum there with a few sections (General, Projects in development, Finished projects, Technical Discussion (Sub: Brainstorming), Promotion, META and 1 forum for each different languages)
Not necessarily wise to launch yet another forum when we have SMF at nextcoin.org with 32606 Posts in 3743 Topics by 5043 members already.
We will be happy to have the nxt.org forum directed to nextcoin.org and change the nextcoin.org brand to co-support nxt.org

Quote
If you have this, even beginner can start NRS and handle it! They just have to start the program, click on the button and they are in the wallet. Nothing more.. (They even don't need to know that this is not a "wallet")
http://offspring.dgex.com has all of this and more.

^[GS]^
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
March 13, 2014, 04:46:40 PM
 #43844

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Release 0.8.9

http://download.nxtcrypto.org/nxt-client-0.8.9.zip

sha256: fccd8dcb964a357e2f2546aa36dae83df7ff5e623a0dda2351cbe506c139c76d



NXTio updated to 0.8.9! and forge a block 3.00 NXT fee Cheesy

Details: http://www.mynxt.info/blockexplorer/details.php?action=bk&bk=15198513830532576873

http://www.nxtio.org/

Thanks Smiley
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
March 13, 2014, 04:46:52 PM
 #43845

Does anybody have a "hello world" example of using the Java API?
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
March 13, 2014, 04:47:37 PM
 #43846

Hey graviton, looking good on those bounties, well done!

Anyway, about point 2, then why did you not allow redirection to forums.nxtcrypto.org back in the day? Just wondering.

We will be happy to have the nxt.org forum directed to nextcoin.org and change the nextcoin.org brand to co-support nxt.org

wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
March 13, 2014, 04:48:05 PM
 #43847

Does anybody have a "hello world" example of using the Java API?

Gonna become a heavyweight client again?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
March 13, 2014, 04:48:41 PM
 #43848

Then why don't you write your code in assembly? Or binary?...

I do, coz it works without an operating system, on bare metal.
marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
March 13, 2014, 04:50:39 PM
 #43849

Does anybody have a "hello world" example of using the Java API?

Gonna become a heavyweight client again?

Nah... Just brainstorming for the InfCom regarding NXT network monitoring.

And you? Gonna implement Curve finally? ;-)
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
March 13, 2014, 04:51:04 PM
 #43850

Does anybody have a "hello world" example of using the Java API?

Gonna become a heavyweight client again?

Nah... Just brainstorming for the InfCom regarding NXT network monitoring.

And you? Gonna implement Curve finally? ;-)

With the new api it should be much easier, will start on it now Wink
klee
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000



View Profile
March 13, 2014, 04:51:49 PM
 #43851

Then why don't you write your code in assembly? Or binary?...

I do, coz it works without an operating system, on bare metal.
You do because you are bored to learn & code OOP
GCInc.
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500


View Profile WWW
March 13, 2014, 04:53:58 PM
 #43852

Hey graviton, looking good on those bounties, well done!
Thanks I like it that you like it.

Anyway, about point 2, then why did you not allow redirection to forums.nxtcrypto.org back in the day? Just wondering.
Several reasons, the most important being that I'm wiser now and consider nxt.org worth it.

marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
March 13, 2014, 04:54:31 PM
 #43853

Does anybody have a "hello world" example of using the Java API?

Gonna become a heavyweight client again?

Nah... Just brainstorming for the InfCom regarding NXT network monitoring.

And you? Gonna implement Curve finally? ;-)

With the new api it should be much easier, will start on it now Wink

Seriously, I assumed that the signing API calls would be a way around having to implement the Curve algo, but from what I understand you still need to, so I'm no longer sure what these calls are for. Just that you don't have to implement the "not enough funds" check?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
March 13, 2014, 04:57:17 PM
 #43854

Thanks, but neither worked.

I have some simple questions...

1) Calculating the HIT with SHA256(generationSignature, publicKey)...
*) generationSignature of the block - Okey
a) publicKey the "generator" of the block or my account? - Ur account.
b) hash("sha256", hex2bin($generationSignature) . $accountPublicKey); or hash("sha256", hex2bin($generationSignature) . hex2bin($accountPublicKey)); - Binary.

2) $deadline = $hit / ($baseTarget * $totalEffectiveBalance); or $deadline = $hit / ($baseTarget * $effectiveBalance);
a) $totalEffectiveBalance of getState()
b) $effectiveBalance my account (getBalance()). - This.

Thanks!
Okay!!! Thanks!

My problem is to get the HIT!  Undecided

Finally... which is correct?  Embarrassed
a) $hit = hash("sha256", hex2bin($generationSignature) . $accountPublicKey); (¿Only signature binary?)
b) $hit = hash("sha256", hex2bin($generationSignature) . hex2bin($accountPublicKey)); (¿All binary?)

PHP hash() function is "valid" for the made the SHA256?

and then this is correct?
Code:
$hit = substr($hit, 0, 8);
$hit = hexdec($hit);

Example output:
Quote
generationSignature = ef6e7257b95ea530384db7a24bf2c0415a091f1e99a0b9b4c712c13af3d71c68
publickey = 25ae5107a806e561488394ed5b59916d61c2f0110182e67a1aae19cd6bd86d0e
*)hash f41bff20e6e49f5a6ac431f59841ff54d152c1670b99609807ad172a6636b1fb    (All binary)
*)substr f41bff20
hit = 4095475488

Thank you very much Smiley

Change endianness.
msin
Legendary
*
Offline Offline

Activity: 1470
Merit: 1004


View Profile
March 13, 2014, 05:22:21 PM
 #43855

NXT AT PROJECT HELP.  NEED JAVA PROGRAMMER.

This is a request by CIYAM for help with AT.  Need to get on this asap

Quote:
The first thing we are going to need is a Java programmer to convert my C++ prototype (and yes I want the Java code to use the console so we can easily run test cases).

Unfortunately CfB isn't interested in doing this in a way that would allow for proper testing so I'd rather he wasn't actually involved in AT other than providing assistance with the Nxt AT API side of things (i.e. how Nxt AT can send and receive transactions as well as get other information and some general functions like say testing a hash value).
FrictionlessCoin
Legendary
*
Offline Offline

Activity: 868
Merit: 1000


Cryptotalk.org - Get paid for every post!


View Profile
March 13, 2014, 05:29:02 PM
 #43856

Is anything on NXT unit tested? EVER?

Dunno. Unit tests r not a panacea, more likely a modern trend between people who used to code for outsourcing. Good thing for u is that Jean-Luc decides how to test, not me.

no comment needed.

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

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
March 13, 2014, 05:44:00 PM
 #43857

Does anybody have a "hello world" example of using the Java API?

Gonna become a heavyweight client again?

Nah... Just brainstorming for the InfCom regarding NXT network monitoring.

And you? Gonna implement Curve finally? ;-)

With the new api it should be much easier, will start on it now Wink

Seriously, I assumed that the signing API calls would be a way around having to implement the Curve algo, but from what I understand you still need to, so I'm no longer sure what these calls are for. Just that you don't have to implement the "not enough funds" check?

Yes, you still need to implement curve, but don't need to construct whatever you need to send yourself and you can still rely on the error messages sent back from the server. I don't believe there is any other way?
antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
March 13, 2014, 05:45:04 PM
 #43858

Come on, unit tests are useful precisely when testing new features. Whether you like them or not is irrelevant.

One does not simply unit test a system with eventual consistency.

The same test ran 2 times will return different results if tested in real conditions. Testing in artificial conditions is quite useless coz require to conduct other types of tests.

I agree, but that's another story, irrelevant to whether a feature is new or not. And there are various levels where unit testing can be applied, not just the "outer network" level.

Don't get me wrong, it's one thing talking about unit tests and another thing actually writing them. I'm also not particularly fond of them, but I acknowledge their usefulness.

antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
March 13, 2014, 05:52:40 PM
 #43859

Yes, you still need to implement curve, but don't need to construct whatever you need to send yourself and you can still rely on the error messages sent back from the server. I don't believe there is any other way?

That's right. Previously, you needed to construct the raw transaction bytes and sign them. As of 0.8.9 you request the raw bytes from NRS, sign them and send them back.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
March 13, 2014, 05:53:11 PM
 #43860

Don't get me wrong, it's one thing talking about unit tests and another thing actually writing them. I'm also not particularly fond of them, but I acknowledge their usefulness.

Unfortunatelly, most of guys know that "unit tests should be used", but they don't use sanity checks of this statement. In our project (when we don't have spare Java coders) unit tests would hurt the development. So, guys, stop talking about unit tests made in a perfect world, come back to the reality. /endOfDiscussion.
Pages: « 1 ... 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 [2193] 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 ... 2557 »
  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!