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 permissions section to Wasmd #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

pinosu
Copy link
Contributor

@pinosu pinosu commented Aug 22, 2024

No description provided.

Copy link

vercel bot commented Aug 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cosmwasm-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 4:30pm

Copy link
Contributor

@uint uint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good.

I left a nitpick and some broad questions. Overall, I've never done any of this and I found this guide easy to follow. It flows nicely. I do think I'd be able to quickly get started following this page, which means: good job!

# Permissions

This section describes the permission settings, enabling you to manage access to essential
operations like uploading and instantiating WASM contracts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
operations like uploading and instantiating WASM contracts.
operations like uploading and instantiating Wasm contracts.

This is a nitpick, but Wasm is how they capitalize it.

Comment on lines 187 to 191
This command allows **Alice** to grant **Bob** (`wasm1427kpq9mmnfp0madk5axh2ukmjgpfh6skzdxku`) the
authorization to **store** a specific WASM code on the blockchain. The WASM code is defined by the
code checksum `3F4CD47C39C57FE1733FB41ED176EEBD9D5C67BAF5DF8A1EEDA1455E758F8514`. The permission
granted allows `"everybody"` to instantiate this code. This means that once **Bob** uploads the WASM
code, any user on the blockchain will be able to instantiate it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this, it's not clear to me what sort of permissions Alice needs to have to be able to do this. Is that important?


### Contract Execution Authorization

To authorize a specific address to execute a WASM contract, use the following command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are addresses not able to execute Wasm contracts by default? When would they need to be authorized like this?

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 this pull request may close these issues.

2 participants