PROTECTING THE VOTEحماية الصوت وحفظه / PROOF OF WORKإثبات العمل
YASFORCODE
0.4K WORDS | SIMPLIFIED FROM MY 2021 MASTER'S THESIS | YASSER AHMED408 كلمة | مبسط من رسالة ماجستير 2021 | ياسر أحمد

Why do we need proof of work?لماذا نحتاج إلى إثبات العمل

A puzzle that's slow to solve and quick to check, so rewriting old blocks costs real work, and where that protection stops in this prototype.لغز بطيء الحل سريع الفحص يجعل إعادة كتابة الكتل القديمة تكلف عملا حقيقيا وأين تتوقف هذه الحماية في هذا النموذج

NONCE 145 00F74E3D… HASH STARTS WITH 00البصمة تبدأ بـ00EACH DISK · ONE TRYكل قرص محاولة

We've seen that a digital fingerprint reveals changes. But what if an attacker altered an old block, then recomputed its fingerprint and the fingerprints of every block after it? Their new copy might look consistent from the inside.عرفنا أن البصمة الرقمية تكشف التغيير لكن هناك سؤال منطقي ماذا لو عدل مهاجم كتلة قديمة ثم أعاد حساب بصمتها وبصمات كل الكتل التالية عندها قد تبدو نسخته الجديدة متسقة من الداخل

This is where proof of work3 comes in. Instead of letting a block be added just by writing its data, the system sets a computational condition that has to be met first.هنا يظهر دور إثبات العمل3 فبدلا من السماح بإضافة كتلة بمجرد كتابة بياناتها يضع النظام شرطا حسابيا ينبغي تحقيقه أولا

The puzzle the miner solvesما اللغز الذي يحله المعدن

The block's fingerprint has to start with a set number of zeros. The miner can't choose the fingerprint directly. It changes a value called the nonce2, computes the fingerprint, and checks whether it meets the condition, again and again.يطلب أن تبدأ بصمة الكتلة بعدد محدد من الأصفار ولا يستطيع المعدن اختيار البصمة مباشرة إنما يغير قيمة تسمى الرقم المتغير2 ثم يحسب البصمة ويرى هل حققت الشرط أم لا ويكرر ذلك

NONCEالرقم العشوائيSHA-256 OF THE BLOCKبصمة الكتلة065cec8d5405bc76cb01d1590a67086fe0fda150419133161b066…1e186555a00f7f845b156687aa20bc43a98ae2c1636f788713f70…27637cc53c09f8ffd10d1a934bc1bda2d4c80979e7b0f9ccd3bff…321449765028d6910170e7b0a56491a22c0dde756294460118573…4e8c004d50f1bc57abb0a79641874167051807334b81df78c0708…14500f74e3da794dc231e8f25dfd8fc8c79004c451d305fff87216d…KEEP ADDING ONE UNTIL THE HASH STARTS WITH 00زد واحدا حتى تبدأ البصمة بـ00

In one example from the thesis the search took 146 attempts. In the thesis code the difficulty1 is 2, meaning the fingerprint has to start with two zero characters, 00.في أحد أمثلة الرسالة احتاج البحث إلى 146 محاولة وفي كود الرسالة قيمة الصعوبة1 هي 2 أي أن البصمة المطلوبة تبدأ بخانتين صفريتين بالشكل 00

Why finding is harder than checkingلماذا يكون إيجاد الحل أصعب من فحصه

The miner may have to try many values before succeeding. Whoever reviews the block only needs to recompute its fingerprint once and check that it starts with the required zeros and matches its content.لأن المعدن قد يضطر إلى تجربة قيم كثيرة قبل النجاح أما من يراجع الكتلة فيكفيه إعادة حساب بصمتها مرة والتحقق من أنها تبدأ بالأصفار المطلوبة وتطابق محتواها

Each extra zero in hexadecimal multiplies the average number of attempts by about 16. A difficulty of 2 is still low, better for demonstrating the idea in a research prototype than for protecting a large national election network.ومع كل صفر إضافي في التمثيل الست عشري يزيد متوسط عدد المحاولات نحو 16 مرة لكن صعوبة القيمة 2 تظل منخفضة ومناسبة لعرض الفكرة في نموذج بحثي أكثر منها لحماية شبكة انتخابية وطنية كبيرة

DIFFICULTY 1 · 0الصعوبة 1 · 016DIFFICULTY 2 · 00الصعوبة 2 · 00256DIFFICULTY 3 · 000الصعوبة 3 · 0004,096DIFFICULTY 4 · 0000الصعوبة 4 · 000065,536DIFFICULTY 5 · 00000الصعوبة 5 · 000001,048,576AVERAGE TRIES · BAR LENGTH IS LOGARITHMICمتوسط المحاولات · طول الشريط لوغاريتميMEASURED ON THIS BLOCK · 1→65 · 2→146 · 3→1,697 · 4→217,960المقاس على هذه الكتلة · 1→65 · 2→146 · 3→1,697 · 4→217,960

How a new block is reviewedكيف يراجع النظام الكتلة الجديدة

When a block is added, the system checks two conditions: that the previous fingerprint recorded in the new block really matches the last approved block, and that the new fingerprint is correct for the data, the nonce and the difficulty.عند إضافة كتلة يفحص النظام شرطين أساسيين أن بصمة الكتلة السابقة المذكورة في الكتلة الجديدة تطابق فعلا آخر كتلة معتمدة وأن البصمة الجديدة صحيحة بالنظر إلى البيانات والرقم المتغير وشرط الصعوبة

If either fails, the block isn't accepted as a valid extension of the chain.وإذا فشل أحد الشرطين لا تقبل الكتلة امتدادا صحيحا للسلسلة

MINED BLOCKكتلة معدنةPREV HASH MATCHES?البصمة السابقة تطابقVALID PROOF?الإثبات صحيحADD TO CHAINيضاف للسلسلةREJECTرفضNOلاNOلا

The limits of protection in this experimentما حدود الحماية في هذه التجربة

In large public chains, creating and checking blocks is spread across many participants, with rules for choosing between competing chains. That's what makes rewriting the past a race an attacker struggles to win.في السلاسل العامة الكبيرة تتوزع عملية إنشاء الكتل والتحقق منها على مشاركين متعددين وتوجد قواعد للمفاضلة بين السلاسل المتنافسة وهذا ما يجعل إعادة كتابة الماضي سباقا يصعب على المهاجم كسبه

HONEST NETWORKالشبكة الأمينةATTACKER REDOING FROM BLOCK 2مهاجم يعيد من الكتلة 2#0#1#2#3#4#5#6#7#2′#3′#4′#5′EVERY BLOCK NEEDS NEW WORK WHILE THE HONEST CHAIN KEEPS GROWINGكل كتلة تحتاج عملا جديدا بينما تستمر السلسلة الأمينة في النمو

This project, however, uses a private chain and a single miner. So it shouldn't automatically be credited with the decentralization or tamper resistance that, in other networks, depend on participants being independent and competing. The prototype shows how blocks are built and checked; it doesn't prove that tampering is impossible, especially if one party controls the whole infrastructure.أما المشروع الذي نشرحه فيستخدم سلسلة خاصة ومعدنا واحدا ولذلك لا يصح أن ننسب إليه تلقائيا ميزات اللامركزية أو مقاومة التلاعب التي تعتمد في شبكات أخرى على استقلال المشاركين وتنافسهم ويظهر النموذج طريقة العمل وكيفية التحقق من الكتل لكنه لا يثبت أن العبث مستحيل خصوصا إذا امتلك طرف واحد السيطرة على البنية كلها

Now that we know what happens behind the screen, let's see what the system's two main people do: the voter and the administrator.بعد أن فهمنا ما يجري خلف الشاشة حان الوقت لرؤية ما يفعله الشخصان الرئيسيان في النظام الناخب والمشرف

This chapter corresponds to section 4.3 of the original thesis.هذا الفصل يقابل القسم 4.3 في الرسالة الأصلية
0.00