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

[CONTRACT] define smart contract interface #8

Closed
1Mateus opened this issue Apr 26, 2023 · 9 comments · Fixed by #32
Closed

[CONTRACT] define smart contract interface #8

1Mateus opened this issue Apr 26, 2023 · 9 comments · Fixed by #32
Assignees

Comments

@1Mateus
Copy link
Contributor

1Mateus commented Apr 26, 2023

Define the interface (methods, parameters and return values) that the contract is going to have so that SDK and Smart Contract can be developed in parallel.

@veigajoao
Copy link
Contributor

Merkle trees em contratos:

  1. tornado cash: https://github.com/tornadocash/tornado-core/blob/master/contracts/MerkleTreeWithHistory.sol
  2. hideyour.cash: https://github.com/hideyour-cash/hideyour-cash/blob/main/packages/contracts/instance/src/commitment_tree.rs

Pedersen hash em contratos: https://github.com/zeropoolnetwork/zeropool-core/blob/master/circom/circuits/lib/poseidon.circom

Como criptografar mensagens usando a chave privada da Kadena.

Familiarizar com tutoriais de smart contracts do pact.

@veigajoao
Copy link
Contributor

@veigajoao
Copy link
Contributor

@veigajoao
Copy link
Contributor

Transact function - função para depositar ou sacar

Emit event - new UTXO - commit da UTXO, forma encriptada dela, index na merkle tree

@veigajoao
Copy link
Contributor

@veigajoao
Copy link
Contributor

@veigajoao
Copy link
Contributor

@veigajoao
Copy link
Contributor

@davibauer davibauer linked a pull request Jul 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants