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

ci: debug-insecure-cipher-paratime -> localnet-cipher-paratime #47

Closed
wants to merge 1 commit into from

Conversation

matevz
Copy link
Member

@matevz matevz commented Feb 2, 2024

This PR:

  • renames insecure-debug-cipher-paratime.orc to localnet-cipher-paratime.orc for consistency with other ParaTime releases.

Some thoughts

The prefix localnet- implies it is to be run locally e.g. for testing, inside the CI, docker image etc. The incentive for this originated from EVM that uses the notion of chain ID and is baked in the Emerald and Sapphire ParaTime binary. On the client side MetaMask uses the chain ID to determine which web3 gateway IP it will try to connect to. So we decided that the localnet's chain ID will be the one pointing to 127.0.0.1. This way you change the behavior of your dApp by simply changing the chain ID in the config and then deployment, tests etc. will use a different network.

Cipher does not have the chain ID notion. In theory, could you use the insecure Cipher binary to set up a perfectly valid non-confidential oasis-wasm chain on the network? In this case the localnet- term may be less suitable. How does a Cipher dApp know which network to use? The combination of gRPC endpoing address + the Runtime ID? But the Runtime ID is not baked into the binary, right?

@matevz
Copy link
Member Author

matevz commented Oct 25, 2024

Inlcuded in #55. Closing.

@matevz matevz closed this Oct 25, 2024
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.

1 participant