-
Notifications
You must be signed in to change notification settings - Fork 6
get EKI signer address from grpc server #60
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
base: lo8297-elc-update-service
Are you sure you want to change the base?
get EKI signer address from grpc server #60
Conversation
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
siburu
left a comment
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.
@dai1975 I have put comments.
relay/prover.go
Outdated
| } else if len(messages) == 1 { | ||
| return []*elc.MsgAggregateMessages{ | ||
| &elc.MsgAggregateMessages{ | ||
| Signer: signers[0], | ||
| Messages: messages, | ||
| Signatures: signatures, | ||
| }, | ||
| }, nil | ||
| } |
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.
This specialization is unnecessary, right?
| messages = nil | ||
| signatures = nil |
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.
You must also update signers in the same way as messages and signatures.
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.
fixed
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.
@dai1975 Not fixed yet? We need to reset signers by {batches[0].Signer, batches[1].Signer, ...} at the end of each iteration.
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
Signed-off-by: Daisuke Kanda <daisuke.kanda@datachain.jp>
elc-updater stores the signer address for client use.