Author

Topic: NXT :: descendant of Bitcoin - Updated Information - page 504. (Read 2761624 times)

legendary
Activity: 1162
Merit: 1005
Why my public node seen in active peers window has red flag and shown as disconnected, while it is really live and I can connect to it from outside?
full member
Activity: 468
Merit: 100
BTC38 is asking about which coin to add next on their exchange. Please take a few minutes to let them know about Nxt:

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



Done
sr. member
Activity: 392
Merit: 250
about Asset Exchange test
everything looks like ok.

found a api error

1. getTrade  OK
{"trades":[{"timestamp":8778667,"price":200,"bidOrderId":"10668185170919619908","askOrderId":"11342895551343357312","quantity":15},{"timestamp":8778667,"price":300,"bidOrderId":"10668185170919619908","askOrderId":"627868227848821830","quantity":10}]}

2.getAskOrder
http://127.0.0.1:6876/nxt?requestType=getAskOrder&order=11342895551343357312 (this api don’t corret)
{"errorCode":5,"errorDescription":"Unknown order"}
askorder or bidorder api cannot return result.

3.getTransaction OK (use this api replace getaskorder api)
http://127.0.0.1:6876/nxt?requestType=getTransaction&transaction=11342895551343357312

btw
i have issued some tulips(quantity=100). Tomorrow i will launch Tulip Bubble TEST, who earned most testNxt will win the match. I will donate 500 true Nxt to the winner.


Was this order completely filled? If so, it has been removed from the system, so it is normal to get an unknown order. Trades are used to keep track of past orders that have been already executed.
full member
Activity: 168
Merit: 100
antanst, aka Evil Bob impersonator, has raised a security weak spot in the current gateway design.
Each gateway currently generates a custom deposit address and when a deposit comes in, it immediately sweeps it to the main multisig acct. The duration of exposure is less than a second (could be set to 50 milliseconds), but it is exposure.

So, I am changing things so that there is no sweeping into a main account. All custom deposit addresses will be 2 of 3 multisig. This will require a fair amount of internal changes, but it eliminates the in transit deposit exposure. Now, all deposits will go directly into a multisig account and stay there until a withdraw request needs the funds.

The multigateway isnt perfect, but I will do everything possible to make sure it is as safe as I can make it.

Does anybody know how to setup google authenticator? I think it works by having a seed value associated with each user. I can put the encrypted value of this seed in the AM response to the user. Then for people who choose to activate this feature, they would need to go to a webpage, input their NXT acct # and authenticator token

With such a setup, can anybody think of how Evil Bob can attack the gateway? All I can think of it a spite DDos attack that would just slow things down, but no money lost. Any other attack vectors? Can someone forge the NXT acct # in the "sender" field in a confirmed AM transaction?

James

The difficulty arises with the user authenticator Google documentation . One Base32 ( secret ) key is expected . You must set the secret key to Base32 in KeePass and restrict your secret key to the base 32 character set : az, 2-7. KeePass allows "= " but not Google authenticator . Base32 length secret key Apart expressed in multiples of 8 characters.
A configuration that works :
Adjust the settings OTP Lock :
Long: 6
Secret key : abcdefghxz234567 ( Base32 )
Counter : 0 ( Dec)
OTP Number 3
Looking forward 9 (allows 3 failed attempts to unlock using KeePass newly generated OTPs before a recovery is needed because the counters have become too out of sync. )

Set Google Authenticator
secret key : abcdefghxz234567
counter : counter based
The first 6 OTPs are:
442843
724600
994 767
847 513
160505
583 080
Make sure you never lose the secret key or it will be permanently locked out of KeePass if counters lose synchronization. It also recognizes that the real secret is the secret key is not the OTP .

OtpKeyProv
Plugin Author: Dominik Reichl, Plugin Language: English
http://keepass.info/plugins.html#keeotp

OtpKeyProv is a key provider based on one-time passwords. After protecting your database using this plugin, you need to generate and enter one-time passwords in order to open your database.

All generator tokens that follow the OATH HOTP standard (RFC 4226) are supported.

Download plugin: [v2.2 for KeePass 2.20 and higher]
Download source code: [v2.2 for KeePass 2.20 and higher]

If you instead want KeePass to generate one-time passwords, see the {HMACOTP} placeholder. For generating time-based OTPs, see the KeeOtp and Tray TOTP plugins.
legendary
Activity: 1176
Merit: 1134
Nxt :: Asset Exchange Testing
Let´s get things organized!

I´ve created a project for Nxt AE on TestPad.

https://nxt.ontestpad.com

Anyone willing to test AE please join the site so I can add you to the project.

What is TestPad for and why to join?

We can

- write test cases
- run tests step-by-step
- track tests step-by-step
- track bugs
- track bugfixing progress


Please PM me your username after registration.
Fantastic!
Everybody can help with this as long as you can use wesley's web GUI

