Skip to content

Commit 1875d84

Browse files
authored
Bump version up to v2.0.0.
Bump to v2.0.0.
2 parents 9c513e6 + 34c630a commit 1875d84

4 files changed

Lines changed: 26 additions & 5 deletions

File tree

CHANGES.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ Changes
44
Unreleased
55
----------
66

7+
Version 2.0.0
8+
-------------
9+
10+
Released 2022-11-29
11+
12+
- BREAKING CHANGES for v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
13+
- Remove context parameter from Recipient encode()
14+
- Remove context and salt parameters from Recipient functions.
15+
- Add derive_bytes() to COSEKey interface.
16+
- Add decode() to Recipient interface.
17+
- Remove apply() from Recipient interface.
18+
- Remove from_jwk() from Recipient.
19+
- Remove extract() and decrypt() from Recipient interface.
20+
- Drop support for protected header for Key Wrap.
21+
- Remove derive_key() from COSEKey interface.
22+
- Update examples on README to be compliant with v2.0.0. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
23+
- Remove usage examples from documentation for ReadTheDocs. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
24+
- Add b_protected getter/setter to Recipient interface. `#290 <https://github.com/dajiaji/python-cwt/pull/290>`__
25+
- Add to_bytes() to COSEKey interface. `#285 <https://github.com/dajiaji/python-cwt/pull/285>`__
26+
- Add support for HPKE key wrapping experimentally. `#284 <https://github.com/dajiaji/python-cwt/pull/284>`__
27+
728
Version 1.6.2
829
-------------
930

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ And then, you can use it as follows:
2828

2929
**COSE API**
3030

31-
```pycon
31+
```py
3232
>>> from cwt import COSE, COSEKey
3333
>>> ctx = COSE.new()
3434
>>> mac_key = COSEKey.generate_symmetric_key(alg="HS256", kid="01")
3535
>>> encoded = ctx.encode_and_mac(b"Hello world!", mac_key, unprotected={"alg": "HS256"})
3636
>>> encoded.hex()
37-
'd18443a10105a1044230314c48656c6c6f20776f726c642158205d0b144add282ccaac32a02e0d5eec76928ccadf3623271eb48e9464e2ee03b2'
37+
'd18443a10105a1044230314c48656c6c6f20776f726c64215820'...
3838
>>> ctx.decode(encoded, mac_key)
3939
b'Hello world!'
4040
```
4141

4242
**CWT API**
4343

44-
```pycon
44+
```py
4545
>>> import cwt
4646
>>> from cwt import COSEKey
4747
>>> key = COSEKey.generate_symmetric_key(alg="HS256", kid="01")

cwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .recipient import Recipient
1717
from .signer import Signer
1818

19-
__version__ = "1.6.2"
19+
__version__ = "2.0.0"
2020
__title__ = "cwt"
2121
__description__ = "A Python implementation of CWT/COSE"
2222
__url__ = "https://python-cwt.readthedocs.io"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "cwt"
7-
version = "1.6.2"
7+
version = "2.0.0"
88
description = "A Python implementation of CWT/COSE."
99
authors = ["Ajitomi Daisuke <dajiaji@gmail.com>"]
1010
license = "MIT"

0 commit comments

Comments
 (0)