<?php

$_HTML['title'] = 'Bitcoin SHA256D';
$_HTML['meta']['keywords'] = "Bitcoin,SHA256D,Bitcoin Tool,PHP";

include_once "../common.php";
include_once("html_header.php");

?>
<h2 class="mt-3">Bitcoin SHA256D</h2>
<hr/>
	SHA256D is the hash function forming the core of Bitcoin. The function name with 'D' letter implies that call double SHA256.
<hr/>
<ul>
	<li>Behind the scene, SHA256D = SHA256(SHA256($string))</li>
	<li>Usage 1: Tx Hash = SHA256D($serializedTx)</li>
	<li>Usage 2: Block Hash = SHA256D($serializedBlockHeader)</li>
</ul>
<h3 class="mt-3" id='hashtag3'>Find SHA256D</h3>
<ul class="nav nav-tabs">
	<li class="nav-item">
		<a data-toggle="tab" class="nav-link active" href="#form1_tabitem1">Visual</a>
	</li>
	<li class="nav-item">
		<a data-toggle="tab" class="nav-link" href="#form1_tabitem2">Coding</a>
	</li>
</ul>

<div class="tab-content">
	<div id="form1_tabitem1" class="tab-pane fade show active">
		<iframe src="bitcoin_tool_sha256d_form.php" width="100%" scrolling="no" frameborder="no"></iframe>
	</div>
	<div id="form1_tabitem2" class="tab-pane fade">
		<pre style='border-radius:none;'><?php
			echo htmlentities(file_get_contents("bitcoin_tool_sha256d_form.php"));
		?>
		</pre> 		
	</div>
</div>
<?php
include_once("html_footer.php");