anchor.diff:  
   
   %% -----------------------------------------------------------------------------
  -%% @doc
  -%% @end
  -%% -----------------------------------------------------------------------------
  --spec from_term(pid() | reference() | atom(), node()) -> binary() | no_return().
  +%% @doc Takes a local Erlang identifier `Term' and a node `Node' and returns a
  +%% partisan remote reference.
  +%% @end
  +%% -----------------------------------------------------------------------------
  +-spec from_term(Term :: pid() | reference() | atom(), Node :: node()) ->
  +    uri() | remote_ref() | no_return().
   
   from_term(Term, Node) ->
       case partisan_config:get(remote_ref_as_uri, false) of
  
positive.code: %% @end
  %% -----------------------------------------------------------------------------
  -spec encode_as_uri(pid() | reference() | atom(), node() | binary()) ->
      binary() | no_return().
  
  encode_as_uri(Term, Node) when is_atom(Node) ->
      encode_as_uri(Term, atom_to_binary(Node, utf8));
  
negative.code:     Node =:= partisan:node();
  
  is_local(_) ->
      error(badarg).
  
  
  %% -----------------------------------------------------------------------------
  %% @doc Returns true if reference `Ref' is located in node `Node'.
  %% @end
  %% -----------------------------------------------------------------------------
  -spec is_local(Ref :: binary() | tuple(), Node :: node()) ->
      boolean() | no_return().
  
  is_local(<<"partisan:pid:", Rest/binary>>, Node) ->
      do_is_local(Rest, Node);
  
  is_local(<<"partisan:ref:", Rest/binary>>, Node) ->
      do_is_local(Rest, Node);
  
  is_local(<<"partisan:name:", Rest/binary>>, Node) ->
      do_is_local(Rest, Node);
  
  is_local({partisan_remote_reference, Node, _}, OtherNode) ->
      Node =:= OtherNode;
  
  is_local(_, _) ->
      error(badarg).
  
  
  