Skip to content

Commit 48e014c

Browse files
sleepdefic1tfaustbrian
authored andcommitted
refactor(slots): Improve Slots Implementations (#92)
- Further decouple OS code from IoT code. - Add missing ESP8266 functionality. - Allow removal of lib/STL dependency. - STL lib is only included to provide a conv. method for IoT to use date.h - date.h is now only used by OS builds, which will have the STL by default. - update changelog. - add PIO filters for lib/date.
1 parent 8396209 commit 48e014c

14 files changed

Lines changed: 84 additions & 435 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## Unreleased
9+
10+
### Changed
11+
12+
- improved Slots implementations ([#92])
13+
814
## [0.5.0] - 2019-02-20
915

1016
### Changed

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ description = "A simple Cryptography Implementation in C++ for the ARK Blockchai
1313

1414
[common]
1515
lib_ldf_mode = off
16-
lib_deps = micro-ecc, bip39@^1.1, ArduinoJson@6.10.0, BIP66
16+
lib_deps = micro-ecc, ArduinoJson@6.10.0, BIP66
1717
build_flags = -I./src/ -I./src/lib -I./src/include/cpp-crypto
18-
src_filter = +<*> -<.git/> -<examples/> -<lib/ArduinoJson>-<lib/uECC> -<CMakeFiles> -<lib/BIP66>
18+
src_filter = +<*> -<.git/> -<examples/> -<lib/ArduinoJson> -<lib/uECC> -<CMakeFiles> -<lib/BIP66> -<lib/date>
1919
upload_speed = 921600
2020

2121
[env:esp8266]

src/helpers/crypto_helpers.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
1+
/**
2+
* This file is part of Ark Cpp Crypto.
3+
*
4+
* (c) Ark Ecosystem <info@ark.io>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
**/
29

310
#ifndef CRYPTO_HELPERS_H
411
#define CRYPTO_HELPERS_H
@@ -17,17 +24,9 @@ const auto WIF_SIZE = 52u;
1724

1825
#define USE_IOT
1926

20-
// Including missing implementations of std::to_string
21-
#include "stl/details/to_string.h"
22-
2327
#include <Arduino.h>
2428
#include <pgmspace.h>
2529

26-
// undef the C macros to allow the C++ STL to take over
27-
// This is to have compatibility with various board implementations of the STL
28-
#undef min
29-
#undef max
30-
3130
#endif
3231

3332
// Write data into dst

src/lib/stl/array

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/lib/stl/cassert

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/lib/stl/cctype

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/lib/stl/cstddef

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/lib/stl/cstdint

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/lib/stl/cstdio

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/lib/stl/cstring

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)