/etc Feature Modern Web Server + SQL Database Your Custom Block Server Data Format Raw Binary (Zero conversion needed) Search Speed Mathematical Offset (One direct jump) Authentication Stateless Ed25519 (Math-only check) Disk mmap / Zero-Copy (Direct hardware speed) Scaling add more Network Bandwidth (NIC) /bin //raw data storage ./zpath.bin 32 {value lnode rnode child FID } ./zrecord.bin 256 {FID PID size iblock ext key | ctime mtime atime | str } ./block.bin 4K ./block_map.bin 64 {block_hash nextBlock FID key } //key publick key for verify for auth deapth 0 4K deapth 1 4MB so max file size 4MB only /struct/zrecord.bin %i32 FID %i32 PID %i32 size %i32 iblock ---- %i32 ext %i32 ctime %i32 mtime %i32 atime ---- %32B key %*B str r_record(key, path) w_record(key, path,data) blockSize_bit //this tell block size bit blockSize fileSize 0 00 4 4KB 4KM 1 01 4x8 32KB 32MB 2 10 4x8x8 256KB 256MB 3 11 4x8x8x8 2MB 2GB FID +d public recoord -d private recoord read by signature varifation mtime mtime >ctime this record has expire date mtime < 0 num of time file read mtime == 0 this file read ony record_type .ext file_read .zz .zls .zli %dtype %i %u %f {} json_obj %struct [dtype%4B|len%4B] table_data struct/block_map|block_header %i32 FID 4 //FID to get key from zrecord to verfiy read or write %i32 blockNum 4 //so this tell FID|blocNum %B flag_bit 1 %16B block_hash 16 //tell block type public|private //so guest can read read|write|const //const make this file not edit ite remove only i_map //this index_block b_map //this is obj struct/block %4KB block r_block() w_block() struct/req //req_header 128byte req_type 8 payload_len 4 req_key 32 //Ed25519 (Eclipse/Curve base) req_Signature 64 //Detached signature of the payload payload * OpCode ,Request Type ,Description 0x01 ,READ_FILE ,Finds a Title/String by Word Token and returns the data. 0x02 ,WRITE_FILE ,Overwrites an existing Title/String at a specific ID. 0x03 ,APPEND_FILE ,Adds a new Word/String to the end of the Log. 0x04 ,BLOCK_READ ,Bypasses the String Engine; reads a raw 4KB block by ID. 0x05 ,BLOCK_WRITE ,Bypasses the String Engine; writes raw binary to a 4KB block. req_type r_file w_file rm_file r_rec w_rec rm_rec r_block w_block rm_block req_case ---- /path read file /path<<* write /zpath\n* ---- u/ //z_server base u/+91123456789 //mobile_num base u/xyz@email.com //email base ----- z@ z@/zz z@/zls z@/t/thread ---- s//order.zc/vikas.zm: +9189\0 | member add ecord in .zc file s// ---- zls/:title zli/-:title ---- ytv/:[duration,channelId, vidType, title]; iblock ytc/:title ---- PID/title //that use in case to store lot of records or path break PID/img-2024-05-13 PID/JC-2024-05-03 PID#orderNum /seq //primary use for dtat storage engine seq_key_value key|dtype|lnode|rnode|value arr_homo len|dtype|[data] arr_non_homo len|dtype|[data][dtype] arr_struct len|dtype|header_struct|data arr_CR {col%len:[data]} //primary use in table /celldb celldb : [left_node|right_node|cellId|cellvalue] table 1 max 256 table col 1 max 256 col row 2 max 65K row flag 1 dtype 1 //cell type len 2 r_cell(cellId) w_cell(cellId, cellvalue) struct/zrec_db //zrec size 256byte fix FID %i32 PID %i32 size %i32 iblock%i32 ---- ext %i32 ctime %i32 mtime %i32 atime %i32 ---- key %32B str %*B /fn/get_FID(ztr) for zrec in zrec_db if zstr = zrec.zstr return zrec.FID retrun 0 /fn/r_file(zstr) FID = get_FID(ztr) /case +u/xyz/wallet.txt\n public rccord so user read punlic if protect than use clinet side encrapt so other people dont read it -u/xyz/wallet.txt private record PID/wallet.txt\n user whole path not store so it easy to