Skip to content

Commit

Permalink
Merge pull request #11 from eosiosg/add-tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
oldcold authored Apr 23, 2020
2 parents 760946a + 49093d8 commit 3f81803
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 24 deletions.
2 changes: 1 addition & 1 deletion lib/cypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public_key::public_key(const signature& sig, const sha256& digest, bool require_
}
unsigned int pk_len;
storage.resize(33);
secp256k1_ecdsa_recover_compact(_get_context(), (unsigned char*) digest.data(), (unsigned char*) sig.data() + 1, (unsigned char*) storage.data(), (int *) &pk_len, (int) 1, (*sig.data() - 27) & 3 );
auto ret = secp256k1_ecdsa_recover_compact(_get_context(), (unsigned char*) digest.data(), (unsigned char*) sig.data() + 1, (unsigned char*) storage.data(), (int *) &pk_len, (int) 1, (*sig.data() - 27) & 3 );
}

pair<bool, size_t> public_key::serialize(void* pDstBuffer, const void* pData, size_t bufferSize) {
Expand Down
Loading

0 comments on commit 3f81803

Please sign in to comment.