From 0bc14419d416cc7b414acd531114dc1dcface2b7 Mon Sep 17 00:00:00 2001 From: kokeshiM0chi Date: Sat, 24 Jun 2023 22:47:21 +0900 Subject: [PATCH] comment: fix the comment for `VRFVerify` --- crypto/ed25519/ed25519.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/ed25519/ed25519.go b/crypto/ed25519/ed25519.go index 42d72a54b..a9ffef3b4 100644 --- a/crypto/ed25519/ed25519.go +++ b/crypto/ed25519/ed25519.go @@ -169,7 +169,10 @@ func (pubKey PubKey) Type() string { return KeyType } -// VRFVerify verifies that the given VRF Proof was generated from the message by the owner of this public key. +// VRFVerify guarantees that the public key is validated such that the "full uniqueness" and +// "full collision" properties are satisfied. +// The internal function of VRFVerify are implemented based on the IETF draft. +// See sections 3.1 and 3.2 here https://datatracker.ietf.org/doc/draft-irtf-cfrg-vrf/. func (pubKey PubKey) VRFVerify(proof []byte, message []byte) (crypto.Output, error) { isValid, hash := vrf.Verify(ed25519.PublicKey(pubKey), proof, message) if !isValid {