encryptNEP2

Function
Encrypts a private key with a password using the NEP-2 standard.
export async function encryptNEP2(options: { 
  readonly password: string; 
  readonly privateKey: PrivateKeyString; 
}): Promise<string> 

Parameters

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

Returns

NEP-2 format encrypted key
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE