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

Use twox64_concat to map address to balance #3

Closed
shawntabrizi opened this issue Mar 3, 2020 · 3 comments
Closed

Use twox64_concat to map address to balance #3

shawntabrizi opened this issue Mar 3, 2020 · 3 comments
Assignees

Comments

@shawntabrizi
Copy link

https://github.com/apopiak/pallet-stablecoin/blob/e4074e6753fdc9257922826a7a1218735d25e030/src/lib.rs#L191

See paritytech/substrate#4917

@apopiak
Copy link
Owner

apopiak commented Mar 4, 2020

Thanks for the info! Users can transfer arbitrary amounts of stablecoins to any valid AccountId, though, so I wonder whether blake2_128_concat might be the better option?

@shawntabrizi
Copy link
Author

Yes you are right!

@apopiak apopiak self-assigned this Mar 4, 2020
@apopiak
Copy link
Owner

apopiak commented Mar 4, 2020

addressed in 431608a59afd9cfcca1f2684efe1d1b13fcf438d

@apopiak apopiak closed this as completed Mar 4, 2020
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

2 participants