identity

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.4.0

func New() string

New identity generated and returned. The function is not deterministic, but produce a crypto-safe random value.

It has a limited length of 16 thus could be used as a DNS label, while remaining most probably unguessable and large enough to scale (16 chars ^ 16 runes of hex alphabet = 18 446 744 073 709 551 616 combinations).

Types

This section is empty.

Jump to

Keyboard shortcuts

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