|
|
@ -4,10 +4,17 @@ |
|
|
|
#ifndef BITCOIN_KEY_H |
|
|
|
#ifndef BITCOIN_KEY_H |
|
|
|
#define BITCOIN_KEY_H |
|
|
|
#define BITCOIN_KEY_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdexcept> |
|
|
|
|
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
|
|
#include <openssl/ec.h> |
|
|
|
#include <openssl/ec.h> |
|
|
|
#include <openssl/ecdsa.h> |
|
|
|
#include <openssl/ecdsa.h> |
|
|
|
#include <openssl/obj_mac.h> |
|
|
|
#include <openssl/obj_mac.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "serialize.h" |
|
|
|
|
|
|
|
#include "uint256.h" |
|
|
|
|
|
|
|
#include "base58.h" |
|
|
|
|
|
|
|
|
|
|
|
// secp160k1
|
|
|
|
// secp160k1
|
|
|
|
// const unsigned int PRIVATE_KEY_SIZE = 192;
|
|
|
|
// const unsigned int PRIVATE_KEY_SIZE = 192;
|
|
|
|
// const unsigned int PUBLIC_KEY_SIZE = 41;
|
|
|
|
// const unsigned int PUBLIC_KEY_SIZE = 41;
|
|
|
|