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

Add transfer_from function to encrypted_balances module #133

Open
osuketh opened this issue Jul 13, 2019 · 0 comments
Open

Add transfer_from function to encrypted_balances module #133

osuketh opened this issue Jul 13, 2019 · 0 comments

Comments

@osuketh
Copy link
Member

osuketh commented Jul 13, 2019

depending: #134

Add transfer_from and approve function like erc20 in encrypted_balances module.

When you call approve function, you just prove the allowed amount is not over his balance like usual proving in transfer .
When you call transfer_from function, you need to prove the transferred_amount is not over allowed value instead of balance value.

The caller of transfer_from function will need the allowed user's proof generation key because the caller will decrease the allowed user's balance.

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

No branches or pull requests

1 participant