Versions in this module Expand all Collapse all v0 v0.8.2 Feb 4, 2023 v0.7.2 Feb 4, 2023 Changes in this version + var NNAF = nNaf + var NTrits = nTrits + func AssertIsTrit(api frontend.API, v frontend.Variable) + func FromBase(api frontend.API, base Base, digits []frontend.Variable, ...) frontend.Variable + func FromBinary(api frontend.API, digits []frontend.Variable, opts ...BaseConversionOption) frontend.Variable + func FromTernary(api frontend.API, digits []frontend.Variable, opts ...BaseConversionOption) frontend.Variable + func IthBit(_ ecc.ID, inputs []*big.Int, results []*big.Int) error + func NBits(_ ecc.ID, inputs []*big.Int, results []*big.Int) error + func ToBase(api frontend.API, base Base, v frontend.Variable, opts ...BaseConversionOption) []frontend.Variable + func ToBinary(api frontend.API, v frontend.Variable, opts ...BaseConversionOption) []frontend.Variable + func ToNAF(api frontend.API, v frontend.Variable, opts ...BaseConversionOption) []frontend.Variable + func ToTernary(api frontend.API, v frontend.Variable, opts ...BaseConversionOption) []frontend.Variable + type Base uint8 + const Binary + const Ternary + type BaseConversionOption func(opt *baseConversionConfig) error + func WithNbDigits(nbDigits int) BaseConversionOption + func WithUnconstrainedInputs() BaseConversionOption + func WithUnconstrainedOutputs() BaseConversionOption