Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xevisalle committed Nov 28, 2023
1 parent 2cceedb commit 8659383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moat-example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn main() -> Result<(), Error> {
let requests = MoatCore::get_owned_requests(&ssk_lp, &moat_context).await?;

// Issue a license
let attr_data = JubJubScalar::from(1234 as u64);
let attr_data = JubJubScalar::from(1234u64);
let rng = &mut OsRng;
let license_hash = MoatCore::issue_license(
requests.get(0).expect("A request was owned."),
Expand All @@ -69,7 +69,7 @@ async fn main() -> Result<(), Error> {

// Use a license
let psk_sp = psk_lp; // we set the same one than the LP just for testing
let challenge = JubJubScalar::from(1234 as u64);
let challenge = JubJubScalar::from(1234u64);
let session_cookie = MoatCore::use_license(
&moat_context,
&psk_lp,
Expand Down

0 comments on commit 8659383

Please sign in to comment.