Altcha.V2.Solution (Altcha v2.3.0)

Copy Markdown View Source

A solution to a V2 PoW challenge.

Summary

Functions

Converts a Solution to a JSON-encodable map in the wire format. "time" is omitted when nil.

Types

t()

@type t() :: %Altcha.V2.Solution{
  counter: non_neg_integer(),
  derived_key: String.t(),
  time: number() | nil
}

Functions

from_map(m)

to_map(solution)

Converts a Solution to a JSON-encodable map in the wire format. "time" is omitted when nil.