mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-27 07:48:26 +00:00
* 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:
parent
985546839d
commit
415c7694d5
@ -27,7 +27,7 @@ services:
|
||||
restart: always
|
||||
planetmint:
|
||||
depends_on:
|
||||
#- mongodb
|
||||
- mongodb
|
||||
- tendermint
|
||||
- tarantool
|
||||
build:
|
||||
|
||||
@ -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.
|
||||
|
||||
<<<<<<< HEAD
|
||||
The integration of such into the transaction schema of Planetmint is shown below.
|
||||
|
||||
## 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.
|
||||
|
||||
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
|
||||
|
||||
@ -43,11 +43,7 @@ $ python notarize.py
|
||||
# Install Planetmint
|
||||
## Local Node
|
||||
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, Tenermint and therafter Planetmint.
|
||||
>>>>>>> planetmint-tarantool
|
||||
|
||||
Planetmint currently supports Tarantool and MongoDB database. The installation is as follows:
|
||||
```
|
||||
|
||||
@ -44,6 +44,7 @@ class TarantoolDBConnection(DBConnection):
|
||||
"inputs",
|
||||
"outputs",
|
||||
"keys",
|
||||
"scripts"
|
||||
]
|
||||
except tarantool.error.NetworkError as network_err:
|
||||
logger.info("Host cant be reached")
|
||||
|
||||
@ -13,13 +13,7 @@ from uuid import uuid4
|
||||
from planetmint.backend.connection import Connection
|
||||
|
||||
import rapidjson
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
# NOTE: needed for Python < 3.6
|
||||
from sha3 import sha3_256
|
||||
|
||||
from hashlib import sha3_256
|
||||
import requests
|
||||
|
||||
import planetmint
|
||||
|
||||
@ -7,11 +7,7 @@ import base64
|
||||
import hashlib
|
||||
import json
|
||||
from binascii import hexlify
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
|
||||
def encode_transaction(value):
|
||||
|
||||
@ -6,11 +6,7 @@
|
||||
# Separate all crypto code so that we can easily test several implementations
|
||||
from collections import namedtuple
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
|
||||
from hashlib import sha3_256
|
||||
from cryptoconditions import crypto
|
||||
|
||||
|
||||
|
||||
@ -20,11 +20,7 @@ import base58
|
||||
from cryptoconditions import Fulfillment, ThresholdSha256, Ed25519Sha256, ZenroomSha256
|
||||
from cryptoconditions.exceptions import ParsingError, ASN1DecodeError, ASN1EncodeError
|
||||
from cid import is_cid
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
from planetmint.transactions.common.crypto import PrivateKey, hash_data
|
||||
from planetmint.transactions.common.exceptions import (
|
||||
|
||||
@ -23,11 +23,7 @@ from cryptoconditions import PreimageSha256
|
||||
from cryptoconditions import Ed25519Sha256
|
||||
from pytest import mark, raises
|
||||
from ipld import marshal, multihash
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
pytestmark = mark.bdb
|
||||
|
||||
|
||||
@ -8,12 +8,7 @@ import os
|
||||
from unittest.mock import patch
|
||||
from planetmint.transactions.types.assets.create import Create
|
||||
from planetmint.transactions.types.assets.transfer import Transfer
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
# NOTE: needed for Python < 3.6
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
import pytest
|
||||
from pymongo import MongoClient
|
||||
|
||||
@ -6,11 +6,7 @@
|
||||
import base64
|
||||
import json
|
||||
from pytest import mark
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
|
||||
def test_encode_decode_transaction(b):
|
||||
|
||||
@ -10,11 +10,7 @@ import base58
|
||||
import pytest
|
||||
from cryptoconditions import Ed25519Sha256
|
||||
from ipld import multihash, marshal
|
||||
|
||||
try:
|
||||
from hashlib import sha3_256
|
||||
except ImportError:
|
||||
from sha3 import sha3_256
|
||||
from hashlib import sha3_256
|
||||
|
||||
from planetmint.transactions.common import crypto
|
||||
from planetmint.transactions.types.assets.create import Create
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user