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

Feat/test aiding #62

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ for inception and rotation events with only the public keys and blake3 hash of t

The communication protocol between a Signify client and [KERI](https://github.com/WebOfTrust/keri) agent will encode all cryptographic primitives as CESR base64
encoded strings for the initial implementation. Support for binary CESR can be added in the future.

### Development

```
pip install pytest mockito
```

`pytest` to run tests.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@
'http_sfv>=0.9.8',
'msgpack>=1.0.4',
'cbor2>=5.4.3',
'sseclient>=0.0.27',
'sseclient>=0.0.27'
],
extras_require={
},
tests_require=[
'responses>=0.22.0',
'coverage>=6.5.0',
'pytest>=7.2.0',
'mockito>=1.4.0',
'mockito>=1.4.0'
],
setup_requires=[
],
Expand Down
5 changes: 2 additions & 3 deletions src/signify/app/aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from keri.core import eventing
from keri.core.coring import MtrDex, Tholder
from keri.kering import Roles
from requests import exceptions

from signify.app.clienting import SignifyClient
from signify.core import httping
Expand Down Expand Up @@ -131,7 +130,7 @@ def rotate(self, name, *, transferable=True, nsith=None, toad=None, cuts=None, a
dig = state["d"]
ridx = int(state["s"], 16) + 1
wits = state['b']
isith = state["kt"]
isith = state["kt"] if "kt" in state else None

if nsith is None:
nsith = isith # use new current as default
Expand Down Expand Up @@ -202,7 +201,7 @@ def addEndRole(self, name, *, role=Roles.agent, eid=None, stamp=None):
def sign(self, name, ser):
hab = self.get(name)
keeper = self.client.manager.get(aid=hab)
sigs = keeper.sign(ser=ser)
sigs = keeper.sign(ser=ser.raw)

return sigs

Expand Down
Loading
Loading