|
| 1 | +Version 0.6.0 (2019-11-18) |
| 2 | +========================== |
| 3 | + |
| 4 | +## Highlights |
| 5 | + |
| 6 | +- **Add support for forwarding** for connections utilizing mediators for |
| 7 | + routing. |
| 8 | +- **Simplified `StaticConnection` and added mechanism for updating "their" |
| 9 | + info**, resulting in differences in the method signature of its constructor. |
| 10 | + |
| 11 | +## Detailed Changes |
| 12 | + |
| 13 | +### `StaticConnection` |
| 14 | +- `__init__` - changed to accept tuple of keys (public, private) with |
| 15 | + optional named arguments: `endpoint`, `their_vk`, `recipients`, and |
| 16 | + `routing_keys`. |
| 17 | + - `endpoint` - sets the endpoint to which messages are sent. |
| 18 | + - `their_vk` - mutually exclusive with `recipients` and results in a |
| 19 | + recipients list of size one containing `their_vk`. |
| 20 | + - `recipients` - mutually exclusive with `their_vk`, setting the contents of |
| 21 | + the recipients list for this connection. |
| 22 | + - `routing_keys` - list of mediator keys that will forward the message on to |
| 23 | + the recipient(s). |
| 24 | +- `pack` prepares messages for forwarding when `routing_keys` is set on the |
| 25 | + connection. |
| 26 | +- Renamed convenience accessors for keys: `my_vk -> verkey`, `my_sk -> sigkey`. |
| 27 | +- Added `update` - Updates "their" connection information for this static |
| 28 | + connection. Arguments are named arguments; processing is similar to |
| 29 | + `__init__` with the exclusion of "my" keys. A change in my information should |
| 30 | + be viewed as creating a new connection and therefore updating those values is |
| 31 | + not supported. |
| 32 | + |
| 33 | +### Crypto |
| 34 | +- `pack_message` - added named optional argument `dump` that will convert the |
| 35 | + packed message to bytes when set to `True` or will leave as a dictionary |
| 36 | + when set to `False`. Defaults to `True`. |
| 37 | +- `bytes_to_b58` and `b58_to_bytes` - added a small (max size of 16) `lru_cache` |
| 38 | + to make frequent conversions of keys in the pack, unpack, and message |
| 39 | + handling process more efficient. |
| 40 | + |
| 41 | +### Utils |
| 42 | +- Added `ensure_key_bytes` - ensures that the given key is formatted as a |
| 43 | + byte string rather than a Base58 encoded string. |
| 44 | +- Added `ensure_key_b58` - ensures that the given key is formatted as a |
| 45 | + Base58 encoded string rather than as bytes. |
| 46 | +- Added `forward_msg` - creates a new forward message. |
| 47 | + |
| 48 | +### Examples |
| 49 | +- Updated to reflect new method signatures. |
| 50 | + |
| 51 | + |
1 | 52 | Version 0.5.1 (2019-11-06) |
2 | 53 | ========================== |
3 | 54 |
|
|
0 commit comments