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

Added cue for remoteMemberedSig to notify when receiving a sig on group from unprotected (remote) source #652

Merged
merged 2 commits into from
Jan 3, 2024
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
1 change: 1 addition & 0 deletions src/keri/app/habbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,7 @@ def processCuesIter(self, cues):
# ToDo XXXX cue for kin = "psUnescrow"
# ToDo XXXX cue for kin = "stream"
# ToDo XXXX cue for kin = "invalid"
# ToDo XXXX cue for kin=""remoteMemberedSig""


def witnesser(self):
Expand Down
7 changes: 5 additions & 2 deletions src/keri/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,9 @@ def valSigsWigsDel(self, serder, sigers, verfers, tholder,
for siger in list(sigers): # copy so clean del on original elements
if siger.index in indices:
del sigers[siger.index]
self.cues.push(dict(kin="remoteMemberedSig",
serder=serder,
index=siger.index))

# get unique verified sigers and indices lists from sigers list
sigers, indices = verifySigs(raw=serder.raw, sigers=sigers, verfers=verfers)
Expand Down Expand Up @@ -3543,7 +3546,7 @@ def processEvent(self, serder, sigers, *, wigers=None,
self.cues.push(dict(kin="witness", serder=serder))

if (self.local and
kever.locallyOwned(kever.delpre if kever.delpre is not None else '')): # delegator may be None
kever.locallyOwned(kever.delpre if kever.delpre is not None else '')): # delpre may be None
# ToDo XXXX need to cue task here to approve delegation by generating
# an anchoring SealEvent of serder in delegators KEL
# may include MFA and or business logic for the delegator i.e. is local
Expand Down Expand Up @@ -3647,7 +3650,7 @@ def processEvent(self, serder, sigers, *, wigers=None,
self.cues.push(dict(kin="witness", serder=serder))

if (self.local and
kever.locallyOwned(kever.delpre if kever.delpre is not None else '')): # delegator may be None
kever.locallyOwned(kever.delpre if kever.delpre is not None else '')): # delpre may be None
# ToDo XXXX need to cue task here to approve delegation by generating
# an anchoring SealEvent of serder in delegators KEL
# may include MFA and or business logic for the delegator i.e. is local
Expand Down
Loading