Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing submodules #49

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/default/rddl-sdk
2 changes: 1 addition & 1 deletion lib/default/rddl/src/planetmintgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int prepareTx( Google__Protobuf__Any* anyMsg,

bool removeIPAddr( char* gps_data );

#define MY_STACK_LIMIT 5120
#define MY_STACK_LIMIT 7168

uint8_t* getStack( size_t size );
void clearStack();
Expand Down
4 changes: 2 additions & 2 deletions lib/default/rddl/src/rddl.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const char* setSeed( char* pMnemonic, size_t len )
if( !mnemonic_check( pMnemonic ) )
return "";

mnemonic_to_seed(pMnemonic, "TREZOR", secret_seed, 0);
mnemonic_to_seed(pMnemonic, "", secret_seed, 0);
return (const char*)pMnemonic;
}

Expand All @@ -105,7 +105,7 @@ bool getSeedFromMnemonic( const char* pMnemonic, size_t len, uint8_t* seedbuffer
if( !mnemonic_check( pMnemonic ) )
return false;

mnemonic_to_seed(pMnemonic, "TREZOR", seedbuffer, NULL);
mnemonic_to_seed(pMnemonic, "", seedbuffer, NULL);
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/default/rddl/src/rddl_cid.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ char* create_cid_v1_from_string(const char* data) {
size_t input_length = SHA256_DIGEST_LENGTH + 4; // calculate the length of the actual content to be encoded
size_t buffer_size = (input_length + 4) / 5 * 8 + 1; // calculate the buffer size for the base32-encoded string

char* base32_cid = (char*)malloc(buffer_size + 2); // Allocate 2 extra bytes: one for the 'b' prefix and one for the null terminator
char* base32_cid = (char*)getStack(buffer_size + 2); // Allocate 2 extra bytes: one for the 'b' prefix and one for the null terminator
base32_cid[0] = 'b'; // Add 'b' prefix
base32_encode(pre_encoded_cid, input_length, base32_cid + 1, buffer_size, BASE32_ALPHABET_RFC4648);
string_to_lowercase(base32_cid);
Expand Down