skanpostback

package module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 11 Imported by: 0

README

SKAdNetwork Postback Verify

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/certificate-transparency-go@v1.1.1=github.com/peak/certificate-transparency-go@v0.0.0-p192"

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadData = errors.New("malformed postback data")
View Source
var ErrSignatureMismatch = errors.New("signature mismatch")

Functions

func Verify

func Verify(data []byte) error

Verify checks `attribution-signature` according to Apple combining parameters rules. https://developer.apple.com/documentation/storekit/skadnetwork/verifying_an_install-validation_postback

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL