elective-stereophonic
elective-stereophonic
NxtMint Java minter  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: 1 ... 3 4 [5] 6 7 ... 20  All

Author Topic: NxtMint Java minter  (Read 50873 times)

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #80 on: January 18, 2015, 04:07:29 am »

SEVERE Main.main: Exception during program initialization
java.lang.illegalArgumentException:Currency code is not valid

That miner said... I did update NxtMint.conf with currency EGOLD.. and path i think it's right..
It sounds like the currency code is not set in NxtMint.conf.

What operating system are you on?  What directory contains NxtMint.conf?
Logged

MAMLCOM

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 3
    • View Profile
Re: NxtMint Java minter
« Reply #81 on: January 18, 2015, 04:16:57 am »

I dont know.. every time i change NxtMint.conf.. It's always false, like that error..
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #82 on: January 18, 2015, 04:13:18 pm »

I dont know.. every time i change NxtMint.conf.. It's always false, like that error..
I need to know the operating system (Windows, Mac, Linux) and the name of the directory containing NxtMint.conf.  Also, post NxtMint.conf so I can look at it (blank out your secret phrase)
Logged

Hachoir

  • Full Member
  • ***
  • Karma: +12/-13
  • Offline Offline
  • Posts: 113
    • View Profile
Re: NxtMint Java minter
« Reply #83 on: January 18, 2015, 05:02:34 pm »

Hi I got the minter to work for CPU minting but not for GPU minting, the aparapi installation doesn't work when I type the command "java -jar arapapi.jar", I get the message "no main manifest attribute". So I found an .exe installer and proceeded to execute it. Still doesn't work when I run the minter. I obtained the Opencl.dll designed for my graphics card and copied it in the NxtMint directory. What's left ?
Logged

colin012

  • Hero Member
  • *****
  • Karma: +65/-18
  • Offline Offline
  • Posts: 851
  • NXTOrganization Marketing
    • View Profile
Re: NxtMint Java minter
« Reply #84 on: January 18, 2015, 05:14:22 pm »

I have talked with Ron about setting up encrypted password storage and it looks like I will be working on that feature while he focuses his efforts on the core of the minter.

Here are some things I will include:
  • Password based encryption using PBKDF2
  • Key file based encryption with users choice of algorithms. The default Algo will be latice based for security against quantum computing (whenever that is ready). The key file may additionally be encrypted using PBKDF2 or another key file
  • After those, I will work on built in CD burning so that the key file can be stored on a CD without having to leave the program. If two key files are used, this can be set up so that two CDs or a CD and a key file are needed to unlock the password.
  • Next, I will work on setting things up so that minting can be run automatically from a CD containing a key file. The CD will hold a link to the directory used in addition to the key file and will run automatically when popped in. If the encrypted password file if present in the directory and can be unlocked by the key file.
  • Next, I will work on setting up optional password protection for the whole CD.
  • Finally, for the most advanced users, I will make it so that 2-step authentication is needed to unlock the password. This can be achieved by integrating a special messaging service into the encryption software. I plan to make support for multiple messengers, but the first one I plan to support is i2p Bote. This would require the machine to be running i2p and have the Bote add on installed for the PC and a special app I will designe for the mobile device. It will use a special kind of encryption so that not even the computer sending the message can read it after it is encrypted. Another one I want to support is TextSecure which will send a special encrypted message to the phone that will be used for the 2FA. I am open to other suggestions.

Please note that the 2FA is the lowest priority item on the list as it is pretty much only for the hyper paranoid.

This code will be public domain and may he used for other NXT security implementations. In fact, I will even reward STNLC to anyone who can implant it for general use with NXT to pretty much eliminate use of passwords to log in all together (except for in encrypted form) and add 2FA to general NXT login. (Nxt KeyStash is a likely candidate).
Logged
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  ▄▀▀▀▀▀▀▀▀▄  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●  nimirum  ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬ ◖ENDING CENSORSHIP ONLINE◗  ◖ ICO OPEN NOW◗ ▬▬▬

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #85 on: January 18, 2015, 05:43:53 pm »

Hi I got the minter to work for CPU minting but not for GPU minting, the aparapi installation doesn't work when I type the command "java -jar arapapi.jar", I get the message "no main manifest attribute". So I found an .exe installer and proceeded to execute it. Still doesn't work when I run the minter. I obtained the Opencl.dll designed for my graphics card and copied it in the NxtMint directory. What's left ?
java -Xmx256m -jar NxtMint-1.0.0.jar

This assumes the Aparapi and OpenCL runtime libraries are in the system execution path (PATH environment variable) or in the current directory (Windows adds the current directory to the execution path
Logged

Hachoir

  • Full Member
  • ***
  • Karma: +12/-13
  • Offline Offline
  • Posts: 113
    • View Profile
Re: NxtMint Java minter
« Reply #86 on: January 18, 2015, 06:07:19 pm »

So I don't need to execute aparapi.jar at all, just put aparapi.dll and OpenCl.dll in the same directory in which the minter is executed ?

I get this error.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).

PATH environment variable is set with this command ?

set PATH="c:\NxtMint-1.0.0";%PATH%
Logged

ltcrstrbrt

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 10
    • View Profile
Re: NxtMint Java minter
« Reply #87 on: January 18, 2015, 06:31:44 pm »

I installed SDK for Amd GPU and then copied openCL.dll file( from C:\Program Files (x86)\AMD APP SDK\3.0-0-Beta\bin\x86_64)  in nxtminter folder (main folder not nxtminter\lib). I used " java -Xmx256m -jar NxtMint-1.0.0.jar "  but doesn't work, also Cpu works fine..

WARNING MintWorker.gpuHash: GPUexecution did not complete probably due to GPU resource shortage
INFO MintWorker.gpuHash: Disabling GPU hashing and reverting to CPU hashing
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #88 on: January 18, 2015, 07:10:50 pm »

So I don't need to execute aparapi.jar at all, just put aparapi.dll and OpenCl.dll in the same directory in which the minter is executed ?

I get this error.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).

PATH environment variable is set with this command ?

set PATH="c:\NxtMint-1.0.0";%PATH%
That put double quotes in the path.  Try this instead:
    PATH C:\NxtMint-1.0.0;%PATH%

To check that it worked, enter
    PATH

However, on Windows, it isn't necessary to update the PATH since Windows automatically looks in the current directory first.  So just copy the dll files to C:\NxtMint-1.0.0 and make it the current directory when you issue the Java command:
    cd C:\NxtMint-1.0.0
    java -Xmx256m -jar NxtMint-1.0.0.jar

What card are you using?  NVIDIA ships OpenCL.dll and OpenCL64.dll.  If you are using the 64-bit JVM on Windows, you need to copy OpenCL64.dll and rename it to OpenCL.dll.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #89 on: January 18, 2015, 07:14:47 pm »

I installed SDK for Amd GPU and then copied openCL.dll file( from C:\Program Files (x86)\AMD APP SDK\3.0-0-Beta\bin\x86_64)  in nxtminter folder (main folder not nxtminter\lib). I used " java -Xmx256m -jar NxtMint-1.0.0.jar "  but doesn't work, also Cpu works fine..

WARNING MintWorker.gpuHash: GPUexecution did not complete probably due to GPU resource shortage
INFO MintWorker.gpuHash: Disabling GPU hashing and reverting to CPU hashing
There should have been an error message from Aparapi before the NxtMint warning message.  This message explains why it didn't execute on the GPU (the only information returned to NxtMint is whether the request was executed on the GPU or in a Java thread pool).
Logged

Hachoir

  • Full Member
  • ***
  • Karma: +12/-13
  • Offline Offline
  • Posts: 113
    • View Profile
Re: NxtMint Java minter
« Reply #90 on: January 18, 2015, 07:48:40 pm »

So I don't need to execute aparapi.jar at all, just put aparapi.dll and OpenCl.dll in the same directory in which the minter is executed ?

I get this error.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).

PATH environment variable is set with this command ?

set PATH="c:\NxtMint-1.0.0";%PATH%
That put double quotes in the path.  Try this instead:
    PATH C:\NxtMint-1.0.0;%PATH%

To check that it worked, enter
    PATH

However, on Windows, it isn't necessary to update the PATH since Windows automatically looks in the current directory first.  So just copy the dll files to C:\NxtMint-1.0.0 and make it the current directory when you issue the Java command:
    cd C:\NxtMint-1.0.0
    j
What card are you using?  NVIDIA ships OpenCL.dll and OpenCL64.dll.  If you are using the 64-bit JVM on Windows, you need to copy OpenCL64.dll and rename it to OpenCL.dll.

I use the command java -Xmx256m -Dnxt.datadir="C:\NxtMint-1.0.0" -jar "C:\NxtMint-1.0.0\NxtMint-1.0.0.jar" because when I run ava -Xmx256m -jar NxtMint-1.0.0.jar from the current directory I get an error
Quote
08:43:09 SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException: Secret phrase not specified
        at org.ScripterRon.NxtMint.Main.main(Main.java:186)
Even though the secret phrase is specified in NxtMint.conf which I copied in C:\Users\AppData\NxtMint-1.0.0 (that NxtMint-1.0.0 was not created automatically) alongside logging.properties.

My graphics card is nvidia geforce 6150se. The OS isn't 64 bit so the file already is named OpenCl.dll. I did copy it in the current directory with aparapi_x86.dll.

So I still set the PATH variable and I get the same message.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #91 on: January 18, 2015, 09:01:05 pm »

I use the command java -Xmx256m -Dnxt.datadir="C:\NxtMint-1.0.0" -jar "C:\NxtMint-1.0.0\NxtMint-1.0.0.jar" because when I run ava -Xmx256m -jar NxtMint-1.0.0.jar from the current directory I get an error
Quote
08:43:09 SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException: Secret phrase not specified
        at org.ScripterRon.NxtMint.Main.main(Main.java:186)
Even though the secret phrase is specified in NxtMint.conf which I copied in C:\Users\AppData\NxtMint-1.0.0 (that NxtMint-1.0.0 was not created automatically) alongside logging.properties.

My graphics card is nvidia geforce 6150se. The OS isn't 64 bit so the file already is named OpenCl.dll. I did copy it in the current directory with aparapi_x86.dll.

So I still set the PATH variable and I get the same message.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).
The default data directory on Windows is C:\Users\your-user-name\AppData\Roaming\NxtMint

I don't know why it is failing.  What does "java -version" display?
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #92 on: January 18, 2015, 09:11:36 pm »

NxtMint Version 1.1.0 is available.

Change log
  - Add sample.logging.properties, sample.mint.bat, sample.mint.sh
  - Add minting counter to transaction table in GUI
  - Rebuild GPU kernel following execution failure
  - Add total hash count to worker status message
  - Check for unconfirmed transactions
  - GPU support for SHA-256

I'm looking into GPU support for Scrypt but this one is a bit more difficult due to memory requirements.  Graphics cards with a decent amount of memory will probably work (Scrypt needs 128KB of memory for each execution instance to avoid recomputing previous hash digests for each hash round).  So 256 instances would require 32 MB of graphics card memory just for the data array.  Since this is temporary storage, it doesn't need to be preserved between kernel executions.

The actual algorithm is more complex as well since it uses multiple HmacSha256 hashes for each round.
Logged

crimi

  • Hero Member
  • *****
  • Karma: +122/-11
  • Offline Offline
  • Posts: 863
    • View Profile
Re: NxtMint Java minter
« Reply #93 on: January 18, 2015, 09:39:46 pm »

NxtMint Version 1.1.0 is available.

Change log
  - Add sample.logging.properties, sample.mint.bat, sample.mint.sh
  - Add minting counter to transaction table in GUI
  - Rebuild GPU kernel following execution failure
  - Add total hash count to worker status message
  - Check for unconfirmed transactions
  - GPU support for SHA-256

I'm looking into GPU support for Scrypt but this one is a bit more difficult due to memory requirements.  Graphics cards with a decent amount of memory will probably work (Scrypt needs 128KB of memory for each execution instance to avoid recomputing previous hash digests for each hash round).  So 256 instances would require 32 MB of graphics card memory just for the data array.  Since this is temporary storage, it doesn't need to be preserved between kernel executions.

The actual algorithm is more complex as well since it uses multiple HmacSha256 hashes for each round.

Ty works like a charm(EGOLD), if you need someone to test multi gpu send it over to me.
Logged

