Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Dec 2, 2024
1 parent 9f05b8e commit 70e8a42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/context/config/src/client/protocol/icp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,10 @@ impl Network {
method: String,
args: Vec<u8>,
) -> Result<Vec<u8>, IcpError> {
let mut rng = OsRng;
let current_time: u64 = 1733150708000u64;
let context_sk = self.secret_key.clone();
let context_pk = context_sk.verification_key();

let sign_key = DSigningKey::from_bytes(&context_sk.to_bytes());
let sign_key = DSigningKey::from_bytes(&[0u8; 32]);
let context_pk = sign_key.verifying_key();

let context_id = ICContextId::new(context_pk.to_bytes());

Expand All @@ -248,6 +246,8 @@ impl Network {
let sign_req = ICPSigned::new(request, |bytes| sign_key.sign(bytes))
.expect("Failed to create signed request");

println!("Sign request: {:?}", sign_req);

let args_encoded = candid::encode_one(sign_req).unwrap();
self.client
.fetch_root_key()
Expand Down

0 comments on commit 70e8a42

Please sign in to comment.