Commit 3af6805
committed
Add private-key-knowledge VSS authentication
In PR lightningdevkit/ldk-node#755, we shipped
a VSS authentication scheme in ldk-node that grants access to data
stored in VSS based on the knowledge of a private key. This
authentication scheme is the default method of authentication to VSS
server in ldk-node.
Here we wire up this authentication scheme to the public API of this
crate.
With this commit, if only the `--vss-url` argument is passed to the cli
example, with no other VSS arguments, sigs auth is now used. VSS server
default builds expect this authentication mechanism, and it works out of
the box, so it is very demo-friendly.
First launch VSS server:
`cargo run -- server/vss-server-config.toml`
then launch the cli example against VSS:
`cargo run -- --vss-url http://127.0.0.1:8080/vss`
Commit written with codex.1 parent 9ae182c commit 3af6805
4 files changed
Lines changed: 29 additions & 3 deletions
File tree
- bindings/swift/Sources/OrangeSDK
- examples/cli/src
- orange-sdk/src
- ffi/orange
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5296 | 5296 | | |
5297 | 5297 | | |
5298 | 5298 | | |
| 5299 | + | |
5299 | 5300 | | |
5300 | 5301 | | |
5301 | 5302 | | |
| |||
5319 | 5320 | | |
5320 | 5321 | | |
5321 | 5322 | | |
| 5323 | + | |
| 5324 | + | |
5322 | 5325 | | |
5323 | 5326 | | |
5324 | 5327 | | |
| |||
5336 | 5339 | | |
5337 | 5340 | | |
5338 | 5341 | | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
5339 | 5346 | | |
5340 | 5347 | | |
5341 | 5348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
91 | 99 | | |
92 | 100 | | |
93 | 101 | | |
| 102 | + | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
192 | 199 | | |
193 | 200 | | |
194 | 201 | | |
| |||
581 | 588 | | |
582 | 589 | | |
583 | 590 | | |
584 | | - | |
585 | 591 | | |
586 | 592 | | |
587 | 593 | | |
| 594 | + | |
| 595 | + | |
588 | 596 | | |
589 | 597 | | |
590 | 598 | | |
| |||
0 commit comments