-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from zkemail/feat/interstiail-hash-var-length
make variable length interstitial partial hash
- Loading branch information
Showing
2 changed files
with
57 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Remove soft line breaks from the given text | ||
* | ||
* @param text The text to remove soft line breaks from | ||
*/ | ||
pub fn remove_soft_line_breaks<let LENGTH: u32>(text: BoundedVec<u8, LENGTH>) -> BoundedVec<u8, LENGTH> { | ||
let mut result = BoundedVec::new(); | ||
for i in 0..LENGTH { | ||
if i < text.len() { | ||
// check if | ||
} | ||
} | ||
} |