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



                              
                            








                           
defmodule ShardWeb.PageView do
  use ShardWeb, :view

  def peer_list do
    Shard.Manager.list_peers
  end

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