Mining BITCOIN with Dyalog APL and SHA256 encryption
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
1 post
• Page 1 of 1
Mining BITCOIN with Dyalog APL and SHA256 encryption
Greetings, APLers !
As many know, mining Bitcoin and other cyber coins can be an interesting project.
From my research, the process seems simple enough.
But, I need SHA256 encryption/decryption tools.
PROCESS
1. Select one of the (many) Cyber coins (such as BitCoin).
2. Retrieve the current TARGET encrypted code value from the Web (API)
3. Start generating random SHA265 KEYS
4. Check of the newly generated random KEY is LESS THAN the TARGET KEY.
5. If no, then generate another random key, and try again.
6. If YES ... then submit the newly FOUND KEY, and that will OPEN the next segment in the BLOCK CHAIN.
7. Once the submitted "answer" (new KEY) is validated, the MINER receives a Cyber Coin as a reward.
8. Rinse and repeat.
I'd like to experiment with this using Dyalog APL and a large computer processor with a lot of memory. Perhaps some parallel processing tricks.
NOTE: I found a library on GITHUB for SHA256 that includes a workspace with several SHA functions and variables. But, I'm not sure if it is working ... (compare to what?)
hash∆HASH 'Bob'
f09cc2498ec5d4a2e94bdc2abb7cd762086193a61f70c2a49d5f9e4a029318ad
hash∆HASH 'Bobs'
4ab3e5af250459bc2f4e7f69079bb077311278de3cb93fcf6902d9d2b22ab01f
hash∆HASH 'This is a test to see if this works'
fd715d62392843b645af602aec67f4f9a2d84b22b1cbe7195d7f929706566b98
I've ATTACHED the APLHASH DyalogAPL workspace V17.1 here.
Thoughts?
//W
As many know, mining Bitcoin and other cyber coins can be an interesting project.
From my research, the process seems simple enough.
But, I need SHA256 encryption/decryption tools.
PROCESS
1. Select one of the (many) Cyber coins (such as BitCoin).
2. Retrieve the current TARGET encrypted code value from the Web (API)
3. Start generating random SHA265 KEYS
4. Check of the newly generated random KEY is LESS THAN the TARGET KEY.
5. If no, then generate another random key, and try again.
6. If YES ... then submit the newly FOUND KEY, and that will OPEN the next segment in the BLOCK CHAIN.
7. Once the submitted "answer" (new KEY) is validated, the MINER receives a Cyber Coin as a reward.
8. Rinse and repeat.
I'd like to experiment with this using Dyalog APL and a large computer processor with a lot of memory. Perhaps some parallel processing tricks.
NOTE: I found a library on GITHUB for SHA256 that includes a workspace with several SHA functions and variables. But, I'm not sure if it is working ... (compare to what?)
hash∆HASH 'Bob'
f09cc2498ec5d4a2e94bdc2abb7cd762086193a61f70c2a49d5f9e4a029318ad
hash∆HASH 'Bobs'
4ab3e5af250459bc2f4e7f69079bb077311278de3cb93fcf6902d9d2b22ab01f
hash∆HASH 'This is a test to see if this works'
fd715d62392843b645af602aec67f4f9a2d84b22b1cbe7195d7f929706566b98
I've ATTACHED the APLHASH DyalogAPL workspace V17.1 here.
Thoughts?
//W
-
woody - Posts: 144
- Joined: Tue Dec 28, 2010 12:54 am
- Location: Atlanta, Georgia USA
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group