[package]
name = "tlsn-core"
authors = ["TLSNotary Team"]
description = "Core types for TLSNotary"
keywords = ["tls", "mpc", "2pc", "types"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
version = "0.1.0-alpha.6"
edition = "2021"

[features]
default = []
fixtures = ["dep:hex"]

[dependencies]
tlsn-tls-core = { workspace = true, features = ["serde"] }
tlsn-utils = { workspace = true }

mpz-circuits = { workspace = true }
mpz-core = { workspace = true }
mpz-garble-core = { workspace = true }

bimap = { version = "0.6.3", features = ["serde"] }
bytes = { workspace = true, features = ["serde"] }
hex = { workspace = true, optional = true }
opaque-debug = { workspace = true }
p256 = { workspace = true, features = ["serde"] }
rs_merkle = { workspace = true }
rstest = { workspace = true, optional = true }
serde = { workspace = true }
thiserror = { workspace = true }
web-time = { workspace = true }
webpki-roots = { workspace = true }

[dev-dependencies]
bincode = { workspace = true }
hex = { workspace = true }
rand_chacha = { workspace = true }
rand_core = { workspace = true }
rstest = { workspace = true }

[[test]]
name = "api"
required-features = ["fixtures"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
getrandom = { version = "0.2", features = ["js"] }
