This repository was archived by the owner on Jan 13, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PyOTA v2.0.0
Backwards-Incompatible Changes
pip install --upgrade pip
first.requests
library #39] PyOTA now requiresrequests
2.4.1 or later.pip install --upgrade pyota
.pip install .
to install missing dependencies.pysha3
library. See previous bullet point for installation instructions.BaseAddressCache._gen_cache_key
is too fast #51] Removed address caches for security reasons.head_to_tail
parameter inBundle.as_tryte_strings
.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.iota
symlink at the top level of the package structure, renamedsrc
toiota
.New Features
min_weight_magnitude
(thanks @johngrantuk!):convert_value_to_standard_unit
(thanks @vynes!).iota-cli
app into env path.examples/repl.py
.This is an optional C extension that improves the performance of Curl-P-81 significantly (speedups of 60x are common).
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
now generates 81-tryte seeds by default.hash
argument toTransaction.from_tryte_string
#42]Transaction.from_tryte_string
now accepts optionalhash
argument (thanks @alon-e for reporting!).help(iota)
in examples/shell.py #41] Fixed error when invokinghelp(api)
in the REPL script.Address.with_valid_checksum
now also copiesbalance
,key_index
andsecurity_level
.transactions
module into its own package.examples/address_generator.py
(thanks @ivoscc!).examples/sandbox.py
.master
will only contain the latest production release of PyOTA.mock
typing
Huge thanks to @normpad and @alon-e for helping test the v2.0.0 beta and making sure it is stable for production release!
Additional thanks to the following individuals for contributing code and identifying issues during the development of PyOTA v2: