File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 7
7
extern "C" {
8
8
#endif
9
9
10
- /* TODO: add module description */
10
+ /* This module provides an implementation for the ECC related parts of
11
+ * Silent Payments, as specified in BIP352. This particularly involves
12
+ * the creation of input tweak data by summing up private or public keys
13
+ * and the derivation of a shared secret using Elliptic Curve Diffie-Hellman.
14
+ * Combined are either:
15
+ * - spender's private keys and receiver's public key (a * B, sender side)
16
+ * - spender's public keys and receiver's private key (A * b, receiver side)
17
+ * With this result, the necessary key material for ultimately creating/scanning
18
+ * or spending Silent Payment outputs can be determined.
19
+ *
20
+ * Note that this module is _not_ a full implementation of BIP352, as it
21
+ * inherently doesn't deal with higher-level concepts like addresses, output
22
+ * script types or transactions. The intent is to provide cryptographical
23
+ * helpers for low-level calculations that are most error-prone to custom
24
+ * implementations (e.g. enforcing the right y-parity for key material, ECDH
25
+ * calculation etc.). For any wallet software already using libsecp256k1, this
26
+ * API should provide all the functions needed for a Silent Payments
27
+ * implementation without the need for any further manual elliptic-curve
28
+ * operations.
29
+ */
11
30
12
31
/* TODO: add function API for sender side. */
13
32
You can’t perform that action at this time.
0 commit comments