code: func payToPubKeyHashScript(pubKeyHash []byte) ([]byte, error) {
  	return NewScriptBuilder().AddOp(OP_DUP).AddOp(OP_HASH160).
  		AddData(pubKeyHash).AddOp(OP_EQUALVERIFY).AddOp(OP_CHECKSIG).
  		Script()
  }
docs: // payToPubKeyHashScript creates a new script to pay a transaction
  // output to a 20-byte pubkey hash. It is expected that the input is a valid
  // hash.