toP2pkhInP2sh method

P2shAddress toP2pkhInP2sh({
  1. bool compressed = true,
})

p2sh nested p2kh

Implementation

P2shAddress toP2pkhInP2sh({bool compressed = true}) {
  final addr = toAddress(compressed: compressed);
  return P2shAddress(script: Script(script: addr.toScriptPubKey()));
}