Giter Club home page Giter Club logo

Comments (7)

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024 3

from emp-ag2pc.

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024 2

This is definitely not intentional :) It is now on the schedule to be fixed.

from emp-ag2pc.

 avatar commented on July 30, 2024

I just edited that code section into this:

		if(party == ALICE) { 
			for(int i = 0; i < cf->n1; i++) {
				mask_input[i] = logic_xor(input[i], value[exec_times][i]);
				mask_input[i] = logic_xor(mask_input[i], mask[exec_times][i]);
			}
			io->recv_data(mask_input+cf->n1, cf->n2);
			io->send_data(mask_input, cf->n1);
			for(int i = 0; i < cf->n1 + cf->n2; i++) {
				tmp = labels[exec_times][i];
				if(mask_input[i]) tmp = xorBlocks(tmp, fpre->Delta);
				io->send_block(&tmp, 1);
			}
			//send output mask data
			send_partial_block<SSP>(io, mac[exec_times]+cf->num_wire - cf->n3, cf->n3);
		} else { 
			for(int i = cf->n1; i < cf->n1+cf->n2; i++) {
				mask_input[i] = logic_xor(input[i-cf->n1], value[exec_times][i]);
				mask_input[i] = logic_xor(mask_input[i], mask[exec_times][i]);
			}
			io->send_data(mask_input+cf->n1, cf->n2);
			io->recv_data(mask_input, cf->n1);
			io->recv_block(labels[exec_times], cf->n1 + cf->n2);
		}

That reflects my naive understanding of how the code should be at that position. However, the code crashes and/or I get a lot of "no match GT"s.

Any idea?

from emp-ag2pc.

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024

Would it work for you to just swap the role of ALICE and BOB?

from emp-ag2pc.

 avatar commented on July 30, 2024

Yes! It's a brain twist, but I will get used to it. 😄

from emp-ag2pc.

xfap avatar xfap commented on July 30, 2024

Yes,brain twist. Did it fix?…confusing...

from emp-ag2pc.

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024

you might need to keep it twisted for a few more months and we will release a completely new version :)

from emp-ag2pc.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.