BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Static Public Member Functions | Friends | List of all members
fc::ecc::public_key Class Reference

contains only the public point of an elliptic curve key. More...

#include <elliptic.hpp>

Inheritance diagram for fc::ecc::public_key:
fc::ecc::extended_public_key

Public Member Functions

 public_key ()
 
 public_key (const public_key &k)
 
 ~public_key ()
 
public_key_data serialize () const
 
public_key_point_data serialize_ecc_point () const
 
 operator public_key_data () const
 
 public_key (const public_key_data &v)
 
 public_key (const public_key_point_data &v)
 
 public_key (const compact_signature &c, const fc::sha256 &digest, bool check_canonical=true)
 
public_key child (const fc::sha256 &offset) const
 
bool valid () const
 
public_key add (const fc::sha256 &offset) const
 
 public_key (public_key &&pk)
 
public_keyoperator= (public_key &&pk)
 
public_keyoperator= (const public_key &pk)
 
std::string to_base58 () const
 Allows to convert current public key object into base58 number. More...
 
unsigned int fingerprint () const
 

Static Public Member Functions

static std::string to_base58 (const public_key_data &key)
 
static public_key from_base58 (const std::string &b58)
 

Friends

class private_key
 
bool operator== (const public_key &a, const public_key &b)
 
bool operator!= (const public_key &a, const public_key &b)
 

Detailed Description

contains only the public point of an elliptic curve key.

Definition at line 35 of file elliptic.hpp.

Constructor & Destructor Documentation

fc::ecc::public_key::public_key ( )

Definition at line 77 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::public_key ( const public_key k)

Definition at line 79 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::~public_key ( )

Definition at line 83 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::public_key ( const public_key_data v)

Definition at line 151 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::public_key ( const public_key_point_data v)

Definition at line 135 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::public_key ( const compact_signature c,
const fc::sha256 digest,
bool  check_canonical = true 
)

Definition at line 156 of file elliptic_secp256k1.cpp.

fc::ecc::public_key::public_key ( public_key &&  pk)

Definition at line 81 of file elliptic_secp256k1.cpp.

Member Function Documentation

public_key fc::ecc::public_key::add ( const fc::sha256 offset) const

Computes new pubkey = regenerate(offset).pubkey + old pubkey = offset * G + 1 * old pubkey ?!

Definition at line 102 of file elliptic_secp256k1.cpp.

public_key fc::ecc::public_key::child ( const fc::sha256 offset) const

Definition at line 121 of file elliptic_common.cpp.

unsigned int fc::ecc::public_key::fingerprint ( ) const

Definition at line 161 of file elliptic_common.cpp.

public_key fc::ecc::public_key::from_base58 ( const std::string &  b58)
static

Definition at line 148 of file elliptic_common.cpp.

fc::ecc::public_key::operator public_key_data ( ) const
inline

Definition at line 44 of file elliptic.hpp.

public_key & fc::ecc::public_key::operator= ( public_key &&  pk)

Definition at line 91 of file elliptic_secp256k1.cpp.

public_key & fc::ecc::public_key::operator= ( const public_key pk)

Definition at line 85 of file elliptic_secp256k1.cpp.

public_key_data fc::ecc::public_key::serialize ( ) const

Definition at line 118 of file elliptic_secp256k1.cpp.

public_key_point_data fc::ecc::public_key::serialize_ecc_point ( ) const

Definition at line 124 of file elliptic_secp256k1.cpp.

std::string fc::ecc::public_key::to_base58 ( ) const

Allows to convert current public key object into base58 number.

Definition at line 112 of file elliptic_secp256k1.cpp.

std::string fc::ecc::public_key::to_base58 ( const public_key_data key)
static

Definition at line 138 of file elliptic_common.cpp.

bool fc::ecc::public_key::valid ( ) const

Definition at line 97 of file elliptic_secp256k1.cpp.

Friends And Related Function Documentation

bool operator!= ( const public_key a,
const public_key b 
)
friend

Definition at line 66 of file elliptic.hpp.

bool operator== ( const public_key a,
const public_key b 
)
friend

Definition at line 62 of file elliptic.hpp.

friend class private_key
friend

Definition at line 79 of file elliptic.hpp.


The documentation for this class was generated from the following files: