MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / from_redeemScript

Method from_redeemScript

bitcoin/wallet.py:156–161  ·  view source on GitHub ↗

Convert a redeemScript to a P2SH address Convenience function: equivalent to P2SHBitcoinAddress.from_scriptPubKey(redeemScript.to_p2sh_scriptPubKey())

(cls, redeemScript)

Source from the content-addressed store, hash-verified

154
155 @classmethod
156 def from_redeemScript(cls, redeemScript):
157 """Convert a redeemScript to a P2SH address
158
159 Convenience function: equivalent to P2SHBitcoinAddress.from_scriptPubKey(redeemScript.to_p2sh_scriptPubKey())
160 """
161 return cls.from_scriptPubKey(redeemScript.to_p2sh_scriptPubKey())
162
163 @classmethod
164 def from_scriptPubKey(cls, scriptPubKey):

Callers 2

TMethod · 0.80
publish-text.pyFile · 0.80

Calls 2

to_p2sh_scriptPubKeyMethod · 0.80
from_scriptPubKeyMethod · 0.45

Tested by 1

TMethod · 0.64