# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "orbinum-encrypted-memo"
version = "0.2.2"
authors = ["Orbinum Network <dev@orbinum.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Encrypted memo primitives for Orbinum shielded transactions"
homepage = "https://orbinum.network"
readme = "README.md"
keywords = [
    "cryptography",
    "encryption",
    "privacy",
    "blockchain",
    "orbinum",
]
categories = [
    "cryptography",
    "no-std",
]
license = "Apache-2.0 OR GPL-3.0-or-later"
repository = "https://github.com/orbinum/node"

[features]
default = ["std"]
disclosure = [
    "serde",
    "serde_json",
    "hex",
    "ark-bn254",
    "ark-ff",
    "ark-groth16",
    "ark-relations",
    "ark-serialize",
    "ark-snark",
    "ark-std",
    "orbinum-zk-core",
    "parity-scale-codec",
    "scale-info",
]
encrypt = ["rand"]
std = [
    "chacha20poly1305/std",
    "sha2/std",
    "parity-scale-codec?/std",
    "scale-info?/std",
    "rand?/std",
    "ark-std?/std",
    "encrypt",
]
wasm-witness = [
    "disclosure",
    "wasmer",
    "once_cell",
]

[lib]
name = "orbinum_encrypted_memo"
path = "src/lib.rs"

[dependencies.ark-bn254]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-ff]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-groth16]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-relations]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-serialize]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-snark]
version = "0.5.0"
optional = true
default-features = false

[dependencies.ark-std]
version = "0.5.0"
features = ["std"]
optional = true
default-features = false

[dependencies.chacha20poly1305]
version = "0.10"
features = ["alloc"]
default-features = false

[dependencies.hex]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.once_cell]
version = "1.19"
optional = true

[dependencies.orbinum-zk-core]
version = "0.3.0"
optional = true
default-features = false

[dependencies.parity-scale-codec]
version = "3.6"
features = ["derive"]
optional = true
default-features = false

[dependencies.rand]
version = "0.8"
features = ["std_rng"]
optional = true
default-features = false

[dependencies.scale-info]
version = "2.11"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0"
optional = true
default-features = false

[dependencies.sha2]
version = "0.10"
default-features = false

[dependencies.wasmer]
version = "4.2"
optional = true

[dev-dependencies.getrandom]
version = "0.2"
features = ["js"]
default-features = false

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.rand]
version = "0.8"
features = ["getrandom"]
default-features = false
