Skip to content

Commit 651c95a

Browse files
committed
DROP VssHeaderProvier
1 parent 0c6caf4 commit 651c95a

3 files changed

Lines changed: 0 additions & 44 deletions

File tree

bindings/ldk_node.udl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ interface Builder {
138138
Node build_with_vss_store(NodeEntropy node_entropy, string vss_url, string store_id, string lnurl_auth_server_url, record<string, string> fixed_headers);
139139
[Throws=BuildError]
140140
Node build_with_vss_store_and_fixed_headers(NodeEntropy node_entropy, string vss_url, string store_id, record<string, string> fixed_headers);
141-
[Throws=BuildError]
142-
Node build_with_vss_store_and_header_provider(NodeEntropy node_entropy, string vss_url, string store_id, VssHeaderProvider header_provider);
143141
};
144142

145143
interface Node {
@@ -400,20 +398,6 @@ enum BuildError {
400398
"AsyncPaymentsConfigMismatch",
401399
};
402400

403-
[Remote, Trait]
404-
interface VssHeaderProvider {
405-
[Async, Throws=VssHeaderProviderError]
406-
record<string, string> get_headers([ByRef]sequence<u8> request);
407-
};
408-
409-
[Remote, Error]
410-
enum VssHeaderProviderError {
411-
"InvalidData",
412-
"RequestError",
413-
"AuthorizationError",
414-
"InternalError",
415-
};
416-
417401
[Remote]
418402
enum PaymentFailureReason {
419403
"RecipientRejected",

src/builder.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -990,33 +990,6 @@ impl ArcedNodeBuilder {
990990
.map(Arc::new)
991991
}
992992

993-
/// Builds a [`Node`] instance with a [VSS] backend and according to the options
994-
/// previously configured.
995-
///
996-
/// Given `header_provider` is used to attach headers to every request made
997-
/// to VSS.
998-
///
999-
/// **Caution**: VSS support is in **alpha** and is considered experimental.
1000-
/// Using VSS (or any remote persistence) may cause LDK to panic if persistence failures are
1001-
/// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
1002-
///
1003-
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
1004-
pub fn build_with_vss_store_and_header_provider(
1005-
&self, node_entropy: Arc<NodeEntropy>, vss_url: String, store_id: String,
1006-
header_provider: Arc<dyn VssHeaderProvider>,
1007-
) -> Result<Arc<Node>, BuildError> {
1008-
self.inner
1009-
.read()
1010-
.unwrap()
1011-
.build_with_vss_store_and_header_provider(
1012-
*node_entropy,
1013-
vss_url,
1014-
store_id,
1015-
header_provider,
1016-
)
1017-
.map(Arc::new)
1018-
}
1019-
1020993
/// Builds a [`Node`] instance according to the options previously configured.
1021994
// Note that the generics here don't actually work for Uniffi, but we don't currently expose
1022995
// this so its not needed.

src/ffi/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pub use lightning_liquidity::lsps1::msgs::{
4141
};
4242
pub use lightning_types::payment::{PaymentHash, PaymentPreimage, PaymentSecret};
4343
pub use lightning_types::string::UntrustedString;
44-
pub use vss_client::headers::{VssHeaderProvider, VssHeaderProviderError};
4544

4645
use crate::builder::sanitize_alias;
4746
pub use crate::config::{

0 commit comments

Comments
 (0)