Cybersecurity, Cryptography.
(Z/nZ)*), it holds // gx = g^x mod N // hx = h^x mod N // x = Log_g(g^x) = Log_h(h^x) fmt.Printf("\n== Generate NIZKP ==\n") fmt.Printf("c: %v\n", proof.C) fmt.Printf("z: %v\n", proof.Z) fmt.Printf("\n== Verify ==\n") fmt.Printf("Verified: %v\n", rtn) } A sample run is [here]: Secret (x):