* staring mongodb with docker-compose

* removed obsolete: sha3 import backward compatiblities
* removed some unresolved merge conflicts

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-09-26 23:27:26 +02:00
parent 985546839d
commit 415c7694d5
No known key found for this signature in database
12 changed files with 11 additions and 53 deletions

View File

@ -27,7 +27,7 @@ services:
restart: always restart: always
planetmint: planetmint:
depends_on: depends_on:
#- mongodb - mongodb
- tendermint - tendermint
- tarantool - tarantool
build: build:
@ -124,4 +124,4 @@ services:
image: alpine image: alpine
command: /bin/sh -c "./planetmint/scripts/clean.sh" command: /bin/sh -c "./planetmint/scripts/clean.sh"
volumes: volumes:
- $PWD:/planetmint - $PWD:/planetmint

View File

@ -151,7 +151,6 @@ and
Planetmint has been developed with simple logical gateways in mind. The logic got introduced by [cryptoconditions](https://https://docs.planetmint.io/projects/cryptoconditions). The cryptocondition documentation contains all details about how conditoins are defined and how they can be verified and fulfilled. Planetmint has been developed with simple logical gateways in mind. The logic got introduced by [cryptoconditions](https://https://docs.planetmint.io/projects/cryptoconditions). The cryptocondition documentation contains all details about how conditoins are defined and how they can be verified and fulfilled.
<<<<<<< HEAD
The integration of such into the transaction schema of Planetmint is shown below. The integration of such into the transaction schema of Planetmint is shown below.
## Zenroom Smart Contracts and Policies ## Zenroom Smart Contracts and Policies
@ -160,6 +159,3 @@ The integration of such into the transaction schema of Planetmint is shown below
At the moment these contracts can only be stateless, which implies that the conditions and fulfillments need to be transacted in the same transaction. However, [PRP-10](https://github.com/planetmint/PRPs/tree/main/10) aims to make stateful contracts possible, which enables asynchronous and party-independent processing of contracts. At the moment these contracts can only be stateless, which implies that the conditions and fulfillments need to be transacted in the same transaction. However, [PRP-10](https://github.com/planetmint/PRPs/tree/main/10) aims to make stateful contracts possible, which enables asynchronous and party-independent processing of contracts.
As for network-wide or asset-based policies [PRP-11](https://github.com/planetmint/PRPs/tree/main/11) specifies how these can be implemented and how these can be used to verify a transaction state before it is commited to the network. As for network-wide or asset-based policies [PRP-11](https://github.com/planetmint/PRPs/tree/main/11) specifies how these can be implemented and how these can be used to verify a transaction state before it is commited to the network.
=======
The integration of such into the transaction schema of Planetmint is shown below.
>>>>>>> planetmint-tarantool

View File

@ -43,11 +43,7 @@ $ python notarize.py
# Install Planetmint # Install Planetmint
## Local Node ## Local Node
Planemtint is a Tendermint applicatoin with an attached database. Planemtint is a Tendermint applicatoin with an attached database.
<<<<<<< HEAD
A basic installation installs the database, Tendermint and therafter Planetmint. A basic installation installs the database, Tendermint and therafter Planetmint.
=======
A basic installation installs the database, Tenermint and therafter Planetmint.
>>>>>>> planetmint-tarantool
Planetmint currently supports Tarantool and MongoDB database. The installation is as follows: Planetmint currently supports Tarantool and MongoDB database. The installation is as follows:
``` ```

View File

@ -44,6 +44,7 @@ class TarantoolDBConnection(DBConnection):
"inputs", "inputs",
"outputs", "outputs",
"keys", "keys",
"scripts"
] ]
except tarantool.error.NetworkError as network_err: except tarantool.error.NetworkError as network_err:
logger.info("Host cant be reached") logger.info("Host cant be reached")

View File

@ -13,13 +13,7 @@ from uuid import uuid4
from planetmint.backend.connection import Connection from planetmint.backend.connection import Connection
import rapidjson import rapidjson
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
# NOTE: needed for Python < 3.6
from sha3 import sha3_256
import requests import requests
import planetmint import planetmint

View File

@ -7,11 +7,7 @@ import base64
import hashlib import hashlib
import json import json
from binascii import hexlify from binascii import hexlify
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
def encode_transaction(value): def encode_transaction(value):

View File

@ -6,11 +6,7 @@
# Separate all crypto code so that we can easily test several implementations # Separate all crypto code so that we can easily test several implementations
from collections import namedtuple from collections import namedtuple
try: from hashlib import sha3_256
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
from cryptoconditions import crypto from cryptoconditions import crypto

View File

@ -20,11 +20,7 @@ import base58
from cryptoconditions import Fulfillment, ThresholdSha256, Ed25519Sha256, ZenroomSha256 from cryptoconditions import Fulfillment, ThresholdSha256, Ed25519Sha256, ZenroomSha256
from cryptoconditions.exceptions import ParsingError, ASN1DecodeError, ASN1EncodeError from cryptoconditions.exceptions import ParsingError, ASN1DecodeError, ASN1EncodeError
from cid import is_cid from cid import is_cid
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
from planetmint.transactions.common.crypto import PrivateKey, hash_data from planetmint.transactions.common.crypto import PrivateKey, hash_data
from planetmint.transactions.common.exceptions import ( from planetmint.transactions.common.exceptions import (

View File

@ -23,11 +23,7 @@ from cryptoconditions import PreimageSha256
from cryptoconditions import Ed25519Sha256 from cryptoconditions import Ed25519Sha256
from pytest import mark, raises from pytest import mark, raises
from ipld import marshal, multihash from ipld import marshal, multihash
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
pytestmark = mark.bdb pytestmark = mark.bdb

View File

@ -8,12 +8,7 @@ import os
from unittest.mock import patch from unittest.mock import patch
from planetmint.transactions.types.assets.create import Create from planetmint.transactions.types.assets.create import Create
from planetmint.transactions.types.assets.transfer import Transfer from planetmint.transactions.types.assets.transfer import Transfer
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
# NOTE: needed for Python < 3.6
from sha3 import sha3_256
import pytest import pytest
from pymongo import MongoClient from pymongo import MongoClient

View File

@ -6,11 +6,7 @@
import base64 import base64
import json import json
from pytest import mark from pytest import mark
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
def test_encode_decode_transaction(b): def test_encode_decode_transaction(b):

View File

@ -10,11 +10,7 @@ import base58
import pytest import pytest
from cryptoconditions import Ed25519Sha256 from cryptoconditions import Ed25519Sha256
from ipld import multihash, marshal from ipld import multihash, marshal
from hashlib import sha3_256
try:
from hashlib import sha3_256
except ImportError:
from sha3 import sha3_256
from planetmint.transactions.common import crypto from planetmint.transactions.common import crypto
from planetmint.transactions.types.assets.create import Create from planetmint.transactions.types.assets.create import Create