mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +00:00
fix last commit
This commit is contained in:
parent
c1dc507189
commit
c08bbfa58e
3
bip32.c
3
bip32.c
@ -119,7 +119,7 @@ void hdnode_fill_public_key(HDNode *node)
|
||||
ecdsa_get_public_key33(node->private_key, node->public_key);
|
||||
}
|
||||
|
||||
void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, uint8_t *buffer)
|
||||
void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, char *buffer)
|
||||
{
|
||||
uint8_t node_data[82], a[32];
|
||||
int i,j;
|
||||
@ -149,4 +149,5 @@ void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, uin
|
||||
}
|
||||
buffer[j] = code[rem];
|
||||
}
|
||||
buffer[111] = 0;
|
||||
}
|
||||
|
2
bip32.h
2
bip32.h
@ -28,6 +28,6 @@ void hdnode_fill_public_key(HDNode *node);
|
||||
|
||||
void hdnode_fill_address(HDNode *node);
|
||||
|
||||
void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, uint8_t *buffer);
|
||||
void hdnode_serialize(const HDNode *node, uint32_t version, char use_public, char *buffer);
|
||||
|
||||
#endif
|
||||
|
4
tests.c
4
tests.c
@ -78,7 +78,7 @@ inline char *tohex(const uint8_t *bin, size_t l)
|
||||
START_TEST(test_bip32_vector_1)
|
||||
{
|
||||
HDNode node;
|
||||
uint8_t buffer[113];
|
||||
char buffer[112];
|
||||
|
||||
// init m
|
||||
hdnode_from_seed(fromhex("000102030405060708090a0b0c0d0e0f"), 16, &node);
|
||||
@ -154,7 +154,7 @@ END_TEST
|
||||
START_TEST(test_bip32_vector_2)
|
||||
{
|
||||
HDNode node;
|
||||
uint8_t buffer[113];
|
||||
char buffer[112];
|
||||
int r;
|
||||
|
||||
// init m
|
||||
|
Loading…
Reference in New Issue
Block a user