Altcha.V2.ChallengeParameters (Altcha v2.0.1)

Copy Markdown View Source

Parameters embedded in a V2 PoW challenge, signed with HMAC. All fields use camelCase when serialized to JSON to match the JS reference implementation.

Summary

Types

t()

@type t() :: %Altcha.V2.ChallengeParameters{
  algorithm: String.t(),
  cost: pos_integer(),
  data: map() | nil,
  expires_at: pos_integer() | nil,
  key_length: pos_integer(),
  key_prefix: String.t(),
  key_signature: String.t() | nil,
  memory_cost: pos_integer() | nil,
  nonce: String.t(),
  parallelism: pos_integer() | nil,
  salt: String.t()
}