feat: implement first task as file
This commit is contained in:
parent
27acd0a531
commit
64fe182fc3
9 changed files with 70 additions and 19 deletions
7
src/tasks/tasks01/poly2block.rs
Normal file
7
src/tasks/tasks01/poly2block.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use crate::utils::poly::{self, coefficient_to_binary};
|
||||
use base64::prelude::*;
|
||||
use serde_json::Value;
|
||||
|
||||
pub fn poly2block(coefficients: Vec<u8>) -> String {
|
||||
BASE64_STANDARD.encode(poly::coefficient_to_binary(coefficients).to_ne_bytes())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue