mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
gen: add +ames-keys generator
This commit is contained in:
parent
65fd1cc179
commit
f224d5be60
10
pkg/arvo/gen/ames-keys.hoon
Normal file
10
pkg/arvo/gen/ames-keys.hoon
Normal file
@ -0,0 +1,10 @@
|
||||
:: Print keys for a ship, as stored in %ames
|
||||
::
|
||||
:- %say
|
||||
|= [[now=time @ our=ship ^] [=ship ~] ~]
|
||||
=+ .^ =ship-state:ames
|
||||
%ax /(scot %p our)//(scot %da now)/peers/(scot %p ship)
|
||||
==
|
||||
=/ =peer-state:ames ?>(?=(%known -.ship-state) +.ship-state)
|
||||
:- %noun
|
||||
[life=life rift=rift]:peer-state
|
Loading…
Reference in New Issue
Block a user