mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-02-21 07:38:20 +00:00
WIP: Change to passing PublicKey.key in sig verification
This commit is contained in:
parent
36c84f58b6
commit
cbe4024c6f
@ -402,12 +402,14 @@ contract Proofs {
|
||||
Curve.G1Point memory sigma,
|
||||
PublicKey memory spk) internal returns (bool) {
|
||||
|
||||
// is this needed in solidity?
|
||||
// TODO: is this needed in solidity?
|
||||
// require(!isEmpty(tau.signature), "Signature cannot be empty");
|
||||
|
||||
// $tau.t -- how to do this in solidity?
|
||||
// TODO: $tau.t -- how to do this in solidity?
|
||||
// TODO: what's the second G2 point needed, PublicKey.signkey is a G1
|
||||
// point?? Is using the PublicKey.key sufficient?
|
||||
uint hashedMsg = uint(sha256(abi.encodePacked(tau.t)));
|
||||
require(_verifySignature(tau.signature, spk.signkey, hashedMsg),
|
||||
require(_verifySignature(tau.signature, spk.key, hashedMsg),
|
||||
"invalid signature");
|
||||
|
||||
// var first: blst_p1
|
||||
|
Loading…
x
Reference in New Issue
Block a user