You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Computes the derived key ID using the same formula: `keccak256("lit_action_" + actionIpfsCid)`
144
+
3. Queries the PKP router contract to get the public key
145
+
4. Computes the Ethereum address from the public key
146
+
147
+
### Obtaining the Address from Within a Lit Action
148
+
149
+
You can also obtain the public key and compute the Ethereum address from within a Lit Action itself using the [`getActionPublicKey`](https://naga.actions-docs.litprotocol.com/#getactionpublickey) method:
150
+
151
+
```jsx
152
+
(async () => {
153
+
// Derive this Action's public key deterministically from its IPFS CID + scheme
154
+
// This does not require a PKP and is always the same for a given (CID, scheme).
-**Oracle Attestations**: A price oracle Lit Action can sign market data it fetches, allowing other contracts to verify the data came from the specific oracle action
0 commit comments