-
Notifications
You must be signed in to change notification settings - Fork 16
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
A proposal for chain-id's, to help avoid using the wrong network #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think making the networks aware of who they are in a human readable way is a good way to reduces client and operational support burden.
Clear errors like "Service network_id doesn't match expected network_id" would be really helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea:
- the overhead on the SDKs will be minimal;
- we don't have to come up with and maintain separate data testssets for separate networks;
- does not require token range reservation, so if someone wants to mint a token in hexspeak like
0xABADCAFEDEADBEEF
they can;
Ifnetwork-id
is a header field, adding it to Fog seems simple enough too, I think it makes sense to add it from the get-go.
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
Co-authored-by: Nick Santana <nick@mobilecoin.com>
This seems reasonable to me. I do think the network id should make it into the enclave. We don't have to worry about releasing a new enclave immediately but there's no reason to not include this in a future release. Thanks for writing this! |
Yeah I was trying to just control the scope of the change, but in POC work it seems like it's pretty easy to add it to fog also. I will update the proposal. I think a second step should be that:
Right now I'm just trying to do the network-id part because it can ship without an enclave upgrade |
I like those suggestions, I think the MCIP should cover the whole desirable change, we can implement at whatever pace we like. |
sorry guys, this wasn't supposed to merge yet, we were supposed to wait for final comment period, but i fat-fingered it Please, let's move any further comments here: |
Rendered Proposal