Skip to content

Instantly share code, notes, and snippets.

@aunyks
Last active May 10, 2022 00:57
Show Gist options
  • Select an option

  • Save aunyks/219f671a30f8a5924b7d4f3a6e8b2ecc to your computer and use it in GitHub Desktop.

Select an option

Save aunyks/219f671a30f8a5924b7d4f3a6e8b2ecc to your computer and use it in GitHub Desktop.
var eccrypto = require('eccrypto');
// Uncompressed (65-byte) public key
// that corresponds to the given private key
function getPublicKey(privateKey){
return eccrypto.getPublic(privateKey);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment