fix: math funcs, bumped constantine to 976c8bb (#22)
This commit is contained in:
parent
3f7ac2708c
commit
da564251dd
|
@ -1 +1 @@
|
|||
Subproject commit c7979b003372b329dd450ff152bb5945cafb0db5
|
||||
Subproject commit 976c8bb215a3f0b21ce3d05f894eb506072a6285
|
|
@ -35,16 +35,12 @@ IdentityPoint.y.setOne()
|
|||
IdentityPoint.z.setOne()
|
||||
|
||||
var ipaConfig: IPASettings
|
||||
var ipaTranscript: IpaTranscript[sha256, 32]
|
||||
discard ipaConfig.genIPAConfig(ipaTranscript)
|
||||
|
||||
var basisPoints : array[256, EC_P]
|
||||
basisPoints.generate_random_points(ipaTranscript, 256)
|
||||
discard ipaConfig.genIPAConfig()
|
||||
|
||||
|
||||
proc ipaCommitToPoly*(poly: array[256, Field]): Point =
|
||||
var comm: Point
|
||||
comm.pedersen_commit_varbasis(basisPoints, basisPoints.len, poly, poly.len)
|
||||
comm.pedersen_commit_varbasis(ipaConfig.SRS, ipaConfig.SRS.len, poly, poly.len)
|
||||
return comm
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue