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

extended v3 contract support #15

Merged
merged 5 commits into from
Jan 22, 2023

Conversation

vadiminc
Copy link
Contributor

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to README are included in PR

@@ -96,6 +92,7 @@ export class SSVKeys {
*/
async buildShares(privateKey: string, operatorIds: number[], operatorPublicKeys: string[]): Promise<EncryptShare[]> {
const threshold = await this.createThreshold(privateKey, operatorIds);
console.log("?????", threshold)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove debug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -152,7 +149,7 @@ export class SSVKeys {
) {
throw Error('Operator public keys and shares public/encrypted keys length does not match or have zero length.');
}
this.keySharesInstance.generateContractPayload({
this.keyShares.generateContractPayload({
Copy link
Contributor

Choose a reason for hiding this comment

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

make generateContractPayload returning payload so that it would be faster to do:
return this.keyShares.generateContractPayload(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@vadiminc vadiminc merged commit 2d4cb24 into v3-contract-support Jan 22, 2023
@vadiminc vadiminc deleted the extend-v3-contract-support branch January 22, 2023 16:13
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.

None yet

2 participants