diff --git a/wallet/messages.go b/wallet/messages.go index 0ad042e..ad601d8 100644 --- a/wallet/messages.go +++ b/wallet/messages.go @@ -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) }