File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88from  jwcrypto  import  jwk 
99from  jwcrypto .jwa  import  JWA 
1010
11- from  aleph .sdk .chains . ethereum  import  ETHAccount 
11+ from  aleph .sdk .types  import  Account 
1212from  aleph .sdk .utils  import  to_0x_hex 
1313
1414logger  =  logging .getLogger (__name__ )
1515
1616
1717class  VmClient :
18-     def  __init__ (self , account : ETHAccount , domain : str  =  "" ):
19-         self .account : ETHAccount  =  account 
18+     def  __init__ (self , account : Account , domain : str  =  "" ):
19+         self .account : Account  =  account 
2020        self .ephemeral_key : jwk .JWK  =  jwk .JWK .generate (kty = "EC" , crv = "P-256" )
2121        self .domain : str  =  domain 
2222        self .pubkey_payload  =  self ._generate_pubkey_payload ()
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class Account(Protocol):
2020    @abstractmethod  
2121    async  def  sign_message (self , message : Dict ) ->  Dict : ...
2222
23+     @abstractmethod  
24+     async  def  sign_raw (self , buffer : bytes ) ->  bytes : ...
2325    @abstractmethod  
2426    def  get_address (self ) ->  str : ...
2527
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments