We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3156971 commit 09849dbCopy full SHA for 09849db
pkg/code/async/user/twitter.go
@@ -283,10 +283,14 @@ func (p *service) findVerifiedTipAccountRegisteredInTweet(ctx context.Context, t
283
}
284
tipAccount, _ := common.NewAccountFromPublicKeyBytes(decodedAddress)
285
286
- nonce, err := uuid.Parse(nonceString)
+ decodedNonce, err := base58.Decode(nonceString)
287
if err != nil {
288
return nil, nil, errTwitterInvalidRegistrationValue
289
290
+ if len(decodedNonce) != 16 {
291
+ return nil, nil, errTwitterInvalidRegistrationValue
292
+ }
293
+ nonce, _ := uuid.FromBytes(decodedNonce)
294
295
decodedSignature, err := base58.Decode(signatureString)
296
0 commit comments