summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-27 16:46:11 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-27 16:46:11 +0200
commitcb7f56b4483d521a4d10b1575dea2847e44698ad (patch)
tree0474a0a06e7e711e28cb1e18d60b876795a4336d /core
parent3bbd345b460d329d23c7e73a1dfeeeeca2ea16a4 (diff)
downloaddocs-cb7f56b4483d521a4d10b1575dea2847e44698ad.tar.gz
docs-cb7f56b4483d521a4d10b1575dea2847e44698ad.tar.bz2
docs-cb7f56b4483d521a4d10b1575dea2847e44698ad.zip
update pay api
Diffstat (limited to 'core')
-rw-r--r--core/api-merchant.rst20
1 files changed, 16 insertions, 4 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
index c495d34d..e06b262b 100644
--- a/core/api-merchant.rst
+++ b/core/api-merchant.rst
@@ -375,14 +375,14 @@ Making the payment
.. ts:def:: SignedTokenEnvelope
- // TODO: Check if we actually need this wrapper interface.
- // Could be useful if we want to add some metadata to
- // the issued coin.
interface SignedTokenEnvelope {
// Blind signature made by the merchant.
blind_sig: TokenIssueBlindSig;
+ // Hash of the token issue public key.
+ h_issue: HashCode;
+
}
.. ts:def:: TokenIssueBlindSig
@@ -489,10 +489,22 @@ Making the payment
.. ts:def:: TokenEnvelope
+ interface TokenEnvelope {
+
+ // Blinded token use public key.
+ token_ev: BlindedTokenEnvelope;
+
+ // Hash of the token issue public key.
+ h_issue: HashCode;
+
+ }
+
+ .. ts:def:: BlindedTokenEnvelope
+
// This type depends on the cipher used to sign token families. This is
// configured by the merchant and defined for each token family in the
// contract terms.
- type TokenEnvelope = RSATokenEnvelope | CSTokenEnvelope;
+ type BlindedTokenEnvelope = RSATokenEnvelope | CSTokenEnvelope;
.. ts:def:: RSATokenEnvelope