Jump to content




Krist - Minable currency that works across servers (paste updated)


  • You cannot reply to this topic
1697 replies to this topic

#681 biggest yikes

  • Members
  • 573 posts

Posted 12 June 2015 - 01:07 PM

If you add some sort of Lua scripting language in KristScape, make sure you don't include _G in your sandboxing. Quest didn't do that, and it resulted in an exploit which allows malware to be downloaded on the computer.

Edited by Atenefyr, 12 June 2015 - 01:14 PM.


#682 クデル

  • Members
  • 349 posts

Posted 12 June 2015 - 01:18 PM

View PostAtenefyr, on 12 June 2015 - 01:07 PM, said:

If you add some sort of Lua scripting language in KristScape, make sure you don't include _G in your sandboxing. Quest didn't do that, and it resulted in an exploit which allows malware to be downloaded on the computer.

Yeah, I would just set it up to where it runs in a completely new environment.

#683 3d6

  • Members
  • 336 posts

Posted 12 June 2015 - 04:41 PM

View PostSandstorm, on 12 June 2015 - 01:18 PM, said:

View PostAtenefyr, on 12 June 2015 - 01:07 PM, said:

If you add some sort of Lua scripting language in KristScape, make sure you don't include _G in your sandboxing. Quest didn't do that, and it resulted in an exploit which allows malware to be downloaded on the computer.

Yeah, I would just set it up to where it runs in a completely new environment.

We may just make a new language and parse that, too.

#684 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 12 June 2015 - 08:21 PM

View Postcossacksson, on 12 June 2015 - 04:41 PM, said:

We may just make a new language and parse that, too.

Why make a new language when you already have Lua, the most embeddable, sandbox-able scripting language there is?

#685 biggest yikes

  • Members
  • 573 posts

Posted 12 June 2015 - 11:13 PM

View Postcossacksson, on 12 June 2015 - 04:41 PM, said:

We may just make a new language and parse that, too.
Yay, a new unnecessary language to learn!
In all seriousness, that's not really a good idea in my opinion. You have a scripting language already (Lua), no need to reinvent the wheel. Just make a sandboxed Lua environment, and you're set

Edited by Atenefyr, 12 June 2015 - 11:14 PM.


#686 クデル

  • Members
  • 349 posts

Posted 13 June 2015 - 01:59 AM

I have begun work on alternative browser, its more based on shopping so it might just evolve into a shop, so I dont know. But will the ?a= call only return a single record? if so, it would simply the process a lot. :)

#687 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 13 June 2015 - 09:11 AM

View PostYevano, on 12 June 2015 - 08:21 PM, said:

View Postcossacksson, on 12 June 2015 - 04:41 PM, said:

We may just make a new language and parse that, too.

Why make a new language when you already have Lua, the most embeddable, sandbox-able scripting language there is?

this.

#688 PokeAcer

  • Members
  • 143 posts

Posted 13 June 2015 - 10:48 AM

Does anybody know the progress of this wallet?:
http://www.reddit.co...android_wallet/

I currently use https://github.com/k...ndroid/releases but I find it slightly lacking (no colourful GUI)

#689 クデル

  • Members
  • 349 posts

Posted 14 June 2015 - 07:39 AM

Can someone care to explain how a miner actually works in depth? like the workflow from from pressing start and getting a block. Wanting to re-work my OpenCL miner, but my mind has gone blank.

#690 InDieTasten

  • Members
  • 357 posts
  • LocationGermany

Posted 14 June 2015 - 07:57 AM

View PostSandstorm, on 14 June 2015 - 07:39 AM, said:

Can someone care to explain how a miner actually works in depth? like the workflow from from pressing start and getting a block. Wanting to re-work my OpenCL miner, but my mind has gone blank.
Basically, it communicates to the krist site, what the hash of the last block was. it then takes this hash, your own krist address and some nonce(just a number), and put that into some block. You then get the hash value of that block, and if the hash value meets the requirement of the difficulty, you submit your block to the site. If not, you would increment your nonce by one and do that again, approximately 1 million times a second for the average miner. The "requirement" for your block to be valid, is that you truncate everything but the last few bytes of the hash value, and the few bytes left must then be of lower value than the current difficulty.

Thats how far I understand it. Not entirely sure where the value of the block is set, but I think that is some magic that happens at the krist site.

So basically, you change nonce until you find a hash value of (lastblock_hash,krist_address,nonce) that has a lower value than the difficulty when truncated.

For more technical stuff, like what bytes actually matter, and what bytes are truncated, you have to look into some other miners or look through pages in this forum. I once saw the process described fairly detailed.

Edited by InDieTasten, 14 June 2015 - 07:58 AM.


#691 クデル

  • Members
  • 349 posts

Posted 14 June 2015 - 08:53 AM

View PostInDieTasten, on 14 June 2015 - 07:57 AM, said:

View PostSandstorm, on 14 June 2015 - 07:39 AM, said:

Can someone care to explain how a miner actually works in depth? like the workflow from from pressing start and getting a block. Wanting to re-work my OpenCL miner, but my mind has gone blank.
Basically, it communicates to the krist site, what the hash of the last block was. it then takes this hash, your own krist address and some nonce(just a number), and put that into some block. You then get the hash value of that block, and if the hash value meets the requirement of the difficulty, you submit your block to the site. If not, you would increment your nonce by one and do that again, approximately 1 million times a second for the average miner. The "requirement" for your block to be valid, is that you truncate everything but the last few bytes of the hash value, and the few bytes left must then be of lower value than the current difficulty.

Thats how far I understand it. Not entirely sure where the value of the block is set, but I think that is some magic that happens at the krist site.

