From c2a5d6c03554d3318344453c15cc5438545c5c5c Mon Sep 17 00:00:00 2001 From: benedettadavico Date: Tue, 7 May 2024 12:20:55 +0200 Subject: [PATCH 1/4] updating sign commands to nym-node --- nym-wallet/Cargo.lock | 3 ++- .../src/components/Bonding/forms/GatewaySignatureForm.tsx | 4 ++-- .../src/components/Bonding/forms/MixnodeSignatureForm.tsx | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/nym-wallet/Cargo.lock b/nym-wallet/Cargo.lock index 9573b2af63..ecbf24b2f4 100644 --- a/nym-wallet/Cargo.lock +++ b/nym-wallet/Cargo.lock @@ -3005,6 +3005,7 @@ dependencies = [ "schemars", "serde", "tendermint", + "time", ] [[package]] @@ -3442,7 +3443,7 @@ dependencies = [ [[package]] name = "nym_wallet" -version = "1.2.12" +version = "1.2.13" dependencies = [ "async-trait", "base64 0.13.1", diff --git a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx index 04d33b4607..8aac58173d 100644 --- a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx @@ -60,9 +60,9 @@ const GatewaySignatureForm = ({ return ( - Copy below message and sign it with your gateway using the following command + Copy below message and sign it with your nym-node using the following command
- nym-gateway sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet> + nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
Then paste the signature in the next field.
diff --git a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx index 07cef87b1f..788a08ea7f 100644 --- a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx @@ -61,9 +61,9 @@ const MixnodeSignatureForm = ({ return ( - Copy below message and sign it with your mix node using the following command + Copy below message and sign it with your nym-node using the following command
- nym-mixnode sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet> + nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
Then paste the signature in the next field.
From 408d803344d8c8d99029a1ae84fe39611e904d14 Mon Sep 17 00:00:00 2001 From: benedettadavico Date: Tue, 7 May 2024 12:34:26 +0200 Subject: [PATCH 2/4] adding both options --- .../src/components/Bonding/forms/GatewaySignatureForm.tsx | 8 +++++++- .../src/components/Bonding/forms/MixnodeSignatureForm.tsx | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx index 8aac58173d..7f7dd2c41a 100644 --- a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx @@ -60,7 +60,13 @@ const GatewaySignatureForm = ({ return ( - Copy below message and sign it with your nym-node using the following command + Copy the message below and sign it: +
+ If you're using a nym-gateway: +
+ nym-gateway sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet> +
+ If you're using a nym-node:
nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
diff --git a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx index 788a08ea7f..8e1cf71df7 100644 --- a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx @@ -61,7 +61,13 @@ const MixnodeSignatureForm = ({ return ( - Copy below message and sign it with your nym-node using the following command + Copy the message below and sign it: +
+ If you're using a nym-mixnode: +
+ nym-mixnode sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet> +
+ If you're using a nym-node:
nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
From 5026960169d5c43a90fda3f296fadb8270209fa6 Mon Sep 17 00:00:00 2001 From: benedettadavico Date: Tue, 7 May 2024 14:10:57 +0200 Subject: [PATCH 3/4] linting --- .../src/components/Bonding/forms/GatewaySignatureForm.tsx | 8 ++++---- .../src/components/Bonding/forms/MixnodeSignatureForm.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx index 7f7dd2c41a..c70481da6e 100644 --- a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx @@ -54,19 +54,19 @@ const GatewaySignatureForm = ({ }, [gateway, amount]); if (error) { - return {}} />; + return { }} />; } return ( - Copy the message below and sign it: + Copy the message below and sign it:
- If you're using a nym-gateway: + If you are using a nym-gateway:
nym-gateway sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
- If you're using a nym-node: + If you are using a nym-node:
nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
diff --git a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx index 8e1cf71df7..1cce8d2ccd 100644 --- a/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/MixnodeSignatureForm.tsx @@ -61,13 +61,13 @@ const MixnodeSignatureForm = ({ return ( - Copy the message below and sign it: + Copy the message below and sign it:
- If you're using a nym-mixnode: + If you are using a nym-mixnode:
nym-mixnode sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
- If you're using a nym-node: + If you are using a nym-node:
nym-node sign --id <your-node-id> --contract-msg <payload-generated-by-the-wallet>
From dfbcc781db72096902f5ac1b77a049d568845379 Mon Sep 17 00:00:00 2001 From: benedettadavico Date: Tue, 7 May 2024 14:36:43 +0200 Subject: [PATCH 4/4] extra space.. --- .../src/components/Bonding/forms/GatewaySignatureForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx index c70481da6e..fd7c25fcea 100644 --- a/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx +++ b/nym-wallet/src/components/Bonding/forms/GatewaySignatureForm.tsx @@ -54,7 +54,7 @@ const GatewaySignatureForm = ({ }, [gateway, amount]); if (error) { - return { }} />; + return {}} />; } return (