entropyxyz / cli

CLI utility to ease interactions with an Entropy network.
GNU Affero General Public License v3.0
5 stars 0 forks source link

Requesting a signature through the CLI returns an array/vector/object #223

Closed johnnymatthews closed 1 week ago

johnnymatthews commented 4 weeks ago

I ran entropy --endpoint test-net sign '5CrFp9txcb5UECpNKsD6DTBsG4cj1z58DA43YikSVeeJqXJR' 'This is a message.' and got a fairly large array/vector/object/thingy returned:

entropy --endpoint test-net sign '5CrFp9txcb5UECpNKsD6DTBsG4cj1z58DA43YikSVeeJqXJR' 'This is a message.'
@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
        esm 12.6.2      node_modules/@entropyxyz/sdk/dist/
        esm 12.6.2      node_modules/@polkadot/util-crypto/
2024-09-06 14:39:44        REGISTRY: Unknown signed extensions ValidateConfirmRegistered found, treating them as no-effect
2024-09-06 14:39:44        API/INIT: RPC methods not decorated: chainSpec_v1_chainName, chainSpec_v1_genesisHash, chainSpec_v1_properties
{
  "0": 102,
  "1": 182,
  "2": 211,
  "3": 233,
  "4": 173,
  "5": 94,
  "6": 207,
  "7": 73,
  "8": 103,
  "9": 35,
  "10": 43,
  "11": 142,
  "12": 171,
  "13": 53,
  "14": 203,
  "15": 140,
  "16": 147,
  "17": 238,
  "18": 73,
  "19": 36,
  "20": 154,
  "21": 132,
  "22": 204,
  "23": 163,
  "24": 30,
  "25": 127,
  "26": 90,
  "27": 104,
  "28": 186,
  "29": 14,
  "30": 247,
  "31": 72,
  "32": 26,
  "33": 19,
  "34": 165,
  "35": 79,
  "36": 234,
  "37": 249,
  "38": 177,
  "39": 214,
  "40": 223,
  "41": 251,
  "42": 150,
  "43": 251,
  "44": 176,
  "45": 210,
  "46": 217,
  "47": 70,
  "48": 26,
  "49": 22,
  "50": 1,
  "51": 41,
  "52": 97,
  "53": 18,
  "54": 45,
  "55": 154,
  "56": 113,
  "57": 115,
  "58": 54,
  "59": 120,
  "60": 9,
  "61": 49,
  "62": 45,
  "63": 71,
  "64": 0
}%

When going through the same signing process I get a base64 string back.

CLI version details:

       TEST
       *NET
ENTROPY-CLI
COREv0.1.0
rh0delta commented 1 week ago

@johnnymatthews this has been fixed by #218 changes will be available once the new release goes out.

the new return value will be { signature, verifyingKey }