Replies - Activity - pogginicolo98 - Algorand

Deploy a stateful contract through a stateful contract

No, I don’t use a stateless smart contract. When the user wants to create a transaction (survey or vote) he concatenates all the parameters creating a message and signs it. Then the transaction is composed and signed by the central account using the user parameters in the appropriate fields (application).


Deploy a stateful contract through a stateful contract

The example of the surveys is because I would like to manage this type of activity. In my scenario, there are two types of users: users who are allowed to create surveys and users who are allowed to vote on the specific survey. Currently, I’ve designed a stateful contract that manages a single survey.


Problem with ed25519verify

Thanks, I used ed25519verify_bare and with your suggestions, I was able to verify the signature correctly!


Problem with ed25519verify

Thanks, your solution solved the budget opcode problem, but I still have problems running the Ed25519Verify function correctly. In order to give you as much info as possible, I will post the entire code I’m running.

Smart contract:

from pyteal import *
from lib.pyteal_helpers import program

def...