Skip to content

Commit

Permalink
Added short comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Balena Versiani <guibv@mailbox.org>
  • Loading branch information
balena committed Sep 28, 2023
1 parent a90b6e2 commit b287c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ It is possible to countersign `cose.Sign1Message`, `cose.SignMessage`, `cose.Sig
`cose.Countersignature` objects and add them as unprotected headers. In order to do so, first create
a countersignature holder with `cose.NewCountersignature()` and call its `Sign` function passing
the parent object which is going to be countersigned. Then assign the countersignature as an
unprotected header `cose.HeaderLabelCounterSignatureV2`.
unprotected header `cose.HeaderLabelCounterSignatureV2` or, if preferred, maintain it as a
detached countersignature.

When verifying countersignatures, it is necessary to pass the parent object in the `Verify` function
of the countersignature holder.
Expand Down

0 comments on commit b287c6a

Please sign in to comment.