Created
May 19, 2022 23:15
-
-
Save glommer/c22ab7efd996ebf2a87a8176bb31f08b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getSecret(key: string): JSONValue | undefined { | |
const secret = Deno.core.opSync("op_chisel_get_secret", key); | |
if (secret === undefined || secret === null) { | |
return undefined; | |
} | |
return secret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment