Commit Graph

7 Commits

Author SHA1 Message Date
cygnet 97c749b0d2
Add sending and receiving features (#21)
* Add sending and receiving features and enable them by default

* Add feature attributes in code and tests

* Add serde as dev-dependency

* Small improvements to sending docs
2023-08-23 00:32:34 +02:00
cygnet 0d28b61730
Improve receiver interface (#16)
* Copy recipient code structure from Sosthene00 fork

* Move SilentPayment struct to receiving

* Provide shared_secret as input argument for scan_for_outputs

Also refactors a number of things to enable this change: calculate A_sum
and outpoints_hash in the test code instead of the library, remove the
obsolete hash_outpoints function from the library move calculate_P_n
and calculate_t_n to utils.rs.

* Add debug trait implementation for Label

* Refactoring

* Add get_receiving_address function for getting sp-address per label

* Refactor scan_for_outputs and rename to scan_transaction

* Provide tweak data to scan_transaction function

* Expand README.me
2023-08-22 21:56:08 +02:00
cygnet bd7962db21
Downgrade secp256k1 to 0.24 (#15) 2023-08-17 15:28:32 +02:00
cygnet c3b8d65e03
Improve sender interface (#10)
* Refactor tests: add utils.rs for test helper functions

* Refactor sending

* Add SilentPaymentAddress struct

* Use structs instead of tuples as func arguments

* Change create_outputs function and remove amounts

* Use is_testnet in SilentPaymentAddress struct

* Provide pre-computed tweak data to create_outputs function

* Git rebase main

* Provide ecdh shared secret as argument to create_output

* Rename create_outputs -> generate_recipient_pubkeys
2023-08-15 20:06:58 +02:00
cygnet cd09955b30
Update test vectors to August 4 version (#12) 2023-08-07 02:02:15 +02:00
cygnet ad2c5b0e72
8 remove all unwrap (#9)
* Remove all unwraps from sending

* Remove unwraps from receiving

* Move Result type to utils
2023-07-24 23:15:04 +02:00
cygnet 547afabfeb
Resolve "Separate test logic from the library functions" (#3)
* Remove all references to input.rs from other files

* Move test vector test to integration test folder

* Move test vector file into integration test folder

* Move input.rs to tests folder
2023-07-24 00:22:44 +02:00