Mining BITCOIN with Dyalog APL and SHA256 encryption

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
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 !

Mining BITCOIN with Dyalog APL and SHA256 encryption

Postby woody on Mon Sep 05, 2022 1:50 am

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.
APLHASH.dws
Try hash∆HASH 'Bob'
(41.01 KiB) Downloaded 493 times


Thoughts?

//W
Woodley Butler
Automatonics, Inc.
"Find your head in the APL Cloud"
http://www.APLcloud.com
User avatar
woody
 
Posts: 144
Joined: Tue Dec 28, 2010 12:54 am
Location: Atlanta, Georgia USA

Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest