lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

Use RNG seeds from system when generating field elements in Groth16

Open yct21 opened this issue 1 year ago • 0 comments
trafficstars

Use RNG seeds from system when generating field elements in Groth16

Description

Currently generating field elements in Groth16 uses fixed RNG feed, which creates same value every time.

[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] Toxic waste generated:
[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] τ: 0x60b199c462b10b7cdfa440eaebe385f77a05e365c5f8b6a88c41019d7c9b52b6
[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] α: 0x60b199c462b10b7cdfa440eaebe385f77a05e365c5f8b6a88c41019d7c9b52b6
[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] β: 0x60b199c462b10b7cdfa440eaebe385f77a05e365c5f8b6a88c41019d7c9b52b6
[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] γ: 0x60b199c462b10b7cdfa440eaebe385f77a05e365c5f8b6a88c41019d7c9b52b6
[2024-04-16T15:21:48Z INFO  lambdaworks_groth16::setup] δ: 0x60b199c462b10b7cdfa440eaebe385f77a05e365c5f8b6a88c41019d7c9b52b6

This PR changes it to using seeds from system.

Type of change

  • [x] Bug fix

yct21 avatar Apr 17 '24 02:04 yct21