pushreg

package
v0.13.22 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pushreg owns the serialization shared by the phone's Play Integrity request and the push gateway's independent recomputation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalRegistration

func CanonicalRegistration(installationPublicKey, fcmToken string) ([]byte, error)

CanonicalRegistration returns the RFC 8785/JCS representation of the closed registration schema after replacing attestation.token with the empty string. The schema contains only objects and strings, so RFC 8785's number serialization rules do not enter this protocol. Its fixed ASCII member names are emitted in UTF-16 code-unit order.

func RequestHash

func RequestHash(installationPublicKey, fcmToken string) ([32]byte, error)

RequestHash is SHA-256 of CanonicalRegistration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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