You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ouroboros-consensus-protocol/src/ouroboros-consensus-protocol/Ouroboros/Consensus/Protocol/Ledger/HotKey.hs
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,9 @@ data HotKey c m = HotKey
168
168
-- PRECONDITION: the key is not poisoned.
169
169
--
170
170
-- POSTCONDITION: the signature is in normal form.
171
-
, forget::m()
172
-
--^ Securely erase the key and release its memory.
171
+
, forget_::m()
172
+
--^ Securely erase the key and release its memory. User code should use
173
+
-- 'finalize' instead (which forgets and then finalizes the 'HotKey').
173
174
, finalize_::m()
174
175
--^ Release any resources held by the 'HotKey', except for the signing
175
176
-- key itself. User code should use 'finalize' instead.
@@ -178,7 +179,7 @@ data HotKey c m = HotKey
178
179
--| Release all resources held by the 'HotKey', including the signing key
179
180
-- itself. Use this exactly once per 'HotKey' instance.
0 commit comments