def dump(include_address=true, include_id=true)
      h = {}
      h[:crypto] = @keystore[:crypto]
      h[:version] = @keystore[:version]

      h[:address] = Utils.encode_hex address if include_address && address
      h[:id] = uuid if include_id && uuid

      JSON.dump(h)
    end
def dump(include_address=true, include_id=true)
      h = {}
      h[:crypto] = @keystore[:crypto]
      h[:version] = @keystore[:version]

      h[:address] = Utils.encode_hex address if include_address && address
      h[:id] = uuid if include_id && uuid

      JSON.dump(h)
    end
Dump the keystore for later disk storage.

 The result inherits the entries `crypto` and `version` from `Keystore`,
 and adds `address` and `id` in accordance with the parameters
 `include_address` and `include_id`.

 If address or id are not known, they are not added, even if requested.

 @param include_address [Bool] flag denoting if the address should be
   included or not
 @param include_id [Bool] flag denoting if the id should be included or
   not