How does a digital fingerprint reveal any change?كيف تكشف البصمة الرقمية أي تغيير
SHA-256 turns any data into a 64-character fingerprint. Change one letter and the fingerprint changes, and the link to the next block breaks.تحول SHA-256 أي بيانات إلى بصمة من 64 خانة فإن تغير حرف واحد تغيرت البصمة وانكسر الرابط مع الكتلة التالية
Imagine you sent someone a file and wanted to be sure their copy was no different from the original. One way is to compute a digital fingerprint of the file on your side, compute it again on theirs, and compare the two.تخيل أنك أرسلت ملفا إلى شخص ثم أردت التأكد من أن النسخة التي وصلت إليه لم تختلف عن الأصل فإحدى الطرق هي حساب بصمة رقمية للملف عندك ثم حسابها عنده ومقارنة النتيجتين
A blockchain uses the same idea, at the level of records and blocks.والفكرة ذاتها تستخدم في سلسلة الكتل لكن على مستوى السجلات والكتل
What is a digital fingerprint?ما البصمة الرقمية
A fingerprint, or hash1, is computed by a mathematical function from some data. Short data or long, the result has a fixed length. The project uses SHA-2562, which returns 256 bits, usually written as 64 hexadecimal characters.البصمة ناتج تحسبه دالة رياضية1 من بيانات معينة ولا يهم إن كانت البيانات قصيرة أو طويلة فالدالة ترجع نتيجة بطول ثابت ويستخدم المشروع خوارزمية SHA-2562 التي ترجع 256 بت وتمثل غالبا في 64 خانة ست عشرية
Enter the same data the same way and you get the same fingerprint. Change one letter or digit and the fingerprint is expected to change dramatically and unpredictably.إذا أدخلنا البيانات نفسها بالطريقة نفسها نحصل على البصمة نفسها وإذا غيرنا حرفا أو رقما في المدخل فمن المتوقع أن تتغير البصمة تغيرا كبيرا يصعب التنبؤ به
But a fingerprint isn't encryption. Encryption hides data so it can be recovered later with a key. A fingerprint has no "decrypt" step that brings the original back; it's a tool for comparing and detecting changes, not a container for the message.لكن البصمة ليست تشفيرا فالتشفير يقصد منه إخفاء البيانات ثم استعادتها بمفتاح أما البصمة فلا توجد فيها عملية فك تعيد النص الأصلي منها إنها أداة مقارنة واكتشاف تغييرات لا وعاء يحتفظ بمضمون الرسالة ليسترجعه لاحقا
Why SHA-256 suits this jobلماذا تصلح SHA-256 لهذا الغرض
Good cryptographic hash functions have important properties: the same input always gives the same output; it's hard to recover an input from its fingerprint; it's hard to find two different inputs with the same fingerprint; and a small change spreads across the whole result.لأن دوال البصمة المشفرة الجيدة تتمتع بخصائص مهمة ثبات الناتج لنفس المدخل وصعوبة استرجاع مدخل مناسب من بصمته وصعوبة إيجاد مدخلين مختلفين لهما البصمة نفسها وانتشار أثر التغيير الصغير على النتيجة
This isn't absolute mathematical impossibility. It means computationally very hard, given current knowledge and tools.ومن المهم ألا نفهم ذلك على أنه استحالة رياضية مطلقة بل أنه صعب حسابيا إلى حد كبير وفق المعرفة والأدوات المتاحة
How are the blocks linked?كيف ترتبط الكتل ببعضها
Take three consecutive blocks. The second stores the first block's fingerprint, and the third stores the second's. If a transaction in the second block changed, its computed fingerprint would change, and comparing it with the link stored in the third block would show the difference.افترض أن لدينا ثلاث كتل متتالية تحفظ الكتلة الثانية بصمة الكتلة الأولى وتحفظ الثالثة بصمة الثانية فلو تغيرت معاملة في الكتلة الثانية لتغيرت البصمة المحسوبة لها وعند مقارنة هذه البصمة بالرابط المحفوظ في الكتلة الثالثة يظهر الاختلاف
So we can detect that the chain is no longer consistent with its earlier state. That's more accurate than calling the data "impossible to change": an attacker may alter data and recompute the links, but the inconsistency shows as long as we have a trusted chain or fingerprint to compare against.إذن يمكن كشف أن السلسلة لم تعد متسقة مع حالتها السابقة وهذا أدق من القول إن البيانات مستحيل تغييرها فمن الناحية التقنية قد يحاول مهاجم تعديل بيانات وإعادة حساب روابط لكننا نستطيع كشف الاختلال إذا امتلكنا سلسلة أو بصمة موثوقة نقارن بها
Is this enough to protect the chain?هل هذا يكفي لحماية السلسلة
No. Whoever controls the chain's data can try to recompute the fingerprints after every change. So the system adds one more condition that makes creating a block take computational work: proof of work.لا فمن يتحكم ببيانات السلسلة يستطيع أن يحاول إعادة حساب البصمات بعد كل تعديل لهذا يضيف النظام شرطا آخر يجعل إنشاء الكتل يتطلب عملا حسابيا هو إثبات العمل