So basically, you change nonce until you find a hash value of (lastblock_hash,krist_address,nonce) that has a lower value than the difficulty when truncated.

For more technical stuff, like what bytes actually matter, and what bytes are truncated, you have to look into some other miners or look through pages in this forum. I once saw the process described fairly detailed.

Okay, thanks a bunch. :)

#692 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 14 June 2015 - 12:03 PM

It looks like no one has done this yet, so here is a Java 7 compilation of Yevano's Krist miner (at commit b47cec23336a062cec8c6545c9e4ad5284284b27).

By the way, this looks pretty neat. Well done, cossacksson.

#693 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 14 June 2015 - 06:10 PM

View PostTiin57, on 14 June 2015 - 12:03 PM, said:

It looks like no one has done this yet, so here is a Java 7 compilation of Yevano's Krist miner (at commit b47cec23336a062cec8c6545c9e4ad5284284b27).

By the way, this looks pretty neat. Well done, cossacksson.

Thanks a lot for doing that. If people keep using my miner, I might feel like updating it a bit. :P

#694 3d6

  • Members
  • 336 posts

Posted 14 June 2015 - 11:54 PM

View PostTiin57, on 14 June 2015 - 12:03 PM, said:

It looks like no one has done this yet, so here is a Java 7 compilation of Yevano's Krist miner (at commit b47cec23336a062cec8c6545c9e4ad5284284b27).

By the way, this looks pretty neat. Well done, cossacksson.
Works good :)
Posted Image

View Postsci4me, on 13 June 2015 - 09:11 AM, said:

View PostYevano, on 12 June 2015 - 08:21 PM, said:

View Postcossacksson, on 12 June 2015 - 04:41 PM, said:

We may just make a new language and parse that, too.

Why make a new language when you already have Lua, the most embeddable, sandbox-able scripting language there is?

this.
I'm just worried about possible security holes. Admittedly, it'd probably be just fine sandboxing Lua. We'll see when we get there ;P

#695 valithor

  • Members
  • 1,053 posts

Posted 15 June 2015 - 12:04 AM

View Postcossacksson, on 14 June 2015 - 11:54 PM, said:

View Postsci4me, on 13 June 2015 - 09:11 AM, said:

View PostYevano, on 12 June 2015 - 08:21 PM, said:

View Postcossacksson, on 12 June 2015 - 04:41 PM, said:

We may just make a new language and parse that, too.

Why make a new language when you already have Lua, the most embeddable, sandbox-able scripting language there is?

this.
I'm just worried about possible security holes. Admittedly, it'd probably be just fine sandboxing Lua. We'll see when we get there ;P

Honestly I only see the functions from the term api and textutils api along with a few modified fs api functions being useful. Sandboxing it to those functions would not be very hard.

One of the main problems I see with the current way the parser works is the fact that everything runs in the order it is written, when we may want scripts to run after everything else runs.

Edited by valithor, 15 June 2015 - 12:04 AM.


#696 apemanzilla

  • Members
  • 1,421 posts

Posted 15 June 2015 - 01:15 AM

Woohoo! In some tests with a modified version of sci4me's miner, running on 6 cores @ 4.5 GHz, in Arch Linux, I managed to hit just shy of 40 MH/s on my home PC!

#697 クデル

  • Members
  • 349 posts

Posted 15 June 2015 - 01:26 AM

View Postapemanzilla, on 15 June 2015 - 01:15 AM, said:

Woohoo! In some tests with a modified version of sci4me's miner, running on 6 cores @ 4.5 GHz, in Arch Linux, I managed to hit just shy of 40 MH/s on my home PC!


Holy shi. 6 core, AMD FX 6300?

#698 apemanzilla

  • Members
  • 1,421 posts

Posted 15 June 2015 - 01:43 AM

View PostSandstorm, on 15 June 2015 - 01:26 AM, said:

View Postapemanzilla, on 15 June 2015 - 01:15 AM, said:

Woohoo! In some tests with a modified version of sci4me's miner, running on 6 cores @ 4.5 GHz, in Arch Linux, I managed to hit just shy of 40 MH/s on my home PC!

Holy shi. 6 core, AMD FX 6300?

Yup. It's an amazing chip for it's price.

Edited by apemanzilla, 15 June 2015 - 01:44 AM.


#699 クデル

  • Members
  • 349 posts

Posted 15 June 2015 - 01:47 AM

View Postapemanzilla, on 15 June 2015 - 01:43 AM, said:

View PostSandstorm, on 15 June 2015 - 01:26 AM, said:

View Postapemanzilla, on 15 June 2015 - 01:15 AM, said:

Woohoo! In some tests with a modified version of sci4me's miner, running on 6 cores @ 4.5 GHz, in Arch Linux, I managed to hit just shy of 40 MH/s on my home PC!

Holy shi. 6 core, AMD FX 6300?

Yup. It's an amazing chip for it's price.

Awesome, I was considering this for a new rig, im on a budget. :P

#700 apemanzilla

  • Members
  • 1,421 posts

Posted 15 June 2015 - 01:52 AM

View PostSandstorm, on 15 June 2015 - 01:47 AM, said:

View Postapemanzilla, on 15 June 2015 - 01:43 AM, said:

View PostSandstorm, on 15 June 2015 - 01:26 AM, said:

View Postapemanzilla, on 15 June 2015 - 01:15 AM, said:

Woohoo! In some tests with a modified version of sci4me's miner, running on 6 cores @ 4.5 GHz, in Arch Linux, I managed to hit just shy of 40 MH/s on my home PC!

Holy shi. 6 core, AMD FX 6300?

Yup. It's an amazing chip for it's price.

Awesome, I was considering this for a new rig, im on a budget. :P
Best price for performance I've ever seen - go for it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users