shares

package
v0.0.0-...-0c359fc Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(share string) ([]byte, error)

Decode takes a `share` string in the format produced by `Encode`, verifies the checksum, and converts into the binary `byteShare` without the checksum.

func Encode

func Encode(byteShare []byte) string

Encode prepends a little-endian crc32 checksum to `byteShare` and converts to a base64 encoded string.

Format of the result is base64(littleEndian(crc32(byteShare)) + byteShare)

Types

This section is empty.

Jump to

Keyboard shortcuts

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