Hachoir

  • Full Member
  • ***
  • Karma: +12/-13
  • Offline Offline
  • Posts: 113
    • View Profile
Re: NxtMint Java minter
« Reply #94 on: January 18, 2015, 09:52:41 pm »

I use the command java -Xmx256m -Dnxt.datadir="C:\NxtMint-1.0.0" -jar "C:\NxtMint-1.0.0\NxtMint-1.0.0.jar" because when I run ava -Xmx256m -jar NxtMint-1.0.0.jar from the current directory I get an error
Quote
08:43:09 SEVERE Main.main: Exception during program initialization
java.lang.IllegalArgumentException: Secret phrase not specified
        at org.ScripterRon.NxtMint.Main.main(Main.java:186)
Even though the secret phrase is specified in NxtMint.conf which I copied in C:\Users\AppData\NxtMint-1.0.0 (that NxtMint-1.0.0 was not created automatically) alongside logging.properties.

My graphics card is nvidia geforce 6150se. The OS isn't 64 bit so the file already is named OpenCl.dll. I did copy it in the current directory with aparapi_x86.dll.

So I still set the PATH variable and I get the same message.

Quote
SEVERE OpenCLLoader.<clinit>: Check your environment. Failed to load ap
arapi native library aparapi_x86 or possibly failed to locate opencl native libr
ary (opencl.dll/opencl.so). Ensure that both are in your PATH (windows) or in LD
_LIBRARY_PATH (linux).
The default data directory on Windows is C:\Users\your-user-name\AppData\Roaming\NxtMint

I don't know why it is failing.  What does "java -version" display?

Well it shouldn't matter since I manually changed the data directory anyway with all the needed files into it (for GPU minting I just need OpenCL.dll and aparapi_x86.dll right ? Do I need libaparapi_x86.so too ?).
java -version says :
Quote
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode, sharing)

I'll try with your latest release too.
« Last Edit: January 18, 2015, 09:59:47 pm by Hachoir »
Logged

Hachoir

  • Full Member
  • ***
  • Karma: +12/-13
  • Offline Offline
  • Posts: 113
    • View Profile
Re: NxtMint Java minter
« Reply #95 on: January 18, 2015, 10:28:03 pm »

Still the same with version 1.1.0. It can't find OpenCL.dll and aparapi_x86.dll while it's in the same directory ?
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #96 on: January 18, 2015, 11:16:40 pm »

Still the same with version 1.1.0. It can't find OpenCL.dll and aparapi_x86.dll while it's in the same directory ?
You don't need libaparapi.so since that is for Linux.

It sounds like Aparapi/OpenCL doesn't work on your system.  I have 64-bit Windows 8, so I can't try the 32-bit version.  It could also be that your graphics card doesn't support Aparapi.  You could try adding some Aparapi debug options to the command line, although I'm not sure it will make any difference if it is failing to load the dll.

  -Dcom.amd.aparapi.logLevel=FINE
  -Dcom.amd.aparapi.enableVerboseJNI=true
« Last Edit: January 19, 2015, 03:02:23 pm by ScripterRon »
Logged

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: NxtMint Java minter
« Reply #97 on: January 19, 2015, 01:01:26 pm »

I have started a thread on MSCoin mining: https://bitcointalk.org/index.php?topic=929548

I mentioned NxtMint for GPU miners. Can you keep an eye on it to help me out with any questioning?

Thanks in advance  ;D
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile
Re: NxtMint Java minter
« Reply #98 on: January 19, 2015, 03:07:27 pm »

I have started a thread on MSCoin mining: https://bitcointalk.org/index.php?topic=929548

I mentioned NxtMint for GPU miners. Can you keep an eye on it to help me out with any questioning?

Thanks in advance  ;D
OK - I added it to my watch list on BitcoinTalk
Logged

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: NxtMint Java minter
« Reply #99 on: January 19, 2015, 03:14:02 pm »

Great, thanks. 84 views and not a bite. They are probably all views from the people on this forum :D

We'll see, the altcoin mining sub forum looks pretty dead (less than 1 post per hour atm) so may try something else later.
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q
Pages: 1 ... 3 4 [5] 6 7 ... 20  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly