Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func H ¶
func H(id peer.ID, ctx []byte, A, r *ristretto255.Element) *ristretto255.Scalar
H computes the challenge portion of the proof of knowledge
Types ¶
type NIZK ¶
type NIZK struct { // R is the Schnorr signature of the secret // R = k + a*S R *ristretto255.Scalar // S is the challenge portion of the Schnorr signature // S = H(ID, CTX, A, k*B) S *ristretto255.Scalar }
NIZK is the Schnorr signature of the secret
Click to show internal directories.
Click to hide internal directories.