Commit affe664
committed
Add Bolt12Invoice wrapper for FFI bindings
Implement Bolt12Invoice struct in ffi/types.rs to provide a wrapper around LDK's Bolt12Invoice for cross-language bindings.
Modified payment handling in bolt12.rs to:
- Support both native and FFI-compatible types via type aliasing
- Implement conditional compilation for transparent FFI support
- Update payment functions to handle wrapped types
Added testing to verify that properties are preserved when wrapping/unwrapping between native and FFI types.1 parent 3b0a285 commit affe664
3 files changed
+385
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
777 | 802 | | |
778 | 803 | | |
779 | 804 | | |
| |||
792 | 817 | | |
793 | 818 | | |
794 | 819 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 820 | | |
799 | 821 | | |
800 | 822 | | |
| |||
0 commit comments