Skip to content

Latest commit

 

History

History
116 lines (50 loc) · 2.17 KB

Hash.md

File metadata and controls

116 lines (50 loc) · 2.17 KB

Module 0x1::Hash

The module provide sha-hash functionality for Move.

Function sha2_256

public fun sha2_256(data: vector<u8>): vector<u8>
Implementation
native public fun sha2_256(data: vector<u8>): vector<u8>;

Function sha3_256

public fun sha3_256(data: vector<u8>): vector<u8>
Implementation
native public fun sha3_256(data: vector<u8>): vector<u8>;

Function keccak_256

public fun keccak_256(data: vector<u8>): vector<u8>
Implementation
native public fun keccak_256(data: vector<u8>): vector<u8>;

Function ripemd160

public fun ripemd160(data: vector<u8>): vector<u8>
Implementation
native public fun ripemd160(data: vector<u8>): vector<u8>;

Module Specification

pragma verify;
pragma aborts_if_is_strict;