From 728cae778836b94fbf1e2719bda10ce085abe94e Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Tue, 27 Jan 2026 09:42:43 +1000 Subject: [PATCH] remove unsafe trapdoor artifacts --- nt/primitives/bootstrap/trapdoor.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/nt/primitives/bootstrap/trapdoor.nix b/nt/primitives/bootstrap/trapdoor.nix index 7c4e703..d85b613 100644 --- a/nt/primitives/bootstrap/trapdoor.nix +++ b/nt/primitives/bootstrap/trapdoor.nix @@ -39,17 +39,6 @@ in rec { ${masterkey} = decl.unlock; }; - # XXX: TODO: should we just remove all unsafe functions here? - # revealTrapdoorsUnsafe = openTrapdoorUnsafe masterkey; - # - # openTrapdoorFnUnsafe = key: T: (T masterkey).${key}; - # openTrapdoorSetUnsafe = key: T: T.${masterkey}.${key}; - # - # openTrapdoorUnsafe = key: T: - # if isFunction T - # then openTrapdoorFnUnsafe key T - # else openTrapdoorSetUnsafe key T; - isTrapdoorFnKey = key: T: isFunction T && (T masterkey) ? ${key}; isTrapdoorSetKey = key: T: