-
Notifications
You must be signed in to change notification settings - Fork 254
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
ARC-0080: Explicitly Reject Program Address as Record Owner #57
base: master
Are you sure you want to change the base?
Conversation
The only way to differentiate "program address" from "real address" would be to track all program names and their addresses. I'm not sure that's what you meant here. Also, |
I think there are several ways we can take to differentiate "program address" from "user address":
I prefer method 3 because it has a lower impact on the existing codebase and just needs to add labels and checks in the execution. |
Does it mean that we cannot transfer credits into contract and distributed by program logic? |
@AidenZuk For public credits or any mapping data: it's possible, provided that the storing program knows what to do (e.g. properly uses |
Okay, It's clear now. Thanks very much |
Can you please put a link to the rendered version of this Arc in the PR description? |
Done. |
ARC0080-README
The current Aleo system permits the assignment of a
Record
to any address, including program addresses. However, programs cannot spend aRecord
. Consequently, anyRecord
assigned to a program becomes irretrievable, leading to unintended asset loss in Aleo, which can include credits, tokens, NFTs, and more. With the introduction of arc-0030, which enables Aleo users to transfer assets to a program, the frequency of such incidents is likely to increase.This proposal seeks to explicitly prohibit the creation of a
Record
with a program as the owner, significantly reducing the potential for asset loss.