Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

WHAT

A full 1:1 ergonomic match Rust SDK just like our JS SDK. It exposes a single LitClient as the entry point that hides handshake, pricing, payment, and session management, while exposing the same high-level APIs (encrypt, decrypt, execute_js, pkp_sign_ethereum, etc.).

  • Core flows (session key generation, SIWE/auth context, PKP custom auth, pricing/payment helpers) live under crates/lit-sdk/src/{auth,client,chain,session}, mirroring the JS SDK’s assumptions, and the e2e gate (crates/lit-e2e) covers all JS scenarios like payment delegation, custom auth combo, and wrapped keys.
  • SEV-SNP, attestation, and signature-share combination are handled internally

TEST

NETWORK_NAME=naga-dev cargo test -p lit-e2e -- --nocapture --test-threads 1

RESULTS

running 35 tests
test custom_auth_execute_js ... ok
test custom_auth_pkp_sign ... ok
test derived_pubkey_ticket ... ok
test encrypt_decrypt_roundtrip ... ok
test eoa_native_auth_flow ... ok
test execute_js ... ok
test execute_js_pkp_check_conditions_without_authsig ... ok
test execute_js_pkp_decrypt_and_combine_null_authsig ... ok
test execute_js_pkp_decrypt_and_combine_pkp_authsig ... ok
test jss100_custom_contract_accs_evm_contract ... ok
test jss11_pkp_management_and_pagination ... ok
test payment_delegation_contract_flow ... ok
test payment_delegation_flow ... ok
test payment_manager_flow ... ok
test pkp_auth_execute_js ... ok
test pkp_auth_pkp_sign ... ok
test pkp_auth_pre_generated_server_reuse_flow ... ok
test pkp_auth_rejects_only_delegation_auth_sig ... ok
test pkp_auth_rejects_only_session_key_pair ... ok
test pkp_encrypt_decrypt_roundtrip ... ok
test pkp_permissions_manager_flow ... ok
test pkp_sign ... ok
test pkp_signing_schemes_matrix ... ok
test v7_encrypt_decrypt_compatibility ... ok
test viem_sign_message_eoa ... ok
test viem_sign_message_pkp_auth ... ok
test viem_sign_transaction_eoa ... ok
test viem_sign_transaction_pkp_auth ... ok
test viem_sign_typed_data_eoa ... ok
test viem_sign_typed_data_pkp_auth ... ok
test view_pkps_by_address_flow ... ok
test view_pkps_by_auth_data_flow ... ok
test wrapped_keys_batch_generate_private_keys ... ok
test wrapped_keys_evm_flow ... ok
test wrapped_keys_solana_flow ... ok

test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 400.74s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants