This library helps to verify Apple SKAdNetwork postback data.
import (
https://github.com/peak/skanpostback
)
err := skanpostback.Verify(postbackDataBytes)
NOTE: It uses forked version of google/certificate-transparency-go to parse Apple public keys. So you should run below command to add replace setting to your own go.mod file:
go mod edit -replace="github.com/google/[email protected]=github.com/peak/[email protected]"