common

package
v0.0.0-...-1b893ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const Anonymous uint8 = 0b10000000
View Source
const AnonymousBaseLength = 2 * Bn256PointBits / ByteBits
View Source
const AnonymousInputNonSolvableSlotLength = 1 + AnonymousBaseLength + AnonymousNonSolvableValueLength
View Source
const AnonymousInputSolvableSlotLength = 1 + AnonymousBaseLength + AnonymousSolvableValueLength
View Source
const AnonymousNonSolvableValueLength = Bn256PointBits / ByteBits
View Source
const AnonymousOutputNonSolvableSlotLength = 1 + AnonymousBaseLength + AnonymousNonSolvableValueLength + AnonymousZKsLength
View Source
const AnonymousOutputSolvableSlotLength = 1 + AnonymousBaseLength + AnonymousSolvableValueLength + AnonymousZKsLength
View Source
const AnonymousSolvableValueLength = 2 * Bn256PointBits / ByteBits
View Source
const AnonymousZKsLength = FormatProofLength + RangeProofShortLength
View Source
const Bn256PointBits int = 256 + 8
View Source
const Bn256ZqBits int = 256
View Source
const ByteBits int = 8
View Source
const ContractCall uint8 = 0b00100000
View Source
const ContractCreation uint8 = 0b00010000
View Source
const ContractReceipt uint8 = 0b00110000
View Source
const ContractSlotMode uint8 = 0b00110000
View Source
const FormatProofLength = 3 * Bn256ZqBits / ByteBits
View Source
const InputSlot uint8 = 0b00000000
View Source
const IsGasSlot uint8 = 0b00000011
View Source
const MaxLongValue int = 1<<RangeProofLongBits - 1
View Source
const MaxShortValue int = 1<<RangeProofShortBits - 1
View Source
const NonSolvable uint8 = 0b00000000
View Source
const NoneContractSlot uint8 = 0b00000000
View Source
const Obscure uint8 = 0b11000000
View Source
const OutputSlot uint8 = 0b00001000
View Source
const Plaintext uint8 = 0b00000000
View Source
const PlaintextBaseLength int = 20
View Source
const PlaintextInputValueLength = 2 * Bn256ZqBits / ByteBits
View Source
const PlaintextOutputSlotLength = 1 + PlaintextBaseLength + PlaintextOutputValueLength
View Source
const PlaintextOutputValueLength = Bn256ZqBits / ByteBits
View Source
const PlaintextZKsLength = (Bn256PointBits + Bn256ZqBits) / ByteBits
View Source
const PrivacyMode uint8 = 0b11000000
View Source
const RangeProofLongBits int = 40
View Source
const RangeProofShortBits int = 20
View Source
const RangeProofShortLength = (4*Bn256PointBits + (2+2*RangeProofShortBits)*Bn256ZqBits) / ByteBits
View Source
const Secret uint8 = 0b01000000
View Source
const SecretBaseLength = Bn256PointBits / ByteBits
View Source
const SecretInputNonSolvableSlotLength = 1 + SecretBaseLength + SecretNonSolvableValueLength
View Source
const SecretInputSolvableSlotLength = 1 + SecretBaseLength + SecretSolvableValueLength
View Source
const SecretNonSolvableValueLength = Bn256PointBits / ByteBits
View Source
const SecretOutputNonSolvableSlotLength = 1 + SecretBaseLength + SecretNonSolvableValueLength + SecretZKsLength
View Source
const SecretOutputSolvableSlotLength = 1 + SecretBaseLength + SecretSolvableValueLength + SecretZKsLength
View Source
const SecretSolvableValueLength = 2 * Bn256PointBits / ByteBits
View Source
const Solvability uint8 = 0b00000100
View Source
const Solvable uint8 = 0b00000100
View Source
const TxSlotKind uint8 = 0b00001000

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL