test

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomAddrs

func RandomAddrs(n int) []string

RandomAddrs returns a slice of n random unique addresses.

func RandomCids

func RandomCids(n int) []cid.Cid

RandomCids returns a slice of n random unique CIDs.

func RandomIdentity

func RandomIdentity() (peer.ID, crypto.PrivKey, crypto.PubKey)

RandomIdentity returns a random unique peer ID, private key, and public key.

func RandomMultiaddrs added in v0.0.5

func RandomMultiaddrs(n int) []multiaddr.Multiaddr

RandomMultiaddrs returns a slice of n random unique Multiaddrs.

func RandomMultihashes

func RandomMultihashes(n int) []multihash.Multihash

RandomMultihashes returns a slice of n random unique Multihashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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