Module bee_crypto::ternary::bigint::t242[][src]

👎 Deprecated:

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

BTRIT_0Deprecated

T242 balanced trits represented 0.

BTRIT_1Deprecated

T242 balanced trits represented 1.

BTRIT_MAXDeprecated

T242 balanced trits represented maximum value.

BTRIT_MINDeprecated

T242 balanced trits represented minimum value.

BTRIT_NEG_1Deprecated

T242 balanced trits represented -1.

T242Deprecated

Fixed size trit buffer.

UTRIT_0Deprecated

T242 unbalanced trits represented 0.

UTRIT_1Deprecated

T242 unbalanced trits represented 1.

UTRIT_2Deprecated

T242 unbalanced trits represented 2.

UTRIT_U384_MAXDeprecated

T242 unbalanced trits represented U384::max.

T242 unbalanced trits represented half of U384::max.

Constants

LENGTHDeprecated

Length of the trit buffer.