Dedicated library for intending and evaluating cosigns

Not only cleans the existing cosign code but enables non-Serai-coordinators to
evaluate cosigns if they gain access to a feed of them (such as over an RPC).
This would let centralized services not only track the finalized chain yet the
cosigned chain without directly running a coordinator.

Still being wrapped up.
This commit is contained in:
Luke Parker
2024-12-22 06:41:55 -05:00
parent 147a6e43d0
commit 4de1a5804d
13 changed files with 914 additions and 669 deletions

17
Cargo.lock generated
View File

@@ -8365,6 +8365,23 @@ dependencies = [
"zeroize",
]
[[package]]
name = "serai-cosign"
version = "0.1.0"
dependencies = [
"blake2",
"borsh",
"ciphersuite",
"log",
"parity-scale-codec",
"schnorr-signatures",
"serai-client",
"serai-db",
"serai-task",
"sp-application-crypto",
"tokio",
]
[[package]]
name = "serai-db"
version = "0.1.0"