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

[FEAT]: Create an Address Validator #107

Open
coxmars opened this issue Jan 22, 2025 · 12 comments · May be fixed by #115
Open

[FEAT]: Create an Address Validator #107

coxmars opened this issue Jan 22, 2025 · 12 comments · May be fixed by #115
Assignees
Labels
cairo-scripts difficult: medium enhancement New feature or request ODBoost This issue will be available ONLY during the ODBoost

Comments

@coxmars
Copy link
Contributor

coxmars commented Jan 22, 2025

📘 Description

We need to implement an address validator utility that can verify the validity Starknet addresses. This tool will help ensure that addresses used within our applications are properly formatted and meet the specific requirements of each blockchain network, preventing potential errors in transactions and interactions.

✅ Acceptance Criteria

Create a function that validates addresses for Starknet.

  • Return a boolean indicating address validity.
  • Provide detailed error messages for invalid addresses.

🌎 References

  • Search about patterns, libraries or something useful for this one.

📜 Additional Notes

  • Do not apply until the ODBoost begins.
  • Read our contribution guidelines before applying.
@coxmars coxmars added cairo-scripts difficult: medium enhancement New feature or request ODBoost This issue will be available ONLY during the ODBoost labels Jan 22, 2025
@martinvibes
Copy link

Holla i'm Martin, I'm a frontend developer who enjoys building smooth applications to pixel perfect and engaging websites using JavaScript, typescript and frameworks(React, nextjs, tailwindcss etc.) and i have contributed to other projects that have been merged.
Am also experienced in working and writing smart contracts.
Kindly assign :)

@codebestia
Copy link

Can i work on this? @danielcdz
I am a good blockchain developer with ample experience with cairo.

How i will handle this?

  • I will fork this repo and follow the contribution guide.
  • I will create a module address_validator in cairo/scripts directory.
  • I will initialize a cairo project and create functionality for the address validator.
  • The address validator will use the starknet library ContractAddress type for the address argument . fn validate_starknet_address(address: ContractAddress) -> bool.
  • The address validator will convert the address to zero to check that it is not a zero address.
  • I will also check that the address is not greater than the FIELD PRIME
  • I will provide detail error message for invalid address
  • I will open a PR within 24 hours of assignment.

@Kingsuite
Copy link

I'd love to give this a go.

@Akshola00
Copy link

Let me handle this issue!
I'm confident I can handle this issue as I have done a similar tasks before
Pls assign

@SoarinSkySagar
Copy link
Contributor

may i take up this issue @coxmars?

background: cairo dev with 5 months of experience and regular contributor at @keep-starknet-strange

eta: 2 days

@CollinsC1O
Copy link

Hello @coxmars, I'm a front-end and a blockchain developer and I will love to take care of this issue issue.

@Jagadeeshftw
Copy link

Proposal to Work on the Issue

I would be delighted to contribute to this issue, as I have extensive experience with Cairo programming and developing decentralized applications on StarkNet.

Estimated Timeline

I anticipate delivering a working solution within the next 24 hours. Please let me know if I can proceed.

Looking forward to contributing and collaborating!

Best regards,
Jagadeesh B

@caxtonacollins
Copy link

I am applying through the onlydust platform.
@coxmars, will love to contribute to this issue, my experience as a fullstack dev, proficient in Javascript, rust and cairo make me the perfect candidiate for this issue, I am a first time contributor to this project and am ready to put in the work.

@Michaelkingsdev
Copy link

I’m interested in this one.

@Benjtalkshow
Copy link
Contributor

May I take care of this?

@RomThpt
Copy link

RomThpt commented Jan 22, 2025

I’d love to work on this task and contribute to the project. I’ll be participating in the ETHDenver hackathon, and I see this as a great opportunity not only to help improve the project but also to grow my skills by tackling this issue.

@ShantelPeters
Copy link
Contributor

May I be assigned to this?

@codebestia codebestia linked a pull request Jan 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cairo-scripts difficult: medium enhancement New feature or request ODBoost This issue will be available ONLY during the ODBoost
Projects
None yet
Development

Successfully merging a pull request may close this issue.