elective-stereophonic
elective-stereophonic
Digital Goods Store API
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: [1] 2  All

Author Topic: Digital Goods Store API  (Read 6976 times)

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Digital Goods Store API
« Reply #1 on: May 07, 2014, 04:49:11 am »

Would this be on real testnet soon?
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

voldemort628

  • Jr. Member
  • **
  • Karma: +6/-0
  • Offline Offline
  • Posts: 74
    • View Profile
Re: Digital Goods Store API
« Reply #2 on: May 07, 2014, 04:49:21 am »

Cool stuff!
Logged

coolfish

  • Full Member
  • ***
  • Karma: +6/-0
  • Offline Offline
  • Posts: 140
    • View Profile
Re: Digital Goods Store API
« Reply #3 on: May 07, 2014, 06:09:18 am »

When it will released?
Why i can not view the link?
Logged
MyNxt: 6869673164215466219

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Digital Goods Store API
« Reply #4 on: May 07, 2014, 06:45:46 am »

When it will released?

It is done when it is done. ;)

Why i can not view the link?

They are examples.
Logged

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #5 on: May 07, 2014, 05:21:59 pm »

They are not examples! I do have a server running at https://dgs.airdns.org:16875 , API access at https://dgs.airdns.org:16876/test , and the above links are all DGS related APIs. Had some problem with the network so it was down for a while, but now should be up again. Note that ports are not the defaults.

The code for the DGS API is still in the private repository only, so I can't release it on testnet for everyone to use. There is no point really yet, because there is no UI. When Wesley does the UI, I will make a release so anyone can use it on testnet, but then we have to move fast to also get it in production before the clones.

Now I should find the time to document what all those parameters in the API do...
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Digital Goods Store API
« Reply #6 on: May 07, 2014, 05:27:47 pm »

They are not examples! I do have a server running at https://dgs.airdns.org:16875 , API access at https://dgs.airdns.org:16876/test , and the above links are all DGS related APIs. Had some problem with the network so it was down for a while, but now should be up again. Note that ports are not the defaults.

The code for the DGS API is still in the private repository only, so I can't release it on testnet for everyone to use. There is no point really yet, because there is no UI. When Wesley does the UI, I will make a release so anyone can use it on testnet, but then we have to move fast to also get it in production before the clones.

Now I should find the time to document what all those parameters in the API do...

Maybe do private testing by inviting some people and this time release it to main net directly.

I would want to be invited :)_

 
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #7 on: May 07, 2014, 05:33:54 pm »

Maybe do private testing by inviting some people and this time release it to main net directly.

I would want to be invited :)_

This is what I thought, but then testnet will fork, those who don't have access to the DGS code will form their own fork because they will refuse DGS transactions. Maybe we should have yet another "by invitation only" testnet, on different set of ports.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

gs02xzz

  • Hero Member
  • *****
  • Karma: +56/-12
  • Offline Offline
  • Posts: 1101
    • View Profile
Re: Digital Goods Store API
« Reply #8 on: May 07, 2014, 05:40:26 pm »

When Wesley does the UI, I will make a release so anyone can use it on testnet, but then we have to move fast to also get it in production before the clones.

Can we try not to open 100% of the source code before we implement it (or any new features) to avoid the clones implementing it before Nxt? I think we should. The Clones will never care about the bugs / testing and they only want to promote and advertise that they have the new features.
« Last Edit: May 07, 2014, 05:44:13 pm by gs02xzz »
Logged
Nxt Mission is to commercialize the crypto technology and build new commerce and society.

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #9 on: May 07, 2014, 05:52:51 pm »

I will look into what code obfuscators are available, for a testnet-only release. This would actually be even more important for the javascript code, because even if we don't publish the java code, if a testnet server is freely accessible the javascript UI can be always be downloaded and copied. I think Wesley already has a way to obfuscate the javascript, right?
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Digital Goods Store API
« Reply #10 on: May 07, 2014, 05:52:55 pm »

They are not examples! I do have a server running at https://dgs.airdns.org:16875 , API access at https://dgs.airdns.org:16876/test , and the above links are all DGS related APIs. Had some problem with the network so it was down for a while, but now should be up again. Note that ports are not the defaults.

Thank you for the clarification. :) The downtime was the reason.
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Digital Goods Store API
« Reply #11 on: May 07, 2014, 06:04:06 pm »

How will the broadcast parameter be filled? With 'true' and with 'false'?
Logged

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #12 on: May 07, 2014, 06:09:22 pm »

The broadcast parameter is not unique to the DGS, it is present in all APIs that create a new transaction. If not set, the default is true, so the transaction is broadcasted immediately. If set to "false", it is not broadcasted, and this can be used to get signed (and also unsigned) transaction bytes, to be broadcasted manually later, e.g. useful when doing escrow transactions.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Digital Goods Store API
« Reply #13 on: May 07, 2014, 06:46:25 pm »

If Java is compiled with this

http://www.excelsiorjet.com/

I am pretty sure it will be impossible to decompile.

