keep-starknet-strange / gitcoin-allo-starknet

Gitcoin Allo protocol for Starknet 🐺
MIT License
15 stars 41 forks source link

[feat] Implement the functionality of _generateProfileId #19

Open Akashneelesh opened 4 months ago

Akashneelesh commented 4 months ago

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)

rajeshkumarrobert commented 4 months ago

Hi @Akashneelesh, I would like to work on this

Akashneelesh commented 4 months ago

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

kenkomu commented 4 months ago

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