diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-20 18:03:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-20 18:03:44 +0100 |
commit | d2917889767cf71ae0ad8d79ebe62ccf6b9a350e (patch) | |
tree | 559d686d9583b382821b87f9d4c1046bb31724b0 /src/include/taler_crypto_lib.h | |
parent | 1746750a8459e19d42a574f6d6461d03bb4aca9f (diff) |
spelling out what information mint should sign for TALER_SIGNATURE_MINT_CONFIRM_WIRE
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 20cb434f1..36ca6a023 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -429,13 +429,15 @@ struct TALER_RefreshLinkDecrypted /** - * Binary information encoded in Crockford's Base32 in wire transfer - * subjects of transfers from Taler to a merchant. The actual value - * is chosen by the mint and has no particular semantics, other than - * being unique so that the mint can lookup details about the wire - * transfer when needed. + * Length of the raw value in the Taler wire transfer identifier + * (in binary representation). */ -struct TALER_WireTransferIdentifierP +#define TALER_WIRE_TRANSFER_IDENTIFIER_LEN 32 + +/** + * Raw value of a wire transfer subjects, without the checksum. + */ +struct TALER_WireTransferIdentifierRawP { /** @@ -450,7 +452,24 @@ struct TALER_WireTransferIdentifierP * encode the actual value (i.e. a 256-bit / 32-byte public key or * a hash code), and the last byte for a minimalistic checksum. */ - uint8_t raw[32]; + uint8_t raw[TALER_WIRE_TRANSFER_IDENTIFIER_LEN]; +}; + + +/** + * Binary information encoded in Crockford's Base32 in wire transfer + * subjects of transfers from Taler to a merchant. The actual value + * is chosen by the mint and has no particular semantics, other than + * being unique so that the mint can lookup details about the wire + * transfer when needed. + */ +struct TALER_WireTransferIdentifierP +{ + + /** + * Raw value. + */ + struct TALER_WireTransferIdentifierRawP raw; /** * Checksum using CRC8 over the @e raw data. |