Module bee_crypto::ternary::bigint::t242 [−][src]
bee-crypto
will not be supported in future versions. You can use functions from iota-crypto
instead.
Expand description
This module contains logic to convert an integer encoded by 242 trits to the same integer encoded by 384 bits (or 48
signed bytes, i8
).
At the core of this a slice of binary-coded, balanced trits is interpreted fanned-out t242
, where t242
is used
analogous to i64
or u64
. If the latter are 64-bit signed/unsigned integer types, then t242
is a 242-trit
integer type. Analogous to fanning out a u64
into 64 individual bits, t242
is fanned out into 242 trits, each
(rather inefficiently) represented by one u8
.
Structs
T242 balanced trits represented 0.
T242 balanced trits represented 1.
T242 balanced trits represented maximum value.
T242 balanced trits represented minimum value.
T242 balanced trits represented -1.
Fixed size trit buffer.
T242 unbalanced trits represented 0.
T242 unbalanced trits represented 1.
T242 unbalanced trits represented 2.
T242 unbalanced trits represented U384::max.
T242 unbalanced trits represented half of U384::max.
Constants
Length of the trit buffer.