awslabs / mls-rs

An implementation of Messaging Layer Security (RFC 9420)
Apache License 2.0
93 stars 18 forks source link

Expose the key_package on AddProposal #166

Closed jszczepanik closed 3 months ago

jszczepanik commented 3 months ago

Issues:

Resolves #165

Description of changes:

This PR adds a public method AddProposal::key_package, which will allow crate consumers to read the KeyPackage held by the proposal.

Testing:

Surrounding getter methods had no unit tests, thus I skipped writing them for this method, too. Please let me know if you'd like me to add a test.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.