guildxyz / guild-zk

8 stars 0 forks source link

Use `hash-to-curve` to generate the Pedersen generator #35

Open PopcornPaws opened 2 years ago

PopcornPaws commented 2 years ago

Description

In a Pedersen commitment scheme $C(x) = xG + rH$ the two generator points must have an unknown discrete logarithm connection. Generating $H$ via a random key might not be secure enough, so we should use some hash-to-curve mechanism. For example hash_to_curve(G.as_bytes()).