summaryrefslogtreecommitdiff
path: root/src/Network/Tox/NodeId.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox/NodeId.hs')
-rw-r--r--src/Network/Tox/NodeId.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs
index 20dc1854..00b572f2 100644
--- a/src/Network/Tox/NodeId.hs
+++ b/src/Network/Tox/NodeId.hs
@@ -90,6 +90,7 @@ packPublicKey ws = BA.allocAndFreeze (8 * length ws) $
90newtype NodeId = NodeId [Word64] 90newtype NodeId = NodeId [Word64]
91 deriving (Eq,Ord) -- ByteArrayAccess) -- (Eq,Ord,ByteArrayAccess, Bits, Hashable) 91 deriving (Eq,Ord) -- ByteArrayAccess) -- (Eq,Ord,ByteArrayAccess, Bits, Hashable)
92 92
93instance Sized NodeId where size = ConstSize 32
93 94
94key2id :: PublicKey -> NodeId 95key2id :: PublicKey -> NodeId
95key2id = NodeId . unpackPublicKey 96key2id = NodeId . unpackPublicKey