markkurossi / mpc

Secure Multi-Party Computation (MPC) with Go. This project implements secure two-party computation with Garbled circuit protocol.
https://www.markkurossi.com/mpcl/index.html
MIT License
110 stars 22 forks source link

implement Uint256 and modular add #23

Closed hextrust-0 closed 6 months ago

hextrust-0 commented 6 months ago

This PR implements the Uint256 and AddMod function.

hextrust-0 commented 6 months ago

@markkurossi @rozag Please review

hextrust-0 commented 6 months ago

@hextrust-0 I closed this pull request. If any part of it is worth keeping, please let me know, and I'll create a new pull request for that part.

markkurossi commented 6 months ago

The GetUint64() and PutUint64() functions are valid ones so happy to merge those.

On Tue, May 7, 2024 at 9:19 AM hextrust-0 @.***> wrote:

@hextrust-0 https://github.com/hextrust-0 I closed this pull request. If any part of it is worth keeping, please let me know, and I'll create a new pull request for that part.

— Reply to this email directly, view it on GitHub https://github.com/markkurossi/mpc/pull/23#issuecomment-2097615779, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYFJDZBFYORZRZE6LFQKATZBB56HAVCNFSM6AAAAABG55YMI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXGYYTKNZXHE . You are receiving this because you were mentioned.Message ID: @.***>

-- Markku Rossi +358 40 729 0115 @.*** | www.markkurossi.com

hextrust-0 commented 6 months ago

It's here: #26 But based on your explanation, PutUint and GetUint alone are enough to convert any bytes to corresponding uint1-n value.