Skip to content

Commit

Permalink
fix linter issues due to missing includes (#97)
Browse files Browse the repository at this point in the history
* fix linter issues due to missing includes

* adding a few more includes
  • Loading branch information
jleni authored Jul 17, 2024
1 parent 7462f9d commit 85fb533
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/rust/include/commitments.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <stdint.h>

void compute_nullifier(uint8_t *ncm_ptr, uint64_t note_pos, const uint8_t *nsk_ptr, uint8_t *out_ptr);

void compute_note_commitment(
Expand Down
2 changes: 2 additions & 0 deletions app/rust/include/notes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <stdint.h>

void rseed_get_esk_epk(const uint8_t *rseed_ptr, uint8_t *d_ptr, uint8_t *output_esk_ptr, uint8_t *output_epk_ptr);

void rseed_get_rcm(const uint8_t *rseed_ptr, uint8_t *output_ptr);
Expand Down
3 changes: 3 additions & 0 deletions app/rust/include/zip32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <stdint.h>
#include <stdbool.h>

void get_pkd(uint32_t zip32_account, const uint8_t *diversifier_ptr, uint8_t *pkd);

void get_pkd_from_seed(uint32_t zip32_account, const uint8_t *start_index, uint8_t *diversifier_ptr, uint8_t *pkd);
Expand Down
4 changes: 4 additions & 0 deletions app/src/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
extern "C" {
#endif

#include <inttypes.h>

#include "coin.h"

typedef struct {
key_type_e kind;
uint8_t len;
Expand Down
5 changes: 5 additions & 0 deletions app/src/refactor/txid.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

#pragma once

#include <stdint.h>

#include "zxerror.h"
#include "sighash.h"

zxerr_t nu5_transparent_prevouts_hash(const uint8_t *input, uint8_t *output);

zxerr_t nu5_transparent_sequence_hash(const uint8_t *input, uint8_t *output);
Expand Down

0 comments on commit 85fb533

Please sign in to comment.