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

fix linter issues due to missing includes #97

Merged
merged 2 commits into from
Jul 17, 2024
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: 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
Loading