diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-02 20:58:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-02 20:58:22 +0200 |
commit | daae3d3ddf1cbee4761a6a2c0066732fb4723fb0 (patch) | |
tree | ba2e9a677f6a1bede7f871adc9ca0c97ac62e7c6 /src/include/taler_wire_plugin.h | |
parent | 937078bbdc747c92d45a3879862ff4664d1ff636 (diff) | |
download | exchange-daae3d3ddf1cbee4761a6a2c0066732fb4723fb0.tar.xz |
change taler-exchange-sepa to a more generic taler-exchange-wire tool using the wire plugins (#4237)
Diffstat (limited to 'src/include/taler_wire_plugin.h')
-rw-r--r-- | src/include/taler_wire_plugin.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/taler_wire_plugin.h b/src/include/taler_wire_plugin.h index e166558a7..9b2bc8fde 100644 --- a/src/include/taler_wire_plugin.h +++ b/src/include/taler_wire_plugin.h @@ -114,6 +114,24 @@ struct TALER_WIRE_Plugin /** + * Sign wire transfer details in the plugin-specific format. + * + * @param cls closure + * @param in wire transfer details in JSON format + * @param key private signing key to use + * @param salt salt to add + * @param[out] sig where to write the signature + * @return #GNUNET_OK on success + */ + int + (*sign_wire_details)(void *cls, + const json_t *in, + const struct TALER_MasterPrivateKeyP *key, + const struct GNUNET_HashCode *salt, + struct TALER_MasterSignatureP *sig); + + + /** * Check if the given wire format JSON object is correctly formatted * * @param cls the @e cls of this struct with the plugin-specific state |