[package] name = "vls-core" license = "Apache-2.0" version = "0.12.0" authors = ["Devrandom ", "Ken Sedgwick "] edition = "2021" description = "A library for implementing a Lightning signer, which externalizes and secures cryptographic operations." homepage = "https://gitlab.com/lightning-signer/docs/" repository = "https://gitlab.com/lightning-signer/validating-lightning-signer" readme = "../README.md" rust-version = "1.66.0" [features] default = ["std", "env_logger", "debug", "use_backtrace"] no-std = ["lightning/no-std", "lightning-invoice/no-std", "bitcoin/no-std", "core2/alloc", "txoo/no-std", "bitcoin-push-decoder/no-std", "serde_bolt/no-std"] std = ["lightning/std", "lightning-invoice/std", "bitcoin/std", "bitcoin/rand", "serde_bolt/std", "txoo/std", "bitcoin-push-decoder/std", "serde_bolt/std", "tracing/std"] secp-lowmemory = ["bitcoin/secp-lowmemory"] # if you use tonic, this is convenient for auto-conversion of MySigner Status to tonic::Status grpc = ["tonic"] test_utils = ["use_backtrace", "lightning/_test_utils", "lightning/unsafe_revoked_tx_signing", "bitcoin/bitcoinconsensus", "txoo/test-utils", "serde_bolt/test_utils"] debug = ["debug_enforcement_state", "debug_node_state"] use_backtrace = ["backtrace"] log_pretty_print = [] # trace state at debug level debug_enforcement_state = [] debug_node_state = [] # issue #187 tracker_size_workaround = [] # issue #206, #339, #235 timeless_workaround = [] txoo-source = ["txoo/source"] [lib] name = "lightning_signer" path = "src/lib.rs" [dependencies] serde = { version = "1.0", default_features = false, features = ["alloc"] } serde_derive = { version = "1.0" } bitcoin-consensus-derive = { version = "0.1.0" } serde_with = { version = "3.6", default-features = false, features = ["hex", "macros"] } bolt-derive = { path = "../bolt-derive", version = "0.3.1" } hex = { version = "0.4", default-features = false, features = ["alloc"] } core2 = { version = "0.3.0", optional = true, default-features = false } # Disable default enabled “std” feature anyhow = { version = "1.0", default-features = false } # Disable default enabled “use_std” feature scopeguard = { version = "1.1.0", default-features = false } # Don't use "std" feature log = "0.4.14" tracing = { version = "0.1.40", features = ["attributes", "log"], default-features = false } env_logger = { version = "0.9", optional = true } backtrace = { version = "0.3", optional = true } tonic = { version = "0.9", optional = true, default-features = false } hashbrown = "0.8" # match hashbrown dependency version via lightning itertools = { version = "0.10", default-features = false } [dependencies.serde_bolt] version = "0.3.5" #git = "https://gitlab.com/lightning-signer/serde-bolt" #rev = "6d3d873492d19edb09dc2764a3d4c4c23caaa28f" #path = "../../../serde-bolt" default-features = false [dependencies.bitcoin-push-decoder] version = "0.2.2" #path = "../../txoo/push-decoder" default-features = false [dependencies.txoo] version = "0.7.1" #git = "https://gitlab.com/lightning-signer/txoo" #rev = "d49b25283a5f1db675db20a19b313e5ca7456410" #branch = "main" #path = "../../txoo" default-features = false [dev-dependencies.txoo-bitcoind-client] version = "0.7.1" #git = "https://gitlab.com/lightning-signer/txoo" #rev = "d49b25283a5f1db675db20a19b313e5ca7456410" #branch = "main" #path = "../../txoo/bitcoind-client" default-features = false features = ["dummy-source"] [dev-dependencies] tokio = { version = "1.0", default-features = false, features = ["macros"] } paste = "1.0" # For logging in unit tests test-log = "0.2.8" tempfile = "3.10.1" # TODO point this and lightning-invoice at next release [dependencies.lightning] #git = "https://github.com/lightningdevkit/rust-lightning.git" #rev = "a7600dcd584db0c46fdcd99d71d5b271f3052892" #branch = "main" #path = "../../rust-lightning/lightning" version = "0.0.118" default-features = false features = ["grind_signatures", "unsafe_revoked_tx_signing"] [dev-dependencies.lightning] #git = "https://github.com/lightningdevkit/rust-lightning.git" #rev = "a7600dcd584db0c46fdcd99d71d5b271f3052892" #branch = "main" #path = "../../rust-lightning/lightning" version = "0.0.118" default-features = false features = ["grind_signatures", "_test_utils", "unsafe_revoked_tx_signing"] [dependencies.lightning-invoice] #git = "https://github.com/lightningdevkit/rust-lightning.git" #rev = "a7600dcd584db0c46fdcd99d71d5b271f3052892" #branch = "main" #path = "../../rust-lightning/lightning-invoice" version = "0.26.0" default-features = false [dependencies.bitcoin] version = "0.29" default-features = false features = ["serde"] [dev-dependencies.bitcoin] version = "0.29" default-features = false features = ["serde", "bitcoinconsensus"] # fake dependency to turn on the test_utils feature when testing [dev-dependencies.vls-core] features = ["test_utils"] path = "."