/* src: https://raw.githubusercontent.com/npm/docs/master/content/getting-started/fixing-npm-permissions.md */
Install IPFS as described at https://ipfs.io/docs/install/
free dns redirect: https://www.noip.com/
- note: your hashes will be different, but the process is the same
- make the site root folder and 'index.html' from html provided below:
Ark Crypto Arduino Step 1
ESP8266 Crypto | https://github.com/intrbiz/arduino-crypto |
#include <Crypto.h>
This file contains hidden or 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
#include <iostream> | |
#include <random> | |
int rand01() | |
{ | |
std::random_device rd; | |
std::mt19937 gen(rd()); | |
std::uniform_int_distribution<> dis(0, 1); | |
return dis(gen); | |
} |
./esptool --port /dev/cu.SLAB_USBtoUART erase_flash
This file contains hidden or 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
std::string toString(unsigned long long n, uint8_t base) | |
{ | |
unsigned char buf[16 * sizeof(long)]; // Assumes 8-bit chars. | |
unsigned long long i = 0; | |
if (n == 0) { return "0"; }; | |
while (n > 0) { | |
buf[i++] = n % base; | |
n /= base; | |
} |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This file is part of Ark Cpp Client. | |
# | |
# (c) Ark Ecosystem <[email protected]> | |
# | |
# For the full copyright and license information, please view the LICENSE | |
# file that was distributed with this source code. | |
# ######### | |
# This script extends support to the Arduino IDE. |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This file is part of Ark Cpp Client. | |
# | |
# (c) Ark Ecosystem <[email protected]> | |
# | |
# For the full copyright and license information, please view the LICENSE | |
# file that was distributed with this source code. | |
# ######### | |
# This script extends support to the Arduino IDE. |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This file is part of Ark Cpp Crypto. | |
# | |
# (c) Ark Ecosystem <[email protected]> | |
# | |
# For the full copyright and license information, please view the LICENSE | |
# file that was distributed with this source code. | |
# ######### | |
# This script extends support to the Arduino IDE. |
python esptool.py --port /dev/cu.SLAB_USBtoUART erase_flash