aboutsummaryrefslogblamecommitdiff
path: root/shardweb/lib/shard_web/views/page_view.ex
blob: 6bd8e4b84bbc548ad1e475d27301417f17f62d5a (plain) (tree)
1
2
3
4
5


                              
                  
                                 








                           
defmodule ShardWeb.PageView do
  use ShardWeb, :view

  def conn_list do
    SNet.Manager.list_connections
  end

  def peer_id_to_str(id) do
    id
    |> binary_part(0, 8)
    |> Base.encode16
    |> String.downcase
  end
end