isNEP2

Function
Validates if a given string is a NEP-2 encrypted private key.
export function isNEP2(encryptedKey: string): boolean 

Parameters

encryptedKey
string
hex-encoded encrypted key

Returns

true if it's a valid NEP-2 key, false otherwise
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE