anchor.diff:      end.
   
   %% @doc De-compresses a bitstring with indices of SigSize number of bits
  -%%      into a list of keys from the original KV list.
  +%%      into a list of keys from the original key list.
   -spec decompress_k_list(CompressedBin::bitstring(), KList::[?RT:key()],
  -                         SigSize::signature_size(), AccPos::non_neg_integer())
  +                        SigSize::signature_size(), AccPos::non_neg_integer())
           -> ResKeys::[?RT:key()].
   decompress_k_list(<<>>, _, _SigSize, _AccPos) ->
       [];
  
positive.code: 
  on({resolve_req, OtherDBChunk, MyDiffIdx, SigSize, VSize, DestReconPid} = _Msg,
     State = #rr_recon_state{stage = resolve,           initiator = false,
                             method = shash,            k_list = KList}) ->
      ?TRACE1(_Msg, State),
  
      DBChunkTree =
          decompress_kv_list(OtherDBChunk, [], SigSize, VSize),
      IdxSize = bits_for_number(length(KList)),
      MyDiffKeys = [Key || Key <- decompress_k_list(MyDiffIdx, KList, IdxSize, 0),
                                  not gb_trees:is_defined(compress_key(Key, SigSize),
                                                          DBChunkTree)],
  
  
negative.code:                                 ToSend, ToReq, ToResolve, ResolveNonEmpty, true) ->
      IdxSize = bits_for_number(merkle_tree:get_item_count(LeafNode)),
      ToSend1 =
          case decompress_k_list_kv(ReqKeys, merkle_tree:get_bucket(LeafNode),
                                    IdxSize, 0) of
              [] -> ToSend;
              [_|_] = X -> X ++ ToSend
          end,
  