mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +03:00
ames: handle remote scry requests for gall data
This commit is contained in:
parent
439184fa7c
commit
d76057cac7
@ -4661,24 +4661,37 @@
|
|||||||
?~ blk=(de-path-soft:balk pax.tyl) ~
|
?~ blk=(de-path-soft:balk pax.tyl) ~
|
||||||
=+ nom=(en-roof:balk u.blk)
|
=+ nom=(en-roof:balk u.blk)
|
||||||
~| nom
|
~| nom
|
||||||
:: we only support scrying into clay,
|
|^
|
||||||
:: and only if the data is fully public.
|
=/ van ?@(vis.nom (end 3 vis.nom) way.vis.nom)
|
||||||
|
?+ van ~
|
||||||
|
%c
|
||||||
|
=+ pem=(rof lyc nom(vis %cp))
|
||||||
|
?. ?=(^ pem) ~
|
||||||
|
?. ?=(^ u.pem) ~
|
||||||
|
~| u.u.pem
|
||||||
|
=+ per=!<([r=dict:clay w=dict:clay] q.u.u.pem)
|
||||||
|
?. =([%black ~ ~] rul.r.per) ~
|
||||||
|
(en-hunk (rof lyc nom))
|
||||||
::
|
::
|
||||||
?. =(%c ?@(vis.nom (end 3 vis.nom) way.vis.nom)) ~
|
%g
|
||||||
=+ pem=(rof lyc nom(vis %cp))
|
=/ kyr ?@(vis.nom (rsh 3 vis.nom) car.vis.nom)
|
||||||
?. ?=(^ pem) ~
|
%- en-hunk
|
||||||
?. ?=(^ u.pem) ~
|
?+ kyr ~
|
||||||
~| u.u.pem
|
%a (rof lyc nom)
|
||||||
=+ per=!<([r=dict:clay w=dict:clay] q.u.u.pem)
|
==
|
||||||
?. =([%black ~ ~] rul.r.per) ~
|
|
||||||
=+ res=(rof lyc nom)
|
|
||||||
=/ =hunk [(slav %ud lop.tyl) (slav %ud len.tyl)]
|
|
||||||
::
|
|
||||||
=/ hu-co (etch-hunk our [life crypto-core]:ames-state)
|
|
||||||
?- res
|
|
||||||
~ ~
|
|
||||||
[~ ~] ``noun+!>((etch:hu-co pax.tyl hunk ~))
|
|
||||||
[~ ~ *] ``noun+!>((etch:hu-co pax.tyl hunk [p q.q]:u.u.res))
|
|
||||||
==
|
==
|
||||||
|
::
|
||||||
|
++ en-hunk
|
||||||
|
|= res=(unit (unit cage))
|
||||||
|
^+ res
|
||||||
|
?~ res ~
|
||||||
|
=/ =hunk [(slav %ud lop.tyl) (slav %ud len.tyl)]
|
||||||
|
::
|
||||||
|
=/ hu-co (etch-hunk our [life crypto-core]:ames-state)
|
||||||
|
?- res
|
||||||
|
[~ ~] ``noun+!>((etch:hu-co pax.tyl hunk ~))
|
||||||
|
[~ ~ *] ``noun+!>((etch:hu-co pax.tyl hunk [p q.q]:u.u.res))
|
||||||
|
==
|
||||||
|
--
|
||||||
==
|
==
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user