diff --git a/tests/blockchain/eth/contracts/lib/test_umbral_deserializer.py b/tests/blockchain/eth/contracts/lib/test_umbral_deserializer.py index 7144fd0b5..43f95e87d 100644 --- a/tests/blockchain/eth/contracts/lib/test_umbral_deserializer.py +++ b/tests/blockchain/eth/contracts/lib/test_umbral_deserializer.py @@ -67,9 +67,9 @@ def test_capsule(testerchain, deserializer, fragments): capsule, _cfrag = fragments capsule_bytes = capsule.to_bytes() result = deserializer.functions.toCapsule(capsule_bytes).call() - assert bytes(capsule._point_e) == result[0] + result[1] - assert bytes(capsule._point_v) == result[2] + result[3] - assert capsule._bn_sig.to_bytes() == bytes(result[4]) + assert bytes(capsule.point_e) == result[0] + result[1] + assert bytes(capsule.point_v) == result[2] + result[3] + assert capsule.bn_sig.to_bytes() == bytes(result[4]) @pytest.mark.slow @@ -95,10 +95,10 @@ def test_proof(testerchain, deserializer, fragments): # Check real proof result = deserializer.functions.toCorrectnessProof(proof_bytes).call() - assert bytes(proof._point_e2) == result[0] + result[1] - assert bytes(proof._point_v2) == result[2] + result[3] - assert bytes(proof._point_kfrag_commitment) == result[4] + result[5] - assert bytes(proof._point_kfrag_pok) == result[6] + result[7] + assert bytes(proof.point_e2) == result[0] + result[1] + assert bytes(proof.point_v2) == result[2] + result[3] + assert bytes(proof.point_kfrag_commitment) == result[4] + result[5] + assert bytes(proof.point_kfrag_pok) == result[6] + result[7] assert proof.bn_sig.to_bytes() == result[8] assert bytes(proof.kfrag_signature) == result[9] assert bytes(proof.metadata) == result[10] @@ -124,15 +124,15 @@ def test_cfrag(testerchain, deserializer, fragments): proof = cfrag.proof cfrag_bytes = cfrag.to_bytes() result = deserializer.functions.toCapsuleFrag(cfrag_bytes).call() - assert bytes(cfrag._point_e1) == result[0] + result[1] - assert bytes(cfrag._point_v1) == result[2] + result[3] - assert bytes(cfrag._kfrag_id) == result[4] - assert bytes(cfrag._point_precursor) == result[5] + result[6] + assert bytes(cfrag.point_e1) == result[0] + result[1] + assert bytes(cfrag.point_v1) == result[2] + result[3] + assert bytes(cfrag.kfrag_id) == result[4] + assert bytes(cfrag.point_precursor) == result[5] + result[6] result = deserializer.functions.toCorrectnessProofFromCapsuleFrag(cfrag_bytes).call() - assert bytes(proof._point_e2) == result[0] + result[1] - assert bytes(proof._point_v2) == result[2] + result[3] - assert bytes(proof._point_kfrag_commitment) == result[4] + result[5] - assert bytes(proof._point_kfrag_pok) == result[6] + result[7] + assert bytes(proof.point_e2) == result[0] + result[1] + assert bytes(proof.point_v2) == result[2] + result[3] + assert bytes(proof.point_kfrag_commitment) == result[4] + result[5] + assert bytes(proof.point_kfrag_pok) == result[6] + result[7] assert proof.bn_sig.to_bytes() == result[8] assert bytes(proof.kfrag_signature) == result[9] assert bytes(proof.metadata) == result[10]