Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Apr 11, 2014
1 parent e827517 commit 94d4a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecdsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void ecdsa_get_address(const uint8_t *pub_key, uint8_t version, char *addr)

memcpy(a + 28, a, 4); // checksum
memset(a, 0, 7); // zeroes
memcpy(a + 7, b, 21); // ripemd160(sha256(version + pubkey)
memcpy(a + 7, b, 21); // version || ripemd160(sha256(pubkey))

bn_read_be(a, &c);

Expand Down
2 changes: 1 addition & 1 deletion tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ END_TEST

START_TEST(test_ecdsa_der)
{
uint8_t sig[64], der[70];
uint8_t sig[64], der[72];
int res;

memcpy(sig, fromhex("9a0b7be0d4ed3146ee262b42202841834698bb3ee39c24e7437df208b8b70771"), 32);
Expand Down

0 comments on commit 94d4a37

Please sign in to comment.