Anoma.Node.Examples.Serializing.Events.Backends (Anoma v0.34.0)

I define examples on how to serialize events to json.

I am merely a test suite, rather than examples.

Summary

Functions

I create a minimal complete event and check its serialization.

I create a minimal complete event and check its serialization.

I serialize a result_event.

I serialize a result_event.

I create a minimal srm event.

I create an srm event with some nullifiers and commitments in it.

I create a minimal srm event.

I create an srm event with some nullifiers and commitments in it.

Functions

complete_event()

I create a minimal complete event and check its serialization.

complete_event_error()

@spec complete_event_error() ::
  Anoma.Node.Transaction.Backends.Events.CompleteEvent.t()

I create a minimal complete event and check its serialization.

result_event()

I serialize a result_event.

result_event_error()

I serialize a result_event.

srme_event()

I create a minimal srm event.

srme_event_non_empty()

@spec srme_event_non_empty() :: Anoma.Node.Transaction.Backends.Events.SRMEvent.t()

I create an srm event with some nullifiers and commitments in it.

trme_event()

I create a minimal srm event.

trme_event_non_empty()

@spec trme_event_non_empty() :: Anoma.Node.Transaction.Backends.Events.TRMEvent.t()

I create an srm event with some nullifiers and commitments in it.