 
   @network Application.get_env(:rpc, :network)
 
-  # TODO: P2SH in/out, P2PK in/out
+  # TODO: P2SH in/out
 
   def parse_address(%TransactionOutput{pk_script: script}) do
     case script do

    end
  end

end

    case script do
      # P2PKH input (compressed): sig_size <signature> 33 <pubkey>
      <<sig_size, _sig :: bytes-size(sig_size), 33, pk :: bytes-size(33)>> ->
        pk |> pubkey_to_address

      # P2PKH input (uncompressed): sig_size <signature> 65 <pubkey>
      <<sig_size, _sig :: bytes-size(sig_size), 65, pk :: bytes-size(65)>> ->
        pk |> pubkey_to_address

      # P2PK input: sig_size <signature>
      <<sig_size, _sig :: bytes-size(sig_size)>> ->
