Jump to content




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


1697 replies to this topic

#21 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 06 March 2015 - 08:50 PM

Dang, I had this idea about a year ago, but never got around to actually implementing it. Good job! But beware that I may launch a competitor currency this year.

#22 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 06 March 2015 - 09:40 PM

This is quite neat! I plan to make some neat stuff for this soon.
My id is k3s72l1pfa. Currently mining at about 4.2MH/s on 7 of my cores.

#23 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 06 March 2015 - 10:17 PM

My address is kujj8lyk2h

#24 3d6

  • Members
  • 336 posts

Posted 07 March 2015 - 01:20 AM

View PostCrazedProgrammer, on 06 March 2015 - 10:01 AM, said:

View PostByteMe, on 06 March 2015 - 09:18 AM, said:

well hmmm, I typed in a password to create a account and it logged me into someone else's? they must have had the same password?
The password is essentially the username. That is a big security flaw.

That's a flaw of the wallet, not the protocol. It shouldn't be a problem if you use strong passwords and double vaults.

View Postlongbyte1, on 06 March 2015 - 03:40 AM, said:

Very cool!

One question, though: how decentralized is the currency? For example, can a server host its own "blockchain" and then federate with your server for transactions?

The in-game wallets connect to trusted server nodes. It is decentralized in that no one node can do whatever it wants, but centralized in that only trusted parties are allowed to host nodes and see their code. This is probably going to change in the near future.

View Postlongbyte1, on 06 March 2015 - 03:40 AM, said:

Also, what's the mining payout falloff?

Every 210000 blocks, the subsidy from each block is halved.
The total supply can be calculated to therefore be 21,000,000 KST, as per this formula.

View Postlongbyte1, on 06 March 2015 - 03:40 AM, said:

Can an "admin" give himself money?
No. Crediting Krist requires mining.

View Postlongbyte1, on 06 March 2015 - 03:40 AM, said:

What kind of a hash is it?
For mining, you need to find a SHA256 hash lower than a certain target. This target changes periodically so that a block is always found about once per ten minutes. What you're hashing is the concatenated strings representing a) the hash of the previous block as proof they were solved in order, B) the address to which mined funds are to be deposited, and c) an arbitrary cryptographic nonce that is incremented to change the hash until it is lower than the target. This can only be done through trial and error; thereby requiring billions of computations.

For addresses, I have made my own system to prevent bruteforcing. It takes an indeterminate number of computations to derive an address from a private key, and you cannot look for patterns in the address until you assemble the final product. You can look at the code yourself if you want the details.

View Postcdel, on 06 March 2015 - 10:02 AM, said:

View PostCrazedProgrammer, on 06 March 2015 - 09:59 AM, said:

View Postcdel, on 06 March 2015 - 07:26 AM, said:

Just wondering, what is considered to be a good hash rate?
My hashrate is around 1.1 million but even when I select 4 cores it only uses 27% on each core (I've set the priority to realtime)

Interesting, I got ~3.3 million with 4 cores, not sure if they were all pushing hard although.

I was not expecting everyone to mine so quickly so soon! It's getting hard for me to solve blocks now! :D

#25 kornichen

  • Members
  • 220 posts
  • LocationGermany

Posted 07 March 2015 - 10:34 AM

It don't know whether the plan was to only use this with ComputerCraft or not but I think a Bukkit plugin would be great. With a Bukkit plugin, even vanilla servers could use this and give their users the possibility to trade in Krist or to convert Krist to another ingame currency (but not vice versa). That would make Krist more popular. I would like to write a Bukkit plugin if I am not planning in the wrong direction.

#26 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 07 March 2015 - 02:15 PM

Regarding external krist applications, am I allowed to make an android app that acts similar to the kristwallet for cc?

#27 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 07 March 2015 - 03:23 PM

coss, do you think you could add a long polling event system? This would allow doing things like waiting for a block change without having to poll for the last block every few seconds. Maybe something like this?
Client sends: ?hook&hblockchanged&hgottx=k3s72l1pfa
The block changes to 000000030541
Server sends: hblockchanged,000000030541
Client resends request to stay hooked
120 KST is transferred to k3s72l1pfa from kujj8lyk2h
Server sends: hgottx,kujj8lyk2h,120
Client resends request to stay hooked
...


#28 biggest yikes

  • Members
  • 573 posts

Posted 07 March 2015 - 05:19 PM

So is this based off Bitcoin?
Looks cool, though!
EDIT: My address is kcyd5vejdw, but my computer really sucks so I can't really mine any KST. lol

Edited by Atenefyr, 07 March 2015 - 05:35 PM.


#29 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 07 March 2015 - 05:41 PM

Wow. I downloaded the new version of Grim's Krist Miner and now I'm mining with 4.1 MH/s instead of 1.1 MH/s

Edited by CrazedProgrammer, 07 March 2015 - 05:59 PM.


#30 biggest yikes

  • Members
  • 573 posts

Posted 07 March 2015 - 06:03 PM

View PostCrazedProgrammer, on 07 March 2015 - 05:41 PM, said:

Wow. I downloaded the new version of Grim's Krist Miner and now I'm mining with 4.1 MH/s instead of 1.1 MH/s
I get only 2.2 MH/s with all 4 cores, and 1.9 MH/s with 3 cores ;(

Edited by Atenefyr, 07 March 2015 - 06:03 PM.


#31 rahph

  • Members
  • 81 posts

Posted 07 March 2015 - 09:25 PM

how many hashes is one kst?

#32 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 07 March 2015 - 09:37 PM

Considering the type of application, this REALLY should work on pocket computer.
Even command line support would be great. Mind implementing?

#33 biggest yikes

  • Members
  • 573 posts

Posted 07 March 2015 - 09:54 PM

View Postkok, on 07 March 2015 - 09:25 PM, said:

how many hashes is one kst?
I don't think there's a set amount. If I'm right, the hashes are automatically generated, and if the hash is on some relation to the current target (might be lesser than, that's how it is for bitcoin at least) then you win and get some KST, confirmation from the OP would be appreciated

tl;dr it's random (I think, again confirmation from the OP would be appreciated), but it's probably a lot more than one GH (gigahash) if I were to estimate overall

View PostGeforce Fan, on 07 March 2015 - 09:37 PM, said:

Even command line support would be great. Mind implementing?
challenge accepted.
EDIT: done, tell me if you want the link :P (I know you wanted the OP to do it, but I thought it would be a nice project to do myself, aswell)

Edited by Atenefyr, 07 March 2015 - 10:50 PM.


#34 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 07 March 2015 - 11:13 PM

View PostAtenefyr, on 07 March 2015 - 09:54 PM, said:

View Postkok, on 07 March 2015 - 09:25 PM, said:

how many hashes is one kst?
I don't think there's a set amount. If I'm right, the hashes are automatically generated, and if the hash is on some relation to the current target (might be lesser than, that's how it is for bitcoin at least) then you win and get some KST, confirmation from the OP would be appreciated

