Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Release/1.2.0-beta1 #54

Merged
merged 102 commits into from
Jul 16, 2017
Merged

Release/1.2.0-beta1 #54

merged 102 commits into from
Jul 16, 2017

Conversation

todofixthis
Copy link
Contributor

@todofixthis todofixthis commented Jul 16, 2017

PyOTA v1.2.0-beta1

⚠️ This is pre-release software! Do not use in production contexts! ⚠️

⚠️ This release contains several changes that are not backwards compatible with the previous version. Please review the Backwards-Incompatible Changes before upgrading! ⚠️

Backwards-Incompatible Changes

  • [BaseAddressCache._gen_cache_key is too fast #51] Removed address caches.
  • [Need minimum version number for requests library #39] PyOTA now requires requests 2.4.1 or later.
  • Reversed the behavior of the head_to_tail parameter in Bundle.as_tryte_strings.
    • Previously, setting head_to_tail=True would return transactions in reverse order (and mutatis mutandis), which is incorrect. Now it returns the transactions in the correct order.
  • Digest now requires that its length be a multiple of 81 trytes.
  • Removed iota symlink at the top level of the package structure, renamed src to iota.
    • This only impacts developers who have cloned the repository; if you install PyOTA via pip, this will not affect you.

New Features

Enhancements and Bugfixes

  • TryteString (and subclasses) now support creating new instances from unicode values.
    • It is no longer necessary to convert values into byte strings first.
  • [Seed.random should not generate seeds longer than 81 trytes #44] Seed.random now generates 81-tryte seeds by default.
    • Previously, it was generating 82-tryte seeds.
  • [Add hash argument to Transaction.from_tryte_string #42] Transaction.from_tryte_string now accepts optional hash argument (thanks @alon-e for reporting!).
  • [Exception when invoking help(iota) in examples/shell.py #41] Fixed error when invoking help(api) in the REPL script.
  • Address.with_valid_checksum now also copies balance, key_index and security_level.
  • No longer installs unnecessary dependencies on Python 3.
    • If you are using Python 3, you may uninstall the typing and mock libraries.
  • [Masked Authenticated Messaging (MAM) Support #47] Added example script showing proof-of-concept for integrating with JS MAM library.
    • A Python implementation of MAM is coming; for now it is necessary to use the JS library.
  • Improved PyCurl performance by ~7%.
  • Split out the transactions module into its own package.
    • Existing imports should still work; please file an issue on the PyOTA Issue Tracker if you notice any broken imports.
  • Made JSON representations of certain objects more comprehensive.
  • Added IPython repr integrations.
  • Improved documentation, fixed a few minor issues.
  • Fixed incorrect behavior of examples/address_generator.py (thanks @ivoscc!).
  • Fixed node URI in examples/sandbox.py.
  • Added contributor guide.

Will add Travis config to pyota-ccurl repo for its own testing.
We cannot use security level 3 until #28 is implemented.
Fixed a bunch of bugs preventing core API commands from working properly.
Moved `random` into `TryteString`.
PyOTA now has a normal package structure!
See #51 for more info.
- Moved signature functionality into new `PrivateKey.sign_bundle_at` method.
- Split out `BundleValidator` into own module to avoid circular import.
- Renamed `iota.transaction.{read,write}` to `base` and `creation`, respectively.
- Removed some unit tests that would conflict with multisig (might add back later tho).
@todofixthis todofixthis merged commit e345de9 into master Jul 16, 2017
@todofixthis todofixthis deleted the release/1.2.0 branch July 16, 2017 01:19
marko-k0 pushed a commit to marko-k0/iota.lib.py that referenced this pull request Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants