mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
269 lines
10 KiB
HTML
269 lines
10 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta property="og:image" content="https://www.dash.org/assets/img/graphics/dash_circle_normal.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<title>P2SH Address, Pay To Script Hash - Dash Glossary</title>
|
|
|
|
<link rel="stylesheet" href="/css/font-awesome-4.4.0/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
<!--[if lt IE 8]><link rel="stylesheet" href="/css/ie.css"><script type="text/javascript" src="/js/ie.js"></script><![endif]-->
|
|
<!--[if IE 8]><link rel="stylesheet" href="/css/ie8.css"><![endif]-->
|
|
|
|
|
|
<script type="text/javascript" src="/js/base.js"></script>
|
|
<script type="text/javascript" src="/js/main.js"></script>
|
|
|
|
<script src="/js/jquery/jquery-1.11.2.min.js"></script>
|
|
<script src="/js/jquery/jquery.qrcode.min.js"></script>
|
|
|
|
<link rel="shortcut icon" href="/favicon.png">
|
|
<link rel="apple-touch-icon-precomposed" href="/img/icons/logo_dash_circle_normal.png"/>
|
|
|
|
<!-- Turn off cookie/analytic stuff
|
|
<script>
|
|
window.cookieconsent_options = {
|
|
theme: 'light-floating'
|
|
}
|
|
</script>
|
|
<script type="text/javascript" src="/js/cookieconsent/cookieconsent.js"></script>
|
|
<script>
|
|
if( navigator.doNotTrack != "yes" && navigator.doNotTrack != "1" && window.doNotTrack != "1" && navigator.msDoNotTrack != "1" ){
|
|
var script = document.createElement('script');
|
|
script.src = '/js/analytics.js'
|
|
document.getElementsByTagName("head")[0].appendChild(script);
|
|
}
|
|
</script>
|
|
-->
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="detectmobile" class="detectmobile"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="head"><div>
|
|
|
|
<ul class="lang">
|
|
<li><a>English</a>
|
|
<ul>
|
|
<li><ul>
|
|
|
|
|
|
|
|
<li><a href="/en/" class="active">English</a></li>
|
|
|
|
</ul></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
<a id="menumobile" class="menumobile" onclick="mobileMenuShow(event);" ontouchstart="mobileMenuShow(event);"></a>
|
|
|
|
|
|
|
|
<a class="logo" href="/en/"><img src="/img/icons/logotop.svg" alt="Dash"></a>
|
|
|
|
|
|
<div id="langselect" class="langselect"><select onchange="window.location=this.value;">
|
|
|
|
<option value="/en/" selected="selected">English</option>
|
|
|
|
</select></div>
|
|
|
|
|
|
|
|
<ul id="menusimple" class="menusimple menumain" onclick="mobileMenuHover(event);" ontouchstart="mobileMenuHover(event);">
|
|
<li><a href="/en/bitcoin-for-developers">Developers</a></li>
|
|
<!--<li><a href="/en/developer-documentation">Documentation</a></li>-->
|
|
|
|
<li><a>Documentation</a>
|
|
<ul>
|
|
<li><a href="/en/developer-guide">Guide</a></li>
|
|
<li><a href="/en/developer-reference">Reference</a></li>
|
|
<li><a href="/en/developer-examples">Examples</a></li>
|
|
<li><a href="/en/developer-glossary">Glossary</a></li>
|
|
<li><a href="/en/doxygen/html/index.html">Source Code</a></li>
|
|
|
|
<!--
|
|
<li><a href="/en/getting-started">Getting started</a></li>
|
|
<li><a href="/en/how-it-works">How it works</a></li>
|
|
<li><a href="/en/you-need-to-know">You need to know</a></li>
|
|
-->
|
|
</ul>
|
|
</li>
|
|
<li><a>Resources</a>
|
|
<ul>
|
|
<li><a rel="noopener noreferrer" target="_blank" href="https://www.dash.org/community/">Community</a></li>
|
|
<li><a href="/en/vocabulary">Vocabulary</a></li>
|
|
</ul>
|
|
</li>
|
|
<!-- <li><a href="/en/innovation">Innovation</a></li> -->
|
|
</ul>
|
|
|
|
</div></div>
|
|
|
|
<div class="body">
|
|
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
|
|
<a href="/en/">Developer Documentation</a>
|
|
|
|
>
|
|
|
|
|
|
|
|
<a href="/en/developer-glossary">Glossary</a>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
P2SH address
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content" class="content">
|
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
|
|
|
|
|
<div class="subhead-links sourcefile" data-sourcefile="_data/glossary/en/p2sh-address.yaml"
|
|
><a href="https://github.com/dash-docs/dash-docs/edit/master/_data/glossary/en/p2sh-address.yaml">Edit</a>
|
|
| <a href="https://github.com/dash-docs/dash-docs/commits/master/_data/glossary/en/p2sh-address.yaml">History</a>
|
|
| <a href="https://github.com/dash-docs/dash-docs/issues/new?body=Source%20File%3A%20_data/glossary/en/p2sh-address.yaml%0A%0A">Report Issue</a>
|
|
| <a href="https://www.dash.org/forum/">Discuss</a></div>
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h1 id="p2sh-address-pay-to-script-hash">P2SH Address, Pay To Script Hash</h1>
|
|
|
|
<p><input id="glossary_term" class="glossary_term" placeholder="Search the glossary, RPCs, and more" /></p>
|
|
|
|
<div class="notice">
|
|
<p><span>This definition comes from the <a href="/en/developer-glossary">technical glossary</a>.</span></p>
|
|
</div>
|
|
|
|
<h2 id="definition">Definition</h2>
|
|
|
|
<p>A Dash payment <a href="/en/glossary/address" title="A 20-byte hash formatted using base58check to produce either a P2PKH or P2SH Dash address. Currently the most common way users exchange payment information." class="auto-link">address</a> comprising a hashed script, allowing the spender to create a standard <a href="/en/glossary/pubkey-script" title="A script included in outputs which sets the conditions that must be fulfilled for those duffs to be spent. Data for fulfilling the conditions can be provided in a signature script. Pubkey Scripts are called a scriptPubKey in code." class="auto-link">pubkey script</a> that Pays To <a href="/en/glossary/redeem-script" title="A script similar in function to a pubkey script. One copy of it is hashed to create a P2SH address (used in an actual pubkey script) and another copy is placed in the spending signature script to enforce its conditions." class="auto-link">Script Hash</a> (P2SH). The script can be almost any valid <a href="/en/glossary/pubkey-script" title="A script included in outputs which sets the conditions that must be fulfilled for those duffs to be spent. Data for fulfilling the conditions can be provided in a signature script. Pubkey Scripts are called a scriptPubKey in code." class="auto-link">pubkey script</a>.</p>
|
|
|
|
<h3 id="synonyms">Synonyms</h3>
|
|
|
|
<ul>
|
|
<li>
|
|
<p>P2SH address</p>
|
|
</li>
|
|
<li>
|
|
<p>P2SH output</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<h3 id="not-to-be-confused-with">Not To Be Confused With</h3>
|
|
|
|
<ul>
|
|
<li>
|
|
<p>P2PK <a href="/en/glossary/output" title="An output in a transaction which contains two fields: a value field for transferring zero or more duffs and a pubkey script for indicating what conditions must be fulfilled for those duffs to be further spent." class="auto-link">output</a> (an <a href="/en/glossary/output" title="An output in a transaction which contains two fields: a value field for transferring zero or more duffs and a pubkey script for indicating what conditions must be fulfilled for those duffs to be further spent." class="auto-link">output</a> paying a <a href="/en/glossary/public-key" title="The public portion of a keypair which can be used to verify signatures made with the private portion of the keypair." class="auto-link">public key</a> directly)</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/en/glossary/p2pkh-address" title="A Dash payment address comprising a hashed public key, allowing the spender to create a standard pubkey script that Pays To PubKey Hash (P2PKH)." class="auto-link">P2PKH address</a>, <a href="/en/glossary/p2pkh-address" title="A Dash payment address comprising a hashed public key, allowing the spender to create a standard pubkey script that Pays To PubKey Hash (P2PKH)." class="auto-link">P2PKH output</a> (an <a href="/en/glossary/address" title="A 20-byte hash formatted using base58check to produce either a P2PKH or P2SH Dash address. Currently the most common way users exchange payment information." class="auto-link">address</a> comprising a hashed <a href="/en/glossary/public-key" title="The public portion of a keypair which can be used to verify signatures made with the private portion of the keypair." class="auto-link">pubkey</a>, and its corresponding <a href="/en/glossary/output" title="An output in a transaction which contains two fields: a value field for transferring zero or more duffs and a pubkey script for indicating what conditions must be fulfilled for those duffs to be further spent." class="auto-link">output</a>)</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="/en/glossary/p2sh-multisig" title="A P2SH output where the redeem script uses one of the multisig opcodes. Up until Bitcoin Core 0.10.0, P2SH multisig scripts were standard transactions, but most other P2SH scripts were not." class="auto-link">P2SH multisig</a> (a particular instance of P2SH where the script uses a <a href="/en/glossary/multisig" title="A pubkey script that provides *n* number of pubkeys and requires the corresponding signature script provide *m* minimum number signatures corresponding to the provided pubkeys." class="auto-link">multisig</a> <a href="/en/glossary/op-code" title="Operation codes from the Dash Script language which push data or perform functions within a pubkey script or signature script." class="auto-link">opcode</a>)</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<h3 id="links">Links</h3>
|
|
|
|
<ul>
|
|
<li>
|
|
<p><a href="/en/developer-guide#term-p2sh">P2SH</a> — Developer Guide</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki">BIP16: pay to script hash</a> — Bitcoin Improvement Proposals</p>
|
|
</li>
|
|
<li>
|
|
<p><a href="https://en.bitcoin.it/wiki/P2SH">P2SH</a> — Bitcoin Wiki</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<!-- Inventory Messages -->
|
|
<!-- Inventory Messages: Dash Specific -->
|
|
|
|
<!--[bitcoin-documentation mailing list]: https://groups.google.com/forum/#!forum/bitcoin-documentation-->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="footersponsor">
|
|
<!--<div><span>A community website sponsored by</span> <a href="https://bitcoinfoundation.org/"><img src="/img/brand/bitcoinfoundation.png" alt="Bitcoin Foundation"></a></div>-->
|
|
</div>
|
|
|
|
|
|
|
|
<div class="footerlicense">© Bitcoin Project 2009-2018 Released under the <a href="http://opensource.org/licenses/mit-license.php" target="_blank">MIT license</a>
|
|
<br>© Dash Project 2017-2018 Released under the <a href="http://opensource.org/licenses/mit-license.php" target="_blank">MIT license</a></div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
fallbackSVG();
|
|
addAnchorLinks();
|
|
trackOutgoingLinks();
|
|
</script>
|
|
|
|
|
|
|
|
<script src="/js/jquery/jquery-1.11.2.min.js"></script>
|
|
<script src="/js/jquery/jquery-ui.min.js"></script>
|
|
<script src="/js/devsearch.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|