-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
389 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef KEEPKEY_FIRMWARE_SIGNTXTENDERMINT_H | ||
#define KEEPKEY_FIRMWARE_SIGNTXTENDERMINT_H | ||
|
||
#include "messages.pb.h" | ||
#include "trezor/crypto/bip32.h" | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
typedef struct _TendermintSignTx TendermintSignTx; | ||
|
||
bool tendermint_signTxInit(const HDNode *_node, const void *_msg, const size_t msgsize, const char *denom); | ||
bool tendermint_signTxUpdateMsgSend(const uint64_t amount, const char *to_address, const char *chainstr, const char *denom, const char *msgTypePrefix); | ||
bool tendermint_signTxFinalize(uint8_t *public_key, uint8_t *signature); | ||
bool tendermint_signingIsInited(void); | ||
bool tendermint_signingIsFinished(void); | ||
void tendermint_signAbort(void); | ||
const void *tendermint_getSignTx(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
TendermintGetAddress.address_n max_count:10 | ||
TendermintGetAddress.address_prefix max_size:10 | ||
TendermintGetAddress.chain_name max_size:15 | ||
|
||
TendermintAddress.address max_size:46 | ||
|
||
TendermintMsgAck.denom max_size:10 | ||
TendermintMsgAck.chain_name max_size:15 | ||
TendermintMsgAck.message_type_prefix max_size:25 | ||
|
||
TendermintSignTx.address_n max_count:10 | ||
TendermintSignTx.chain_id max_size:32 | ||
TendermintSignTx.memo max_size:256 | ||
TendermintSignTx.denom max_size:10 | ||
TendermintSignTx.chain_name max_size:15 | ||
TendermintSignTx.message_type_prefix max_size:25 | ||
|
||
TendermintMsgSend.from_address max_size:46 | ||
TendermintMsgSend.to_address max_size:46 | ||
|
||
TendermintSignedTx.public_key max_size:33 | ||
TendermintSignedTx.signature max_size:64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.