projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df778b6
)
Add README note about key validity assertions at the FFI boundary
author
Matt Corallo
<git@bluematt.me>
Mon, 14 Sep 2020 15:33:59 +0000
(11:33 -0400)
committer
Matt Corallo
<git@bluematt.me>
Mon, 12 Oct 2020 16:17:26 +0000
(12:17 -0400)
lightning-c-bindings/README.md
patch
|
blob
|
history
diff --git
a/lightning-c-bindings/README.md
b/lightning-c-bindings/README.md
index 72426bdf334ed0f265cd7a4220c7c4381b1b86c0..0c221c7c6ad44ad4c2d6c4b46b34d176e2a7924d 100644
(file)
--- a/
lightning-c-bindings/README.md
+++ b/
lightning-c-bindings/README.md
@@
-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.**