@@ -23,20 +23,17 @@ use anda_web3_client::client::{Client as Web3Client, load_identity};
2323use axum:: { Router , routing} ;
2424use candid:: Principal ;
2525use clap:: { Parser , Subcommand } ;
26- use ed25519_consensus:: SigningKey ;
2726use ic_agent:: {
2827 Agent ,
2928 identity:: { BasicIdentity , Identity } ,
3029} ;
3130use ic_cose:: client:: CoseSDK ;
32- use ic_cose_types:: {
33- CanisterCaller ,
34- types:: { object_store:: CHUNK_SIZE , setting:: SettingPath } ,
35- } ;
31+ use ic_cose_types:: { CanisterCaller , types:: setting:: SettingPath } ;
3632use ic_object_store:: {
3733 agent:: build_agent,
3834 client:: { Client , ObjectStoreClient } ,
3935} ;
36+ use ic_oss_types:: object_store:: CHUNK_SIZE ;
4037use ic_tee_agent:: setting:: decrypt_payload;
4138use std:: collections:: { BTreeMap , BTreeSet } ;
4239use std:: { net:: SocketAddr , sync:: Arc , time:: Duration } ;
@@ -202,7 +199,7 @@ async fn bootstrap(cli: Cli) -> Result<(), BoxError> {
202199 } ) => {
203200 let cfg = config:: Conf :: from_file ( & config) ?;
204201 log:: debug!( "{:?}" , cfg) ;
205- let root_secret = const_hex :: decode ( root_secret) ?;
202+ let root_secret = hex :: decode ( root_secret) ?;
206203 let root_secret: [ u8 ; 48 ] =
207204 root_secret. try_into ( ) . map_err ( |_| "invalid root_secret" ) ?;
208205
@@ -261,7 +258,7 @@ async fn bootstrap_tee(
261258 vec ! [ default_agent_path. as_bytes( ) . to_vec( ) ] ,
262259 ) )
263260 . await ?;
264- let my_id = BasicIdentity :: from_signing_key ( SigningKey :: from ( id_secret) ) ;
261+ let my_id = BasicIdentity :: from_raw_key ( & id_secret) ;
265262 let my_principal = my_id. sender ( ) ?;
266263 log:: info!( "sign_in, principal: {:?}" , my_principal. to_text( ) ) ;
267264
0 commit comments