-
Notifications
You must be signed in to change notification settings - Fork 11
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
17 changed files
with
685 additions
and
730 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
void compute_note_commitment(uint8_t *inputptr, const uint8_t *rcmptr, const uint64_t value, const uint8_t *diversifier_ptr, | ||
const uint8_t *pkd); | ||
|
||
void compute_note_commitment_fullpoint(uint8_t *inputptr, const uint8_t *rcmptr, const uint64_t value, | ||
const uint8_t *diversifier_ptr, const uint8_t *pkd); | ||
|
||
void compute_value_commitment(const uint64_t value, const uint8_t *rcmptr, uint8_t *output); | ||
|
||
void compute_nullifier(uint8_t *ncmptr, uint64_t pos, const uint8_t *nsk_ptr, uint8_t *outputptr); |
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,8 @@ | ||
void rseed_get_esk_epk(const uint8_t *seed_ptr, uint8_t *d_ptr, uint8_t *output_esk_ptr, uint8_t *output_epk_ptr); | ||
|
||
void rseed_get_rcm(const uint8_t *input, uint8_t *output_ptr); | ||
|
||
void ka_to_key(uint8_t *esk_ptr, uint8_t *pkd_ptr, uint8_t *epk_ptr, uint8_t *output_ptr); | ||
|
||
void prepare_enccompact_input(uint8_t *d, uint64_t value, uint8_t *rcm, uint8_t memotype, uint8_t *output); | ||
|
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,44 @@ | ||
void get_pkd(const uint8_t *seed_ptr, const uint32_t pos, const uint8_t *diversifier_ptr, uint8_t *pkd); | ||
|
||
void get_pkd_from_seed(const uint8_t *seed_ptr, const uint32_t pos, const uint8_t *start_index, uint8_t *diversifier_ptr, | ||
uint8_t *pkd); | ||
|
||
void get_diversifier_list(const uint8_t *sk_ptr, uint8_t *diversifier_list); | ||
|
||
void get_diversifier_fromlist(const uint8_t *diversifier_list, uint8_t *diversifier); | ||
|
||
bool is_valid_diversifier(const uint8_t *diversifier); | ||
|
||
void get_diversifier_list_withstartindex(const uint8_t *seed_ptr, const uint32_t pos, const uint8_t *startindex, | ||
uint8_t *diversifier_list); | ||
|
||
void get_default_diversifier_list_withstartindex(const uint8_t *seed_ptr, const uint32_t pos, uint8_t *startindex, | ||
uint8_t *diversifier_list); | ||
|
||
void get_default_diversifier_without_start_index(const uint8_t *see_ptr, const uint32_t pos, uint8_t *default_diversifier); | ||
|
||
// void zip32_master(const uint8_t *seed_ptr, uint8_t *sk_ptr, uint8_t *dk_ptr); | ||
|
||
void zip32_child_ask_nsk(const uint8_t *seed_ptr, uint8_t *ask, uint8_t *nsk, const uint32_t pos); | ||
|
||
/** | ||
* @deprecated This function is deprecated and should not be used in new code. | ||
*/ | ||
void zip32_nsk_from_seed(const uint8_t *seed_ptr, uint8_t *nsk); | ||
|
||
/** | ||
* @deprecated This function is deprecated and should not be used in new code. | ||
*/ | ||
void zip32_ivk(const uint8_t *ak_ptr, uint8_t *ivk_ptr, const uint32_t pos); | ||
|
||
/** | ||
* @deprecated This function is deprecated and should not be used in new code. | ||
*/ | ||
void zip32_ovk(const uint8_t *seed_ptr, uint8_t *ovk, const uint32_t pos); | ||
|
||
/** | ||
* @deprecated This function is deprecated and should not be used in new code. | ||
*/ | ||
void zip32_fvk(const uint8_t *seed_ptr, uint8_t *fvk, const uint32_t pos); | ||
|
||
void zip32_child_proof_key(const uint8_t *seed_ptr, uint8_t *ak_ptr, uint8_t *nsk_ptr, const uint32_t pos); |
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.