Skip to content

Commit 30c8e83

Browse files
committed
Formatting
1 parent c197583 commit 30c8e83

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/sdk/authentication/session-sigs/get-session-sigs.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import FeedbackComponent from "@site/src/pages/feedback.md";
99

1010
# Generating Session Signatures
1111

12-
[Session signatures](./intro.md) can be obtained using the [getSessionSigs](https://v5.api-docs.getlit.dev/classes/lit_node_client_src.LitNodeClientNodeJs.html#getSessionSigs) method provided by the Lit SDK. This method will generate a _session keypair_ for you locally, and will use the `authNeededCallback` method you specify to sign the session keypair, authorizing it to use the specified [Lit Resources and Abilities](./resources-and-abilities.md) on the Lit network.
12+
[Session signatures](./intro.md) can be obtained using the [getSessionSigs](https://v5.api-docs.getlit.dev/classes/lit_node_client_src.LitNodeClientNodeJs.html#getSessionSigs) method provided by the Lit SDK. This method will generate a _session keypair_ for you locally, and will use the `authNeededCallback` method you specify to sign the Session Keypair, authorizing it to use the specified [Lit Resources and Abilities](./resources-and-abilities.md) on the Lit network.
1313

1414
Below we will walk through an example of generating session signatures, the full code implementation can be found [here](https://github.com/LIT-Protocol/developer-guides-code/blob/wyatt/get-session-sigs-via-auth-sig/get-session-sigs-via-auth-sig/nodejs).
1515

@@ -27,19 +27,20 @@ This guide also has a dependency on the following packages:
2727
- `"@lit-protocol/constants": "^6.0.0-beta.3"`
2828
- `"@lit-protocol/lit-node-client": "^6.0.0-beta.3"`
2929
- `"ethers": "v5"`
30-
- `"node-localstorage": "^3.0.5"` (Optional dependency depending on whether or not you're executing the Lit code within a browser. Explained further in the [Connecting to the Lit Network](#connecting-to-the-lit-network) section)
30+
- `"node-localstorage": "^3.0.5"`
31+
- (Optional dependency depending on whether or not you're executing the Lit code within a browser. Explained further in the [Connecting to the Lit Network](#connecting-to-the-lit-network) section)
3132

3233
## Paying for Usage of the Lit Network
3334

3435
The correct code implementation will depend on whether you're using the free-to-use `cayenne` network, or one of the "paid" networks: `habanero` or `manzano`.
3536

36-
Usage of the `habanero` and `manzano` networks require the use of [Lit Capacity Credits](../../../sdk/capacity-credits.md). Currently, Capacity Credits are paid for using the `testLPX` token and don't require any real-world money. However, in the future you will need to pay real-world money for usage of Lit networks, and `habanero` and `manzano` are the Lit networks were this functionality is being tested and refined.
37+
Usage of the `habanero` and `manzano` networks require the use of [Lit Capacity Credits](../../../sdk/capacity-credits.md). Currently, Capacity Credits are paid for using the `testLPX` token and don't require any real-world money. However, in the future you will need to pay real-world money for usage of Lit networks, and `habanero` and `manzano` are the Lit networks where this functionality is being tested and refined.
3738

3839
So, some of the below code snippets will show different implementations based on whether you intend to use the code on `cayenne` or `habanero`/`manzano` networks.
3940

4041
## Specifying an Ethereum Private Key
4142

42-
Our first step will be to specify what Etheruem private key we will use to provide the Authorization Signature for our Session Keys:
43+
Our first step will be to specify what Ethereum private key we will use to provide the Authorization Signature for our Session Keys:
4344

4445
```ts
4546
const ETHEREUM_PRIVATE_KEY = process.env.ETHEREUM_PRIVATE_KEY;
@@ -57,7 +58,7 @@ Next we'll use our `ETHEREUM_PRIVATE_KEY` constant to instantiate an instance of
5758
const ethersSigner = new ethers.Wallet(ETHEREUM_PRIVATE_KEY);
5859
```
5960

60-
We will be using this wallet to sign the Authorization Signature for our Session Keys, granting our Session Keys the ability to use the [Lit Resources and Abilities](./resources-and-abilities.md) we'll specify when making the call to generation our Session Signatures.
61+
We will be using this wallet to sign the Authorization Signature for our Session Keys, granting our Session Keys the ability to use the [Lit Resources and Abilities](./resources-and-abilities.md) we'll specify when making the call to generate our Session Signatures.
6162

6263
## Connecting to the Lit Network
6364

0 commit comments

Comments
 (0)