James
sr. member
Activity: 460
Merit: 250
any date set for launch of AE yet?? or still to be decided?
I proposed the 13th march, and asked if not some one should step up and take ownership for the launch of AE.
March 13th is not possible. I posted my plan some time ago:
https://bitcointalksearch.org/topic/m.5449690

The test network is ready, the known asset exchange bug looks fixed, but more testing is needed to make sure there are no others.

Now I need to start working on increasing the divisibility of amounts and fees, to allow for fractional amounts in the future, and I want to have this ready and tested before Asset Exchange is enabled on main net, because this type of transition would be really more difficult after AE is live. There is no time to do that before March 13th, end of March is more likely.


If that is realistic, it deserves full support. Let us grease the machines for the next 3 weeks then. I am testing.

In the meantime, looks like a great time to place an official client distribution for the average windows user on the table. NRS+wesleyh+mistafreeze installer. What's the status of this?

Do we need a name redux for the package?
sr. member
Activity: 392
Merit: 250
Is there an open source software with an online interface which we could use for logging testcases and bugs?
Something like JIRA?

For just keeping track of bugs, now we all should use the issue tracker on bitbucket, where the public source it.

There are tools like Jenkins and Hudson, to do continuous integration, but we don't have automated tests yet so it is a bit early to look into those.

For manual testing, writing test plans and keeping track of test results, somebody with more QA experience should speak up, I don't know what is out there.

We need an organized QA team and testing more urgently than we need java devs. The QA people can start contributing productively much faster than a new java dev can get familiar with the code, so we would see real results from getting a QA immediately.
legendary
Activity: 1176
Merit: 1134
10000 NXT BOUNTY for google authenticator help


I am announcing a 10000 NXT bounty for someone to help me integrate google authenticator to the gateway. It will be paid when the gateway passes the community created test plan for multigateway.

I need someone that can do the webpages needed for account # and token input and the server side code that properly correlates that. along with whatever other help I need. Especially making sure the process is secure.

James

Edit: I hope somebody knows where to update the list of bounties and will do so
hero member
Activity: 644
Merit: 500
Just throw AE in the water... it will either swim or drown!

best test is production, if it breaks we can fix it.

If it drowns it will take the whole Nxt ecosystem with it. We cannot just roll back the production blockchain, the way we had to do yesterday with the test blockchain - I asked test nodes to delete their copies.

We may have cosmetic bugs, but things like calculating account and asset balances have to be rock solid, otherwise it is free money for the lucky ones that first discover the bugs and run away after converting to Bitcoins. We had a bug where cancelling an asset order would give you back twice the original amount, imagine this on main net...


Yes, don't release anything until it has been thoroughly tested on testNet
hero member
Activity: 784
Merit: 500
Nxt :: Asset Exchange Testing
Let´s get things organized!

I´ve created a project for Nxt AE on TestPad.

https://nxt.ontestpad.com

Anyone willing to test AE please join the site so I can add you to the project.

What is TestPad for and why to join?

We can

- write test cases
- run tests step-by-step
- track tests step-by-step
- track bugs
- track bugfixing progress


Please PM me your username after registration.

Edit: TestPad is charging $9/month for every new user. I will pay for the subscription from my own pocket, so please, only join if you are serious about testing.
hero member
Activity: 644
Merit: 500

I did my research on random string generator libraries, it seems apache RandomStringUtils is not compromised.

Why aren't you using SecureRandom random = new SecureRandom()?

Simpler version from web

char[] allowedCharacters = {'a','b','c','1','2','3','4'};

SecureRandom random = new SecureRandom();
StringBuffer password = new StringBuffer();

for(int i = 0; i < PASSWORD_LENGTH; i++) {
    password.append(allowedCharacters[ random.nextInt(allowedCharacters.length) ]);
}

hero member
Activity: 784
Merit: 500
@Jean-Luc: Could you please have a look at the PM I´ve sent you yesterday? Thanks!
legendary
Activity: 1176
Merit: 1134
any date set for launch of AE yet?? or still to be decided?
I proposed the 13th march, and asked if not some one should step up and take ownership for the launch of AE.
March 13th is not possible. I posted my plan some time ago:
https://bitcointalksearch.org/topic/m.5449690

The test network is ready, the known asset exchange bug looks fixed, but more testing is needed to make sure there are no others.

Now I need to start working on increasing the divisibility of amounts and fees, to allow for fractional amounts in the future, and I want to have this ready and tested before Asset Exchange is enabled on main net, because this type of transition would be really more difficult after AE is live. There is no time to do that before March 13th, end of March is more likely.

fractional assets also? If the comment field is not possible, I can work around that, but please let me know so I can plan accordingly.

James
sr. member
Activity: 421
Merit: 250
HEAT Ledger
Just throw AE in the water... it will either swim or drown!

best test is production, if it breaks we can fix it.

If it drowns it will take the whole Nxt ecosystem with it. We cannot just roll back the production blockchain, the way we had to do yesterday with the test blockchain - I asked test nodes to delete their copies.

