Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Anoncreds API with revocation support #31

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ded6964
minor tweaks to a couple tests; no new functionality
Oct 18, 2016
0d1862b
in-process implementation of DID for testAliceAcceptFaberInvitation test
Oct 18, 2016
8f84dfe
in-process implementation of DID for testAliceAcceptFaberInvitation test
Oct 18, 2016
c2df249
Merge branch 'did' of github.com:evernym/sovrin-priv into did
Oct 20, 2016
2826d53
code formatting
Oct 20, 2016
eabc6f0
Merge branch 'master' into did
Oct 21, 2016
0098a95
fixing agent invitation tests
Oct 21, 2016
5b2656e
adding key to wallet when no key present while attempting to sync and…
Oct 22, 2016
673323f
resolving conflicts and adding new tests
Nov 1, 2016
0ce799d
adding few more tests for did
Nov 1, 2016
e4f97fb
updating test
Nov 2, 2016
e7ada73
updating tests
Nov 2, 2016
3564e60
adding tests for adding full verkey
Nov 2, 2016
486ce65
adding tests for abbreviated verkey and refactoring
Nov 2, 2016
bb3e046
resolving conflicts
Nov 28, 2016
e30ed56
Supported SovrinPublicRepo to store anoncreds data in Sovrin
ashcherbakov Nov 28, 2016
90d55f7
Merge branch 'master' into did
Nov 28, 2016
c05e11d
Fixing claimDefKey's issuerId
ashcherbakov Nov 28, 2016
2ee806e
Fixes in tests
ashcherbakov Nov 28, 2016
56d7d18
Merge branch 'master' into did
AlexanderShekhovcov Dec 2, 2016
9eb1cd6
updated anoncred tests for new API
ashcherbakov Dec 2, 2016
54cf514
gen localIdentifire during loadInvitation
AlexanderShekhovcov Dec 5, 2016
2ea32f6
support anoncreds in agents (splitting anoncreds logic from walleted …
ashcherbakov Dec 7, 2016
b0d4301
ping msg is not locked
AlexanderShekhovcov Dec 7, 2016
a6192ef
using assertion methods to debug
Dec 8, 2016
07925c4
making agents anoncred test pass
ashcherbakov Dec 8, 2016
8d990da
fixes in tests
ashcherbakov Dec 9, 2016
aa7fa21
changing script name
Dec 21, 2016
94d6394
updating checks for verkey size
Dec 21, 2016
00609bf
support new anoncreds asyncio API in Agents
ashcherbakov Dec 21, 2016
4fc87d4
supporting new asyncio anoncreds API in CLI
ashcherbakov Dec 21, 2016
d2727d5
removed unused import; this is cleanup before the repo refactoring task
rajeshkalaria80 Dec 22, 2016
d42d2d8
removed unwanted imports; clean up before repo-refactoring task
rajeshkalaria80 Dec 22, 2016
8d1456d
fixing CLI tests
ashcherbakov Dec 22, 2016
43ba373
fix tests
ashcherbakov Dec 22, 2016
1e5b13b
Merge branches 'anoncreds-revocation' and 'master' of https://github.…
ashcherbakov Dec 22, 2016
d9810df
Merge branches 'anoncreds-revocation' and 'master' of https://github.…
ashcherbakov Dec 22, 2016
c4e5dbc
cli not printing logs now
Dec 23, 2016
096c9ea
reverted back some of the previous changes
rajeshkalaria80 Dec 23, 2016
cb8c760
Merge branches 'anoncreds-revocation' and 'master' of https://github.…
ashcherbakov Dec 23, 2016
e4f78aa
prerequisite changes for repo refactoring to make sovrin-client condi…
rajeshkalaria80 Dec 23, 2016
e871839
fix show claim command
ashcherbakov Dec 23, 2016
3433beb
improve claim proof request printing
ashcherbakov Dec 23, 2016
913dd86
replacing _sha256 with hashlib and updating package_data in setup files
Dec 23, 2016
2e93db1
rename CRED_DEF to CLAIM_DEF, remove redundant methods
ashcherbakov Dec 26, 2016
ed53a4a
minor refactoring for repo-refactoring task
rajeshkalaria80 Dec 26, 2016
4bd2d32
support submit/get of revocation issuer key
ashcherbakov Dec 26, 2016
b96cb63
support recent changes in anoncreds
ashcherbakov Dec 26, 2016
14a1451
support recent changes in anoncreds
ashcherbakov Dec 26, 2016
3b637a6
minor fixes
ashcherbakov Dec 26, 2016
905c6e0
Merge branches 'anoncreds-revocation' and 'master' of https://github.…
ashcherbakov Dec 26, 2016
4dc812f
Merge pull request #35 from evernym/anoncreds-revocation
ashcherbakov Dec 26, 2016
350d3da
changing method of a post install hook to from
Dec 26, 2016
a96e495
increment version
ashcherbakov Dec 26, 2016
7e06d45
minor change due to change in plenum
Dec 28, 2016
642eba6
Merge branch 'master' of https://github.com/evernym/sovrin-priv
ashcherbakov Dec 28, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/simple_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from plenum.common.looper import Looper
from plenum.common.signer_simple import SimpleSigner

from sovrin.client.client import Client
from sovrin.common.txn import TXN_TYPE, NYM

Expand Down
1 change: 1 addition & 0 deletions examples/simple_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from tempfile import TemporaryDirectory

from plenum.common.looper import Looper

from sovrin.server.node import Node


Expand Down
4 changes: 3 additions & 1 deletion post-setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from sovrin.common.setup_util import Setup
import os

from sovrin.common.setup_util import Setup

BASE_DIR = os.path.join(os.path.expanduser("~"), ".sovrin")
Setup(BASE_DIR).setupAll()
3 changes: 2 additions & 1 deletion sample/acme-job-application.sovrin
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"degree": "string",
"status": "string",
"ssn": "string"
}
},
"verifiableAttributes": ["degree", "status", "ssn"]
}],
"sig": "oeGeMdt5HRjRsbaXybGpRmkkijhHrGT82syxofEJQbkjTCLW63tM3jMn1boaf62vCSEEDyTaVJZnrpfDXAHtLZ9"
}
6 changes: 4 additions & 2 deletions sample/thrift-loan-application.sovrin
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
"attributes": {
"salary_bracket": "string",
"employee_status": "string"
}
},
"verifiableAttributes": ["salary_bracket", "employee_status"]
}, {
"name": "Loan-Application-KYC",
"version": "0.1",
"attributes": {
"first_name": "string",
"last_name": "string",
"ssn": "string"
}
},
"verifiableAttributes": ["first_name", "last_name", "ssn"]
}],
"sig": "D1vU5fbtJbqWKdCoVJgqHBLLhh5CYspikuEXdnBVVyCnLHiYC9ZsZrDWpz3GkFFGvfC4RQ4kuB64vUFLo3F7Xk6"
}
3 changes: 3 additions & 0 deletions scripts/add_new_node.py → scripts/add_new_node
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#! /usr/bin/env python3

