feat: add task runner for block2poly

This commit is contained in:
0xalivecow 2024-10-20 20:11:00 +02:00
parent 52dca1bcaf
commit 963239903e
No known key found for this signature in database
5 changed files with 69 additions and 28 deletions

View file

@ -9,5 +9,6 @@ pub fn poly2block(args: &Value) -> String {
.into_iter()
.map(|x| x.as_u64().unwrap() as u8)
.collect();
BASE64_STANDARD.encode(poly::coefficient_to_binary(coefficients).to_ne_bytes())
}