referralid

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(nullifier string, index uint64) string

New generates a new deterministic referral ID from nullifier and index.

func NewMany

func NewMany(nullifier string, count, index uint64) []string

NewMany generates a bunch of referral IDs for a single nullifier with incrementing index. Specify non-zero index argument to start from a specific index, this is useful when you have stored referral IDs for this nullifier previously.

Types

This section is empty.

Jump to

Keyboard shortcuts

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