hash_to_field

package
v0.12.2-0...-0823e43 Latest Latest
Warning

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

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

Documentation

Overview

Package htf provides hasher based on RFC 9380 Section 5.

The RFC 9380 defines a method for hashing bytes to elliptic curves. Section 5 of the RFC describes a method for uniformly hashing bytes into a field using a domain separation. The hashing is implemented in [fp], but this package provides a wrapper for the method which implements hash.Hash for using the method recursively.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(domainSeparator []byte) hash.Hash

New returns a new hasher instance which uses fr.Hash to hash all the written bytes to a field element, returning the byte representation of the field element. The domain separator is passed as-is to hashing method.

Types

This section is empty.

Jump to

Keyboard shortcuts

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