PtcRunner.Kernel.CommandRunRef (PtcRunner v0.14.0)

Copy Markdown View Source

Generates the fixed V1 command reference from 128 bits of entropy.

Summary

Functions

encode(arg)

@spec encode(<<_::128>>) :: binary()

generate()

@spec generate() :: {:ok, binary()} | {:error, :entropy_unavailable}

valid?(value)

@spec valid?(term()) :: boolean()