diff --git a/src/WIF.cpp b/src/WIF.cpp index ffa9fa8..a021cab 100644 --- a/src/WIF.cpp +++ b/src/WIF.cpp @@ -52,7 +52,7 @@ std::string wif_pub_encode(ec_pubkey_t pub) { return "EOS" + base58_encode(buf, buf + sizeof(buf)); } -void wif_print_key(struct ec_keypair *key) { +void wif_print_key(const struct ec_keypair *key) { std::cout << "Private: " << wif_priv_encode(key->secret) << std::endl; std::cout << "Public: " << wif_pub_encode(key->pub) << std::endl; diff --git a/src/WIF.h b/src/WIF.h index 986949c..06b4a63 100644 --- a/src/WIF.h +++ b/src/WIF.h @@ -31,6 +31,6 @@ std::string wif_priv_encode(ec_privkey_t priv); std::string wif_pub_encode(ec_pubkey_t pub); -void wif_print_key(struct ec_keypair *key); +void wif_print_key(const struct ec_keypair *key); #endif /* WIF_H */