summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 40540fe..2a4dc4e 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -26,11 +26,13 @@ main = do
name <- T.getLine
(secret, public) <- generateKeys st
+ (_secretMsg, publicMsg) <- generateKeys st
(devSecret, devPublic) <- generateKeys st
+ (_devSecretMsg, devPublicMsg) <- generateKeys st
- owner <- wrappedStore st =<< sign secret =<< wrappedStore st (emptyIdentity public) { idName = Just name }
+ owner <- wrappedStore st =<< sign secret =<< wrappedStore st (emptyIdentity public publicMsg) { idName = Just name }
base <- signAdd devSecret =<< sign secret =<<
- wrappedStore st (emptyIdentity devPublic) { idOwner = Just owner }
+ wrappedStore st (emptyIdentity devPublic devPublicMsg) { idOwner = Just owner }
Right h <- replaceHead base (Left (st, "identity"))
return h