Integration of new cryptoconditions package name and newest zenroom version (#288)

* adjusted to neweest transaction package
* adjusted to new planetmint-cryptoconditions imports
* added Changelog and increased version

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-11-29 10:56:07 +01:00 committed by GitHub
parent 713bd5267c
commit bd1cdf44e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 16 additions and 29 deletions

View File

@ -25,7 +25,10 @@ For reference, the possible headings are:
* **Known Issues** * **Known Issues**
* **Notes** * **Notes**
## [Unreleased]
## [1.3.2] - 2022-28-11
* **Changed** new zenroom 2.3.1 support
* **Changed** integrated new planetmint-cryptoconditions package (via the transactions package)
## [1.3.0] - 2022-27-10 ## [1.3.0] - 2022-27-10
* **Changed** migrated asset to assets * **Changed** migrated asset to assets

View File

@ -7,7 +7,6 @@ RUN apt-get -qq update \
&& apt-get -y upgrade \ && apt-get -y upgrade \
&& apt-get install -y jq vim zsh build-essential cmake\ && apt-get install -y jq vim zsh build-essential cmake\
&& pip install . \ && pip install . \
&& pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7\
&& apt-get autoremove \ && apt-get autoremove \
&& apt-get clean && apt-get clean

View File

@ -46,7 +46,4 @@ VOLUME /data/db /data/configdb /tendermint
EXPOSE 27017 28017 9984 9985 26656 26657 26658 EXPOSE 27017 28017 9984 9985 26656 26657 26658
RUN pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7
WORKDIR $HOME WORKDIR $HOME

View File

@ -34,4 +34,3 @@ COPY . /usr/src/app/
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN pip install -e .[dev] RUN pip install -e .[dev]
RUN pip install flask-cors RUN pip install flask-cors
RUN pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7

View File

@ -13,8 +13,6 @@ RUN pip install --upgrade \
pycco \ pycco \
websocket-client~=0.47.0 \ websocket-client~=0.47.0 \
pytest~=3.0 \ pytest~=3.0 \
planetmint-cryptoconditions>=0.10.0\
planetmint-driver>=0.9.2 \ planetmint-driver>=0.9.2 \
blns blns
RUN pip install base58>=2.1.1 pynacl==1.4.0 zenroom==2.1.0.dev1655293214 pyasn1==0.4.8 cryptography==3.4.7
RUN pip install planetmint-ipld>=0.0.3 RUN pip install planetmint-ipld>=0.0.3

View File

@ -2,8 +2,8 @@ import os
import json import json
import base58 import base58
from hashlib import sha3_256 from hashlib import sha3_256
from cryptoconditions.types.ed25519 import Ed25519Sha256 from planetmint_cryptoconditions.types.ed25519 import Ed25519Sha256
from cryptoconditions.types.zenroom import ZenroomSha256 from planetmint_cryptoconditions.types.zenroom import ZenroomSha256
from zenroom import zencode_exec from zenroom import zencode_exec
from planetmint_driver import Planetmint from planetmint_driver import Planetmint
from planetmint_driver.crypto import generate_keypair from planetmint_driver.crypto import generate_keypair

View File

@ -15,7 +15,5 @@ RUN pip install --upgrade \
pytest~=6.2.5 \ pytest~=6.2.5 \
pycco \ pycco \
websocket-client~=0.47.0 \ websocket-client~=0.47.0 \
planetmint-cryptoconditions>=0.10.0 \
planetmint-driver>=9.2.0 \ planetmint-driver>=9.2.0 \
blns blns
RUN pip install base58 pynacl==1.4.0 zenroom==2.1.0.dev1655293214 pyasn1==0.4.8 cryptography==3.4.7

View File

@ -10,7 +10,7 @@ import json
# For this test case we need the planetmint_driver.crypto package # For this test case we need the planetmint_driver.crypto package
import base58 import base58
import sha3 import sha3
from cryptoconditions import Ed25519Sha256, ThresholdSha256 from planetmint_cryptoconditions import Ed25519Sha256, ThresholdSha256
from planetmint_driver.crypto import generate_keypair from planetmint_driver.crypto import generate_keypair
# Import helper to deal with multiple nodes # Import helper to deal with multiple nodes

View File

@ -1,7 +1,7 @@
import json import json
import base58 import base58
from hashlib import sha3_256 from hashlib import sha3_256
from cryptoconditions.types.zenroom import ZenroomSha256 from planetmint_cryptoconditions.types.zenroom import ZenroomSha256
from planetmint_driver.crypto import generate_keypair from planetmint_driver.crypto import generate_keypair
from .helper.hosts import Hosts from .helper.hosts import Hosts
from zenroom import zencode_exec from zenroom import zencode_exec

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0 # Code is Apache-2.0 and docs are CC-BY-4.0
__version__ = "1.3.1" __version__ = "1.3.2"
__short_version__ = "1.3" __short_version__ = "1.3"
# Supported Tendermint versions # Supported Tendermint versions

View File

@ -111,7 +111,6 @@ install_requires = [
"base58==2.1.1", "base58==2.1.1",
"aiohttp==3.8.1", "aiohttp==3.8.1",
"abci==0.8.3", "abci==0.8.3",
"planetmint-cryptoconditions>=0.10.0",
"flask-cors==3.0.10", "flask-cors==3.0.10",
"flask-restful==0.3.9", "flask-restful==0.3.9",
"flask==2.1.2", "flask==2.1.2",
@ -119,7 +118,6 @@ install_requires = [
"jsonschema==4.16.0", "jsonschema==4.16.0",
"logstats==0.3.0", "logstats==0.3.0",
"packaging>=20.9", "packaging>=20.9",
# TODO Consider not installing the db drivers, or putting them in extras.
"pymongo==3.11.4", "pymongo==3.11.4",
"tarantool==0.7.1", "tarantool==0.7.1",
"python-rapidjson>=1.0", "python-rapidjson>=1.0",
@ -130,14 +128,9 @@ install_requires = [
"nest-asyncio==1.5.5", "nest-asyncio==1.5.5",
"protobuf==3.20.1", "protobuf==3.20.1",
"planetmint-ipld>=0.0.3", "planetmint-ipld>=0.0.3",
"pyasn1",
"zenroom==2.1.0.dev1655293214",
"base58>=2.1.0",
"PyNaCl==1.4.0",
"pyasn1>=0.4.8", "pyasn1>=0.4.8",
"cryptography==3.4.7",
"python-decouple", "python-decouple",
"planetmint-transactions==0.2.0", "planetmint-transactions>=0.2.2",
] ]
setup( setup(

View File

@ -3,7 +3,7 @@ import base58
from hashlib import sha3_256 from hashlib import sha3_256
from zenroom import zencode_exec from zenroom import zencode_exec
from cryptoconditions.types.zenroom import ZenroomSha256 from planetmint_cryptoconditions.types.zenroom import ZenroomSha256
from transactions.common.crypto import generate_key_pair from transactions.common.crypto import generate_key_pair
from ipld import multihash, marshal from ipld import multihash, marshal
@ -32,7 +32,7 @@ GENERATE_KEYPAIR = """Scenario 'ecdh': Create the keypair
Given that I am known as 'Pippo' Given that I am known as 'Pippo'
When I create the ecdh key When I create the ecdh key
When I create the bitcoin key When I create the bitcoin key
Then print data""" Then print keyring"""
INITIAL_STATE = {"also": "more data"} INITIAL_STATE = {"also": "more data"}
SCRIPT_INPUT = { SCRIPT_INPUT = {

View File

@ -86,7 +86,7 @@ class TestBigchainApi(object):
@pytest.mark.usefixtures("inputs") @pytest.mark.usefixtures("inputs")
def test_non_create_input_not_found(self, b, user_pk): def test_non_create_input_not_found(self, b, user_pk):
from cryptoconditions import Ed25519Sha256 from planetmint_cryptoconditions import Ed25519Sha256
from transactions.common.exceptions import InputDoesNotExist from transactions.common.exceptions import InputDoesNotExist
from transactions.common.transaction import Input, TransactionLink from transactions.common.transaction import Input, TransactionLink

View File

@ -232,7 +232,7 @@ def test_handle_threshold_overflow():
def test_unsupported_condition_type(): def test_unsupported_condition_type():
from cryptoconditions.exceptions import UnsupportedTypeError from planetmint_cryptoconditions.exceptions import UnsupportedTypeError
with pytest.raises(UnsupportedTypeError): with pytest.raises(UnsupportedTypeError):
_fulfillment_from_details({"type": "a"}) _fulfillment_from_details({"type": "a"})

View File

@ -8,7 +8,7 @@ import base58
import pytest import pytest
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
from cryptoconditions import Ed25519Sha256 from planetmint_cryptoconditions import Ed25519Sha256
from ipld import multihash, marshal from ipld import multihash, marshal
from hashlib import sha3_256 from hashlib import sha3_256