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

Method getMultisig

lib/script/script.js:1965–1970  ·  view source on GitHub ↗

* Get multisig m and n values if present. * @param {Boolean} [minimal=false] - Minimaldata only. * @returns {Array} [m, n]

(minimal)

Source from the content-addressed store, hash-verified

1963 */
1964
1965 getMultisig(minimal) {
1966 if (!this.isMultisig(minimal))
1967 return [-1, -1];
1968
1969 return [this.getSmall(0), this.getSmall(-2)];
1970 }
1971
1972 /**
1973 * Test whether the output script is pay-to-scripthash. Note that

Callers 7

isStandardMethod · 0.95
scriptVectorMethod · 0.80
signVectorMethod · 0.80
isVectorSignedMethod · 0.80
estimateSizeMethod · 0.80
hasStandardWitnessMethod · 0.80
scriptToJSONMethod · 0.80

Calls 2

isMultisigMethod · 0.95
getSmallMethod · 0.95

Tested by

no test coverage detected