BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ public_key() [1/6]

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

Definition at line 77 of file elliptic_secp256k1.cpp.

◆ public_key() [2/6]

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

Definition at line 79 of file elliptic_secp256k1.cpp.

◆ ~public_key()

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

Definition at line 83 of file elliptic_secp256k1.cpp.

◆ public_key() [3/6]

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

Definition at line 151 of file elliptic_secp256k1.cpp.

◆ public_key() [4/6]

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

Definition at line 135 of file elliptic_secp256k1.cpp.

◆ public_key() [5/6]

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.

◆ public_key() [6/6]

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

Definition at line 81 of file elliptic_secp256k1.cpp.

Member Function Documentation

◆ add()

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.

◆ child()

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

Definition at line 121 of file elliptic_common.cpp.

◆ fingerprint()

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

Definition at line 161 of file elliptic_common.cpp.

◆ from_base58()

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

Definition at line 148 of file elliptic_common.cpp.

◆ operator public_key_data()

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

Definition at line 44 of file elliptic.hpp.

◆ operator=() [1/2]

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

Definition at line 85 of file elliptic_secp256k1.cpp.

◆ operator=() [2/2]

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

Definition at line 91 of file elliptic_secp256k1.cpp.

◆ serialize()

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

Definition at line 118 of file elliptic_secp256k1.cpp.

◆ serialize_ecc_point()

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

Definition at line 124 of file elliptic_secp256k1.cpp.

◆ to_base58() [1/2]

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.

◆ to_base58() [2/2]

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

Definition at line 138 of file elliptic_common.cpp.

◆ valid()

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

Definition at line 97 of file elliptic_secp256k1.cpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 66 of file elliptic.hpp.

◆ operator==

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

Definition at line 62 of file elliptic.hpp.

◆ private_key

friend class private_key
friend

Definition at line 79 of file elliptic.hpp.


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