scaldf

package
v0.0.0-...-5d1c50d Latest Latest
Warning

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

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

Documentation

Overview

Package scaldf provides the underlying STROBE protocols for Veil's scalar derivation functions, which derive ristretto255 scalars from other pieces of data.

Scalars are generated as follows, given a protocol name P and datum D:

INIT(P, level=256)
KEY(D)
PRF(64)

The two recognized protocol identifiers are: veil.scaldf.label, used to derive delta scalars from labels; veil.scaldf.root, used to derive root scalars from secret keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveElement

func DeriveElement(q *ristretto255.Element, label string) *ristretto255.Element

DeriveElement securely derives a child element from a parent element given a label. Without the label, the parent cannot be derived from the child.

func DeriveScalar

func DeriveScalar(d *ristretto255.Scalar, label string) *ristretto255.Scalar

DeriveScalar securely derives a child scalar from a parent scalar given a label. Without the label, the parent cannot be derived from the child.

func RootScalar

RootScalar derives a root scalar from the given bytestring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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