software-mansion / starknet.py

✨ 🐍 Python SDK for Starknet.
https://starknetpy.rtfd.io/
MIT License
259 stars 74 forks source link

different length of wallet address #1192

Closed viponedream closed 10 months ago

viponedream commented 11 months ago

What happened

same private key generate the wallet is different with agentx.

your : 64 argentx: 66

Stack trace

same private key generate the wallet is different with agentx.

your : 64 argentx: 66

Steps to reproduce

  1. same private key generate the wallet is different with agentx.

your : 64 argentx: 66

SDK Version

lastest

Python version

3.10

What operating system are you using?

Windows

Is there an existing issue for this?

viponedream commented 11 months ago

same recovery phrase different wallet address with agentx

tomek0123456789 commented 11 months ago

Hi, do the keys differ in the beginning with zeros? By that I mean that your key is 0x00... and the one calculated by starknet.py is 0x...

viponedream commented 11 months ago

this site use your project, https://app.testnet.paradex.trade some address have 64 and some have 65 of length.

tomek0123456789 commented 11 months ago

Could you pinpoint where exactly does it happen?

ShampooWoo commented 11 months ago

salt.classhash.calldata.cairo version you should check these params

tomek0123456789 commented 10 months ago

Address is represented as Felt

Felt - "A field element. represented by at most 63 hex digits", taken from here

If you have a reproducible code, then please reopen the issue.