Not sure if that software only runs on Windows, though
« Last Edit: May 07, 2014, 07:13:42 pm by Eadeqa »
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Digital Goods Store API
« Reply #14 on: May 07, 2014, 06:58:58 pm »

If Java is compiled with this

http://www.excelsiorjet.com/

I am pretty sure it will impossible to decompile.

Not sure if that software only runs on Windows, though

Oh it's on both for linux and windows. It has a "free license" for non-commercial use. I think testnet qualifies as "non-commercial"
« Last Edit: May 07, 2014, 07:13:56 pm by Eadeqa »
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #15 on: May 07, 2014, 07:01:58 pm »

I will try their free evaluation version. If it seems to work, I will contact them to see if we can get a free license.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

Eadeqa

  • Hero Member
  • *****
  • Karma: +83/-68
  • Offline Offline
  • Posts: 1888
    • View Profile
Re: Digital Goods Store API
« Reply #16 on: May 08, 2014, 04:40:03 am »

I can compile it as exe file using excelsiorjet (trial version) but am not able to run it

The classpath required two jar files in jet9.0-eval-amd64\lib directory (WinService.jar, and extern-stubber.jar)

If someone has better luck, let me know how...


Initializing Nxt server version 1.0.0
[2014-05-07 22:13:20.768] nxt.debug = "false"
[2014-05-07 22:13:20.768] nxt.enableStackTraces = "true"
[2014-05-07 22:13:20.768] nxt.log = "nxt.log"
[2014-05-07 22:13:20.768] Debug logging disabled
[2014-05-07 22:13:20.768] Exception stack traces enabled
[2014-05-07 22:13:20.768] logging enabled
[2014-05-07 22:13:20.768] nxt.debugJetty = "false"
[2014-05-07 22:13:20.768] nxt.dbCacheKB = "0"
[2014-05-07 22:13:20.768] nxt.isTestnet = "false"
[2014-05-07 22:13:20.769] nxt.dbUrl = "jdbc:h2:nxt_db/nxt;DB_CLOSE_ON_EXIT=F
"
[2014-05-07 22:13:20.772] nxt.maxDbConnections = "10"
[2014-05-07 22:13:20.772] nxt.dbLoginTimeout = "70"
Exception in thread "main" java.lang.ExceptionInInitializerError
        at nxt.Nxt$Init.access$000(Unknown Source)
        at nxt.Nxt.init(Unknown Source)
        at nxt.Nxt.main(Unknown Source)
Caused by: java.lang.RuntimeException: org.h2.jdbc.JdbcSQLException: General
or: "java.lang.NumberFormatException: For input string: ""17179869176""" [50
176]
        at nxt.DbVersion.init(Unknown Source)
        at nxt.Db.init(Unknown Source)
        at nxt.Nxt$Init.<clinit>(Unknown Source)
        ... 3 more
Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.NumberFor
xception: For input string: ""17179869176""" [50000-176]
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(Unknown Sourc
        at org.h2.jdbc.JdbcConnection.<init>(Unknown Source)
        at org.h2.jdbc.JdbcConnection.<init>(Unknown Source)
        at org.h2.Driver.connect(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(Unknown Source)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(Unknown Source)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(Unknown Source)
        at nxt.Db.getConnection(Unknown Source)
        ... 6 more
Caused by: java.lang.NumberFormatException: For input string: "17179869176"
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at org.h2.engine.ConnectionInfo.getProperty(Unknown Source)
        at org.h2.engine.Database.<init>(Unknown Source)
        at org.h2.engine.Engine.openSession(Unknown Source)
        at org.h2.engine.Engine.openSession(Unknown Source)
        at org.h2.engine.Engine.createSessionAndValidate(Unknown Source)
        at org.h2.engine.Engine.createSession(Unknown Source)
        at org.h2.engine.Engine.createSession(Unknown Source)
        ... 16 more
[2014-05-07 22:13:20.785] nxt.allowedBotHosts = "127.0.0.1; localhost; 0:0:0
:0:0:1;"
[2014-05-07 22:13:20.786] nxt.enableAPIServer = "true"
[2014-05-07 22:13:20.786] nxt.apiServerPort = "7876"
[2014-05-07 22:13:20.786] nxt.apiServerHost = "127.0.0.1"
2014-05-07 22:13:20.787:INFO::Thread-0: Logging initialized @42ms
[2014-05-07 22:13:20.787] nxt.apiSSL = "false"
[2014-05-07 22:13:20.787] nxt.apiServerIdleTimeout = "30000"
[2014-05-07 22:13:20.787] nxt.apiResourceBase = "html/ui"
[2014-05-07 22:13:20.791] nxt.javadocResourceBase = "html/doc"
[2014-05-07 22:13:20.791] nxt.apiServerCORS = "false"
[2014-05-07 22:13:20.792] nxt.allowedUserHosts = "127.0.0.1; localhost; 0:0:
0:0:0:1;"
[2014-05-07 22:13:20.792] nxt.enableUIServer = "false"
[2014-05-07 22:13:20.792] User interface server not enabled
[2014-05-07 22:13:20.792] nxt.myPlatform = "PC"
[2014-05-07 22:13:20.792] nxt.myAddress not defined
[2014-05-07 22:13:20.793] nxt.peerServerPort = "7874"
[2014-05-07 22:13:20.793] nxt.shareMyAddress = "true"
[2014-05-07 22:13:20.793] nxt.myHallmark not defined
[2014-05-07 22:13:20.793] nxt.wellKnownPeers not defined
[2014-05-07 22:13:20.793] nxt.knownBlacklistedPeers not defined
[2014-05-07 22:13:20.793] nxt.maxNumberOfConnectedPublicPeers = "20"
[2014-05-07 22:13:20.793] nxt.connectTimeout = "2000"
[2014-05-07 22:13:20.793] nxt.readTimeout = "5000"
[2014-05-07 22:13:20.794] nxt.enableHallmarkProtection = "true"
[2014-05-07 22:13:20.794] nxt.pushThreshold = "0"
[2014-05-07 22:13:20.794] nxt.pullThreshold = "0"
[2014-05-07 22:13:20.794] nxt.blacklistingPeriod = "300000"
[2014-05-07 22:13:20.794] nxt.communicationLoggingMask = "0"
[2014-05-07 22:13:20.794] nxt.sendToPeersLimit = "10"
[2014-05-07 22:13:20.794] nxt.usePeersDb = "true"
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
        at nxt.peer.Peers.addListener(Unknown Source)
        at nxt.user.Users.<clinit>(Unknown Source)
        at nxt.user.Users.shutdown(Unknown Source)
        at nxt.Nxt.shutdown(Unknown Source)
        at nxt.Nxt$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: org.h2.jdbc.JdbcSQLException: General
or: "java.lang.NumberFormatException: For input string: ""17179869176""" [50
176]
        at nxt.peer.PeerDb.loadPeers(Unknown Source)
        at nxt.peer.Peers.<clinit>(Unknown Source)
        ... 6 more
