summaryrefslogtreecommitdiff
path: root/crates/hashx/Cargo.toml
blob: 2b8132c5a421dc1bf8fa6108ceb398e741e43b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[package]
name = "hashx"
version = "0.1.4"
authors = ["The Tor Project, Inc.", "Micah Elizabeth Scott <[email protected]>"]
edition = "2021"
rust-version = "1.70"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Hash function family designed for ASIC-resistant client puzzles"
keywords = ["cryptography"]
categories = ["cryptography"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

# This crate is a new implementation of algorithms developed and implemented
# by tevador here: https://github.com/tevador/equix/. The original is
# Copyright (c) 2020 tevador <[email protected]>
# and licensed under the terms of the LGPL version 3.0.
#
# If tevador is okay with it, we intend to re-license this crate as
# MIT OR Apache-2.0. Thus, do not contribute to this crate unless you
# are okay with these licensing terms.
license = "LGPL-3.0-only"

[features]
default = ["compiler"]
full = ["compiler"]
compiler = ["dep:dynasmrt", "dep:hex"]

[dependencies]
arrayvec = "0.7.3"
blake2 = "0.10.6"
dynasmrt = { version = "2.0.0", optional = true }
fixed-capacity-vec = "1.0"
hex = { version = "0.4.3", optional = true }
rand_core = "0.6.4"
thiserror = "1.0.40"

[dev-dependencies]
hex-literal = "0.4.1"