API Reference ex_bcs v0.1.0

modules

Modules

BCS

BCS encoder in Elixir

Address data type Convenience type for dealing with the Aptos address type. Under the hood it is just the same as a fixed-length binary of 32 bytes.

Binary data which actually corresponds to a fixed or variable sequence of uint8 values

The choice type, or the coproduct type, or the sum type, or the enum type, or whatever you want to name it.

The double encoding type This type can be handy when sometimes somehow we need to BCS encode twice into a sequence of binaries.

Hardcoded values

Signed integers

Lists Represents a list of values of the same type. Corresponds to the Sequence type.

Mappings Under the hood, this data type represents values of variable-length, sorted sequences of (Key, Value) tuples.

The Maybe, or Optional type.

Tuples Arrays of values of potentially different types

Unsigned integers

Utilities for encoding Elixir values into BCS.