sync
This commit is contained in:
parent
30c92a9b9e
commit
ed136c1f2d
@ -1005,9 +1005,9 @@ TALER_planchet_setup_coin_priv (
|
|||||||
* @param nonce withdraw nonce included in the request to generate R_0 and R_1
|
* @param nonce withdraw nonce included in the request to generate R_0 and R_1
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
TALER_cs_withdraw_nonce_derive (const struct
|
TALER_cs_withdraw_nonce_derive (
|
||||||
TALER_CoinSpendPrivateKeyP *coin_priv,
|
const struct TALER_CoinSpendPrivateKeyP *coin_priv,
|
||||||
struct TALER_CsNonce *nonce);
|
struct TALER_CsNonce *nonce);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1306,23 +1306,17 @@ TALER_payto_hash (const char *payto,
|
|||||||
GNUNET_NETWORK_STRUCT_BEGIN
|
GNUNET_NETWORK_STRUCT_BEGIN
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Header for serializations of coin-specific information about the
|
* Master key material for the deriviation of
|
||||||
* fresh coins we generate. These are the secrets that arise during
|
* private coins and blinding factors.
|
||||||
* planchet generation, which is the first stage of creating a new
|
|
||||||
* coin.
|
|
||||||
*/
|
*/
|
||||||
struct TALER_PlanchetSecretsP
|
struct TALER_PlanchetSecretsP
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private key of the coin.
|
* Key material.
|
||||||
*/
|
*/
|
||||||
struct TALER_CoinSpendPrivateKeyP coin_priv;
|
uint32_t key_data[8];
|
||||||
|
|
||||||
/**
|
|
||||||
* The blinding key. must be 32 byte
|
|
||||||
*/
|
|
||||||
union TALER_DenominationBlindingKeyP blinding_key;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1471,9 +1465,10 @@ GNUNET_NETWORK_STRUCT_END
|
|||||||
* @param[out] ps value to initialize
|
* @param[out] ps value to initialize
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed,
|
XXXTALER_planchet_setup_refresh (const struct
|
||||||
uint32_t coin_num_salt,
|
TALER_TransferSecretP *secret_seed,
|
||||||
struct TALER_PlanchetSecretsP *ps);
|
uint32_t coin_num_salt,
|
||||||
|
struct TALER_PlanchetSecretsP *ps);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1484,8 +1479,8 @@ TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
TALER_planchet_setup_random (
|
TALER_planchet_setup_random (
|
||||||
struct TALER_PlanchetSecretsP *ps,
|
struct TALER_PlanchetSecretsP *ps);
|
||||||
const struct TALER_ExchangeWithdrawValues *alg_values);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a blinding secret @a bs for @a cipher.
|
* Create a blinding secret @a bs for @a cipher.
|
||||||
@ -1494,9 +1489,11 @@ TALER_planchet_setup_random (
|
|||||||
* @param alg_values withdraw values containing cipher and additional CS values
|
* @param alg_values withdraw values containing cipher and additional CS values
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
TALER_planchet_blinding_secret_create (struct TALER_PlanchetSecretsP *ps,
|
XXXTALER_planchet_blinding_secret_create (struct TALER_PlanchetSecretsP *ps,
|
||||||
const struct
|
const struct
|
||||||
TALER_ExchangeWithdrawValues *alg_values);
|
TALER_ExchangeWithdrawValues *
|
||||||
|
alg_values);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare a planchet for tipping. Creates and blinds a coin.
|
* Prepare a planchet for tipping. Creates and blinds a coin.
|
||||||
@ -1510,11 +1507,12 @@ TALER_planchet_blinding_secret_create (struct TALER_PlanchetSecretsP *ps,
|
|||||||
* @return #GNUNET_OK on success
|
* @return #GNUNET_OK on success
|
||||||
*/
|
*/
|
||||||
enum GNUNET_GenericReturnValue
|
enum GNUNET_GenericReturnValue
|
||||||
TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
|
XXXTALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk,
|
||||||
const struct TALER_ExchangeWithdrawValues *alg_values,
|
const struct
|
||||||
struct TALER_PlanchetSecretsP *ps,
|
TALER_ExchangeWithdrawValues *alg_values,
|
||||||
struct TALER_CoinPubHash *c_hash,
|
struct TALER_PlanchetSecretsP *ps,
|
||||||
struct TALER_PlanchetDetail *pd);
|
struct TALER_CoinPubHash *c_hash,
|
||||||
|
struct TALER_PlanchetDetail *pd);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1539,13 +1537,14 @@ TALER_blinded_planchet_free (struct TALER_BlindedPlanchet *blinded_planchet);
|
|||||||
* @return #GNUNET_OK on success
|
* @return #GNUNET_OK on success
|
||||||
*/
|
*/
|
||||||
enum GNUNET_GenericReturnValue
|
enum GNUNET_GenericReturnValue
|
||||||
TALER_planchet_to_coin (const struct TALER_DenominationPublicKey *dk,
|
XXXTALER_planchet_to_coin (const struct TALER_DenominationPublicKey *dk,
|
||||||
const struct
|
const struct
|
||||||
TALER_BlindedDenominationSignature *blind_sig,
|
TALER_BlindedDenominationSignature *blind_sig,
|
||||||
const struct TALER_PlanchetSecretsP *ps,
|
const struct TALER_PlanchetSecretsP *ps,
|
||||||
const struct TALER_CoinPubHash *c_hash,
|
const struct TALER_CoinPubHash *c_hash,
|
||||||
const struct TALER_ExchangeWithdrawValues *alg_values,
|
const struct
|
||||||
struct TALER_FreshCoin *coin);
|
TALER_ExchangeWithdrawValues *alg_values,
|
||||||
|
struct TALER_FreshCoin *coin);
|
||||||
|
|
||||||
|
|
||||||
/* ****************** Refresh crypto primitives ************* */
|
/* ****************** Refresh crypto primitives ************* */
|
||||||
|
@ -1460,7 +1460,7 @@ TALER_EXCHANGE_withdraw (
|
|||||||
struct TALER_EXCHANGE_Handle *exchange,
|
struct TALER_EXCHANGE_Handle *exchange,
|
||||||
const struct TALER_EXCHANGE_DenomPublicKey *pk,
|
const struct TALER_EXCHANGE_DenomPublicKey *pk,
|
||||||
const struct TALER_ReservePrivateKeyP *reserve_priv,
|
const struct TALER_ReservePrivateKeyP *reserve_priv,
|
||||||
struct TALER_PlanchetSecretsP *ps,
|
const struct TALER_PlanchetSecretsP *ps,
|
||||||
TALER_EXCHANGE_WithdrawCallback res_cb,
|
TALER_EXCHANGE_WithdrawCallback res_cb,
|
||||||
void *res_cb_cls);
|
void *res_cb_cls);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user