From 50ad616bcc4d6525ddf0d426c02c8cc9b7f8e118 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..4f98069f1 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. +// This implementation is based on this document. See chapters 3.1 and 3.2. +// 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 {