Skip to content

Commit

Permalink
Merge pull request #320 from tonkeeper/v5-sig-verify
Browse files Browse the repository at this point in the history
wallet v5 checksig support for VerifySignature
  • Loading branch information
akos-tk authored Nov 26, 2024
2 parents 8400e8d + 8d776a9 commit 40dcba5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wallet/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ func VerifySignature(ver Version, msg *boc.Cell, publicKey ed25519.PublicKey) er
return err
}
return signedMsgBody.Verify(publicKey)
case V5R1:
var m tlb.Message
if err := tlb.Unmarshal(msg, &m); err != nil {
return err
}
return MessageV5VerifySignature(boc.Cell(m.Body.Value), publicKey)
default:
return fmt.Errorf("wallet version is not supported: %v", ver)
}
Expand Down

0 comments on commit 40dcba5

Please sign in to comment.