Skip to content

Commit

Permalink
Espers v0.8.7.9 Fractal Update 01
Browse files Browse the repository at this point in the history
Changelog
------------

- Added BVAC encoding (Bits Visualized As Color)
- Added Receiving address BVAC image generation

TODO: rename files incorrectly labeled "DVAC" and add address decoding, will do this in next commit
  • Loading branch information
CryptoCoderz committed Apr 12, 2021
1 parent 69e9152 commit 1591128
Show file tree
Hide file tree
Showing 14 changed files with 2,055 additions and 26 deletions.
5 changes: 4 additions & 1 deletion Espers-qt.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = Espers-fractal-qt
VERSION = 0.8.7.8
VERSION = 0.8.7.9
INCLUDEPATH += src src/json src/qt
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Expand Down Expand Up @@ -327,11 +327,13 @@ HEADERS += src/qt/bitcoingui.h \
src/crypto/common/sph_haval.h \
src/crypto/common/sph_sha2.h \
src/stb/stb_image.h \
src/stb/stb_image_write.h \
src/fractal/fractalengine.h \
src/fractal/fractalcontract.h \
src/fractal/fractalparams.h \
src/fractal/fractaldataob.h \
src/fractal/fractalnft.h \
src/fractal/fractaldvac.h \
src/xnode/xnodecomponent.h \
src/xnode/xnodemngr.h \
src/xnode/xnodereward.h \
Expand Down Expand Up @@ -437,6 +439,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/fractal/fractalparams.cpp \
src/fractal/fractaldataob.cpp \
src/fractal/fractalnft.cpp \
src/fractal/fractaldvac.cpp \
src/xnode/xnoderpc.cpp \
src/xnode/xnodecomponent.cpp \
src/xnode/xnodemngr.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/consensus/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD 8
#define CLIENT_VERSION_BUILD 9

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
2 changes: 1 addition & 1 deletion src/fractal/fractalcontract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// NOTICE!
//
// This is a completely experimental smart-contract platform written by
// CrpytoCoderz (Jonathan Dan Zaretsky - cryptocoderz@gmail.com)
// CryptoCoderz (Jonathan Dan Zaretsky - cryptocoderz@gmail.com)
//
// PLEASE USE AT YOUR OWN RISK!!!
//
Expand Down
40 changes: 24 additions & 16 deletions src/fractal/fractaldataob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// NOTICE!
//
// This is a completely experimental data obfuscation method written by
// CrpytoCoderz (Jonathan Dan Zaretsky - cryptocoderz@gmail.com)
// CryptoCoderz (Jonathan Dan Zaretsky - cryptocoderz@gmail.com)
// and
// SaltineChips (Jeremiah Cook - jeremiahwcook@gmail.com)
//
Expand Down Expand Up @@ -64,9 +64,12 @@ using namespace std;
int input_character_length = 0;
int input_length = 0;
int shifts = 0;
int pivots = 0;
int position = 0;
std::string Obfuscated_String = "";
std::string Obfuscated_Combined_String = "";
std::string SingleLayer_Key = "";
std::string SecondLayer_Key = "";

// Initialize Valid Character String Array
std::string Character_String[62] = { "A", "a", "B", "b",
Expand Down Expand Up @@ -189,6 +192,9 @@ void character_obfuscation(std::string contract_input, std::string contract_alia
str_ch_ltrcount.push_back(ch_ltrcount);
}

// Generate pivots/shifts
obfuscation_shift(letter_total_word, Obfuscated_String, true);

// Set obfuscated values
Obfuscated_Combined_String += (Obfuscated_String + blank_space[0]);
Obfuscated_String = "";
Expand Down Expand Up @@ -226,21 +232,23 @@ void character_obfuscation(std::string contract_input, std::string contract_alia
}

// Determined obfuscation logic shifts
void obfuscation_shift()
void obfuscation_shift(int input_data_shift, std::string input_data_text, bool char_ob)
{
//char str[] = Obfuscated_Combined_String;

// Returns first token
//char *token = strtok(str, "");

// Keep printing tokens while one of the
// delimiters present in str[].
//while (token != NULL)
//{
// Character obfuscation
// printf("%s\n", token);
// token = strtok(NULL, "-");
//}
// Generate random seed data for rounds, and shifts/pivots
int64_t seed_1, seed_2, seed_3, seed_tmp = 0;
double pre_shift = 0;
double pre_pivot = 0;

// Decide data type handling
if(char_ob) {
seed_1 = GetTime();
seed_2 = pindexBest->GetBlockTime();
seed_3 = input_data_shift;

seed_tmp = seed_1 + seed_2 + 0;// TODO finish here man
} else {
//
}



Expand All @@ -253,7 +261,7 @@ void priming(std::string contract_input, std::string contract_alias, int contrac
// Run Preliminary obfuscation proceedure
character_obfuscation(contract_input, contract_alias, contract_type);
// Determine sifts/pivots
obfuscation_shift();
//obfuscation_shift();

// Set Input Data
//std::string Output_String = Obfuscated_String;
Expand Down
5 changes: 4 additions & 1 deletion src/fractal/fractaldataob.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@
// Primitives
extern int input_length;
extern int shifts;
extern int pivots;
extern int position;
extern std::string Obfuscated_String;
extern std::string Obfuscated_Combined_String;
extern std::string SingleLayer_Key;
extern std::string SecondLayer_Key;
extern std::string Word_Letter_Count[];

// Preliminary obfuscation proceedure
void character_obfuscation(std::string contract_input, std::string contract_alias, int contract_type);// TODO: Refactor contract_alias to be able to write later as we want more than just character obbing
// Determined obfuscation logic shifts
void obfuscation_shift();
void obfuscation_shift(int input_data_shift, std::string input_data_text, bool char_ob);
// Setup the obfuscation engine
void priming(std::string contract_input, std::string contract_alias, int contract_type);
// Ignition of obfuscation engine
Expand Down
Loading

0 comments on commit 1591128

Please sign in to comment.