tl;dr it's random (I think, again confirmation from the OP would be appreciated), but it's probably a lot more than one GH (gigahash) if I were to estimate overall

View PostGeforce Fan, on 07 March 2015 - 09:37 PM, said:

Even command line support would be great. Mind implementing?
challenge accepted.
EDIT: done, tell me if you want the link :P/> (I know you wanted the OP to do it, but I thought it would be a nice project to do myself, aswell)

It can be a bit of luck too when mining Krist.

#35 biggest yikes

  • Members
  • 573 posts

Posted 07 March 2015 - 11:26 PM

View Postcdel, on 07 March 2015 - 11:13 PM, said:

It can be a bit of luck too when mining Krist.
Exactly.

#36 3d6

  • Members
  • 336 posts

Posted 08 March 2015 - 12:12 AM

View Postkornichen, on 07 March 2015 - 10:34 AM, said:

It don't know whether the plan was to only use this with ComputerCraft or not but I think a Bukkit plugin would be great. With a Bukkit plugin, even vanilla servers could use this and give their users the possibility to trade in Krist or to convert Krist to another ingame currency (but not vice versa). That would make Krist more popular. I would like to write a Bukkit plugin if I am not planning in the wrong direction.

View Postcdel, on 07 March 2015 - 02:15 PM, said:

Regarding external krist applications, am I allowed to make an android app that acts similar to the kristwallet for cc?
These are fantastic ideas. Krist is not a CC system; kristwallet is. The possibilities are therefore essentially without limit. Krist would work on any game capable of calling the network.

View PostYevano, on 07 March 2015 - 03:23 PM, said:

coss, do you think you could add a long polling event system? This would allow doing things like waiting for a block change without having to poll for the last block every few seconds. Maybe something like this?
Client sends: ?hook&hblockchanged&hgottx=k3s72l1pfa
The block changes to 000000030541
Server sends: hblockchanged,000000030541
Client resends request to stay hooked
120 KST is transferred to k3s72l1pfa from kujj8lyk2h
Server sends: hgottx,kujj8lyk2h,120
Client resends request to stay hooked
...
This would probably be better for the nodes and miners alike. I will be looking into this.

View PostAtenefyr, on 07 March 2015 - 05:19 PM, said:

So is this based off Bitcoin?
Looks cool, though!
EDIT: My address is kcyd5vejdw, but my computer really sucks so I can't really mine any KST. lol
Yes, although it is built from the ground up. No code from Bitcoin was used.
I guess you could say I'm really into it, though. ;)

View PostAtenefyr, on 07 March 2015 - 09:54 PM, said:

View Postkok, on 07 March 2015 - 09:25 PM, said:

how many hashes is one kst?
I don't think there's a set amount. If I'm right, the hashes are automatically generated, and if the hash is on some relation to the current target (might be lesser than, that's how it is for bitcoin at least) then you win and get some KST, confirmation from the OP would be appreciated

tl;dr it's random (I think, again confirmation from the OP would be appreciated), but it's probably a lot more than one GH (gigahash) if I were to estimate overall
Yep, this sounds about right. Except the hashrate part. I suspect we are at a fraction of a gigahash right now. Maybe 500 Mh/s tops. For comparison, when mining bitcoin, I can, by myself, manage 1Gh/s.

