oc-issuer  0.0.2
Public Member Functions | List of all members
DefaultModel Class Reference
Inheritance diagram for DefaultModel:
Inheritance graph
[legend]
Collaboration diagram for DefaultModel:
Collaboration graph
[legend]

Public Member Functions

tl::expected< CDDC *, bool > get_cddc (unsigned int cdd_serial) override
 
tl::expected< CDDC *, bool > get_current_cddc () override
 
std::vector< BlindSignaturemint (const std::string &UNUSED(transaction_reference), const std::vector< Blind > &UNUSED(blinds)) override
 
std::vector< MintKeyCertgetMKCs (const std::vector< unsigned int > &UNUSED(denominations), const std::vector< BigInt > &UNUSED(mint_key_ids)) override
 
bool redeem (const std::vector< Coin > &UNUSED(coins)) override
 
- Public Member Functions inherited from Model
virtual std::vector< MintKeyCertgetMKCs (const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids)=0
 
virtual std::vector< BlindSignaturemint (std::string const &transaction_reference, const std::vector< Blind > &blinds)=0
 
virtual bool redeem (const std::vector< Coin > &coins)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from Model
static std::unique_ptr< Modelget_model (const std::string &backend_name)
 

Detailed Description

this is for now our sample model

Member Function Documentation

◆ get_cddc()

tl::expected<CDDC *, bool> DefaultModel::get_cddc ( unsigned int  cdd_serial)
inlineoverridevirtual

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

Implements Model.

◆ get_current_cddc()

tl::expected<CDDC *, bool> DefaultModel::get_current_cddc ( )
inlineoverridevirtual

return the CurrencyDocumentDescription certifikate see spec

Returns
returns a pointer to the CDDC if successful, false otherwise

Implements Model.


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