-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
15,363 additions
and
2,476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/************************************************************************************ | ||
* written by: Bitmaker | ||
* based on: Blockstream Jade shaLib | ||
* thanks to @LarryBitcoin | ||
* Description: | ||
* NerdSha256plus is a custom C implementation of sha256d based on Blockstream Jade | ||
code https://github.com/Blockstream/Jade | ||
The folowing file can be used on any ESP32 implementation using both cores | ||
*************************************************************************************/ | ||
#ifndef nerdSHA256plus_H_ | ||
#define nerdSHA256plus_H_ | ||
|
||
#include <stdbool.h> | ||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
|
||
struct nerdSHA256_context { | ||
uint8_t buffer[64]; | ||
uint32_t digest[8]; | ||
}; | ||
|
||
/* Calculate midstate */ | ||
IRAM_ATTR void nerd_mids(nerdSHA256_context* midstate, uint8_t* dataIn); | ||
|
||
IRAM_ATTR bool nerd_sha256d(nerdSHA256_context* midstate, uint8_t* dataIn, uint8_t* doubleHash); | ||
|
||
void ByteReverseWords(uint32_t* out, const uint32_t* in, uint32_t byteCount); | ||
|
||
#endif /* nerdSHA256plus_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.