|
virtual tl::expected< CDDC *, bool > | get_cddc (unsigned int cdd_serial)=0 |
|
virtual tl::expected< CDDC *, bool > | get_current_cddc ()=0 |
|
virtual std::vector< MintKeyCert > | getMKCs (const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids)=0 |
|
virtual std::vector< BlindSignature > | mint (std::string const &transaction_reference, const std::vector< Blind > &blinds)=0 |
|
virtual bool | redeem (const std::vector< Coin > &coins)=0 |
|
|
static std::unique_ptr< Model > | get_model (const std::string &backend_name) |
|
◆ get_cddc()
virtual tl::expected<CDDC *, bool> Model::get_cddc |
( |
unsigned int |
cdd_serial | ) |
|
|
pure virtual |
return the CurrencyDocumentDescription certifikate for a specific serial version number of it. see spec
- Returns
- returns a pointer to the CDDC if successful, false otherwise
Implemented in DefaultModel.
◆ get_current_cddc()
virtual tl::expected<CDDC *, bool> Model::get_current_cddc |
( |
| ) |
|
|
pure virtual |
return the CurrencyDocumentDescription certifikate see spec
- Returns
- returns a pointer to the CDDC if successful, false otherwise
Implemented in DefaultModel.
◆ get_model()
std::unique_ptr< Model > Model::get_model |
( |
const std::string & |
backend_name | ) |
|
|
static |
factory function returning a concrete backend for Opencoin API handling. based on backend_name a concrete backend will be returned or in case of error null.
- Parameters
-
- Returns
- pointer to backend instance or null on invalid backend name
◆ getMKCs()
virtual std::vector<MintKeyCert> Model::getMKCs |
( |
const std::vector< unsigned int > & |
denominations, |
|
|
const std::vector< BigInt > & |
mint_key_ids |
|
) |
| |
|
pure virtual |
return the MintKey certificates for a given list of denominations and mint key ids
- Parameters
-
denominations | |
mint_key_ids | |
- Returns
- mint key certificates for given denominations and mint_key_ids
◆ mint()
virtual std::vector<BlindSignature> Model::mint |
( |
std::string const & |
transaction_reference, |
|
|
const std::vector< Blind > & |
blinds |
|
) |
| |
|
pure virtual |
returns the vector of blind signatures for a given vector of blinds
- Parameters
-
transaction_reference | reference to a transaction (send from client) |
blinds | the vector of blinds to sign |
- Returns
◆ redeem()
virtual bool Model::redeem |
( |
const std::vector< Coin > & |
coins | ) |
|
|
pure virtual |
redeem valid coins into real money
- Parameters
-
- Returns
- true if successful, false on error
The documentation for this class was generated from the following files: