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

feat: support social recovery #26

Merged
merged 8 commits into from
Nov 19, 2022
Merged

feat: support social recovery #26

merged 8 commits into from
Nov 19, 2022

Conversation

jwrookie
Copy link
Contributor

No description provided.

@jwrookie jwrookie marked this pull request as draft November 17, 2022 04:39
@jwrookie jwrookie marked this pull request as ready for review November 18, 2022 07:35
@@ -20,6 +20,7 @@ type ExtensionPair struct {
type ExtensionPairs struct {
Extensions []ExtensionPair
SubKeys []SubKeyPair
SocialKeys []SocialKvPair
Copy link
Member

Choose a reason for hiding this comment

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

Maybe Socials is better than SocialKeys

@@ -21,6 +21,8 @@ type KvPair struct {
UpdatedExtensionPairs []ExtensionPair
SubKeyPairs []SubKeyPair
UpdatedSubKeyPairs []SubKeyPair
SocialKeyPairs []SocialKvPair
UpdatedSocialKeyPairs []SocialKvPair
}
Copy link
Member

@duanyytop duanyytop Nov 18, 2022

Choose a reason for hiding this comment

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

Please remove key to keep it simple. SocialKeyPairs -> SocialPairs and UpdatedSocialKeyPairs -> UpdatedSocialPairs

@@ -95,6 +96,15 @@ func (rp extensionPairRepo) ParseExtensionPairs(blockNumber uint64, entry biz.En
return biz.ExtensionPairs{}, err
}
pairs.SubKeys = append(pairs.SubKeys, subKeys...)
case "social":
var socialKey *biz.SocialKvPair
if socialKey, err = rp.parseSocialKeyPairs(entries, blockNumber, lockHashStr); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

socialKey -> social

@jwrookie jwrookie merged commit 1c4664f into main Nov 19, 2022
@jwrookie jwrookie deleted the feat/social_recovery branch November 19, 2022 02:52
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.

2 participants