aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-22 23:28:48 +0800
committerChristian Grothoff <grothoff@gnunet.org>2023-12-22 23:28:48 +0800
commit219dfe1fcdfc848884856bd062d4c4a06c22a12c (patch)
treea414f179e9853104cbaa57438c2e1357c3b76f79 /src/include/taler_crypto_lib.h
parent28116298feca3b3c8eaa9cf4cbb69517b795f6ed (diff)
parent9fb19a985d13867de9cb095915308f2e98d5d184 (diff)
downloadexchange-219dfe1fcdfc848884856bd062d4c4a06c22a12c.tar.xz
Merge branch 'feature/tokens' of git+ssh://git.taler.net/exchange
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index f74575d74..fb9e32a21 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -5886,4 +5886,58 @@ TALER_denomination_group_get_key (
struct GNUNET_HashCode *key);
+/**
+ * Token family public key.
+ */
+struct TALER_TokenFamilyPublicKey
+{
+ /**
+ * Type of the signature.
+ */
+ struct GNUNET_CRYPTO_BlindSignPublicKey public_key;
+};
+
+/**
+ * Hash of a public key of a token family.
+ */
+struct TALER_TokenFamilyPublicKeyHash
+{
+ /**
+ * Hash of the token public key.
+ */
+ struct GNUNET_HashCode hash;
+};
+
+/**
+ * Token family private key.
+ */
+struct TALER_TokenFamilyPrivateKey
+{
+ struct GNUNET_CRYPTO_BlindSignPrivateKey private_key;
+};
+
+/**
+ * Token public key.
+ */
+struct TALER_TokenPublicKey
+{
+ struct GNUNET_CRYPTO_EddsaPublicKey public_key;
+};
+
+/**
+ * Signature made using a token private key.
+ */
+struct TALER_TokenSignature
+{
+ struct GNUNET_CRYPTO_EddsaSignature signature;
+};
+
+/**
+ * Blind signature for a token (signed by merchant).
+ */
+struct TALER_TokenBlindSignature
+{
+ struct GNUNET_CRYPTO_BlindedSignature signature;
+};
+
#endif