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 Action for Enabling Deploy/Edit #23

Open
inertia186 opened this issue May 8, 2019 · 0 comments
Open

Contract Action for Enabling Deploy/Edit #23

inertia186 opened this issue May 8, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@inertia186
Copy link

As a token issuer that has the ability to deploy/edit contracts, I would like SSC to reject deploy/edit attempts unless I have also provided a custom_json that unlocks this ability, so that if my posting key is compromised, my contracts cannot be vanalized.

History

When steemd introduced unlimited comment edit, the blockchain engineers considered adding a way to enable this feature for accounts that broadcasted a special op to enable edits, signed by the active key (see: steemit/steem#1017). This idea was later dropped.

In HF18, the witness plugin had a custom operation called enable_content_editing that allowed a user to signal they want to edit their content. By consensus, content was editable indefinitely, but was soft forked to be frozen after payout. This operation required an active key and was designed to prevent vandalism if a posting key was compromised.

Today

Now, we have SSC with the ability to deploy/edit contracts using the posting key. I believe some kind of lock/unlock action would be useful to allow token issuers to secure their contracts.

The token issuer could broadcast the custom_json using the active key with a timestamp to indicate 10 minutes in the future, 3 days in the future, or whatever time makes sense for contract deploy. After that, contracts are locked until another custom_json using the active key unlocks it for later deploy/edits.

Urgency

In my opinion, the urgency is low for the moment, because Steem Engine does not support general contract deployment. As long as Steem Engine properly secures their posting key, there's no danger in contract vandalism.

But in the future, when an SSC product like Steem Engine does open up general contract deployment, I believe a solution like this should be in place.

@harpagon210 harpagon210 added the enhancement New feature or request label Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants