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] Implement the functionality of _generateProfileId #19

Open
Akashneelesh opened this issue May 28, 2024 · 3 comments
Open

[feat] Implement the functionality of _generateProfileId #19

Akashneelesh opened this issue May 28, 2024 · 3 comments
Assignees
Labels
Cairo Smart contract good first issue Good for newcomers

Comments

@Akashneelesh
Copy link
Collaborator

Akashneelesh commented May 28, 2024

Resources :
https://book.cairo-lang.org/title-page.html
https://book.cairo-lang.org/ch14-01-contract-storage.html?highlight=lega#storage-mappings

Reference on how to implement keccak256(abi.encodePacked)
Solidity - https://github.com/celestiaorg/blobstream-contracts/blob/0b4bcf69d1ce96df000da7f95fba8c03aa15a45e/src/lib/tree/namespace/TreeHasher.sol#L33
Cairo - https://github.com/keep-starknet-strange/blobstream-starknet/blob/b74777e5fb479e5b4aa5a1419135e0826343fc37/src/tree/namespace/hasher.cairo#L10
More about it - https://github.com/keep-starknet-strange/alexandria/tree/main/src/encoding
If you have any doubts over on how to implement something similar to this you can try discovering few cairo code bases such as :

Blobstream Solidity : https://github.com/celestiaorg/blobstream-contracts/tree/master/src/lib/tree
Blobstream Cairo: https://github.com/keep-starknet-strange/blobstream-starknet/tree/main/src

Exclusively for Starknet India team - To onboard new devs from India
Estimated Time taken to complete - 2-3 days (Max)

@Akashneelesh Akashneelesh added good first issue Good for newcomers Cairo Smart contract labels May 28, 2024
@rajeshkumarrobert
Copy link
Contributor

Hi @Akashneelesh, I would like to work on this

@Akashneelesh
Copy link
Collaborator Author

Awesome you've been assigned to it, less go !

@kenkomu
Copy link

kenkomu commented May 31, 2024

Hello my name is Kenneth Komu. I am a Starknet developer and I would like to work on the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cairo Smart contract good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants