Skip to content

Conversation

@tnull
Copy link
Contributor

@tnull tnull commented Jan 19, 2026

Since the beginning of VSS we intended to upstream the corresponding KVStore implementation to lightning-persister.

Here, we finally do it. I'll put this in draft until lightningdevkit/ldk-node#755 lands so we can directly upstream the version already upgraded for pubkey-auth.

@tnull tnull requested review from TheBlueMatt and tankyleo January 19, 2026 15:03
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 19, 2026

👋 Hi! This PR is now in draft status.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

Since the beginning of VSS we intended to upstream the corresponding
`KVStore` implementation to `lightning-persister`. Here, we finally do
it.

Signed-off-by: Elias Rohrer <[email protected]>
@tnull tnull force-pushed the 2026-01-upstream-vss-store branch 2 times, most recently from ae47ff5 to 0817a96 Compare January 19, 2026 15:09
@tnull tnull force-pushed the 2026-01-upstream-vss-store branch from 0817a96 to 2e8b7cd Compare January 19, 2026 15:10
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.62%. Comparing base (09b3bef) to head (2e8b7cd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4323   +/-   ##
=======================================
  Coverage   86.61%   86.62%           
=======================================
  Files         158      158           
  Lines      102730   102730           
  Branches   102730   102730           
=======================================
+ Hits        88984    88988    +4     
+ Misses      11328    11326    -2     
+ Partials     2418     2416    -2     
Flag Coverage Δ
fuzzing 37.20% <ø> (+1.00%) ⬆️
tests 85.91% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Maybe should wait on vss-client removing the reqwest and url deps as well? Maybe more importantly base64 which is a solo-maintainer crate and can be implemented in 50 LoC.

}
}

/// A source for generating entropy/randomness using [`rand`].
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we either require one be provided or use lightning::sign::RandomBytes?

Somewhat unrelatedly its never really been clear to me why we use rand for anything - all it is is the getrandom crate plus chacha20, why aren't we using the chacha20 we have plus getrandom instead of rand?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants