Skip to content

Instantly share code, notes, and snippets.

@vikramacharya
Created September 10, 2022 15:17
Show Gist options
  • Save vikramacharya/bfb6cfe42061f8596b8cdec0e5d3296e to your computer and use it in GitHub Desktop.
Save vikramacharya/bfb6cfe42061f8596b8cdec0e5d3296e to your computer and use it in GitHub Desktop.
const signedMessage = sodium.crypto_sign_detached(signing_string, sodium.from_base64(privateKey, base64_variants.ORIGINAL));
const signedMessage_ = sodium.to_base64(signedMessage, base64_variants.ORIGINAL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment