Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::pts_address Struct Reference

#include <pts_address.hpp>

Public Member Functions

 pts_address ()
 constructs empty / null address More...
 
 pts_address (const std::string &base58str)
 converts to binary, validates checksum More...
 
 pts_address (const fc::ecc::public_key &pub, bool compressed=true, uint8_t version=56)
 converts to binary More...
 
uint8_t version () const
 
bool is_valid () const
 
 operator std::string () const
 converts to base58 + checksum More...
 

Public Attributes

fc::array< char, 25 > addr
 binary representation of address More...
 

Detailed Description

Implements address stringification and validation from PTS

Definition at line 36 of file pts_address.hpp.

Constructor & Destructor Documentation

◆ pts_address() [1/3]

graphene::chain::pts_address::pts_address ( )

constructs empty / null address

Definition at line 34 of file pts_address.cpp.

◆ pts_address() [2/3]

graphene::chain::pts_address::pts_address ( const std::string &  base58str)

converts to binary, validates checksum

Definition at line 39 of file pts_address.cpp.

◆ pts_address() [3/3]

graphene::chain::pts_address::pts_address ( const fc::ecc::public_key &  pub,
bool  compressed = true,
uint8_t  version = 56 
)

converts to binary

Definition at line 51 of file pts_address.cpp.

Member Function Documentation

◆ is_valid()

bool graphene::chain::pts_address::is_valid ( ) const

Checks the address to verify it has a valid checksum

Definition at line 76 of file pts_address.cpp.

◆ operator std::string()

graphene::chain::pts_address::operator std::string ( ) const

converts to base58 + checksum

Definition at line 83 of file pts_address.cpp.

◆ version()

uint8_t graphene::chain::pts_address::version ( ) const
inline

Definition at line 42 of file pts_address.hpp.

Member Data Documentation

◆ addr

fc::array<char,25> graphene::chain::pts_address::addr

binary representation of address

Definition at line 47 of file pts_address.hpp.


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