10namespace fc {
namespace em {
21 this->_key = cpy._key;
31 static const private_key_secret empty_priv;
43 my = std::move( pk.my );
56 self.my->_key = secret;
75 size_t pub_len =
sizeof(
pub);
83 static int extended_nonce_function(
unsigned char *nonce32,
const unsigned char *msg32,
84 const unsigned char *key32,
const unsigned char* algo16,
85 void* data,
unsigned int attempt ) {
86 unsigned int* extra = (
unsigned int*) data;
97 unsigned int counter = 0;
102 }
while( require_canonical && !public_key::is_canonical( result ) );
104 result.begin()[0] = 27 + 4 + recid;
private_key_impl & operator=(const private_key_impl &pk) BOOST_NOEXCEPT
private_key_impl() BOOST_NOEXCEPT
an elliptic curve private key.
public_key get_public_key() const
private_key_secret get_secret() const
static private_key regenerate(const fc::sha256 &secret)
private_key & operator=(private_key &&pk)
compact_signature sign_compact(const fc::sha256 &digest, bool require_canonical=true) const
contains only the public point of an elliptic curve key.
const char * data() const
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
const secp256k1_context * _get_context()
fc::sha256 digest(const T &value)
SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_default
SECP256K1_API int secp256k1_ec_pubkey_serialize(const secp256k1_context *ctx, unsigned char *output, size_t *outputlen, const secp256k1_pubkey *pubkey, unsigned int flags) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(const secp256k1_context *ctx, secp256k1_pubkey *pubkey, const unsigned char *seckey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
#define SECP256K1_EC_COMPRESSED
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_serialize_compact(const secp256k1_context *ctx, unsigned char *output64, int *recid, const secp256k1_ecdsa_recoverable_signature *sig) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
SECP256K1_API int secp256k1_ecdsa_sign_recoverable(const secp256k1_context *ctx, secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *msghash32, const unsigned char *seckey, secp256k1_nonce_function noncefp, const void *ndata) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)