Post
Topic
Board Project Development
Re: Python snippet to create Bitcoin public/private key pairs
by
tspacepilot
on 02/06/2015, 04:54:14 UTC
Step #2 - Convert to Brainfuck for fun because you know why not.

Are you talking about brainfuck the language http://en.wikipedia.org/wiki/Brainfuck?  Is there some kind of relevance for bumping this 2 week old thread?  Do you actually want code for generating keys in brainfuck or where you just bumping your post count?

No, I actually want someone to convert it to that language because not only would it be a pretty great challenge, but Brainfuck can easily be implemented on an Arduino (or literally any other platform), so it could actually serve to be a very useful function.

I don't know anything about programming for Arduino, but I'm really surprised if you can't compile C code for it.  And since you already have all the bitcoin core, there's also a libbitcoin in C, don't you already have what you need to convert keys on arduino?  Also, isn't arduino just an arm7?  Can't you run python on linux on it?  Sorry for my ignorance.

You are somewhat right, but it's not a 64-bit machine like Bitcoin Core is meant to run on though.  It's not quite that easy, because it's memory is on the order of 16 KB.

Brainfuck on the other hand, is SOOO easy to implement if all you need to do is generate an address.

If it's SOOO easy, maybe you can do it yourself if you check out those python methods in that library I linked to above.  I've never written a line of brainfuck in my life so I don't think I can help you.

Cheers!

I didn't say coding in Brainfuck was easy...it's maybe the most confusing thing I've ever tried to do (but there are some real pros in it).  I just said that implementing an interpreter in it is really easy in just about any other language.

So you can implement your own interpreter really easy (I'm guessing you're talking about a REPL http://en.wikipedia.org/wiki/Read–eval–print_loop) but you can't implement some string manipulation very easy?  I must still be misunderstanding something.  Anyway, I can't help you when it comes to coding in brainfuck.  Dunno what else to say.