From 5e37417fe703c509d5870a465177061a5ebb354d Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 7 Mar 2019 23:06:24 +0100 Subject: [PATCH] Document Verify doesn't always consume r --- verify.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/verify.go b/verify.go index 07ad6c1..3206c3d 100644 --- a/verify.go +++ b/verify.go @@ -88,6 +88,8 @@ type signature struct { // Verify checks if a message's signatures are valid. It returns one // verification per signature. +// +// There is no guarantee that the reader will be completely consumed. func Verify(r io.Reader) ([]*Verification, error) { // TODO: be able to specify options such as the max number of signatures to // check