Caused by: org.h2.jdbc.JdbcSQLException: General error: "java.lang.NumberFor
xception: For input string: ""17179869176""" [50000-176]
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer(Unknown Sourc
        at org.h2.jdbc.JdbcConnection.<init>(Unknown Source)
        at org.h2.jdbc.JdbcConnection.<init>(Unknown Source)
        at org.h2.Driver.connect(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(Unknown Source)
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection(Unknown Source)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(Unknown Source)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection(Unknown Source)
        at nxt.Db.getConnection(Unknown Source)
        ... 8 more
Caused by: java.lang.NumberFormatException: For input string: "17179869176"
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at org.h2.engine.ConnectionInfo.getProperty(Unknown Source)
        at org.h2.engine.Database.<init>(Unknown Source)
        at org.h2.engine.Engine.openSession(Unknown Source)
        at org.h2.engine.Engine.openSession(Unknown Source)
        at org.h2.engine.Engine.createSessionAndValidate(Unknown Source)
        at org.h2.engine.Engine.createSession(Unknown Source)
        at org.h2.engine.Engine.createSession(Unknown Source)
        ... 18 more
Logged
NXT-GZYP-FMRT-FQ9K-3YQGS

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: Digital Goods Store API
« Reply #17 on: May 08, 2014, 08:53:34 am »

I didn't realize at first that Excelsiorjet compiles to a native executable. This wouldn't work for us, there is a risk of undetected bugs when code run on testnet is so different than what we are going to release on production. It will complicate debugging too much, and also I can't generate and test executables for systems other than linux, so... too much work.

I will look instead into using Proguard http://proguard.sourceforge.net/ for more simple obfuscation. We only need to delay clones for a few weeks, we are not writing software that should stay private forever, just slowing them down is good enough.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

CoinTropololis_JustaBit

  • Hero Member
  • *****
  • Karma: +144/-11
  • Offline Offline
  • Posts: 727
    • View Profile
Re: Digital Goods Store API
« Reply #18 on: May 13, 2014, 02:28:05 pm »

Great job everyone, this will be another nice boost for the Nxt ecosystem.

CoinTropololis_JustaBit

  • Hero Member
  • *****
  • Karma: +144/-11
  • Offline Offline
  • Posts: 727
    • View Profile
Re: Digital Goods Store API
« Reply #19 on: May 20, 2014, 04:27:46 am »

I didn't realize at first that Excelsiorjet compiles to a native executable. This wouldn't work for us, there is a risk of undetected bugs when code run on testnet is so different than what we are going to release on production. It will complicate debugging too much, and also I can't generate and test executables for systems other than linux, so... too much work.

I will look instead into using Proguard http://proguard.sourceforge.net/ for more simple obfuscation. We only need to delay clones for a few weeks, we are not writing software that should stay private forever, just slowing them down is good enough.

Did you get a chance to take a look at Proguard?  Any updates on the DGS would be great. Thank you for all you do.
Pages: [1] 2  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly