Skip to content

Conversation

@guru-web3
Copy link
Contributor

No description provided.

} else {
throw CoreError.default("can only add type ShareStore into shares");
}
ss = this.metadata.shareToShareStore(ss.share.share as BN);
Copy link
Contributor

Choose a reason for hiding this comment

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

would we have simpler check if we check for existence of the input shareStore's polyID in the polyIDList ?
@metallicalfa2

also, should we add check for the inputShareStore that the polyID should be the latest polyID?

Copy link
Contributor

@ieow ieow May 22, 2023

Choose a reason for hiding this comment

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

I think the shareToShareStore won't fix the issue properly.
we should check the if latest share's metadata polynomial has the current tkey latest polynomial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Possible scenario,

create 2 tkey instance, InstA, InstB
InstB generate new share E,
input share E to tkey InstA.
shareToShareStore would failed as share E is not expected in InstA metadata

@guru-web3 guru-web3 changed the base branch from v2 to master June 5, 2023 06:18
@guru-web3 guru-web3 changed the base branch from master to v2 June 5, 2023 06:20
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.

3 participants