Skip to content
Closed
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
12 changes: 11 additions & 1 deletion src/signify/core/keeping.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def new(self, algo, pidx, **kwargs):
eargs = kwargs["extern"]
return mod.shim(pidx=pidx, **eargs)

def get(self, aid):
def get(self, aid, **kwargs):
pre = coring.Prefixer(qb64=aid["prefix"])
if keeping.Algos.salty in aid:
kwargs = aid[keeping.Algos.salty]
Expand All @@ -65,6 +65,16 @@ def get(self, aid):
elif keeping.Algos.group in aid:
kwargs = aid[keeping.Algos.group]
return GroupKeeper(mgr=self, **kwargs)

elif keeping.Algos.extern in aid:
extnprms = aid[keeping.Algos.extern]
typ = kwargs["extern_type"]
if typ not in self.modules:
raise kering.ConfigurationError(f"unsupported external module type {typ}")
mod = self.modules[typ]

eargs = kwargs["extern"]
return mod.shim(pidx=extnprms["pidx"], **eargs)


class BaseKeeper:
Expand Down
Loading