From b5f89bb47830189036bfce04ca22adafc852e453 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 4 Jul 2016 17:29:48 +0200 Subject: [PATCH] fpr -> fingerprint --- bip32.c | 12 ++++++------ bip32.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bip32.c b/bip32.c index 40656906f..f6f4de653 100644 --- a/bip32.c +++ b/bip32.c @@ -414,12 +414,12 @@ int hdnode_sign_digest(HDNode *node, const uint8_t *digest, uint8_t *sig, uint8_ } -void hdnode_serialize(const HDNode *node, uint32_t fpr, uint32_t version, char use_public, char *str, int strsize) +void hdnode_serialize(const HDNode *node, uint32_t fingerprint, uint32_t version, char use_public, char *str, int strsize) { uint8_t node_data[78]; write_be(node_data, version); node_data[4] = node->depth; - write_be(node_data + 5, fpr); + write_be(node_data + 5, fingerprint); write_be(node_data + 9, node->child_num); memcpy(node_data + 13, node->chain_code, 32); if (use_public) { @@ -433,14 +433,14 @@ void hdnode_serialize(const HDNode *node, uint32_t fpr, uint32_t version, char u MEMSET_BZERO(node_data, sizeof(node_data)); } -void hdnode_serialize_public(const HDNode *node, uint32_t fpr, char *str, int strsize) +void hdnode_serialize_public(const HDNode *node, uint32_t fingerprint, char *str, int strsize) { - hdnode_serialize(node, fpr, 0x0488B21E, 1, str, strsize); + hdnode_serialize(node, fingerprint, 0x0488B21E, 1, str, strsize); } -void hdnode_serialize_private(const HDNode *node, uint32_t fpr, char *str, int strsize) +void hdnode_serialize_private(const HDNode *node, uint32_t fingerprint, char *str, int strsize) { - hdnode_serialize(node, fpr, 0x0488ADE4, 0, str, strsize); + hdnode_serialize(node, fingerprint, 0x0488ADE4, 0, str, strsize); } // check for validity of curve point in case of public data not performed diff --git a/bip32.h b/bip32.h index 02f92334e..e674b5d3b 100644 --- a/bip32.h +++ b/bip32.h @@ -70,14 +70,14 @@ void hdnode_fill_public_key(HDNode *node); int hdnode_sign(HDNode *node, const uint8_t *msg, uint32_t msg_len, uint8_t *sig, uint8_t *pby); int hdnode_sign_digest(HDNode *node, const uint8_t *digest, uint8_t *sig, uint8_t *pby); -void hdnode_serialize_public(const HDNode *node, uint32_t fpr, char *str, int strsize); +void hdnode_serialize_public(const HDNode *node, uint32_t fingerprint, char *str, int strsize); -void hdnode_serialize_private(const HDNode *node, uint32_t fpr, char *str, int strsize); +void hdnode_serialize_private(const HDNode *node, uint32_t fingerprint, char *str, int strsize); int hdnode_deserialize(const char *str, HDNode *node); // Private -void hdnode_serialize(const HDNode *node, uint32_t fpr, uint32_t version, char use_public, char *str, int strsize); +void hdnode_serialize(const HDNode *node, uint32_t fingerprint, uint32_t version, char use_public, char *str, int strsize); void hdnode_get_address_raw(HDNode *node, uint8_t version, uint8_t *addr_raw);