decryptNEP2

Function
Decrypts a private key encrypted using the NEP-2 standard with the given password.
export async function decryptNEP2(options: { 
  readonly password: string; 
  readonly encryptedKey: string; 
}): Promise<PrivateKeyString> 

Parameters

options
{ readonly password: string; readonly encryptedKey: string; }

Returns

hex-encoded private key
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE