Skip to content

[protoutil] Export an envelope helper that accepts a signature header - #208

Open
dean-amar wants to merge 1 commit into
hyperledger:mainfrom
dean-amar:protoutil-envelope-signature-header
Open

dean-amar wants to merge 1 commit into
hyperledger:mainfrom
dean-amar:protoutil-envelope-signature-header

Conversation

@dean-amar

Copy link
Copy Markdown

Type of change

  • New feature

Description

  • Export the private createSignedEnvelopeWithTLSBinding as CreateSignedEnvelopeWithSignatureHeader. It uses the given signature header as is, so a caller can sign a nonce it did not draw itself, e.g., a server-issued authentication challenge.
  • It takes a SignedEnvelopeParameters struct instead of eight positional arguments. CreateSignedEnvelopeWithTLSBinding and CreateSignedEnvelopeWithTLSBindingWithIDOfCert call it with unchanged behavior.

Related issues

#### Type of change

- New feature

#### Description

- Export the private `createSignedEnvelopeWithTLSBinding` as `CreateSignedEnvelopeWithSignatureHeader`. It uses the given signature header as is, so a caller can sign a nonce it did not draw itself, e.g., a server-issued authentication challenge.
- It takes a `SignedEnvelopeParameters` struct instead of eight positional arguments. `CreateSignedEnvelopeWithTLSBinding` and `CreateSignedEnvelopeWithTLSBindingWithIDOfCert` call it with unchanged behavior.

#### Related issues

- related to hyperledger#203

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.007% (-0.01%) from 82.02% — dean-amar:protoutil-envelope-signature-header into hyperledger:main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Committer's ACL] Export an envelope helper that accepts a signature header

2 participants