Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typo
Browse files Browse the repository at this point in the history
mratsim committed Jul 3, 2021
1 parent 9b7366c commit 6a4c55f
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blscurve/blst/blst_min_pubkey_sig_core.nim
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ func publicFromSecret*(pubkey: var PublicKey, seckey: SecretKey): bool =
## an invalid secretkey in the first place.
if seckey.vec_is_zero():
return false
if not obj.scalar.blst_sk_check().bool:
if not seckey.scalar.blst_sk_check().bool:
return false
var pk {.noInit.}: blst_p1
pk.blst_sk_to_pk_in_g1(seckey.scalar)
2 changes: 1 addition & 1 deletion blscurve/miracl/miracl_min_pubkey_sig_core.nim
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ func publicFromSecret*(pubkey: var PublicKey, seckey: SecretKey): bool =
if seckey.intVal.isZilch():
return false
{.noSideEffect.}:
if obj.intVal.cmp(CURVE_Order) != -1:
if seckey.intVal.cmp(CURVE_Order) != -1:
return false
pubkey.point = generator1()
pubkey.point.mul(secKey.intVal)

0 comments on commit 6a4c55f

Please sign in to comment.