We may have cosmetic bugs, but things like calculating account and asset balances have to be rock solid, otherwise it is free money for the lucky ones that first discover the bugs and run away after converting to Bitcoins. We had a bug where cancelling an asset order would give you back twice the original amount, imagine this on main net...

Releasing now would be mad.
sr. member
Activity: 392
Merit: 250
Just throw AE in the water... it will either swim or drown!

best test is production, if it breaks we can fix it.

If it drowns it will take the whole Nxt ecosystem with it. We cannot just roll back the production blockchain, the way we had to do yesterday with the test blockchain - I asked test nodes to delete their copies.

We may have cosmetic bugs, but things like calculating account and asset balances have to be rock solid, otherwise it is free money for the lucky ones that first discover the bugs and run away after converting to Bitcoins. We had a bug where cancelling an asset order would give you back twice the original amount, imagine this on main net...

legendary
Activity: 1176
Merit: 1134
antanst, aka Evil Bob impersonator, has raised a security weak spot in the current gateway design.
Each gateway currently generates a custom deposit address and when a deposit comes in, it immediately sweeps it to the main multisig acct. The duration of exposure is less than a second (could be set to 50 milliseconds), but it is exposure.

So, I am changing things so that there is no sweeping into a main account. All custom deposit addresses will be 2 of 3 multisig. This will require a fair amount of internal changes, but it eliminates the in transit deposit exposure. Now, all deposits will go directly into a multisig account and stay there until a withdraw request needs the funds.

The multigateway isnt perfect, but I will do everything possible to make sure it is as safe as I can make it.

Does anybody know how to setup google authenticator? I think it works by having a seed value associated with each user. I can put the encrypted value of this seed in the AM response to the user. Then for people who choose to activate this feature, they would need to go to a webpage, input their NXT acct # and authenticator token

With such a setup, can anybody think of how Evil Bob can attack the gateway? All I can think of it a spite DDos attack that would just slow things down, but no money lost. Any other attack vectors? Can someone forge the NXT acct # in the "sender" field in a confirmed AM transaction?

James

hero member
Activity: 616
Merit: 500
James,

Some of us (me too) are feeling the danger of the competition.
It's normal to react like this. The reason why we are pushing is the same reason why you are working on NXT right now.

Because we love NXT and we want it to be the best.

Don't get us wrong by asking when it is ready.  Wink

We will be patiently waiting for a date.
sr. member
Activity: 421
Merit: 250
HEAT Ledger
Code:
import org.apache.commons.lang3.RandomStringUtils;

private String generatePassphrase() {
    // No space, backslash, newline, tab
    String symbols = "!\"$%^&*()-_=+[{]};:'@#~|,<.>/?"; //$NON-NLS-1$
    String alphaNum = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"; //$NON-NLS-1$
    int low = 70;
    int high = 90;
    Random random = new Random();
    int count = random.nextInt(high - low) + low;
    return RandomStringUtils.random(count, symbols + alphaNum);
}


Java.util.Random is not cryptographically secure.

Change it to SecureRandom or people using Offspring to create Nxt accounts would be vulnerable

http://stackoverflow.com/questions/11051205/difference-between-java-util-random-and-java-security-securerandom


"Random only has a 48-bit internal state and will repeat after 2^48 calls to nextLong() which means that it won't produce all possible long or double values."

This means all passwords created by OffSpring should be crackable.

It's not secure at all

In this case he is only using java.util.Random to pick up the length of the password, between 70 and 90 chars, so it does not need to be SecureRandom. Of course I hope the apache RandomStringUtils internally uses SecureRandom, this is where it would matter.


I did my research on random string generator libraries, it seems apache RandomStringUtils is not compromised.
sr. member
Activity: 364
Merit: 250
☕ NXT-4BTE-8Y4K-CDS2-6TB82
any date set for launch of AE yet?? or still to be decided?

Nobody seems interested to step up and launch.

I proposed the 13th march, and asked if not some one should step up and take ownership for the launch of AE.

no reactions.


How many AE tests have you run?
It is easy complaining about why isnt is ready yet, when is it going to be ready.

NXT peoples, please stop complaining. It is annoying to those of us that are working. If you want to help speed things up, then HELP!

There is a web interface that lets ANYBODY test. You can issue assets, hold trading competitions, all stuff any end user can do.

STOP COMPLAINING
START TESTING

James


Thank you, James.

We need different kind of test:
 - feature tests
 - load tests
 - border case tests (malicious tests)
hero member
Activity: 616
Merit: 500
I think people are complaining about forging because maybe we we're marketing forging wrong in the beginning.

We had to tell everyone that forging was for securing the network instead of earning money like mining Bitcoin or other coins.
We even made a video with someone on a boat forging comparing with Bitcoin.

What we're we thinking? So all those complaints we get now are our fault.

But...

James was so great to deliver those promise we made to the mass; Nodecoin.

Now, we can secure the network and earn something with it.
Jump to: