BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
an elliptic curve private key. More...
#include <elliptic.hpp>
Public Member Functions | |
private_key () | |
private_key (private_key &&pk) | |
private_key (const private_key &pk) | |
~private_key () | |
private_key & | operator= (private_key &&pk) |
private_key & | operator= (const private_key &pk) |
private_key | child (const fc::sha256 &offset) const |
private_key_secret | get_secret () const |
operator private_key_secret () const | |
fc::sha512 | get_shared_secret (const public_key &pub) const |
compact_signature | sign_compact (const fc::sha256 &digest, bool require_canonical=true) const |
public_key | get_public_key () const |
unsigned int | fingerprint () const |
Static Public Member Functions | |
static private_key | generate () |
static private_key | regenerate (const fc::sha256 &secret) |
static private_key | generate_from_seed (const fc::sha256 &seed, const fc::sha256 &offset=fc::sha256()) |
Friends | |
bool | operator== (const private_key &a, const private_key &b) |
bool | operator!= (const private_key &a, const private_key &b) |
bool | operator< (const private_key &a, const private_key &b) |
an elliptic curve private key.
Definition at line 89 of file elliptic.hpp.
fc::ecc::private_key::private_key | ( | ) |
Definition at line 32 of file elliptic_impl_priv.cpp.
fc::ecc::private_key::private_key | ( | private_key && | pk | ) |
Definition at line 36 of file elliptic_impl_priv.cpp.
fc::ecc::private_key::private_key | ( | const private_key & | pk | ) |
Definition at line 34 of file elliptic_impl_priv.cpp.
fc::ecc::private_key::~private_key | ( | ) |
Definition at line 38 of file elliptic_impl_priv.cpp.
private_key fc::ecc::private_key::child | ( | const fc::sha256 & | offset | ) | const |
Definition at line 130 of file elliptic_common.cpp.
|
inline |
Definition at line 139 of file elliptic.hpp.
|
static |
Definition at line 217 of file elliptic_common.cpp.
|
static |
This method of generation enables creating a new private key in a deterministic manner relative to an initial seed. A public_key created from the seed can be multiplied by the offset to calculate the new public key without having to know the private key.
Definition at line 176 of file elliptic_common.cpp.
public_key fc::ecc::private_key::get_public_key | ( | ) | const |
Definition at line 70 of file elliptic_impl_priv.cpp.
fc::sha256 fc::ecc::private_key::get_secret | ( | ) | const |
Definition at line 59 of file elliptic_impl_priv.cpp.
fc::sha512 fc::ecc::private_key::get_shared_secret | ( | const public_key & | pub | ) | const |
Given a public key, calculatse a 512 bit shared secret between that key and this private key.
Definition at line 66 of file elliptic_secp256k1.cpp.
|
inline |
Definition at line 114 of file elliptic.hpp.
private_key & fc::ecc::private_key::operator= | ( | const private_key & | pk | ) |
Definition at line 46 of file elliptic_impl_priv.cpp.
private_key & fc::ecc::private_key::operator= | ( | private_key && | pk | ) |
Definition at line 40 of file elliptic_impl_priv.cpp.
|
static |
Definition at line 52 of file elliptic_impl_priv.cpp.
compact_signature fc::ecc::private_key::sign_compact | ( | const fc::sha256 & | digest, |
bool | require_canonical = true |
||
) | const |
Definition at line 89 of file elliptic_impl_priv.cpp.
|
friend |
Definition at line 130 of file elliptic.hpp.
|
friend |
Definition at line 134 of file elliptic.hpp.
|
friend |
Definition at line 126 of file elliptic.hpp.