mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-05 06:03:11 +00:00
fixup: remove remaining direct references to blst from por
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
8264de6d10
commit
f45ec3c23c
@ -97,8 +97,6 @@ else:
|
||||
import ../backends/backend_blst
|
||||
|
||||
import pkg/chronos
|
||||
import pkg/blscurve
|
||||
import pkg/blscurve/blst/blst_abi
|
||||
|
||||
import ../../rng
|
||||
import ../../streams
|
||||
@ -138,8 +136,8 @@ type
|
||||
signature*: array[96, byte]
|
||||
|
||||
Proof* = object
|
||||
mu*: seq[blst_scalar]
|
||||
sigma*: blst_p1
|
||||
mu*: seq[ec_scalar]
|
||||
sigma*: ec_p1
|
||||
|
||||
# PoR query element
|
||||
QElement* = object
|
||||
@ -300,7 +298,7 @@ proc generateAuthenticatorOpt(
|
||||
i: int64,
|
||||
s: int64,
|
||||
t: TauZero,
|
||||
ubase: seq[blst_scalar]): Future[ec_p1] {.async.} =
|
||||
ubase: seq[ec_scalar]): Future[ec_p1] {.async.} =
|
||||
## Optimized implementation of authenticator generation
|
||||
## This implementation is reduces the number of scalar multiplications
|
||||
## from s+1 to 1+1 , using knowledge about the scalars (r_j)
|
||||
@ -473,7 +471,7 @@ proc init*(
|
||||
# the current conversion using $t might be architecture dependent and not unique
|
||||
let
|
||||
signature = ec_sign(ssk.signkey, $t)
|
||||
tau = Tau(t: t, signature: signature.exportRaw())
|
||||
tau = Tau(t: t, signature: signature.ec_export_raw())
|
||||
|
||||
# generate sigmas
|
||||
var
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user