• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-modules / 8557113326
100%
master: 85%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 04 Apr 2024 03:17PM UTC
Jobs 1
Files 11
Run time 368min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Apr 2024 03:16PM UTC coverage: 81.633% (+0.1%) from 81.507%
8557113326

push

github

web-flow
Manually Implement SHA-256 Precompile Call (#359)

When looking for low-hanging fruit for gas optimisations, I noticed that
Solidity was generating copy loops when calling the SHA-256 precompile,
even if the input was already in memory!

This PR provides a work around where we re-implement the SHA-256
precompile manually in a way that it never copies the input before doing
the `staticcall`. This gives us some substantial gas savings, both in
terms of deployment costs and runtime costs:

<details><summary>Before:</summary>

```
  Gas Benchmarking [@bench]
    WebAuthnSigner
      ⛽ deployment: 515421
      ✔ Benchmark signer deployment cost (765ms)
      ⛽ verification (Dummy): 12106
      ✔ Benchmark signer verification cost with Dummy verifier
```

</details>

<details><summary>After:</summary>

```
  Gas Benchmarking [@bench]
    WebAuthnSigner
      ⛽ deployment: 471398
      ✔ Benchmark signer deployment cost (761ms)
      ⛽ verification (Dummy): 11148
      ✔ Benchmark signer verification cost with Dummy verifier
```

</details>

25 of 44 branches covered (56.82%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

95 of 103 relevant lines covered (92.23%)

6.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8557113326.1 04 Apr 2024 03:17PM UTC 0
81.63
GitHub Action Run
Source Files on build 8557113326
Detailed source file information is not available for this build.
  • Back to Repo
  • 94218ae8 on github
  • Prev Build on main (#8557004048)
  • Next Build on main (#8557146288)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc