[package]
name = "saa-curves"
description = "Cryptographic curves for smart account auth"
edition = { workspace = true }
authors = { workspace = true }
version = { workspace = true }
license = { workspace = true }


[dependencies]
bech32                  = { workspace = true }
saa-common              = { workspace = true }
saa-schema              = { workspace = true }

cosmwasm-std            = { workspace = true, optional = true }

scale                   = { workspace = true, optional = true  }
scale-info              = { workspace = true, optional = true  }

borsh                   = { workspace = true, optional = true }
schemars                = { workspace = true, optional = true }
serde                   = { workspace = true, optional = true }

digest                  = { version = "0.10.7", default-features = false }
p256                    = { version = "0.13.2" }


[features]
default = [
    "std"
]
solana = [
    "dep:borsh",
    "saa-schema/solana",
    "saa-common/solana",
]
substrate = [
    "dep:scale",
    "saa-schema/substrate",
    "saa-common/substrate",
]
cosmwasm = [
    "dep:serde",
    "dep:schemars",
    "dep:cosmwasm-std",
    "saa-schema/cosmwasm",
    "saa-common/cosmwasm",
]
std = [
    "scale?/std",
    "scale-info?/std",
    "saa-schema/std",
    "saa-common/std",
]
native = [
    "saa-common/native",
]