From 8f6e911308c717ffbd9bc1a2f955ffc42c6ea784 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jun 2015 20:43:54 +0200 Subject: -implement signature checking on /deposit --- src/include/taler_mint_service.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/include/taler_mint_service.h') diff --git a/src/include/taler_mint_service.h b/src/include/taler_mint_service.h index 75d2050ae..850f07630 100644 --- a/src/include/taler_mint_service.h +++ b/src/include/taler_mint_service.h @@ -305,6 +305,16 @@ void TALER_MINT_disconnect (struct TALER_MINT_Handle *mint); +/** + * Obtain the keys from the mint. + * + * @param mint the mint handle + * @return the mint's key set + */ +const struct TALER_MINT_Keys * +TALER_MINT_get_keys (const struct TALER_MINT_Handle *mint); + + /** * Obtain the current signing key from the mint. * @@ -312,7 +322,19 @@ TALER_MINT_disconnect (struct TALER_MINT_Handle *mint); * @return sk current online signing key for the mint, NULL on error */ const struct TALER_MintPublicKeyP * -TALER_MINT_get_signing_key (struct TALER_MINT_Keys *keys); +TALER_MINT_get_signing_key (const struct TALER_MINT_Keys *keys); + + +/** + * Obtain the denomination key details from the mint. + * + * @param keys the mint's key set + * @param pk public key of the denomination to lookup + * @return details about the given denomination key + */ +const struct TALER_MINT_DenomPublicKey * +TALER_MINT_get_denomination_key (const struct TALER_MINT_Keys *keys, + const struct TALER_DenominationPublicKey *pk); /* ********************* /deposit *********************** */ -- cgit v1.2.3