Supports 32 bits chainId for signature and matching - the returned V will be wrong and has to be recomputed by the client

This commit is contained in:
BTChip github
2018-07-28 17:36:12 +02:00
parent c276531c83
commit 8260268b02
3 changed files with 27 additions and 19 deletions

View File

@@ -20,7 +20,7 @@
#define MAX_INT256 32
#define MAX_ADDRESS 20
#define MAX_V 2
#define MAX_V 4
void initTx(txContext_t *context, cx_sha3_t *sha3, txContent_t *content,
ustreamProcess_t customProcessor, void *extra) {

View File

@@ -58,7 +58,7 @@ typedef struct txContent_t {
txInt256_t value;
uint8_t destination[20];
uint8_t destinationLength;
uint8_t v[2];
uint8_t v[4];
uint8_t vLength;
} txContent_t;