@@ -3150,16 +3150,46 @@ mod tests {
3150
3150
assert_eq ! ( updated_state. members( ) . len( ) , 3 ) ;
3151
3151
}
3152
3152
3153
+ #[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
3154
+ async fn test_physical_passkey ( ) {
3155
+ let owner = LocalWalletInboxOwner :: new ( ) ;
3156
+ let nonce = 1 ;
3157
+ let ident = owner. identifier ( ) ;
3158
+ let inbox_id = ident. inbox_id ( nonce) . unwrap ( ) ;
3159
+ let path = tmp_path ( ) ;
3160
+ let key = static_enc_key ( ) . to_vec ( ) ;
3161
+
3162
+ let client = create_client (
3163
+ connect_to_backend ( xmtp_api_grpc:: LOCALHOST_ADDRESS . to_string ( ) , false )
3164
+ . await
3165
+ . unwrap ( ) ,
3166
+ Some ( path. clone ( ) ) ,
3167
+ Some ( key) ,
3168
+ & inbox_id,
3169
+ ident,
3170
+ nonce,
3171
+ None ,
3172
+ None ,
3173
+ )
3174
+ . await
3175
+ . unwrap ( ) ;
3176
+
3177
+ register_client ( & owner, & client) . await ;
3178
+
3179
+ let signature_request = client. signature_request ( ) . unwrap ( ) . clone ( ) ;
3180
+ signature_request. add_wallet_signature ( & owner. wallet ) . await ;
3181
+ }
3182
+
3153
3183
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
3154
3184
async fn test_can_revoke_wallet ( ) {
3155
3185
// Setup the initial first client
3156
3186
let ffi_inbox_owner = LocalWalletInboxOwner :: new ( ) ;
3157
3187
let nonce = 1 ;
3158
3188
let ident = ffi_inbox_owner. identifier ( ) ;
3159
3189
let inbox_id = ident. inbox_id ( nonce) . unwrap ( ) ;
3160
-
3161
3190
let path = tmp_path ( ) ;
3162
3191
let key = static_enc_key ( ) . to_vec ( ) ;
3192
+
3163
3193
let client = create_client (
3164
3194
connect_to_backend ( xmtp_api_grpc:: LOCALHOST_ADDRESS . to_string ( ) , false )
3165
3195
. await
0 commit comments