Versions in this module Expand all Collapse all v0 v0.0.3 Nov 6, 2022 v0.0.2 Nov 4, 2022 Changes in this version + var AllPatchNames = [...]WAPatchName + var ErrKeyNotFound = errors.New("didn't find app state key") + var ErrMismatchingContentMAC = errors.New("mismatching content MAC") + var ErrMismatchingIndexMAC = errors.New("mismatching index MAC") + var ErrMismatchingLTHash = errors.New("mismatching LTHash") + var ErrMismatchingPatchMAC = errors.New("mismatching patch MAC") + var ErrMissingPreviousSetValueOperation = errors.New("missing value MAC of previous SET operation") + type DownloadExternalFunc func(*waProto.ExternalBlobReference) ([]byte, error) + type ExpandedAppStateKeys struct + Index []byte + PatchMAC []byte + SnapshotMAC []byte + ValueEncryption []byte + ValueMAC []byte + type HashState struct + Hash [128]byte + Version uint64 + type Mutation struct + Action *waProto.SyncActionValue + Index []string + IndexMAC []byte + Operation waProto.SyncdMutation_SyncdOperation + ValueMAC []byte + type PatchList struct + HasMorePatches bool + Name WAPatchName + Patches []*waProto.SyncdPatch + Snapshot *waProto.SyncdSnapshot + func ParsePatchList(node *waBinary.Node, downloadExternal DownloadExternalFunc) (*PatchList, error) + type Processor struct + Log waLog.Logger + Store *store.Device + func NewProcessor(store *store.Device, log waLog.Logger) *Processor + func (proc *Processor) DecodePatches(list *PatchList, initialState HashState, validateMACs bool) (newMutations []Mutation, currentState HashState, err error) + func (proc *Processor) GetMissingKeyIDs(pl *PatchList) [][]byte + type WAPatchName string + const WAPatchCriticalBlock + const WAPatchCriticalUnblockLow + const WAPatchRegular + const WAPatchRegularHigh + const WAPatchRegularLow