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 ¶
func RootScalar(r *[internal.UniformBytestringSize]byte) *ristretto255.Scalar
RootScalar derives a root scalar from the given bytestring.
Types ¶
This section is empty.