intrepidshape/elm-web3/2.0.0

NOTE: the latest version is 3.0.0

Web3.Crypto

Cryptographic utilities via the Web3 port.

type Cmd

Commands for the Crypto port.

type Msg
= GotKeccak256 String String

Messages from the Crypto port.

keccak256 : String -> String -> Cmd

Request the keccak256 hash of a UTF-8 string. The second argument is a request ID.

encode : Cmd -> Value

Encode a Crypto command to send through the port.

decoder : Decoder Msg

Decode a Crypto message received from the port.