Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Dec 15, 2023
1 parent 033ecd7 commit d504cea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ dusk-bls12_381-sign = { version = "0.5", default-features = false }
rkyv = { version = "0.7", default-features = false }
ff = { version = "0.13", default-features = false }

stake-contract-types ={ version="0.1.0", path="../rusk/contracts/stake-types/" }

[dev-dependencies]
rand = "^0.8"

Expand Down
2 changes: 2 additions & 0 deletions src/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use rkyv::ser::serializers::{
use rkyv::validation::validators::CheckDeserializeError;
use rkyv::Serialize;
use rusk_abi::ContractId;
use stake_contract_types::Unstake;

const MAX_INPUT_NOTES: usize = 4;

Expand Down Expand Up @@ -581,6 +582,7 @@ where

let signature = unstake_sign(&sk, &pk, stake.counter, unstake_note);

let unstake_note = unstake_note.to_bytes().to_vec();
let unstake = Unstake {
public_key: pk,
signature,
Expand Down

0 comments on commit d504cea

Please sign in to comment.