Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix recover_key
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 3, 2021
1 parent 5615b9a commit d03838d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/eosio-tester/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,11 +1059,11 @@ struct callbacks {
std::memcpy(hash_val, hash.data(), hash.data_size());
}

int32_t recover_key( span<const char> digest_span,
int32_t recover_key( const void* digest_span,
span<const char> sig,
void* pub ) {
fc::sha256 digest;
std::memcpy(digest.data(), digest_span.data(), digest_span.size());
std::memcpy(digest.data(), digest_span, digest.data_size());

fc::crypto::signature s;
fc::datastream<const char*> ds( sig.data(), sig.size() );
Expand Down

0 comments on commit d03838d

Please sign in to comment.