Skip to content

Commit

Permalink
Bump version up to v2.0.0.
Browse files Browse the repository at this point in the history
Bump to v2.0.0.
  • Loading branch information
dajiaji committed Nov 28, 2022
2 parents 9c513e6 + 34c630a commit 1875d84
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,27 @@ Changes
Unreleased
----------

Version 2.0.0
-------------

Released 2022-11-29

- BREAKING CHANGES for v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
- Remove context parameter from Recipient encode()
- Remove context and salt parameters from Recipient functions.
- Add derive_bytes() to COSEKey interface.
- Add decode() to Recipient interface.
- Remove apply() from Recipient interface.
- Remove from_jwk() from Recipient.
- Remove extract() and decrypt() from Recipient interface.
- Drop support for protected header for Key Wrap.
- Remove derive_key() from COSEKey interface.
- Update examples on README to be compliant with v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
- Remove usage examples from documentation for ReadTheDocs. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
- Add b_protected getter/setter to Recipient interface. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
- Add to_bytes() to COSEKey interface. `#285 <https://github.com/dajiaji/python-cwt/pull/285>`__
- Add support for HPKE key wrapping experimentally. `#284 <https://github.com/dajiaji/python-cwt/pull/284>`__

Version 1.6.2
-------------

Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -28,20 +28,20 @@ And then, you can use it as follows:

**COSE API**

```pycon
```py
>>> from cwt import COSE, COSEKey
>>> ctx = COSE.new()
>>> mac_key = COSEKey.generate_symmetric_key(alg="HS256", kid="01")
>>> encoded = ctx.encode_and_mac(b"Hello world!", mac_key, unprotected={"alg": "HS256"})
>>> encoded.hex()
'd18443a10105a1044230314c48656c6c6f20776f726c642158205d0b144add282ccaac32a02e0d5eec76928ccadf3623271eb48e9464e2ee03b2'
'd18443a10105a1044230314c48656c6c6f20776f726c64215820'...
>>> ctx.decode(encoded, mac_key)
b'Hello world!'
```

**CWT API**

```pycon
```py
>>> import cwt
>>> from cwt import COSEKey
>>> key = COSEKey.generate_symmetric_key(alg="HS256", kid="01")
Expand Down
2 changes: 1 addition & 1 deletion cwt/__init__.py
Expand Up @@ -16,7 +16,7 @@
from .recipient import Recipient
from .signer import Signer

__version__ = "1.6.2"
__version__ = "2.0.0"
__title__ = "cwt"
__description__ = "A Python implementation of CWT/COSE"
__url__ = "https://python-cwt.readthedocs.io"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "cwt"
version = "1.6.2"
version = "2.0.0"
description = "A Python implementation of CWT/COSE."
authors = ["Ajitomi Daisuke <dajiaji@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 1875d84

Please sign in to comment.