1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

Adding "eoskeygen" namespace.

This commit is contained in:
Henrik Hautakoski 2020-02-10 16:58:08 +01:00
parent 20a47d11b5
commit 0e9d23086f
22 changed files with 95 additions and 11 deletions

View file

@ -27,6 +27,8 @@
#include "checksum.h"
#include "WIF.h"
namespace eoskeygen {
#define PRIV_KEY_PREFIX 0x80 /* 0x80 for "Bitcoin mainnet". Always used by EOS. */
std::string wif_priv_encode(ec_privkey_t priv) {
@ -60,3 +62,5 @@ void wif_print_key(const struct ec_keypair *key) {
std::cout << "Public: " << wif_pub_encode(key->pub) << std::endl;
std::cout << "Private: " << wif_priv_encode(key->secret) << std::endl;
}
} // namespace eoskeygen