mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
fine: use keys from ames state instead of jael
This commit is contained in:
parent
4c045a9c4f
commit
769d10fdd4
@ -3373,29 +3373,27 @@
|
|||||||
|= [=path mess=*]
|
|= [=path mess=*]
|
||||||
(sign (shax (jam [our life path mess])))
|
(sign (shax (jam [our life path mess])))
|
||||||
::
|
::
|
||||||
++ life ~+ (jael ^life %life /(scot %p our))
|
++ life life.ames-state
|
||||||
++ ring ~+ (jael ^ring %vein /(scot %ud life))
|
++ sign sign:as:crypto-core.ames-state
|
||||||
++ sign sign:as:(nol:nu:crub:crypto ring)
|
|
||||||
::
|
|
||||||
++ jael
|
|
||||||
|* [=mold =desk =path]
|
|
||||||
!< mold
|
|
||||||
%- tail %- need %- need
|
|
||||||
(rof `[our ~ ~] [%jael %$] [our desk da+now] path)
|
|
||||||
::
|
::
|
||||||
|
::TODO for the unknown case, should use the alien-agenda
|
||||||
++ lyfe
|
++ lyfe
|
||||||
|= who=ship
|
|= who=ship
|
||||||
(jael (unit ^life) %lyfe /(scot %p our))
|
^- ^life
|
||||||
|
~| [%fine %unknown-peer who]
|
||||||
|
=/ ship-state (~(got by peers.ames-state) who)
|
||||||
|
?> ?=([%known *] ship-state)
|
||||||
|
life.ship-state
|
||||||
::
|
::
|
||||||
::TODO don't scry! subscribe & get from state instead
|
::TODO for the unknown case, should use the alien-agenda
|
||||||
::TODO literally copy the ames code lol
|
|
||||||
::TODO the fact that we share pki and lane data with ames is... suspect
|
|
||||||
:: also the en/decoding etc
|
|
||||||
++ pass
|
++ pass
|
||||||
|= [who=ship lyf=^life]
|
|= [who=ship lyf=^life]
|
||||||
::TODO but might fail need checks?
|
~| [%fine %unknown-peer who lyf]
|
||||||
:: (jael * %deed )
|
=/ ship-state (~(got by peers.ames-state) who)
|
||||||
!!
|
?> ?=([%known *] ship-state)
|
||||||
|
~| [%fine %life-mismatch who lyf]
|
||||||
|
?> =(lyf life.ship-state)
|
||||||
|
public-key.ship-state
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ get-lane
|
++ get-lane
|
||||||
|
Loading…
Reference in New Issue
Block a user