crypto

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

Static Methods

sha1

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

sha256

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

hash160

Returns a Buffer of the RMD160 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