mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Add README note about key validity assertions at the FFI boundary
This commit is contained in:
parent
df778b605a
commit
8b8a97c6aa
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ These include:
|
|||
...
|
||||
} LDKChannelKeys;
|
||||
```
|
||||
* Private and public keys are asserted valid at the FFI boundary. Thus, before passing any
|
||||
(untrusted) private or public key material across the boundary, ensure that they represent valid
|
||||
(ie in-range) keys.
|
||||
|
||||
**It is highly recommended that you test any code which relies on the C (or C++) bindings in
|
||||
valgrind, AddressSanitizer, MemorySanitizer, or other similar tools to ensure correctness.**
|
||||
|
|
Loading…
Add table
Reference in a new issue