Skip to content

Commit a4ac80c

Browse files
committed
fix ecdsa384
1 parent 39d8dca commit a4ac80c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/getting-started/guides/libs/crypto/ecdsa384.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
## Introduction
44

5-
This library provides functionality for ECDSA verification over any 384-bit curve. Currently, this is the most efficient implementation out there, consuming ~9 million gas per call.
5+
This library provides functionality for ECDSA verification over any 384-bit curve. Currently,
6+
this is the most efficient implementation out there, consuming ~8.025 million gas per call.
67

7-
The approach is Strauss-Shamir double scalar multiplication with 4 bits of precompute + projective points.
8+
The approach is Strauss-Shamir double scalar multiplication with 6 bits of precompute + affine coordinates.
9+
For reference, naive implementation uses ~400 billion gas, which is 50000 times more expensive.
10+
11+
We also tried using projective coordinates, however, the gas consumption rose to ~9 million gas.
812

913
## Functions
1014

0 commit comments

Comments
 (0)