publicKeyToScriptHash

Function
Converts a hex-encoded public key into a Hash160 script hash.
export function publicKeyToScriptHash(publicKey: PublicKeyString): string 

Parameters

publicKey
string
hex-encoded public 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