 
   #-----------------------------------------
 
-  generate_to_client : (cb) ->
-    await @generate defer err, ret
-    if not err? and ret?
-      ret = encode ret
-    cb err, ret
-  
-  #-----------------------------------------
-
-  pack_to_client : () -> encode @_pack false
+  pack_to_client : () -> @_pack false
     
 ##=======================================================================
 


  _make_mac : (enc = null) ->
    msg = @_pack true
    key = decode @key
    hm = crypto.createHmac 'sha512', key
    hm.update msg
    hm.digest()


 
  #-----------------------------------------

  @from_client : (b, cfg) ->
    err = null
    ret = null
    klass = cfg.klass or SelfCertifiedToken
    if not Buffer.isBuffer(b) or b.length is 0
      err = "Failed to find a non-0 buffer"
    else if not ([e,x] = (utils.katch () -> unpack b))? or e?
      err = "Failed to purepack.unpack"
    else if not Array.isArray x
