Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import privateKey exported from station to feather.js or terra.js; PLS help 🙏🙏🙏 #67

Open
mnuestc opened this issue Dec 9, 2023 · 0 comments

Comments

@mnuestc
Copy link

mnuestc commented Dec 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant