Skip to content

Commit 79b1fa1

Browse files
authored
Merge pull request #1118 from multiversx/development
Merge development in main
2 parents 85bfb21 + 6283714 commit 79b1fa1

File tree

13 files changed

+18
-1233
lines changed

13 files changed

+18
-1233
lines changed

docs/developers/relayed-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ Here's an example of a relayed v3 transaction. Its intent is to call the `add` m
115115

116116
The SDKs have built-in support for relayed transactions. Please follow:
117117
- [mxpy support](/sdk-and-tools/mxpy/mxpy-cli/#relayed-transactions-v3)
118-
- [sdk-py support](/sdk-and-tools/sdk-py/sdk-py-cookbook/#relayed-transactions)
118+
- [sdk-py support](/sdk-and-tools/sdk-py/#relayed-transactions)
119119
- [sdk-js v14 support](/sdk-and-tools/sdk-js/sdk-js-cookbook#relayed-transactions)
120120
- [sdk-js v13 support (legacy)](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13#preparing-a-relayed-transaction)

docs/developers/signing-transactions/signing-programmatically.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ title: Signing programmatically
66
In order to sign a transaction (or a message) using one of the SDKs, follow:
77

88
- [Signing objects using **sdk-js**](/sdk-and-tools/sdk-js/sdk-js-cookbook#signing-objects)
9-
- [Signing objects using **sdk-py**](/sdk-and-tools/sdk-py/sdk-py-cookbook#signing-objects)
9+
- [Signing objects using **sdk-py**](/sdk-and-tools/sdk-py#signing-objects)

docs/developers/signing-transactions/signing-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Then it's serialized form (step 5 is omitted in this example) is as follows:
8888

8989
## **Ed25519 signature**
9090

91-
MultiversX uses the [Ed25519](https://ed25519.cr.yp.to/) algorithm to sign transactions. In order to obtain the signature, one can use generic software libraries such as [PyNaCl](https://pynacl.readthedocs.io/en/stable/signing/), [tweetnacl-js](https://github.com/dchest/tweetnacl-js#signatures) or components of MultiversX SDK such as [mx-sdk-js-wallet](https://github.com/multiversx/mx-sdk-js-wallet), [mx-sdk-py-wallet](https://github.com/multiversx/mx-sdk-py-wallet), [sdk-go](https://github.com/multiversx/mx-sdk-go), [mxjava](https://github.com/multiversx/mx-sdk-java), [mx-sdk-js-wallet-cli](https://github.com/multiversx/mx-sdk-js-wallet-cli) etc.
91+
MultiversX uses the [Ed25519](https://ed25519.cr.yp.to/) algorithm to sign transactions. In order to obtain the signature, one can use generic software libraries such as [PyNaCl](https://pynacl.readthedocs.io/en/stable/signing/), [tweetnacl-js](https://github.com/dchest/tweetnacl-js#signatures) or components of MultiversX SDK such as [mx-sdk-js-core](https://github.com/multiversx/mx-sdk-js-core), [mx-sdk-py](https://github.com/multiversx/mx-sdk-py), [sdk-go](https://github.com/multiversx/mx-sdk-go), [mxjava](https://github.com/multiversx/mx-sdk-java) etc.
9292

9393
The raw signature consisting of 64 bytes has to be **hex-encoded** afterwards and placed in the transaction object.
9494

docs/developers/signing-transactions/tools-for-signing.md

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Tools for signing
44
---
55
[comment]: # (mx-abstract)
66

7-
In order to sign a transaction without actually dispatching it, several tools can be used. Two of the most popular ones are: [mxpy](/sdk-and-tools/sdk-py) or [sdk-js-wallet-cli](/sdk-and-tools/sdk-js-wallet-cli).
7+
In order to sign a transaction without actually dispatching it, several tools can be used. One of the most popular ones is [mxpy](/sdk-and-tools/sdk-py).
88

99
[comment]: # (mx-context-auto)
1010

@@ -52,50 +52,6 @@ In either case, the output file looks like this:
5252

5353
[comment]: # (mx-context-auto)
5454

55-
## **Sign using [sdk-js-wallet-cli](/sdk-and-tools/sdk-js-wallet-cli)**
56-
57-
Given an unsigned transaction in a JSON file:
58-
59-
```
60-
{
61-
"nonce": 42,
62-
"receiver": "erd1cux02zersde0l7hhklzhywcxk4u9n4py5tdxyx7vrvhnza2r4gmq4vw35r",
63-
"value": "100000000000000000",
64-
"gasPrice": 1000000000,
65-
"gasLimit": 70000,
66-
"data": "food for cats",
67-
"chainID": "1",
68-
"version": 1
69-
}
70-
```
71-
72-
You can sign it as follows:
73-
74-
```
75-
$ mxjs-wallet sign -i ./aliceToBob.json -o ./aliceToBobSigned.json \
76-
-k walletKeyOfAlice.json -p passwordOfAlice.txt
77-
```
78-
79-
The signed transaction looks like this:
80-
81-
```
82-
{
83-
"nonce": 42,
84-
"value": "100000000000000000",
85-
"receiver": "erd1cux02zersde0l7hhklzhywcxk4u9n4py5tdxyx7vrvhnza2r4gmq4vw35r",
86-
"sender": "erd1ylzm22ngxl2tspgvwm0yth2myr6dx9avtx83zpxpu7rhxw4qltzs9tmjm9",
87-
"gasPrice": 1000000000,
88-
"gasLimit": 70000,
89-
"data": "Zm9vZCBmb3IgY2F0cw==",
90-
"chainID": "1",
91-
"version": 1,
92-
"signature": "5845301de8ca3a8576166fb3b7dd25124868ce54b07eec7022ae3ffd8d4629540dbb7d0ceed9455a259695e2665db614828728d0f9b0fb1cc46c07dd669d2f0e"
93-
}
94-
95-
```
96-
97-
[comment]: # (mx-context-auto)
98-
9955
## **Other signing tools**
10056

10157
Each SDK includes functions for signing and broadcasting transactions. Please refer to [SDKs & Tools](/sdk-and-tools/overview) for the full list.

docs/sdk-and-tools/overview.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ Note that Rust is also the recommended programming language for writing Smart Co
3535
| [Writing and testing sdk-js interactions](/sdk-and-tools/sdk-js/writing-and-testing-sdk-js-interactions) | Write sdk-js interactions for Visual Studio Code |
3636
| [sdk-js signing providers](/sdk-and-tools/sdk-js/sdk-js-signing-providers) | Integrate sdk-js signing providers. |
3737

38-
In addition to sdk-js, one could use the following Javascript library for performing wallet operations via CLI:
39-
40-
| Name | Description |
41-
| ----------------------------------------------------- | ------------------------------------------------------------ |
42-
| [sdk-js-wallet-cli](/sdk-and-tools/sdk-js-wallet-cli) | Lightweight CLI wrapper used to perform wallet interactions. |
43-
4438
You might also want to have a look over [**xSuite**](https://xsuite.dev), a toolkit to init, build, test, deploy contracts using JavaScript, made by the [Arda team](https://arda.run).
4539

4640
[comment]: # (mx-context-auto)

docs/sdk-and-tools/sdk-js-wallet-cli.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/sdk-and-tools/sdk-js/writing-and-running-sdk-js-snippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ title: Writing and testing interactions
77

88
Generally speaking, we recommended to use [sc-meta CLI](/developers/meta/sc-meta-cli) to [generate the boilerplate code for your contract interactions](/developers/meta/sc-meta-cli/#calling-snippets).
99

10-
Though, for writing contract interaction snippets in **JavaScript** or **TypeScript**, please refer to the [`sdk-js` cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook). If you'd like these snippets to function as system tests of your contract, a choice would be to structure them as Mocha or Jest tests - take the `*.local.net.spec.ts` tests in [`mx-sdk-js-core`](https://github.com/multiversx/mx-sdk-js-core) as examples. For writing contract interaction snippets in **Python**, please refer to the [`sdk-py` cookbook](/sdk-and-tools/sdk-py/sdk-py-cookbook) - if desired, you can shape them as simple scripts, as Python unit tests, or as Jupyter notebooks.
10+
Though, for writing contract interaction snippets in **JavaScript** or **TypeScript**, please refer to the [`sdk-js` cookbook](/sdk-and-tools/sdk-js/sdk-js-cookbook). If you'd like these snippets to function as system tests of your contract, a choice would be to structure them as Mocha or Jest tests - take the `*.local.net.spec.ts` tests in [`mx-sdk-js-core`](https://github.com/multiversx/mx-sdk-js-core) as examples. For writing contract interaction snippets in **Python**, please refer to the [`sdk-py` cookbook](/sdk-and-tools/sdk-py) - if desired, you can shape them as simple scripts, as Python unit tests, or as Jupyter notebooks.
1111

1212
You might also want to have a look over [**xSuite**](https://xsuite.dev), a toolkit to init, build, test, deploy contracts using JavaScript, made by the [Arda team](https://arda.run).

docs/sdk-and-tools/sdk-py/sdk-py-cookbook-v1.md renamed to docs/sdk-and-tools/sdk-py.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
id: sdk-py-cookbook
3-
title: Cookbook (v1)
4-
pagination_prev: sdk-and-tools/sdk-py/sdk-py-cookbook-v0
2+
id: sdk-py
3+
title: Python SDK
4+
pagination_prev: developers/testing/testing-in-go
55
pagination_next: sdk-and-tools/mxpy/installing-mxpy
66
---
77

0 commit comments

Comments
 (0)