privateKeyToScriptHash

Function
Converts a hex-encoded private key to a Hash160 script hash.
export function privateKeyToScriptHash(privateKey: PrivateKeyString): string 

Parameters

privateKey
string
hex-encoded private key.

Returns

Hash160 string, a hex encoded string prefixed by '0x'.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE