Hash
Un identificador criptográfico de tamaño fijo creado a partir de datos de entrada variables.
Hashing is used throughout computer science for data indexing and retrieval, but in blockchain, it is the bedrock of security. It allows the network to verify the integrity of blocks and transactions. For instance, Bitcoin uses the SHA-256 algorithm to secure its ledger. Because hashes are one-way, they allow for 'Proof of Work'—where miners must find a specific hash that meets a difficulty target, proving they expended computational energy without revealing the secrets behind the data.
graph LR
Center["Hash"]:::main
Pre_cryptography["cryptography"]:::pre --> Center
click Pre_cryptography "/terms/cryptography"
Rel_encryption["encryption"]:::related -.-> Center
click Rel_encryption "/terms/encryption"
Rel_mathematics["mathematics"]:::related -.-> Center
click Rel_mathematics "/terms/mathematics"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Explícalo como si tuviera 5 años
🌍 Un hash es como la 'huella dactilar' de un archivo. Si cambias una sola letra en un documento, su huella cambia por completo.
🤓 Expert Deep Dive
Las funciones hash deben ser deterministas y resistentes a colisiones, asegurando que cada entrada tenga una salida única e impredecible.