Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
19cb256
connectionevents: check that RefreshCAT is set before calling
tulir Oct 12, 2026
9c22688
proto: update to v1050189019
tulir Oct 12, 2026
4cf8bc8
send: add option to check group permissions
tulir Oct 13, 2026
f16f9ca
armadillo: expose application decoder (#1281)
iFixRobots Oct 14, 2026
9e9f364
all: run go fix
tulir Oct 13, 2026
3142697
client: fix group send permission check
tulir Oct 15, 2026
df33a48
sendfb: invalidate device caches on DM participant hash mismatch (#1286)
iFixRobots Oct 15, 2026
3be55ac
newsletter: fix live update parsing and add forward counts (#1290)
GSaucedoA Oct 16, 2026
4e2919b
proto: update to v1050588369
tulir Oct 16, 2026
0b0a1cd
dependencies: update
tulir Oct 16, 2026
bb54a07
binary/decode: ignore stanza tag type cast errors
tulir Oct 17, 2026
b2b1e71
proto: update to v1050728964
tulir Oct 17, 2026
1fbae98
client: add option to send unified session on connect
tulir Oct 26, 2026
fe2dd4f
send: use LID as source for sending to bots
tulir Oct 26, 2026
4b4986f
send: return ErrRecipientNotOnWhatsApp when a number has no LID (#1305)
iFixRobots Oct 26, 2026
1eec113
upload: generate streaming sidecar for videos (#1303)
iFixRobots Oct 27, 2026
d24d079
handshake: stop waiting when the socket closes (#1306)
iFixRobots Oct 28, 2026
2fc844f
client: auto-reconnect when the handshake gets no response (#1308)
iFixRobots Oct 29, 2026
6f46eca
binary/xml: redact media and call relay credentials in String (#1311)
Fizzadar Oct 30, 2026
e80da67
sqlstore: keep newest contact name when deduplicating (#1310)
Adridot Oct 30, 2026
56e5ad0
notification: fetch app state before acking server_sync with synchron…
iFixRobots Oct 30, 2026
5d4657a
proto: update to v1052556849
tulir Oct 31, 2026
5403881
appstate: respect backoff from rate-overlimit errors (#1313)
iFixRobots Nov 2, 2026
2987013
appstate: don't fail patches on LTHash mismatch when patch MAC is val…
iFixRobots Nov 5, 2026
307a2ed
appstate: log key IDs on MAC mismatch and changed sync key data (#1321)
iFixRobots Nov 5, 2026
8f931fd
message: read decrypt-fail from meta node too (#1326)
iFixRobots Nov 6, 2026
93ce5f1
appstate: clear contact names on contact remove mutations (#1309)
Adridot Nov 6, 2026
d5f354c
socket: use atomic variable for onDisconnect
tulir Nov 7, 2026
cf05480
message: call event handler before ack for undecryptable messages
tulir Nov 7, 2026
d27df0d
message: log more details about rejected SKDMs
tulir Nov 7, 2026
f47dfe9
message: mark handler as failed if protocol part event handlers fail
tulir Nov 7, 2026
52f1408
receipt: handle more forms of grouped receipts
tulir Nov 7, 2026
b00a580
group: check state value for membership_approval_mode
tulir Nov 7, 2026
3d913f0
keepalive: don't override concurrent disconnects on timeout reconnect…
iFixRobots Nov 7, 2026
79dc2a8
client: use chat JID as sender of history messages in bot chats (#1332)
iFixRobots Nov 7, 2026
f1b7985
socket: check context when sending completed frames to channel
tulir Nov 9, 2026
c88388f
user: return the verified business name from GetUserInfo (#1334)
tcortega Nov 10, 2026
77c7120
Merge upstream whatsmeow through 4b4986f
purpshell Nov 12, 2026
e92b11f
Merge main into upstream sync
purpshell Nov 12, 2026
464ae9c
Merge upstream whatsmeow through c88388f
purpshell Nov 12, 2026
12535f0
appstate: redact secrets from trace-logged mutations
purpshell Nov 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable HyperMeow changes are documented here. HyperMeow uses commit pseudo-

### Fixed

- Redact shared-device and root secrets from app-state mutations in trace logs.
- Keep connection handler completion pending until an active handler exits, and process retired stream errors before automatic reconnect decisions. Manual disconnect retains its five-second wait bound.
- Keep the newest pairing secret through bursts of rotation notifications and refresh the active QR code.
- Report the destination in `SendFBMessage` responses and decrypt full bot edits using their target message ID.
Expand All @@ -26,8 +27,8 @@ All notable HyperMeow changes are documented here. HyperMeow uses commit pseudo-

### Changed

- Sync upstream protocol definitions and runtime changes through `c386243a72bacad080ba2938b37e1e4e0f1ca3b2`, while retaining HyperMeow's module path, Signal fork, bounded queues, and SQL batching.
- Require Go 1.26 and select Go 1.27.1 as the preferred toolchain.
- Sync upstream protocol definitions and runtime changes through `c88388f983b4bc43dfd0bcc2b46969fcde82d61f`, including optional group-send permission checks, bot LID sending, unified-session sends, app-state rate-limit backoff, handshake timeout reconnects, video streaming sidecars, verified business names in `GetUserInfo` and dependency updates, while retaining HyperMeow's module path, Signal fork, bounded caches, and strict stanza tag decoding. `ResolveLID` wraps `ErrRecipientNotOnWhatsApp` when the server returns no LID.
- Require Go 1.26 and select Go 1.27.2 as the preferred toolchain.
- Add `SendResponse.Chat`, `Client.PreKeysUploaded`, pairing-secret rotation events, rich-response types, and bot root-secret methods on `store.ChatSettingsStore`. SQL-backed stores upgrade to schema version 19.
- Deprecate `SetGroupDescription` in favor of `SetGroupTopic`.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The upstream project remains the smaller choice for applications that only need

## Why HyperMeow instead of upstream WhatsMeow?

This comparison was last verified against upstream `main` at [`c386243`](https://github.com/tulir/whatsmeow/commit/c386243a72bacad080ba2938b37e1e4e0f1ca3b2) on 2026-10-10. Each upstream sync must update this section when the difference changes.
This comparison was last verified against upstream `main` at [`c88388f`](https://github.com/tulir/whatsmeow/commit/c88388f983b4bc43dfd0bcc2b46969fcde82d61f) on 2026-11-12. Each upstream sync must update this section when the difference changes.

| Area | HyperMeow advantage over upstream `main` |
| --- | --- |
Expand Down Expand Up @@ -43,7 +43,7 @@ The complete three-repeat system matrix documents allocation, RSS, CPU, latency,

## Install

HyperMeow requires Go 1.26 or newer; the module selects Go 1.27.1 as its preferred toolchain.
HyperMeow requires Go 1.26 or newer; the module selects Go 1.27.2 as its preferred toolchain.

Install the newest reviewed commit from the authoritative `main` branch:

Expand Down
39 changes: 34 additions & 5 deletions appstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/rs/zerolog"
"go.mau.fi/util/exslices"
"go.mau.fi/util/ptr"
"google.golang.org/protobuf/proto"

"github.com/polymorfa/hypermeow/appstate"
waBinary "github.com/polymorfa/hypermeow/binary"
Expand Down Expand Up @@ -52,6 +52,9 @@ func (cli *Client) fetchAppState(ctx context.Context, name appstate.WAPatchName,
cli.dispatchEvent(syncError)
}
}()
if until := cli.appStateBackoff[name]; time.Now().Before(until) {
return nil, fmt.Errorf("%w: not fetching %s until %s", ErrAppStateRateLimited, name, until.Format(time.RFC3339))
}
if fullSync {
err := cli.Store.AppState.DeleteAppStateVersion(ctx, string(name))
if err != nil {
Expand Down Expand Up @@ -79,6 +82,12 @@ func (cli *Client) fetchAppState(ctx context.Context, name appstate.WAPatchName,
}
for hasMore {
patches, err := cli.fetchAppStatePatches(ctx, name, state.Version, wantSnapshot)
var iqErr *IQError
if errors.As(err, &iqErr) && iqErr.Code == 429 && iqErr.ErrorNode != nil {
if backoff := iqErr.ErrorNode.AttrGetter().OptionalInt("backoff"); backoff > 0 {
cli.appStateBackoff[name] = time.Now().Add(time.Duration(backoff) * time.Second)
}
}
if err != nil {
if fullSync && ctx.Err() == nil && cli.BackgroundEventCtx.Err() == nil {
syncError = &events.AppStateSyncError{Name: name, FullSync: fullSync, Error: err}
Expand Down Expand Up @@ -278,7 +287,7 @@ func (cli *Client) dispatchAppState(ctx context.Context, name appstate.WAPatchNa
Hex("index_mac", mutation.IndexMAC).
Hex("value_mac", mutation.ValueMAC)
if logLevel == zerolog.TraceLevel {
logEvt.Any("action", mutation.Action)
logEvt.Any("action", appStateActionForLog(mutation.Action))
}
logEvt.Msg("Received app state mutation")

Expand All @@ -295,7 +304,8 @@ func (cli *Client) dispatchAppState(ctx context.Context, name appstate.WAPatchNa
return
}

if mutation.Operation != waServerSync.SyncdMutation_SET {
isContactRemove := mutation.Operation == waServerSync.SyncdMutation_REMOVE && mutation.Index[0] == appstate.IndexContact
if mutation.Operation != waServerSync.SyncdMutation_SET && !isContactRemove {
return
}

Expand Down Expand Up @@ -345,6 +355,9 @@ func (cli *Client) dispatchAppState(ctx context.Context, name appstate.WAPatchNa
}
case appstate.IndexContact:
act := mutation.Action.GetContactAction()
if isContactRemove {
act = nil
}
eventToDispatch = &events.Contact{JID: jid, Timestamp: ts, Action: act, FromFullSync: fullSync}
if cli.Store.Contacts != nil {
storeUpdateError = cli.Store.Contacts.PutContactName(ctx, jid, act.GetFirstName(), act.GetFullName())
Expand Down Expand Up @@ -747,7 +760,7 @@ func BuildFatalAppStateExceptionNotification(collections ...appstate.WAPatchName
Type: waE2E.ProtocolMessage_APP_STATE_FATAL_EXCEPTION_NOTIFICATION.Enum(),
AppStateFatalExceptionNotification: &waE2E.AppStateFatalExceptionNotification{
CollectionNames: exslices.CastToString[string](collections),
Timestamp: ptr.Ptr(time.Now().UnixMilli()),
Timestamp: new(time.Now().UnixMilli()),
},
},
}
Expand All @@ -766,9 +779,25 @@ func BuildAppStateRecoveryRequest(collection appstate.WAPatchName) *waE2E.Messag
PeerDataOperationRequestType: waE2E.PeerDataOperationRequestType_COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY.Enum(),
SyncdCollectionFatalRecoveryRequest: &waE2E.PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest{
CollectionName: (*string)(&collection),
Timestamp: ptr.Ptr(time.Now().Unix()),
Timestamp: new(time.Now().Unix()),
},
},
},
}
}

// appStateActionForLog returns the action with secret material cleared, so
// trace logs never contain shared-device or root secrets.
func appStateActionForLog(action *waSyncAction.SyncActionValue) *waSyncAction.SyncActionValue {
if action.GetSharedDeviceSecretAction() == nil && action.GetWasaRootSecretAction() == nil {
return action
}
redacted := proto.Clone(action).(*waSyncAction.SyncActionValue)
if shared := redacted.GetSharedDeviceSecretAction(); shared != nil {
shared.Secret = nil
}
for _, entry := range redacted.GetWasaRootSecretAction().GetSecrets() {
entry.RootSecret = nil
}
return redacted
}
17 changes: 14 additions & 3 deletions appstate/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"crypto/hmac"
"crypto/sha256"
"encoding/json"
"errors"
"fmt"
"slices"

Expand Down Expand Up @@ -151,7 +152,7 @@ func (proc *Processor) decodeMutation(
if validateMACs {
expectedValueMAC := generateContentMAC(mutation.GetOperation(), content, keyID, keys.ValueMAC)
if !hmac.Equal(expectedValueMAC, valueMAC) {
err = fmt.Errorf("failed to verify mutation #%d: %w", i+1, ErrMismatchingContentMAC)
err = fmt.Errorf("failed to verify mutation #%d with key %X: %w", i+1, keyID, ErrMismatchingContentMAC)
return
}
}
Expand All @@ -171,7 +172,7 @@ func (proc *Processor) decodeMutation(
if validateMACs {
expectedIndexMAC := concatAndHMAC(sha256.New, keys.Index, syncAction.Index)
if !hmac.Equal(expectedIndexMAC, indexMAC) {
err = fmt.Errorf("failed to verify mutation #%d: %w", i+1, ErrMismatchingIndexMAC)
err = fmt.Errorf("failed to verify mutation #%d with key %X: %w", i+1, keyID, ErrMismatchingIndexMAC)
return
}
}
Expand Down Expand Up @@ -342,14 +343,24 @@ func (proc *Processor) validatePatch(
if validateMACs {
var keys ExpandedAppStateKeys
keys, err = proc.validateSnapshotMAC(ctx, patchName, newState, patch.GetKeyID().GetID(), patch.GetSnapshotMAC())
if err != nil {
ltHashMismatch := errors.Is(err, ErrMismatchingLTHash)
if err != nil && !ltHashMismatch {
return
}
// Like WhatsApp Web, only ignore the mismatch if local state isn't obviously missing.
// A skipped version or an empty hash means a full sync is needed.
if ltHashMismatch && (version != currentState.Version+1 || (currentState.Hash == [128]byte{} && version != 1)) {
return
}
err = nil
patchMAC := generatePatchMAC(patch, patchName, keys.PatchMAC, patch.GetVersion().GetVersion())
if !hmac.Equal(patchMAC, patch.GetPatchMAC()) {
err = fmt.Errorf("failed to verify patch v%d: %w", version, ErrMismatchingPatchMAC)
return
}
if ltHashMismatch {
proc.Log.Warnf("Ignoring mismatching LTHash in %s v%d as patch MAC is valid (warnings: %+v)", patchName, version, warn)
}
}
return
}
Expand Down
12 changes: 6 additions & 6 deletions appstate/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type PatchInfo struct {
func BuildMute(target types.JID, mute bool, muteDuration time.Duration) PatchInfo {
var muteEndTimestamp *int64
if muteDuration > 0 {
muteEndTimestamp = proto.Int64(time.Now().Add(muteDuration).UnixMilli())
muteEndTimestamp = new(time.Now().Add(muteDuration).UnixMilli())
}
return BuildMuteAbs(target, mute, muteEndTimestamp)
}
Expand All @@ -60,7 +60,7 @@ func BuildMuteAbs(target types.JID, mute bool, muteEndTimestamp *int64) PatchInf
Version: 2,
Value: &waSyncAction.SyncActionValue{
MuteAction: &waSyncAction.MuteAction{
Muted: proto.Bool(mute),
Muted: new(mute),
MuteEndTimestamp: muteEndTimestamp,
},
},
Expand Down Expand Up @@ -124,7 +124,7 @@ func BuildArchive(target types.JID, archive bool, lastMessageTimestamp time.Time
// BuildMarkChatAsRead builds an app state patch for marking a chat as read or unread.
func BuildMarkChatAsRead(target types.JID, read bool, lastMessageTimestamp time.Time, lastMessageKey *waCommon.MessageKey) PatchInfo {
action := &waSyncAction.MarkChatAsReadAction{
Read: proto.Bool(read),
Read: new(read),
MessageRange: newMessageRange(lastMessageTimestamp, lastMessageKey),
}

Expand Down Expand Up @@ -329,7 +329,7 @@ func (proc *Processor) EncodePatch(ctx context.Context, keyID []byte, state Hash

mutations := make([]*waServerSync.SyncdMutation, 0, len(patchInfo.Mutations))
for _, mutationInfo := range patchInfo.Mutations {
mutationInfo.Value.Timestamp = proto.Int64(patchInfo.Timestamp.UnixMilli())
mutationInfo.Value.Timestamp = new(patchInfo.Timestamp.UnixMilli())

indexBytes, err := json.Marshal(mutationInfo.Index)
if err != nil {
Expand Down Expand Up @@ -420,12 +420,12 @@ func newMessageRange(lastMessageTimestamp time.Time, lastMessageKey *waCommon.Me
lastMessageTimestamp = time.Now()
}
messageRange := &waSyncAction.SyncActionMessageRange{
LastMessageTimestamp: proto.Int64(lastMessageTimestamp.Unix()),
LastMessageTimestamp: new(lastMessageTimestamp.Unix()),
}
if lastMessageKey != nil {
messageRange.Messages = []*waSyncAction.SyncActionMessage{{
Key: lastMessageKey,
Timestamp: proto.Int64(lastMessageTimestamp.Unix()),
Timestamp: new(lastMessageTimestamp.Unix()),
}}
}
return messageRange
Expand Down
3 changes: 3 additions & 0 deletions appstate/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const (
IndexBusinessFolderActivation = "business_folder_activation"
IndexGroupHistoryToggle = "group_history_toggle"
IndexBBProPendingCustomerBaseAction = "bb_pro_pending_customer_base_action"
IndexCommunityNestingState = "community_nesting_state"
)

// Constants for the regular app state indexes.
Expand Down Expand Up @@ -133,6 +134,8 @@ const (
IndexBizAISettingsNudgeAction = "biz_ai_settings_nudge"
IndexWasaRootSecretAction = "wasa_root_secret"
IndexSharedDeviceAllowlist = "shared_device_allowlist"
IndexSharedDeviceSecret = "shared_device_secret"
IndexHatchCVMSecret = "hatch_cvm_secret"
)

// Constants for the critical_unblock_low app state indexes.
Expand Down
9 changes: 6 additions & 3 deletions armadillomessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ func (cli *Client) handleDecryptedArmadillo(ctx context.Context, info *types.Mes
}
dec.Info = *info
dec.RetryCount = retryCount
if dec.Transport.GetProtocol().GetAncillary().GetSkdm() != nil {
if skdm := dec.Transport.GetProtocol().GetAncillary().GetSkdm(); skdm != nil {
if !info.IsGroup {
cli.Log.Warnf("Got sender key distribution message in non-group chat from %s", info.Sender)
cli.Log.Warnf("Got sender key distribution message in non-group chat %s from %s (skdm group ID %s)", info.Chat, info.Sender, skdm.GetGroupID())
} else {
skdm := dec.Transport.GetProtocol().GetAncillary().GetSkdm()
cli.handleSenderKeyDistributionMessage(ctx, info.Chat, info.Sender, skdm.AxolotlSenderKeyDistributionMessage)
}
}
Expand Down Expand Up @@ -72,6 +71,10 @@ func decodeFBArmadillo(transport *waMsgTransport.MessageTransport) (dec events.F
if err != nil {
return dec, fmt.Errorf("failed to unmarshal application: %w", err)
}
return DecodeFBApplication(application)
}

func DecodeFBApplication(application *waMsgApplication.MessageApplication) (dec events.FBMessage, err error) {
dec.FBApplication = application
if application.GetPayload() == nil {
return
Expand Down
16 changes: 8 additions & 8 deletions benchmark/barback/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ require (
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/petermattis/goid v0.0.0-20260820044319-269ab09b5261 // indirect
github.com/petermattis/goid v0.0.0-20260918085751-abfca077860b // indirect
github.com/polymorfa/libsignal-protocol-go v0.2.3-0.20260806162910-a2adef2e8a11 // indirect
github.com/rs/zerolog v1.35.1 // indirect
go.mau.fi/util v0.10.1 // indirect
golang.org/x/crypto v0.57.0 // indirect
golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba // indirect
golang.org/x/net v0.59.0 // indirect
golang.org/x/sync v0.23.0 // indirect
golang.org/x/sys v0.48.0 // indirect
golang.org/x/text v0.42.0 // indirect
go.mau.fi/util v0.11.0 // indirect
golang.org/x/crypto v0.58.0 // indirect
golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e // indirect
golang.org/x/net v0.61.0 // indirect
golang.org/x/sync v0.24.0 // indirect
golang.org/x/sys v0.49.0 // indirect
golang.org/x/text v0.43.0 // indirect
)

replace github.com/polymorfa/hypermeow => ../..
32 changes: 16 additions & 16 deletions benchmark/barback/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-sqlite3 v1.14.52 h1:wVbm2Qnf4OXkqhBTSPuCRZDRnxfbVrrmiCEroVdog8U=
github.com/mattn/go-sqlite3 v1.14.52/go.mod h1:6JTjA44L93a0QCyJef5YvlPoKXntQPjzWv5gtm9sB6w=
github.com/petermattis/goid v0.0.0-20260820044319-269ab09b5261 h1:lcWAnrqr2nNfDiArwFNHCE4787Mw2tCdVSOXCru0/0E=
github.com/petermattis/goid v0.0.0-20260820044319-269ab09b5261/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
github.com/petermattis/goid v0.0.0-20260918085751-abfca077860b h1:OzNsuVdSWGwXvWKTtChx9ve89k4cFJ6NxYM4Aw4/f+E=
github.com/petermattis/goid v0.0.0-20260918085751-abfca077860b/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/polymorfa/libsignal-protocol-go v0.2.3-0.20260806162910-a2adef2e8a11 h1:ZeZ6sUkmZY+v6ULce+O7cuuzUmvu9d3t5sY2CTrJ2AQ=
github.com/polymorfa/libsignal-protocol-go v0.2.3-0.20260806162910-a2adef2e8a11/go.mod h1:B5KZPsgswdf1eCvC+PZ7z45g5OECgqy6Zb0o7I5CcNQ=
Expand All @@ -35,21 +35,21 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.12.0 h1:K6Mr6jO9JICuend/5xzTM03ydSV3vdNRYAdPSukj8uI=
github.com/stretchr/testify v1.12.0/go.mod h1:bOYBZb5qJ00vPzWfIqBUZPaxK8jWiXc6d3ErP4Ca9Gw=
go.mau.fi/util v0.10.1 h1:1oSqb4TwzLA0cUDY0aomyBPFKkZ3J5fqCmrXV3VH3GQ=
go.mau.fi/util v0.10.1/go.mod h1:40TDo7/ekSeOjgr8KAmX31Yf4zrOF94j83WQB+u5ZPc=
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba h1:Ck8QetSgk912qxWLMCKxd0in+aiyBQyDSMae6e/xmpU=
golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba/go.mod h1:50RgIsmK7OwqzTTeqcSXQW8SswW0o8fRcDxmqGluJ8E=
golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues=
golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg=
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
go.mau.fi/util v0.11.0 h1:JNEpkVRxfTdJUC0DIGKiRlLKzl4G/qLX/eVzoP7QuwY=
go.mau.fi/util v0.11.0/go.mod h1:04AEFVsc4zNdIkDC1gkdqbg/nZFolHY50pyXh2DSy7s=
golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54=
golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w=
golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e h1:HgI6W1OolKK6tcV74is+rl9SMT0njsHlp0TbQiGXI/A=
golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e/go.mod h1:DBoxwWhjaW8DJJw/YeM4zpeOKMC1FMXSblsYy+1mFSw=
golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw=
golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI=
golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA=
golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA=
golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc=
golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s=
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
6 changes: 3 additions & 3 deletions binary/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (r *binaryDecoder) readIntN(n int, littleEndian bool) (int, error) {

var ret int

for i := 0; i < n; i++ {
for i := range n {
var curShift int
if littleEndian {
curShift = i
Expand Down Expand Up @@ -334,7 +334,7 @@ func (r *binaryDecoder) readAttributes(n int) (Attrs, error) {
}

ret := make(Attrs)
for i := 0; i < n; i++ {
for range n {
keyIfc, err := r.read(true)
if err != nil {
return nil, err
Expand All @@ -361,7 +361,7 @@ func (r *binaryDecoder) readList(tag int) ([]Node, error) {
}

ret := make([]Node, size)
for i := 0; i < size; i++ {
for i := range size {
n, err := r.readNode()

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion binary/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (w *binaryEncoder) pushBytes(bytes []byte) {
}

func (w *binaryEncoder) pushIntN(value, n int, littleEndian bool) {
for i := 0; i < n; i++ {
for i := range n {
var curShift int
if littleEndian {
curShift = i
Expand Down
Loading
Loading