package util

import "github.com/hlandau/parazmq/util"

Index

Functions

func DecodeZ85

func DecodeZ85(ks string) (k []byte, err error)

Decodes Z85 encoded data.

func DecodeZ85Key

func DecodeZ85Key(ks string) (k [32]byte, err error)

Decodes Z85 encoded data. The input string must be 40 bytes in length.

func GeneratePrivateKey

func GeneratePrivateKey() (k [32]byte, err error)

Generate a random Ed25519 private key. Uses package rand.

Source Files

z85.go

Version
v0.0.0-20210323063629-d55c8d2d05c8 (latest)
Published
Mar 23, 2021
Platform
linux/amd64
Imports
3 packages
Last checked
1 month ago

Tools for package owners.