Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 15, 2023
1 parent 9ecbf15 commit ffc9912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/encoding/kzgEncoder/multiframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Sample struct {
// generate a random value using Fiat Shamir transform
// we can also pseudo randomness generated locally, but we have to ensure no adversary can manipulate it
// Hashing everything takes about 1ms, so Fiat Shamir transform does not incur much cost
func GenRandomness(samples []Sample) (bls.Fr, error) {
func GenRandomFactor(samples []Sample) (bls.Fr, error) {
var buffer bytes.Buffer
enc := gob.NewEncoder(&buffer)

Expand All @@ -49,7 +49,7 @@ func GenRandomness(samples []Sample) (bls.Fr, error) {
// Randomnesss for each sample is computed by repeatedly raising the power of the root randomness
func GenRandomnessVector(samples []Sample) ([]bls.Fr, error) {
// root randomness
r, err := GenRandomness(samples)
r, err := GenRandomFactor(samples)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ffc9912

Please sign in to comment.