-
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
31 changed files
with
314 additions
and
417 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
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 |
---|---|---|
@@ -1,28 +1,35 @@ | ||
void get_pkd(const uint8_t *seed_ptr, const uint32_t pos, const uint8_t *diversifier_ptr, uint8_t *pkd); | ||
#pragma once | ||
|
||
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); | ||
#define ZIP32_SIZE 32 | ||
|
||
void get_diversifier_list(const uint8_t *sk_ptr, uint8_t *diversifier_list); | ||
void get_pkd(const uint8_t (*seed_ptr)[ZIP32_SIZE], | ||
uint32_t zip32_account, | ||
const uint8_t *diversifier_ptr, | ||
uint8_t (*pkd)[32]); | ||
|
||
void get_pkd_from_seed(const uint8_t (*seed_ptr)[ZIP32_SIZE], | ||
uint32_t zip32_account, | ||
const uint8_t *start_index, | ||
uint8_t *diversifier_ptr, | ||
uint8_t (*pkd)[32]); | ||
|
||
bool diversifier_is_valid(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 diversifier_get_list(const uint8_t (*seed_ptr)[ZIP32_SIZE], | ||
uint32_t zip32_account, | ||
const 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 diversifier_find_valid(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t zip32_account, uint8_t *default_diversifier); | ||
|
||
void zip32_child_ask_nsk(const uint8_t *seed_ptr, uint8_t *ask, uint8_t *nsk, const uint32_t pos); | ||
void zip32_child_ask_nsk(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t pos, uint8_t *ask, uint8_t *nsk); | ||
|
||
void zip32_nsk_from_seed(const uint8_t *seed_ptr, uint32_t zip32_account, uint8_t *nsk); | ||
void zip32_nsk_from_seed(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t zip32_account, uint8_t *nsk); | ||
|
||
void zip32_ovk(const uint8_t *seed_ptr, const uint32_t zip32_account, uint8_t *ovk); | ||
void zip32_ovk(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t zip32_account, uint8_t *ovk); | ||
|
||
void zip32_child_proof_key(const uint8_t *seed_ptr, const uint32_t account, uint8_t *ak_ptr, uint8_t *nsk_ptr); | ||
void zip32_child_proof_key(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t account, uint8_t *ak_ptr, uint8_t *nsk_ptr); | ||
|
||
void zip32_ivk(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t zip32_account, uint8_t *ivk); | ||
|
||
///////////////////////////// checked | ||
void zip32_ivk(const uint8_t *seed_ptr, const uint32_t zip32_account, uint8_t *ivk); | ||
void zip32_fvk(const uint8_t *seed_ptr, uint32_t pos, uint8_t *fvk_ptr); | ||
void zip32_fvk(const uint8_t (*seed_ptr)[ZIP32_SIZE], uint32_t zip32_account, uint8_t *fvk_ptr); |
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
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.