View PostAtenefyr, on 07 March 2015 - 09:54 PM, said:

challenge accepted.
EDIT: done, tell me if you want the link :P (I know you wanted the OP to do it, but I thought it would be a nice project to do myself, aswell)
I encourage you to share your work. :D

View PostAtenefyr, on 07 March 2015 - 11:26 PM, said:

View Postcdel, on 07 March 2015 - 11:13 PM, said:

It can be a bit of luck too when mining Krist.
Exactly.
Speaking of luck:
Posted Image
We have, collectively, found four hashes with ten leading zeros. If this were 2010, those would be good enough to make 200 BTC.
(Block 5142 was extremely low, especially considering you only needed five leading zeros at the time.)
If we find a block with 12 leading zeros, I'm making this into a full-time project.

By the way - we have a subreddit: /r/krist

#37 Zambonie

  • Members
  • 477 posts
  • LocationSpring Hill, Fl

Posted 08 March 2015 - 12:25 AM

Who likes new fancy GUIs?

I do.

Posted Image

Posted Image

Edited by Zambonie, 08 March 2015 - 12:26 AM.


#38 biggest yikes

  • Members
  • 573 posts

Posted 08 March 2015 - 01:13 AM

View Postcossacksson, on 08 March 2015 - 12:12 AM, said:

-snip-

View PostAtenefyr, on 07 March 2015 - 09:54 PM, said:

challenge accepted.
EDIT: done, tell me if you want the link :P (I know you wanted the OP to do it, but I thought it would be a nice project to do myself, aswell)
I encourage you to share your work. :D
-snip-
If we find a block with 12 leading zeros, I'm making this into a full-time project.

1. well, you can download KristCMD by http://pastebin.com/BereYDRc, there's a help command, a transact command, a balance command, and a command to get your v1 and v2 keys based off your password (and a command to get my personal krist key, #selfadvertisement), which all control your Krist account via the command line (note that you can ignore fields that require your password and have the computer ask you for your pass, which is censored out via asterisks)
2. I would challenge accept that 12 zeroes thing, but my computer isn't up to par with that chance

EDIT: May I ask, how exactly do you send requests to "mine" KST? I know the link is http://65.26.252.225...nonce=<mynonce>, but how do I use this URL to send a "mining request"?

Edited by Atenefyr, 08 March 2015 - 02:18 AM.


#39 longbyte1

  • Members
  • 36 posts

Posted 08 March 2015 - 03:33 AM

View PostCrazedProgrammer, on 07 March 2015 - 05:41 PM, said:

Wow. I downloaded the new version of Grim's Krist Miner and now I'm mining with 4.1 MH/s instead of 1.1 MH/s

The recent commits fixed the speed calculation. It was wrong all along.

Anyway, I've been trying to port the address generation algorithm to Java but I've been stumped. So far this is my method:
/**
* Generates a Krist v2 address using the original algorithm.
* This was direclty ported from the KristWallet source (release 8).
* @param key
*  KristWallet password
* @return Krist address
*/
public static String generateAddress(String key) {
  ArrayList<String> protein = new ArrayList<String>(); //local protein = {}
  String stick = subSHA256(subSHA256(key, 64), 64);   //local stick = sha256(sha256(key))
  int link = 0;
  String v2 = "k"; //All keys start with 'k'.

  //Part 1
  for (int n = 0; n < 9; n++) { //repeat...until n == 9
	protein.add(stick.substring(0, 2)); //if n < 9 then protein[n] = string.sub(stick,0,2)
	stick = subSHA256(subSHA256(stick, 64), 64); //stick = sha256(sha256(stick)) end
  }
  System.out.println(stick);
  //Part 2
  int n = 0;
  while(n < 9) {
	link = Integer.parseInt(stick.substring(1 + (2 * n), 2 + (2 * n) + 1), 16) % 9; //link = tonumber( string.sub( stick,1+(2*n),2+(2*n) ),16 ) % 9
	if (protein.get(link).length() != 0) { //if string.len(protein[link]) ~= 0 then
   	 v2 += Integer.toString(Integer.parseInt(protein.get(link), 16), 36); //v2 = v2 .. hextobase36(tonumber(protein[link],16))
   	 protein.set(link, ""); //protein[link] = ''
   	 n++;
	} else stick = subSHA256(stick, 64); //stick = sha256(stick)
  }


  return v2;
}

//Client code
generateAddress(subSHA256("KRISTWALLET" + password, 64) + "-000");
I've tried to accomodate for Java's substring/array differences, but Part 2 always ends up generating some longer incorrect addresses for some reason, and I'm stumped. What is 1+(2*n),2+(2*n) ),16 ) % 9 for?

Edited by longbyte1, 08 March 2015 - 03:33 AM.


#40 SpencerBeige

  • Members
  • 263 posts

Posted 08 March 2015 - 04:10 AM

edit: if that's your best miner, someone should get to developing ;p

Edited by slow-coder, 08 March 2015 - 04:43 AM.






5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users