Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

feat: support Uuid type and sha1_calculate API #145

Closed brew0722 closed 2 years ago

brew0722 commented 2 years ago

Description

Closes #141

optimize by rust-optimizer make seq-id msg make uuid msg(sha1 via wasm) make uuid msg(sha1 via native) make uuid msg without to_string (sha1 via native)
X 35626 52338 49210 44954
O 30885 46475 42848 39030

Types of changes

Checklist

brew0722 commented 2 years ago

Changed the input limit from 40bytes to 80bytes as needed.(avg 266ns -> 270ns) The benchmark results show no significant change in the execution speed of sha1.

So the gas cost is similar.