4

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?

3
  • 1
    you can start by adding pallet-democracy
    – go11li
    Commented May 17, 2023 at 1:57
  • what kind of voting system are you talking about? Commented May 17, 2023 at 4:07
  • e voting system used by government to elect candidates for government elections Commented May 17, 2023 at 4:22

2 Answers 2

0

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/

2
  • 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 Commented May 17, 2023 at 6:05
  • Blockchain election algorithm is totally different from governance election, but if you want to change it then go ahead Commented May 18, 2023 at 7:43
0

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.