mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
WIF: Add const to wif_print_key()
This commit is contained in:
parent
a9181bab91
commit
88638d0e94
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue