Airgapped hardware wallet based on STM32F469-Discovery board using SD card to pass transaction data

Dependencies:   mbed QSPI_DISCO_F469NI BSP_DISCO_F469NI

Revision:
0:f43431023689
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/helpers.h	Sat Jul 20 15:16:38 2019 +0000
@@ -0,0 +1,38 @@
+#ifndef __HELPER_H__
+#define __HELPER_H__
+
+#include "mbed.h"
+#include "sdcard.h"
+#include "gui.h"
+#include <string>
+#include <sstream>
+// to use string class without std::
+using namespace std;
+
+extern GUI gui;
+
+void init();
+
+/*********** random number generator ***********/
+
+// initializes TRNG
+int initRNG();
+
+// generates a single random number
+uint32_t getRandomNumber(void);
+
+// fills the buffer with random data
+size_t getRandomBuffer(uint8_t * arr, size_t len);
+
+/*************** mnemonic stuff ***************/
+
+// loads mnemonic from the internal storage
+string loadMnemonic();
+
+// saves mnemonic to the internal storage
+int saveMnemonic(string mnemonic);
+
+// wipes the device (deletes mnemonic from the memory)
+int wipe();
+
+#endif
\ No newline at end of file