github.com/consensys/gnark-crypto@v0.14.0/internal/generator/hash_to_field/template/doc.go.tmpl (about)

     1  // Package htf provides hasher based on RFC 9380 Section 5.
     2  //
     3  // The [RFC 9380] defines a method for hashing bytes to elliptic curves. Section
     4  // 5 of the RFC describes a method for uniformly hashing bytes into a field
     5  // using a domain separation. The hashing is implemented in [fp], but this
     6  // package provides a wrapper for the method which implements [hash.Hash] for
     7  // using the method recursively.
     8  //
     9  // [RFC 9380]: https://datatracker.ietf.org/doc/html/rfc9380
    10  package hash_to_field
    11  
    12  import (
    13      _ "hash"
    14      
    15      _ "{{ .FieldPackagePath }}"
    16  )