-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
internal/biz/extension_pair.go
Outdated
@@ -20,6 +20,7 @@ type ExtensionPair struct { | |||
type ExtensionPairs struct { | |||
Extensions []ExtensionPair | |||
SubKeys []SubKeyPair | |||
SocialKeys []SocialKvPair |
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.
Maybe Socials
is better than SocialKeys
@@ -21,6 +21,8 @@ type KvPair struct { | |||
UpdatedExtensionPairs []ExtensionPair | |||
SubKeyPairs []SubKeyPair | |||
UpdatedSubKeyPairs []SubKeyPair | |||
SocialKeyPairs []SocialKvPair | |||
UpdatedSocialKeyPairs []SocialKvPair | |||
} |
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.
Please remove key to keep it simple. SocialKeyPairs
-> SocialPairs
and UpdatedSocialKeyPairs
-> UpdatedSocialPairs
internal/data/extension_pair.go
Outdated
@@ -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 { |
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.
socialKey
-> social
No description provided.