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

Clean up SmesherID #174

Open
lrettig opened this issue Aug 9, 2022 · 0 comments
Open

Clean up SmesherID #174

lrettig opened this issue Aug 9, 2022 · 0 comments

Comments

@lrettig
Copy link
Member

lrettig commented Aug 9, 2022

We have contradictory types for smesherID:

message SmesherIDResponse {
AccountId account_id = 1;
}

and

message SmesherId {
bytes id = 1;
}

Unify these. Should the ID be bytes or AccountId?

Note that we define SmesherID in go-spacemesh to be a NodeID: https://github.com/spacemeshos/go-spacemesh/blob/d4c11da68a0521ec8e23da1f3fd4a4a25c32de94/activation/activation.go#L76

which gets turned into an address: https://github.com/spacemeshos/go-spacemesh/blob/d4c11da68a0521ec8e23da1f3fd4a4a25c32de94/api/grpcserver/smesher_service.go#L114

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

No branches or pull requests

1 participant