henriquecbuss / elm-eos / Eos.Permission

Permissions control what EOSIO accounts can do and how actions are authorized. They are organized in a hierarchical structure, with the root permission being the Owner permission. The Active permission is a child of the Owner.


type Permission
    = Owner
    | Active
    | Custom Eos.Name.Name

There are two permissions by default: Owner and Active. However, each account may have arbitrary permissions (that's what Custom is for).

Working with JSON

encode : Permission -> Json.Encode.Value

Turn a permission into a JSON value.

decoder : Json.Decode.Decoder Permission

Decode a JSON value into a Permission

toString : Permission -> String

Turn a Permission into a String