MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / getScripthash

Method getScripthash

lib/script/script.js:1992–1997  ·  view source on GitHub ↗

* Get P2SH hash if present. * @returns {Buffer|null}

()

Source from the content-addressed store, hash-verified

1990 */
1991
1992 getScripthash() {
1993 if (!this.isScripthash())
1994 return null;
1995
1996 return this.getData(1);
1997 }
1998
1999 /**
2000 * Test whether the output script is nulldata/opreturn.

Callers 3

compressScriptFunction · 0.80
scriptInputMethod · 0.80
fromScriptMethod · 0.80

Calls 2

isScripthashMethod · 0.95
getDataMethod · 0.95

Tested by

no test coverage detected