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