Skip to content

feat(24787): ffi & libsodium#24831

Draft
mxtartaglia-sl wants to merge 3 commits intomainfrom
24787_ffi_for_libsodium
Draft

feat(24787): ffi & libsodium#24831
mxtartaglia-sl wants to merge 3 commits intomainfrom
24787_ffi_for_libsodium

Conversation

@mxtartaglia-sl
Copy link
Copy Markdown
Contributor

Related issue(s):

Fixes #24787

Signed-off-by: mxtartaglia <maxi@swirldslabs.com>
Signed-off-by: mxtartaglia <maxi@swirldslabs.com>
Signed-off-by: mxtartaglia <maxi@swirldslabs.com>
@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 7, 2026

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@lfdt-bot
Copy link
Copy Markdown

lfdt-bot commented Apr 7, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mxtartaglia-sl mxtartaglia-sl self-assigned this Apr 7, 2026
@mxtartaglia-sl mxtartaglia-sl added this to the v0.74 milestone Apr 7, 2026
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 7, 2026

Not up to standards ⛔

🔴 Issues 5 high · 13 medium · 34 minor

Alerts:
⚠ 52 issues (≤ 0 issues of at least minor severity)

Results:
52 new issues

Category Results
BestPractice 8 medium
8 minor
ErrorProne 5 high
CodeStyle 26 minor
Complexity 2 medium
Performance 3 medium

View in Codacy

🟢 Metrics 72 complexity

Metric Results
Complexity 72

View in Codacy

🟢 Coverage 78.92% diff coverage · +0.00% coverage variation

Metric Results
Coverage variation +0.00% coverage variation (-1.00%)
Diff coverage 78.92% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (defefdc) 96878 78157 80.68%
Head commit (74ebb01) 97005 (+127) 78260 (+103) 80.68% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#24831) 166 131 78.92%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

TIP This summary will be updated as you push new changes. Give us feedback

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 70.48193% with 49 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...org/hiero/base/crypto/engine/LibSodiumEd25519.java 66.19% 16 Missing and 8 partials ⚠️
...nsus/event/intake/utils/EventSignatureChecker.java 77.14% 11 Missing and 5 partials ⚠️
...g/hiero/consensus/crypto/internal/JcaVerifier.java 0.00% 4 Missing ⚠️
...ava/org/hiero/consensus/crypto/SigningFactory.java 0.00% 2 Missing ⚠️
...iero/consensus/crypto/internal/SodiumVerifier.java 0.00% 2 Missing ⚠️
...impl/signature/DefaultEventSignatureValidator.java 88.88% 1 Missing ⚠️

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #24831      +/-   ##
============================================
- Coverage     76.76%   76.75%   -0.01%     
- Complexity    11700    11739      +39     
============================================
  Files          2502     2505       +3     
  Lines         96975    97102     +127     
  Branches      10744    10760      +16     
============================================
+ Hits          74444    74532      +88     
- Misses        18768    18793      +25     
- Partials       3763     3777      +14     
Files with missing lines Coverage Δ Complexity Δ
.../org/hiero/base/crypto/BytesSignatureVerifier.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...ase/crypto/engine/Ed25519VerificationProvider.java 68.42% <100.00%> (-3.01%) 0.00 <0.00> (ø)
...us/event/intake/impl/DefaultEventIntakeModule.java 64.58% <100.00%> (+0.37%) 6.00 <0.00> (ø)
...impl/validation/DefaultInternalEventValidator.java 100.00% <ø> (ø) 3.00 <0.00> (ø)
...event/intake/utils/DefaultEventFieldValidator.java 98.97% <ø> (ø) 28.00 <0.00> (?)
...org/hiero/consensus/crypto/internal/SodiumJni.java 100.00% <100.00%> (ø) 0.00 <0.00> (ø)
.../hiero/consensus/crypto/internal/SodiumSigner.java 84.61% <100.00%> (ø) 0.00 <0.00> (ø)
...impl/signature/DefaultEventSignatureValidator.java 93.54% <88.88%> (+6.51%) 7.00 <1.00> (-3.00) ⬆️
...ava/org/hiero/consensus/crypto/SigningFactory.java 66.66% <0.00%> (-5.34%) 0.00 <0.00> (ø)
...iero/consensus/crypto/internal/SodiumVerifier.java 77.77% <0.00%> (-22.23%) 0.00 <0.00> (ø)
... and 3 more

... and 7 files with indirect coverage changes

Impacted file tree graph

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

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.

investigate foreign function interface to interact with libsodium

2 participants