Skip to main content
Version: Nitrogen

FHE.sol

isInitialized

function isInitialized(ebool v) internal pure returns (bool)

isInitialized

function isInitialized(euint8 v) internal pure returns (bool)

isInitialized

function isInitialized(euint16 v) internal pure returns (bool)

isInitialized

function isInitialized(euint32 v) internal pure returns (bool)

isInitialized

function isInitialized(euint64 v) internal pure returns (bool)

isInitialized

function isInitialized(euint128 v) internal pure returns (bool)

isInitialized

function isInitialized(euint256 v) internal pure returns (bool)

isInitialized

function isInitialized(eaddress v) internal pure returns (bool)

mathHelper

function mathHelper(uint8 utype, uint256 lhs, uint256 rhs, function (uint8,bytes,bytes) pure external returns (bytes) impl) internal pure returns (uint256 result)

add

function add(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the add operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

add

function add(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the add operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

add

function add(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the add operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

add

function add(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the add operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

add

function add(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the add operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

sealoutput

function sealoutput(ebool value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a ebool ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeboolCiphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint8 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint8 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint8Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint16 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint16 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint16Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint32 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint32 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint32Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint64 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint64 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint64Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint128 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint128 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint128Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(euint256 value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on a euint256 ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeuint256Ciphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

sealoutput

function sealoutput(eaddress value, bytes32 publicKey) internal pure returns (string)

performs the sealoutput function on an eaddress ciphertext. This operation returns the plaintext value, sealed for the public key provided

Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
valueeaddressCiphertext to decrypt and seal
publicKeybytes32Public Key that will receive the sealed plaintext

Return Values

NameTypeDescription
[0]stringPlaintext input, sealed for the owner of publicKey

decrypt

function decrypt(ebool input1) internal pure returns (bool)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1eboolthe input ciphertext

decrypt

function decrypt(euint8 input1) internal pure returns (uint8)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint8the input ciphertext

decrypt

function decrypt(euint16 input1) internal pure returns (uint16)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint16the input ciphertext

decrypt

function decrypt(euint32 input1) internal pure returns (uint32)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint32the input ciphertext

decrypt

function decrypt(euint64 input1) internal pure returns (uint64)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint64the input ciphertext

decrypt

function decrypt(euint128 input1) internal pure returns (uint128)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint128the input ciphertext

decrypt

function decrypt(euint256 input1) internal pure returns (uint256)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint256the input ciphertext

decrypt

function decrypt(eaddress input1) internal pure returns (address)

Performs the decrypt operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1eaddressthe input ciphertext

lte

function lte(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the lte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lte

function lte(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the lte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lte

function lte(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the lte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lte

function lte(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the lte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lte

function lte(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the lte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

sub

function sub(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the sub operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

sub

function sub(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the sub operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

sub

function sub(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the sub operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

sub

function sub(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the sub operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

sub

function sub(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the sub operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

mul

function mul(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the mul operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

mul

function mul(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the mul operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

mul

function mul(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the mul operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

mul

function mul(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the mul operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

lt

function lt(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the lt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lt

function lt(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the lt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lt

function lt(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the lt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lt

function lt(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the lt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

lt

function lt(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the lt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

select

function select(ebool input1, ebool input2, ebool input3) internal pure returns (ebool)

select

function select(ebool input1, euint8 input2, euint8 input3) internal pure returns (euint8)

select

function select(ebool input1, euint16 input2, euint16 input3) internal pure returns (euint16)

select

function select(ebool input1, euint32 input2, euint32 input3) internal pure returns (euint32)

select

function select(ebool input1, euint64 input2, euint64 input3) internal pure returns (euint64)

select

function select(ebool input1, euint128 input2, euint128 input3) internal pure returns (euint128)

select

function select(ebool input1, euint256 input2, euint256 input3) internal pure returns (euint256)

select

function select(ebool input1, eaddress input2, eaddress input3) internal pure returns (eaddress)

req

function req(ebool input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1eboolthe input ciphertext

req

function req(euint8 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint8the input ciphertext

req

function req(euint16 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint16the input ciphertext

req

function req(euint32 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint32the input ciphertext

req

function req(euint64 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint64the input ciphertext

req

function req(euint128 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint128the input ciphertext

req

function req(euint256 input1) internal pure

Performs the req operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint256the input ciphertext

div

function div(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the div operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

div

function div(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the div operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

div

function div(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the div operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

gt

function gt(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the gt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gt

function gt(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the gt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gt

function gt(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the gt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gt

function gt(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the gt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gt

function gt(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the gt operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gte

function gte(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the gte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gte

function gte(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the gte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gte

function gte(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the gte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gte

function gte(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the gte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

gte

function gte(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the gte operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

rem

function rem(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the rem operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

rem

function rem(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the rem operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

rem

function rem(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the rem operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

and

function and(ebool lhs, ebool rhs) internal pure returns (ebool)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseboolThe first input
rhseboolThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

and

function and(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

and

function and(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

and

function and(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

and

function and(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

and

function and(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the and operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

or

function or(ebool lhs, ebool rhs) internal pure returns (ebool)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseboolThe first input
rhseboolThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

or

function or(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

or

function or(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

or

function or(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

or

function or(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

or

function or(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the or operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

xor

function xor(ebool lhs, ebool rhs) internal pure returns (ebool)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseboolThe first input
rhseboolThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

xor

function xor(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

xor

function xor(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

xor

function xor(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

xor

function xor(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

xor

function xor(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the xor operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

eq

function eq(ebool lhs, ebool rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseboolThe first input
rhseboolThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(euint256 lhs, euint256 rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint256The first input
rhseuint256The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

eq

function eq(eaddress lhs, eaddress rhs) internal pure returns (ebool)

This function performs the eq operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseaddressThe first input
rhseaddressThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(ebool lhs, ebool rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseboolThe first input
rhseboolThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint8 lhs, euint8 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint16 lhs, euint16 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint32 lhs, euint32 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint64 lhs, euint64 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint128 lhs, euint128 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(euint256 lhs, euint256 rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint256The first input
rhseuint256The second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

ne

function ne(eaddress lhs, eaddress rhs) internal pure returns (ebool)

This function performs the ne operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseaddressThe first input
rhseaddressThe second input

Return Values

NameTypeDescription
[0]eboolThe result of the operation

min

function min(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the min operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

min

function min(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the min operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

min

function min(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the min operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

min

function min(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the min operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

min

function min(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the min operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

max

function max(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the max operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

max

function max(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the max operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

max

function max(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the max operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

max

function max(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the max operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

max

function max(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the max operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

shl

function shl(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the shl operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

shl

function shl(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the shl operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

shl

function shl(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the shl operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

shl

function shl(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the shl operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

shl

function shl(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the shl operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

shr

function shr(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the shr operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

shr

function shr(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the shr operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

shr

function shr(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the shr operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

shr

function shr(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This function performs the shr operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

shr

function shr(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This function performs the shr operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

rol

function rol(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the rol operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

rol

function rol(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the rol operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

rol

function rol(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the rol operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

rol

function rol(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This functions performs the rol operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

rol

function rol(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This functions performs the rol operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

ror

function ror(euint8 lhs, euint8 rhs) internal pure returns (euint8)

This function performs the ror operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint8The first input
rhseuint8The second input

Return Values

NameTypeDescription
[0]euint8The result of the operation

ror

function ror(euint16 lhs, euint16 rhs) internal pure returns (euint16)

This function performs the ror operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint16The first input
rhseuint16The second input

Return Values

NameTypeDescription
[0]euint16The result of the operation

ror

function ror(euint32 lhs, euint32 rhs) internal pure returns (euint32)

This function performs the ror operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint32The first input
rhseuint32The second input

Return Values

NameTypeDescription
[0]euint32The result of the operation

ror

function ror(euint64 lhs, euint64 rhs) internal pure returns (euint64)

This functions performs the ror operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint64The first input
rhseuint64The second input

Return Values

NameTypeDescription
[0]euint64The result of the operation

ror

function ror(euint128 lhs, euint128 rhs) internal pure returns (euint128)

This functions performs the ror operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
lhseuint128The first input
rhseuint128The second input

Return Values

NameTypeDescription
[0]euint128The result of the operation

square

function square(euint8 value) internal pure returns (euint8)

This function performs the square operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
vaulueeuint8The input

Return Values

NameTypeDescription
[0]euint8The result of the operation

square

function square(euint16 value) internal pure returns (euint16)

This function performs the square operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
vaulueeuint16The input

Return Values

NameTypeDescription
[0]euint16The result of the operation

square

function square(euint32 value) internal pure returns (euint32)

This function performs the square operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
vaulueeuint32The input

Return Values

NameTypeDescription
[0]euint32The result of the operation

square

function square(euint64 value) internal pure returns (euint64)

This functions performs the square operation

If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
vaulueeuint64The input

Return Values

NameTypeDescription
[0]euint64The result of the operation

not

function not(ebool value) internal pure returns (ebool)

Performs the "not" for the ebool type

Implemented by a workaround due to ebool being a euint8 type behind the scenes, therefore xor is needed to assure that not(true) = false and vise-versa

Parameters

NameTypeDescription
valueeboolinput ebool ciphertext

Return Values

NameTypeDescription
[0]eboolResult of the not operation on value

not

function not(euint8 input1) internal pure returns (euint8)

Performs the not operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint8the input ciphertext

not

function not(euint16 input1) internal pure returns (euint16)

Performs the not operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint16the input ciphertext

not

function not(euint32 input1) internal pure returns (euint32)

Performs the not operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint32the input ciphertext

not

function not(euint64 input1) internal pure returns (euint64)

Performs the not operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint64the input ciphertext

not

function not(euint128 input1) internal pure returns (euint128)

Performs the not operation on a ciphertext

Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access

Parameters

NameTypeDescription
input1euint128the input ciphertext

asEbool

function asEbool(struct inEbool value) internal pure returns (ebool)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an ebool

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]eboola ciphertext representation of the input

asEuint8

function asEuint8(ebool value) internal pure returns (euint8)

Converts a ebool to an euint8

asEuint16

function asEuint16(ebool value) internal pure returns (euint16)

Converts a ebool to an euint16

asEuint32

function asEuint32(ebool value) internal pure returns (euint32)

Converts a ebool to an euint32

asEuint64

function asEuint64(ebool value) internal pure returns (euint64)

Converts a ebool to an euint64

asEuint128

function asEuint128(ebool value) internal pure returns (euint128)

Converts a ebool to an euint128

asEuint256

function asEuint256(ebool value) internal pure returns (euint256)

Converts a ebool to an euint256

asEaddress

function asEaddress(ebool value) internal pure returns (eaddress)

Converts a ebool to an eaddress

asEbool

function asEbool(euint8 value) internal pure returns (ebool)

Converts a euint8 to an ebool

asEuint8

function asEuint8(struct inEuint8 value) internal pure returns (euint8)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint8

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint8a ciphertext representation of the input

asEuint16

function asEuint16(euint8 value) internal pure returns (euint16)

Converts a euint8 to an euint16

asEuint32

function asEuint32(euint8 value) internal pure returns (euint32)

Converts a euint8 to an euint32

asEuint64

function asEuint64(euint8 value) internal pure returns (euint64)

Converts a euint8 to an euint64

asEuint128

function asEuint128(euint8 value) internal pure returns (euint128)

Converts a euint8 to an euint128

asEuint256

function asEuint256(euint8 value) internal pure returns (euint256)

Converts a euint8 to an euint256

asEaddress

function asEaddress(euint8 value) internal pure returns (eaddress)

Converts a euint8 to an eaddress

asEbool

function asEbool(euint16 value) internal pure returns (ebool)

Converts a euint16 to an ebool

asEuint8

function asEuint8(euint16 value) internal pure returns (euint8)

Converts a euint16 to an euint8

asEuint16

function asEuint16(struct inEuint16 value) internal pure returns (euint16)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint16

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint16a ciphertext representation of the input

asEuint32

function asEuint32(euint16 value) internal pure returns (euint32)

Converts a euint16 to an euint32

asEuint64

function asEuint64(euint16 value) internal pure returns (euint64)

Converts a euint16 to an euint64

asEuint128

function asEuint128(euint16 value) internal pure returns (euint128)

Converts a euint16 to an euint128

asEuint256

function asEuint256(euint16 value) internal pure returns (euint256)

Converts a euint16 to an euint256

asEaddress

function asEaddress(euint16 value) internal pure returns (eaddress)

Converts a euint16 to an eaddress

asEbool

function asEbool(euint32 value) internal pure returns (ebool)

Converts a euint32 to an ebool

asEuint8

function asEuint8(euint32 value) internal pure returns (euint8)

Converts a euint32 to an euint8

asEuint16

function asEuint16(euint32 value) internal pure returns (euint16)

Converts a euint32 to an euint16

asEuint32

function asEuint32(struct inEuint32 value) internal pure returns (euint32)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint32

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint32a ciphertext representation of the input

asEuint64

function asEuint64(euint32 value) internal pure returns (euint64)

Converts a euint32 to an euint64

asEuint128

function asEuint128(euint32 value) internal pure returns (euint128)

Converts a euint32 to an euint128

asEuint256

function asEuint256(euint32 value) internal pure returns (euint256)

Converts a euint32 to an euint256

asEaddress

function asEaddress(euint32 value) internal pure returns (eaddress)

Converts a euint32 to an eaddress

asEbool

function asEbool(euint64 value) internal pure returns (ebool)

Converts a euint64 to an ebool

asEuint8

function asEuint8(euint64 value) internal pure returns (euint8)

Converts a euint64 to an euint8

asEuint16

function asEuint16(euint64 value) internal pure returns (euint16)

Converts a euint64 to an euint16

asEuint32

function asEuint32(euint64 value) internal pure returns (euint32)

Converts a euint64 to an euint32

asEuint64

function asEuint64(struct inEuint64 value) internal pure returns (euint64)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint64

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint64a ciphertext representation of the input

asEuint128

function asEuint128(euint64 value) internal pure returns (euint128)

Converts a euint64 to an euint128

asEuint256

function asEuint256(euint64 value) internal pure returns (euint256)

Converts a euint64 to an euint256

asEaddress

function asEaddress(euint64 value) internal pure returns (eaddress)

Converts a euint64 to an eaddress

asEbool

function asEbool(euint128 value) internal pure returns (ebool)

Converts a euint128 to an ebool

asEuint8

function asEuint8(euint128 value) internal pure returns (euint8)

Converts a euint128 to an euint8

asEuint16

function asEuint16(euint128 value) internal pure returns (euint16)

Converts a euint128 to an euint16

asEuint32

function asEuint32(euint128 value) internal pure returns (euint32)

Converts a euint128 to an euint32

asEuint64

function asEuint64(euint128 value) internal pure returns (euint64)

Converts a euint128 to an euint64

asEuint128

function asEuint128(struct inEuint128 value) internal pure returns (euint128)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint128

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint128a ciphertext representation of the input

asEuint256

function asEuint256(euint128 value) internal pure returns (euint256)

Converts a euint128 to an euint256

asEaddress

function asEaddress(euint128 value) internal pure returns (eaddress)

Converts a euint128 to an eaddress

asEbool

function asEbool(euint256 value) internal pure returns (ebool)

Converts a euint256 to an ebool

asEuint8

function asEuint8(euint256 value) internal pure returns (euint8)

Converts a euint256 to an euint8

asEuint16

function asEuint16(euint256 value) internal pure returns (euint16)

Converts a euint256 to an euint16

asEuint32

function asEuint32(euint256 value) internal pure returns (euint32)

Converts a euint256 to an euint32

asEuint64

function asEuint64(euint256 value) internal pure returns (euint64)

Converts a euint256 to an euint64

asEuint128

function asEuint128(euint256 value) internal pure returns (euint128)

Converts a euint256 to an euint128

asEuint256

function asEuint256(struct inEuint256 value) internal pure returns (euint256)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint256

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint256a ciphertext representation of the input

asEaddress

function asEaddress(euint256 value) internal pure returns (eaddress)

Converts a euint256 to an eaddress

asEbool

function asEbool(eaddress value) internal pure returns (ebool)

Converts an eaddress to an ebool

asEuint8

function asEuint8(eaddress value) internal pure returns (euint8)

Converts an eaddress to an euint8

asEuint16

function asEuint16(eaddress value) internal pure returns (euint16)

Converts an eaddress to an euint16

asEuint32

function asEuint32(eaddress value) internal pure returns (euint32)

Converts an eaddress to an euint32

asEuint64

function asEuint64(eaddress value) internal pure returns (euint64)

Converts an eaddress to an euint64

asEuint128

function asEuint128(eaddress value) internal pure returns (euint128)

Converts an eaddress to an euint128

asEuint256

function asEuint256(eaddress value) internal pure returns (euint256)

Converts an eaddress to an euint256

asEaddress

function asEaddress(struct inEaddress value) internal pure returns (eaddress)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an eaddress

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]eaddressa ciphertext representation of the input

asEbool

function asEbool(uint256 value) internal pure returns (ebool)

Converts a uint256 to an ebool

asEuint8

function asEuint8(uint256 value) internal pure returns (euint8)

Converts a uint256 to an euint8

asEuint16

function asEuint16(uint256 value) internal pure returns (euint16)

Converts a uint256 to an euint16

asEuint32

function asEuint32(uint256 value) internal pure returns (euint32)

Converts a uint256 to an euint32

asEuint64

function asEuint64(uint256 value) internal pure returns (euint64)

Converts a uint256 to an euint64

asEuint128

function asEuint128(uint256 value) internal pure returns (euint128)

Converts a uint256 to an euint128

asEuint256

function asEuint256(uint256 value) internal pure returns (euint256)

Converts a uint256 to an euint256

asEaddress

function asEaddress(uint256 value) internal pure returns (eaddress)

Converts a uint256 to an eaddress

asEbool

function asEbool(bytes value) internal pure returns (ebool)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an ebool

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]eboola ciphertext representation of the input

asEuint8

function asEuint8(bytes value) internal pure returns (euint8)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint8

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint8a ciphertext representation of the input

asEuint16

function asEuint16(bytes value) internal pure returns (euint16)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint16

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint16a ciphertext representation of the input

asEuint32

function asEuint32(bytes value) internal pure returns (euint32)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint32

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint32a ciphertext representation of the input

asEuint64

function asEuint64(bytes value) internal pure returns (euint64)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint64

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint64a ciphertext representation of the input

asEuint128

function asEuint128(bytes value) internal pure returns (euint128)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint128

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint128a ciphertext representation of the input

asEuint256

function asEuint256(bytes value) internal pure returns (euint256)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an euint256

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]euint256a ciphertext representation of the input

asEaddress

function asEaddress(bytes value) internal pure returns (eaddress)

Parses input ciphertexts from the user. Converts from encrypted raw bytes to an eaddress

Also performs validation that the ciphertext is valid and has been encrypted using the network encryption key

Return Values

NameTypeDescription
[0]eaddressa ciphertext representation of the input

asEaddress

function asEaddress(address value) internal pure returns (eaddress)

Converts a address to an eaddress Allows for a better user experience when working with eaddresses

asEbool

function asEbool(bool value) internal pure returns (ebool)

Converts a plaintext boolean value to a ciphertext ebool

Privacy: The input value is public, therefore the ciphertext should be considered public and should be used only for mathematical operations, not to represent data that should be private

Return Values

NameTypeDescription
[0]eboolA ciphertext representation of the input