mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
3858ec35f7
commit
e68ee36429
|
@ -136,6 +136,7 @@ refChanHeadProto self adapter msg = do
|
||||||
case msg of
|
case msg of
|
||||||
RefChanHead chan pkt -> do
|
RefChanHead chan pkt -> do
|
||||||
trace $ "RefChanHead" <+> pretty self <+> pretty (AsBase58 chan)
|
trace $ "RefChanHead" <+> pretty self <+> pretty (AsBase58 chan)
|
||||||
|
-- FIXME: check-chan-is-listened
|
||||||
lift $ refChanHeadOnHead adapter pkt
|
lift $ refChanHeadOnHead adapter pkt
|
||||||
|
|
||||||
RefChanGetHead _ -> do
|
RefChanGetHead _ -> do
|
||||||
|
@ -143,7 +144,6 @@ refChanHeadProto self adapter msg = do
|
||||||
-- послать хэш головы
|
-- послать хэш головы
|
||||||
pure ()
|
pure ()
|
||||||
|
|
||||||
|
|
||||||
makeSignedBox :: forall e p . (Serialise p, ForRefChans e, Signatures (Encryption e))
|
makeSignedBox :: forall e p . (Serialise p, ForRefChans e, Signatures (Encryption e))
|
||||||
=> PubKey 'Sign (Encryption e)
|
=> PubKey 'Sign (Encryption e)
|
||||||
-> PrivKey 'Sign (Encryption e)
|
-> PrivKey 'Sign (Encryption e)
|
||||||
|
|
Loading…
Reference in New Issue