crypto

Const
Contains various cryptography functions.
export interface crypto { 
  readonly sha256: (value: Hashable) => Buffer; 
  readonly ripemd160: (value: Hashable) => Address; 
  readonly hash160: (value: Hashable) => Address; 
  readonly hash256: (value: Hashable) => Hash256; 
} 

Static Methods

sha256

Returns a Buffer of the SHA256 hash of the input
(value: Hashable) => Buffer 

ripemd160

Returns a Buffer of the RIPEMD160 hash of the input.
(value: Hashable) => Address 

hash160

Returns a Buffer of the RIPEMD160 hash of the SHA256 hash of the input.
(value: Hashable) => Address 

hash256

Returns a Buffer of the SHA256 hash of the SHA256 hash of the input.
(value: Hashable) => Hash256 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE