MCPcopy
hub / github.com/bcoin-org/bcoin / fromRaw

Method fromRaw

lib/script/script.js:3280–3289  ·  view source on GitHub ↗

* Inject properties from serialized data. * @private * @param {Buffer}

(data)

Source from the content-addressed store, hash-verified

3278 */
3279
3280 fromRaw(data) {
3281 const br = bio.read(data);
3282
3283 this.raw = data;
3284
3285 while (br.left())
3286 this.code.push(Opcode.fromReader(br));
3287
3288 return this;
3289 }
3290
3291 /**
3292 * Create a script from buffer reader.

Callers 9

fromOptionsMethod · 0.95
fromJSONMethod · 0.95
fromStringMethod · 0.95
fromReaderMethod · 0.95
getRedeemMethod · 0.45
isScripthashInputMethod · 0.45
getCoinbaseHeightMethod · 0.45
verifyMethod · 0.45
verifyProgramMethod · 0.45

Calls 4

fromMethod · 0.80
readMethod · 0.45
pushMethod · 0.45
fromReaderMethod · 0.45

Tested by

no test coverage detected