ExRingRing.Domain.Services.HashAlgorithm behaviour (ex_ring_ring v0.1.0)

Copy Markdown

Domain service behavior for hash algorithms.

This defines the contract for hash algorithm implementations.

Summary

Callbacks

algorithm_name()

@callback algorithm_name() :: atom()

hash(term)

@callback hash(term()) :: non_neg_integer()

hash_byte_size()

@callback hash_byte_size() :: pos_integer()