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
it seems different privateKey standard; the key exported from station seems too long than nomal private key;
this is my code: const keyStr = process.env.KEY; if (keyStr === undefined) { console.error('Environment variable KEY is not set.'); process.exit(1); } const privateKey = Buffer.from(keyStr, 'hex'); const mk = new RawKey (privateKey); const wallet = client.wallet(mk); console.log({address:wallet.key.accAddress});
Error: Expected private key to be an Uint8Array with length 32
The text was updated successfully, but these errors were encountered:
it seems different privateKey standard; the key exported from station seems too long than nomal private key;
this is my code:
const keyStr = process.env.KEY; if (keyStr === undefined) { console.error('Environment variable KEY is not set.'); process.exit(1); } const privateKey = Buffer.from(keyStr, 'hex'); const mk = new RawKey (privateKey); const wallet = client.wallet(mk); console.log({address:wallet.key.accAddress});
Error: Expected private key to be an Uint8Array with length 32
The text was updated successfully, but these errors were encountered: