Skip to content

Commit

Permalink
fixup: fix for comment
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <[email protected]>
  • Loading branch information
170210 committed Mar 14, 2024
1 parent 9231e40 commit ab194ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crypto/ed25519/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ func ProofToHash(proof []byte) ([]byte, error) {
// size != vrf.ProofSize.
func ValidateProof(h []byte) error {
proofSize := len(h)
if proofSize == 0 {
return fmt.Errorf("proof is empty")
}
if proofSize != voivrf.ProofSize && proofSize != r2vrf.ProofSize {
return fmt.Errorf("expected size to be %d bytes, got %d bytes",
voivrf.ProofSize,
Expand Down

0 comments on commit ab194ac

Please sign in to comment.