pushreg

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pushreg owns the registration transcripts shared by the phone and push gateway.

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 RegistrationProofMessage added in v0.13.28

func RegistrationProofMessage(idempotencyKey string, body []byte) []byte

RegistrationProofMessage returns the bytes signed by the installation key when registering. It binds the proof to both the retry identity and the exact transmitted body without copying secret body contents into the signed transcript.

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