toP2shScriptPubKey method

Script toP2shScriptPubKey()

create p2psh script wit current script

Implementation

Script toP2shScriptPubKey() {
  final address = P2shAddress(script: this);
  return Script(script: ['OP_HASH160', address.getH160, 'OP_EQUAL']);
}