Poseidon
Inherits Reference < Object
Constructors
new(prime : BigInt, security, width = 0, capacity = -1)
field prime number, desired security bits, t (permutation width)
Class methods
bytes_to_field(data : Array(UInt8))
Sourcefield_to_bytes(b)
SourceInstance methods
absorb(chunks, params)
Sourceauto_parameters(security = 128)
Sourcecompute_capacity(security, strict = false)
compute the capacity in order to achieve the desired security WARNING - we allow for a 5% tolerance, use strict=true to ensure desired security
perm(state_words, params : PoseidonParams)
Source