Skip to content

Commit

Permalink
Reinstate NewMultiEnvelopeSigner and deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnystoten committed Sep 26, 2023
1 parent cfd7338 commit e15fa86
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dsse/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ func NewEnvelopeSigner(p ...Signer) (*EnvelopeSigner, error) {
}, nil
}

/*
NewMultiEnvelopeSigner creates an EnvelopeSigner that uses 1+ Signer
algorithms to sign the data. The threshold parameter is legacy and is ignored.
Deprecated: This function simply calls NewEnvelopeSigner, and that function should
be preferred.
*/
func NewMultiEnvelopeSigner(threshold int, p ...Signer) (*EnvelopeSigner, error) {
return NewEnvelopeSigner(p...)
}

/*
SignPayload signs a payload and payload type according to DSSE.
Returned is an envelope as defined here:
Expand Down

0 comments on commit e15fa86

Please sign in to comment.