File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
crates/fula-core/src/prolly Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -336,10 +336,10 @@ mod tests {
336336 tree. set ( "photos/2025/c.jpg" . to_string ( ) , 3 ) . await . unwrap ( ) ;
337337 tree. set ( "docs/readme.md" . to_string ( ) , 4 ) . await . unwrap ( ) ;
338338
339- let photos_2024 = tree. list_prefix ( "photos/2024/" ) . await . unwrap ( ) ;
339+ let photos_2024 = tree. list_prefix ( b "photos/2024/") . await . unwrap ( ) ;
340340 assert_eq ! ( photos_2024. len( ) , 2 ) ;
341341
342- let all_photos = tree. list_prefix ( "photos/" ) . await . unwrap ( ) ;
342+ let all_photos = tree. list_prefix ( b "photos/") . await . unwrap ( ) ;
343343 assert_eq ! ( all_photos. len( ) , 3 ) ;
344344 }
345345}
Original file line number Diff line number Diff line change @@ -252,18 +252,18 @@ <h2>How It Works</h2>
252252 < div class ="flow-step ">
253253 < div class ="step-number "> 1</ div >
254254 < div class ="step-content ">
255- < h3 > Upload Request </ h3 >
256- < p > Your app sends a standard S3 PUT request to the Fula gateway using any S3 SDK .</ p >
257- < code > PUT /my-bucket/photo.jpg </ code >
255+ < h3 > Client-Side Encryption (Optional) </ h3 >
256+ < p > If encryption is enabled, data is encrypted locally using HPKE < strong > before </ strong > leaving your device. Only you hold the keys .</ p >
257+ < code > encrypted_data = encrypt(plaintext, your_public_key) </ code >
258258 </ div >
259259 </ div >
260260 < div class ="flow-connector "> </ div >
261261 < div class ="flow-step ">
262262 < div class ="step-number "> 2</ div >
263263 < div class ="step-content ">
264- < h3 > Client-Side Encryption </ h3 >
265- < p > Data is encrypted locally using HPKE before leaving your device. Only you hold the keys .</ p >
266- < code > encrypt(data, your_public_key) </ code >
264+ < h3 > Upload to Gateway </ h3 >
265+ < p > Your app sends a standard S3 PUT request to the Fula gateway. The gateway receives encrypted (or plain) bytes .</ p >
266+ < code > PUT /my-bucket/photo.jpg → Gateway </ code >
267267 </ div >
268268 </ div >
269269 < div class ="flow-connector "> </ div >
You can’t perform that action at this time.
0 commit comments