diff --git a/annotated.html b/annotated.html index aa3491c..891fc8a 100644 --- a/annotated.html +++ b/annotated.html @@ -5,7 +5,7 @@ -
This is the complete list of members for DefaultModel, including all inherited members.
DefaultModel() (defined in DefaultModel) | DefaultModel | inline |
getCDDC(unsigned int cdd_serial) override (defined in DefaultModel) | DefaultModel | inlinevirtual |
getCurrentCDDC() override (defined in DefaultModel) | DefaultModel | inlinevirtual |
getMKCs(const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids) override (defined in DefaultModel) | DefaultModel | inlinevirtual |
getModel(const std::string &backend_name) (defined in Model) | Model | static |
mint(const std::string &transaction_reference, const std::vector< Blind > &blinds) override (defined in DefaultModel) | DefaultModel | inlinevirtual |
redeem(const std::vector< Coin > &coins) override (defined in DefaultModel) | DefaultModel | inlinevirtual |
getCDDC(unsigned int cdd_serial) override | DefaultModel | inlinevirtual |
getCurrentCDDC() override | DefaultModel | inlinevirtual |
getMKCs(const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids) override | DefaultModel | inlinevirtual |
getModel(const std::string &backend_name) | Model | static |
mint(const std::string &transaction_reference, const std::vector< Blind > &blinds) override | DefaultModel | inlinevirtual |
redeem(const std::vector< Coin > &coins) override | DefaultModel | inlinevirtual |
~Model() (defined in Model) | Model | inlinevirtual |
Public Member Functions | |
-tl::expected< CDDC *, bool > | getCDDC (unsigned int cdd_serial) override |
tl::expected< CDDC *, bool > | getCDDC (unsigned int cdd_serial) override |
-tl::expected< CDDC *, bool > | getCurrentCDDC () override |
tl::expected< CDDC *, bool > | getCurrentCDDC () override |
-std::vector< BlindSignature > | mint (const std::string &transaction_reference, const std::vector< Blind > &blinds) override |
std::vector< BlindSignature > | mint (const std::string &transaction_reference, const std::vector< Blind > &blinds) override |
-const std::vector< MintKeyCert > | getMKCs (const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids) override |
const std::vector< MintKeyCert > | getMKCs (const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids) override |
-bool | redeem (const std::vector< Coin > &coins) override |
bool | redeem (const std::vector< Coin > &coins) override |
Additional Inherited Members | |
Static Public Member Functions inherited from Model | |
-static std::unique_ptr< Model > | getModel (const std::string &backend_name) |
static std::unique_ptr< Model > | getModel (const std::string &backend_name) |
this is for now our sample model
-
+
|
+ +inlineoverridevirtual | +
+
|
+ +inlineoverridevirtual | +
+
|
+ +inlineoverridevirtual | +
+
|
+ +inlineoverridevirtual | +
returns the vector of blind signatures for a given vector of blinds
+transaction_reference | reference to a transaction (send from client) |
blinds | the vector of blinds to sign |
Implements Model.
+ +
+
|
+ +inlineoverridevirtual | +
redeem valid coins into real money
+coins | the coins to redeem |
Implements Model.
+ +This is the complete list of members for Model, including all inherited members.
getCDDC(unsigned int cdd_serial)=0 (defined in Model) | Model | pure virtual |
getCurrentCDDC()=0 (defined in Model) | Model | pure virtual |
getMKCs(const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids)=0 (defined in Model) | Model | pure virtual |
getModel(const std::string &backend_name) (defined in Model) | Model | static |
mint(std::string const &transaction_reference, const std::vector< Blind > &blinds)=0 (defined in Model) | Model | pure virtual |
redeem(const std::vector< Coin > &coins)=0 (defined in Model) | Model | pure virtual |
getCDDC(unsigned int cdd_serial)=0 | Model | pure virtual |
getCurrentCDDC()=0 | Model | pure virtual |
getMKCs(const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids)=0 | Model | pure virtual |
getModel(const std::string &backend_name) | Model | static |
mint(std::string const &transaction_reference, const std::vector< Blind > &blinds)=0 | Model | pure virtual |
redeem(const std::vector< Coin > &coins)=0 | Model | pure virtual |
~Model() (defined in Model) | Model | inlinevirtual |
Public Member Functions | |
-virtual tl::expected< CDDC *, bool > | getCDDC (unsigned int cdd_serial)=0 |
virtual tl::expected< CDDC *, bool > | getCDDC (unsigned int cdd_serial)=0 |
-virtual tl::expected< CDDC *, bool > | getCurrentCDDC ()=0 |
virtual tl::expected< CDDC *, bool > | getCurrentCDDC ()=0 |
-virtual const std::vector< MintKeyCert > | getMKCs (const std::vector< unsigned int > &denominations, const std::vector< BigInt > &mint_key_ids)=0 |
virtual const 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 std::vector< BlindSignature > | mint (std::string const &transaction_reference, const std::vector< Blind > &blinds)=0 |
-virtual bool | redeem (const std::vector< Coin > &coins)=0 |
virtual bool | redeem (const std::vector< Coin > &coins)=0 |
Static Public Member Functions | |
-static std::unique_ptr< Model > | getModel (const std::string &backend_name) |
static std::unique_ptr< Model > | getModel (const std::string &backend_name) |
+
|
+ +pure virtual | +
return the CurrencyDocumentDescription certifikate for a specific serial version number of it. see spec
Implemented in DefaultModel.
+ +
+
|
+ +pure virtual | +
return the CurrencyDocumentDescription certifikate see spec
Implemented in DefaultModel.
+ +
+
|
+ +pure virtual | +
return the MintKey certificates for a given list of denominations and mint key ids
+denominations | |
mint_key_ids |
Implemented in DefaultModel.
+ +
+
|
+ +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.
backend_name |
+
|
+ +pure virtual | +
returns the vector of blind signatures for a given vector of blinds
+transaction_reference | reference to a transaction (send from client) |
blinds | the vector of blinds to sign |
Implemented in DefaultModel.
+ +
+
|
+ +pure virtual | +
redeem valid coins into real money
+coins | the coins to redeem |
Implemented in DefaultModel.
+ +this is a C++ implementation of the opencoin protocol done as mapping to some kind of REST interface.
+As all issuer related interactions of the protocol follows a request/response mechanism we are able to map all of them to Http-Requests.
+We decided to use POST-Requests in all cases, as the protocol uses JSON-formatted messages for requests.
+The following table gives an overview of the mapping of requests to URLs:
+Request | URL | Response | C++ Interface Method |
---|---|---|---|
RequestCDDCSerial | /cddc/serial | ResponseCDDCSerial | cdd.cdd_serial of Model::getCurrentCDDC() |
RequestCDDC | /cddc | ResponseCDDC | Model::getCurrentCDDC() |
RequestMKCs | /mkcs | ResponseMKCs | Model::getMKCs |
RequestMint | /mint | ResponseMint | Model::mint |
RequestRenew | /renew | ResponseMint or ResponseDelay | ? |
RequestResume | /resume | ResponseMint or ResponseDelay | ? |
RequestRedeem | /redeem | ResponseRedeem | Model::redeem |
actually the implementation is a work in progress.
+https://crypto.stackexchange.com/questions/54085/is-there-a-standard-padding-format-for-rsa-blind-signatures/60728#60728 https://crypto.stackexchange.com/questions/5626/rsa-blind-signatures-in-practice
+