Miscellaneous

caver.klay.sha3(data[, callback])

Returns the Keccak-256 hash (not the standardized SHA3-256) of the given data.

Parameters

Name
Type
Description

data

String

The data to convert into a SHA3 hash.

callback

Function

(optional) Optional callback, returns an error object as the first parameter and the result as the second.

Return Value

프로미스String을 반환 - 주어진 데이터를 SHA3 해시로 변환한 결과값입니다.

Example

> caver.klay.sha3("0x11223344").then(console.log);
0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73

Last updated