As a major project for my college, we are trying to modify the substrate node template
for the voting system use case. Can anyone guide us on what would be the most important modules, palettes, and areas in the documentation we should refer to in order to successfully modify the substrate node template for the election (government) voting system use case?
-
1you can start by adding pallet-democracy– Ganesh11May 17 at 1:57
-
what kind of voting system are you talking about?– Shubham GuptaMay 17 at 4:07
-
e voting system used by government to elect candidates for government elections– Akansha BanerjeeMay 17 at 4:22
2 Answers
You don't need to modify any pallet, you need to make a new pallet and write you election logic in it, refer the link on how build a custom pallet. https://docs.substrate.io/build/custom-pallets/
-
Actually, I am new to blockchain programming so I was looking to modify and use some existing libraries for implementing election logic rather than starting from scratch but I don't know which existing functions would be relevant for election use case needed guidance for that May 17 at 6:05
-
Blockchain election algorithm is totally different from governance election, but if you want to change it then go ahead May 18 at 7:43
I'd suggest you take a look into this previous StackExchange question with a list of resources about voting on Substrate: How to implement voting functionality?