commit 96deb58abad590ceac3b4138f5be2952ba34ea5f
parent a8f0c51153fbc6b105b93dfa1becfae077addad4
Author: William Casarin <jb55@jb55.com>
Date: Fri, 24 May 2019 14:22:07 -0700
simplify hash160 name
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bip32.c b/bip32.c
@@ -111,8 +111,8 @@ static int key_compute_pub_key(const secp256k1_context *ctx,
static void key_compute_hash160(struct ext_key *key_out)
{
- wally_hash160(key_out->pub_key, sizeof(key_out->pub_key),
- key_out->hash160, sizeof(key_out->hash160));
+ hash160(key_out->pub_key, sizeof(key_out->pub_key),
+ key_out->hash160, sizeof(key_out->hash160));
}
int bip32_key_free(const struct ext_key *hdkey)
diff --git a/hash.c b/hash.c
@@ -4,7 +4,7 @@
#include "compiler.h"
#include "hash.h"
-int wally_hash160(const unsigned char *bytes, size_t bytes_len,
+int hash160(const unsigned char *bytes, size_t bytes_len,
unsigned char *bytes_out, size_t len)
{
struct sha256 sha;
diff --git a/hash.h b/hash.h
@@ -7,7 +7,7 @@
/** Output length for `wally_hash160` */
#define HASH160_LEN 20
-int wally_hash160(const unsigned char *bytes, size_t bytes_len,
+int hash160(const unsigned char *bytes, size_t bytes_len,
unsigned char *bytes_out, size_t len);
#endif /* HASH_H */