ristretto255

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ristretto255 implements RFC9380 for the ristretto255 group, and returns points and scalar from github.com/gtank/ristretto255.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeToGroup

func EncodeToGroup(input, dst []byte) *ristretto255.Element

EncodeToGroup returns a non-uniform mapping of the arbitrary input to an Element in the Ristretto255 group. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

func HashToGroup

func HashToGroup(input, dst []byte) *ristretto255.Element

HashToGroup returns a safe mapping of the arbitrary input to an Element in the Ristretto255 group. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

func HashToScalar

func HashToScalar(input, dst []byte) *ristretto255.Scalar

HashToScalar returns a safe mapping of the arbitrary input to a Scalar. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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