View Source DiodeClient.Object behaviour (Diode Client v1.3.1)

All objects are made of tuples {:type, value1, value2, ..., valueN, signature} The number of values are different but the last signature is a signature is always is the signature of BertExt.encode!([value1, value2, ..., valueN])) Also the signatures public key is always equal to the key

Summary

Types

key()

@type key() :: <<_::160>>

Callbacks

block_number(tuple)

@callback block_number(tuple()) :: integer()

key(tuple)

@callback key(tuple()) :: key()

valid?(tuple)

@callback valid?(tuple()) :: boolean()

Functions

block_number(record)

@spec block_number(tuple()) :: integer()

decode!(bin)

decode_list!(list)

decode_rlp_list!(list)

encode!(record)

encode_list!(record)

extname(atom)

key(record)

@spec key(tuple()) :: binary()

modname(tuple)

recordname(binary)