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 > getCDDC (unsigned int cdd_serial) override
 
tl::expected< CDDC *, bool > getCurrentCDDC () override
 
std::vector< BlindSignaturemint (const std::string &UNUSED(transaction_reference), const std::vector< Blind > &UNUSED(blinds)) override
 
const 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 const 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< ModelgetModel (const std::string &backend_name)
 

Detailed Description

this is for now our sample model

Member Function Documentation

◆ getCDDC()

tl::expected<CDDC *, bool> DefaultModel::getCDDC ( 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.

◆ getCurrentCDDC()

tl::expected<CDDC *, bool> DefaultModel::getCurrentCDDC ( )
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: