@lit-protocol/vincent-ability-evm-transaction-signer 0.0.2 → 0.0.4-ea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
- ## 0.0.2 (2025-08-05)
1
+ ## 0.0.2 (2025-08-01)
2
2
 
3
3
  ### 🧱 Updated Dependencies
4
4
 
5
5
  - Updated ability-sdk to 2.0.0
6
6
  - Updated app-sdk to 2.0.0
7
- - Updated policy-contract-whitelist to 1.0.0
7
+ - Updated policy-contract-whitelist to 0.0.2
package/README.md CHANGED
@@ -1,42 +1,34 @@
1
- # Vincent Ability: EVM Transaction Signer
1
+ # Vincent Ability: Transaction Signer
2
2
 
3
3
  ## Overview
4
4
 
5
- The EVM Transaction Signer Ability enables Vincent Apps to sign Ethereum Virtual Machine (EVM) transactions on behalf of Vincent Users using their Vincent Agent Wallets. This enables Vincent Apps to interact with contracts even if there isn't an explicit Vincent Ability made for interacting with that contract.
5
+ The Transaction Signer Ability enables Vincent Agent Wallets to sign EVM transactions utilizing the Vincent ecosystem to govern who can request signatures, as well as what's included in the transactions.
6
6
 
7
7
  This Vincent Ability is intended to be used with Vincent Policies, such as the [@lit-protocol/vincent-policy-contract-whitelist](../policy-contract-whitelist/) policy, to provide protections such as only signing transactions that interact with specific contracts and/or call specific functions on contract.
8
8
 
9
- ## Key Features
10
-
11
- - **Secure Transaction Signing**: Signs transactions using Vincent Agent Wallets within Lit Protocol's secure Trusted Execution Environment
12
- - **Full Transaction Support**: Handles all EVM transaction types including legacy, EIP-2930, and EIP-1559
13
- - **Policy Integration**: Supports the Contract Whitelist Policy for restricting what transactions can be signed
14
-
15
9
  ## How It Works
16
10
 
17
11
  The Transaction Signer Ability is built using the Vincent Ability SDK and provides a secure way to sign Ethereum transactions. Here's how it operates:
18
12
 
19
- 1. **Precheck Phase**: Validates the transaction structure and runs policy checks
20
-
21
- - Deserializes the provided serialized transaction using ethers.js
22
- - Validates all required fields are present (nonce, gasPrice, gasLimit, etc.)
23
- - Returns deserialized transaction details for review
24
-
25
- 2. **Execution Phase**: If permitted by the evaluated Policies, signs the serialized transaction
26
- - Signs the transaction using the Vincent Agent Wallet
27
- - Returns both the signed transaction hex and decoded signature components
13
+ - **Input**: Accepts a serialized unsigned EVM transaction
14
+ - **Parsing**: Uses `ethers.utils.parseTransaction` to deserialize and validate the transaction structure
15
+ - Important: All properties of the transaction are expected to be provided, including `nonce`, `gasPrice`, `gasLimit`, etc. The Ability will not fetch these values from the network on your behalf.
16
+ - **Signing**: The Vincent Agent Wallet (PKP (Programmable Key Pair)) signs the transaction within the Lit Action environment
17
+ - **Output**: Returns both the signed transaction hex and a deserialized version with signature components
28
18
 
29
19
  ### Workflow
30
20
 
31
- 1. **Precheck Phase**: Validates the transaction structure and runs policy checks
21
+ 1. **Precheck Phase**:
32
22
 
33
- - Deserializes the provided serialized transaction using ethers.js
34
- - Validates all required fields are present (nonce, gasPrice, gasLimit, etc.)
35
- - Returns deserialized transaction details for review
23
+ - Deserializes the input transaction
24
+ - Validates transaction structure
25
+ - Executes any registered Vincent Policy to validate the transaction meets the policy requirements
26
+ - Returns deserialized transaction details if successful
36
27
 
37
- 2. **Execution Phase**: If permitted by the evaluated Policies, signs the serialized transaction
38
- - Signs the transaction using the Vincent Agent Wallet
39
- - Returns both the signed transaction hex and decoded signature components
28
+ 2. **Execution Phase**:
29
+ - Performs the same validation as the precheck phase
30
+ - Signs the transaction using the Agent Wallet
31
+ - Returns both the signed transaction ready for broadcast, and the deserialized signed transaction
40
32
 
41
33
  ## Using the Ability
42
34
 
package/dist/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@lit-protocol/vincent-ability-evm-transaction-signer",
3
- "version": "0.0.2",
3
+ "version": "0.0.4-ea",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "dependencies": {
8
- "@lit-protocol/vincent-policy-contract-whitelist": "workspace:*",
9
- "@lit-protocol/vincent-ability-sdk": "workspace:*",
8
+ "@lit-protocol/vincent-policy-contract-whitelist": "0.0.4-ea",
9
+ "@lit-protocol/vincent-ability-sdk": "0.0.4-ea",
10
10
  "ethers": "^5.8.0",
11
11
  "tslib": "2.8.1",
12
12
  "zod": "^3.25.64"
13
13
  },
14
14
  "peerDependencies": {
15
- "@lit-protocol/vincent-app-sdk": "workspace:^"
15
+ "@lit-protocol/vincent-app-sdk": "0.0.4-ea"
16
16
  },
17
17
  "devDependencies": {
18
18
  "esbuild": "^0.19.12",
@@ -1,3 +1,3 @@
1
1
  {
2
- "ipfsCid": "QmYBN1UH6BzfNEMtVucSPTCoxRAVXRpigbuLJ7Zofof42V"
2
+ "ipfsCid": "QmUQ3aCkuvhNL837yPtPXCq8UTZbx2pvwd5JP9NDditUaY"
3
3
  }