from plenum.common.looper import Looper
from plenum.common.signer_simple import SimpleSigner

from sovrin.client.client import Client
from sovrin.common.config_util import getConfig

Expand Down
1 change: 1 addition & 0 deletions scripts/change_node_ha
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ from plenum.common.types import HA
from plenum.common.util import getMaxFailures
from plenum.test.eventually import eventually
from plenum.test.helper import checkSufficientRepliesRecvd

from sovrin.common.config_util import getConfig


Expand Down
2 changes: 1 addition & 1 deletion scripts/gen_load_ratcheting
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import sys

from jsonpickle import json

from ledger.stores.text_file_store import TextFileStore
from plenum.common.looper import Looper
from plenum.common.signer_simple import SimpleSigner
from plenum.common.txn import TARGET_NYM, TXN_TYPE, NYM, ROLE, USER, NEW_NODE, DATA, ALIAS, CLIENT_IP, CLIENT_PORT
from plenum.common.types import HA, CLIENT_STACK_SUFFIX

from sovrin.client.client import Client
from sovrin.common.config_util import getConfig

Expand Down
5 changes: 2 additions & 3 deletions scripts/generate_sovrin_pool_transactions
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#! /usr/bin/env python3

import os
from sovrin.common.txn import getTxnOrderedFields

from plenum.common.test_network_setup import TestNetworkSetup

from sovrin.common.config_util import getConfig
from sovrin.common.txn import getTxnOrderedFields

config = getConfig()
keepDir = config.baseDir
Expand Down
1 change: 0 additions & 1 deletion scripts/init_sovrin_raet_keep
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#! /usr/bin/env python3

import argparse
import os
import os.path

from plenum.common.raet import initLocalKeep
Expand Down
8 changes: 6 additions & 2 deletions scripts/sovrin
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ $ sovrin "new nodes all"
# Do not remove this import
import plenum.cli.ensure_logging_not_setup

import logging
import os
import sys
import logging

logging.root.handlers = []
logger = logging.getLogger()
logger.propagate = False
Expand All @@ -44,12 +45,15 @@ def run_cli():

commands = sys.argv[1:]

withNode = True if '--with-node' in commands else True

with Looper(debug=False) as looper:
curDir = os.getcwd()
logFilePath = os.path.join(curDir, config.logFilePath)
cli = SovrinCli(looper=looper,
basedirpath=baseDir,
logFileName=logFilePath
logFileName=logFilePath,
withNode=withNode
)

looper.run(cli.shell(*commands))
Expand Down
6 changes: 2 additions & 4 deletions scripts/start_sovrin_node
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import os
import sys

from plenum.common.types import HA


from plenum.common.raet import initRemoteKeep
from ioflo.aid.consoling import Console
from plenum.common.log import setupLogging, TRACE_LOG_LEVEL, \
getRAETLogLevelFromConfig
from plenum.common.types import HA

from sovrin.common.config_util import getConfig

config = getConfig()
Expand Down
14 changes: 9 additions & 5 deletions setup-dev.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import glob
import os
import shutil
import sys
import os
from setuptools import setup, find_packages, __version__
from pip.req import parse_requirements
from shutil import copyfile

from setuptools import setup, find_packages, __version__

import data
import sample


v = sys.version_info
if sys.version_info < (3, 5):
msg = "FAIL: Requires Python 3.5 or later, " \
Expand Down Expand Up @@ -62,7 +62,11 @@
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']},
include_package_data=True,
data_files=[(
(BASE_DIR, ['data/pool_transactions_sandbox', ])
(BASE_DIR, ['data/pool_transactions_sandbox',
'data/pool_transactions_local',
'data/transactions_sandbox',
'data/transactions_local',
])
)],
install_requires=['base58', 'pyorient', 'plenum-dev', 'ledger-dev',
'semver', 'anoncreds-dev'],
Expand Down
27 changes: 12 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import glob
import shutil
import sys
import os
import subprocess
import sys

import data
from setuptools import setup, find_packages, __version__
from setuptools.command.install import install
from setuptools.command.develop import develop
from pip.req import parse_requirements
from shutil import copyfile
import subprocess

import sample
from setuptools.command.install import install

v = sys.version_info
if sys.version_info < (3, 5):
Expand Down Expand Up @@ -51,14 +44,14 @@ def post_install():


class PostInstall(install):
def run(self):
install.run(self)
def do_egg_install(self):
install.do_egg_install(self)
post_install()


class PostInstallDev(develop):
def run(self):
develop.run(self)
def do_egg_install(self):
develop.do_egg_install(self)
post_install()


Expand All @@ -79,7 +72,11 @@ def run(self):
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']},
include_package_data=True,
data_files=[(
(BASE_DIR, ['data/pool_transactions_sandbox', ])
(BASE_DIR, ['data/pool_transactions_sandbox',
'data/pool_transactions_local',
'data/transactions_sandbox',
'data/transactions_local',
])
)],
install_requires=['base58', 'pyorient', 'plenum', 'ledger', 'semver',
'anoncreds'],
Expand Down
3 changes: 2 additions & 1 deletion sovrin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os

import sovrin
from plenum.common.pkg_util import check_deps

import sovrin

check_deps(sovrin)

from sovrin.common.plugin_helper import writeAnonCredPlugin
Expand Down
2 changes: 1 addition & 1 deletion sovrin/__metadata__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sovrin package metadata
"""
__version_info__ = (0, 1, 140)
__version_info__ = (0, 1, 141)
__version__ = '{}.{}.{}'.format(*__version_info__)
__author__ = "Evernym, Inc."
__license__ = "Apache 2.0"
Expand Down
Loading