Make coin a dedicated library

Closes https://github.com/serai-dex/serai/issues/128.
This commit is contained in:
Luke Parker
2022-10-15 23:21:43 -04:00
parent f50148d17a
commit 65664dafa4
9 changed files with 119 additions and 42 deletions

41
coin/Cargo.toml Normal file
View File

@@ -0,0 +1,41 @@
[package]
name = "serai-coin"
version = "0.1.0"
description = "Abstract interface to represent a coin"
license = "MIT"
repository = "https://github.com/serai-dex/serai"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = []
edition = "2021"
publish = false
[dependencies]
async-trait = "0.1"
thiserror = "1"
curve25519-dalek = { version = "3", features = ["std"] }
transcript = { package = "flexible-transcript", path = "../crypto/transcript", features = ["recommended"] }
dalek-ff-group = { path = "../crypto/dalek-ff-group" }
frost = { package = "modular-frost", path = "../crypto/frost", features = ["secp256k1", "ed25519"] }
monero-serai = { path = "../coins/monero", features = ["multisig"] }
# Test Dependencies
rand_core = { version = "0.6", optional = true }
group = { version = "0.12", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
[dev-dependencies]
rand_core = "0.6"
group = "0.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[features]
test = ["rand_core", "group", "serde", "serde_json"]