Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slashing: add duplicate block proof verification #7418

Merged
merged 18 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ members = [
"shared-memory/program",
"single-pool/cli",
"single-pool/program",
"slashing/program",
"stake-pool/cli",
"stake-pool/program",
"stateless-asks/program",
Expand Down
Empty file added slashing/README.md
Empty file.
48 changes: 48 additions & 0 deletions slashing/program/Cargo.toml
AshwinSekar marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]
name = "spl-slashing"
version = "0.1.0"
description = "Solana Program Library Slashing"
authors = ["Solana Labs Maintainers <[email protected]>"]
repository = "https://github.com/solana-labs/solana-program-library"
license = "Apache-2.0"
edition = "2021"

[features]
no-entrypoint = []
test-sbf = []

[dependencies]
bitflags = { version = "2.6.0", features = ["serde"] }
bytemuck = { version = "1.19.0", features = ["derive"] }
num_enum = "0.7.3"
generic-array = { version = "0.14.7", features = ["serde"], default-features = false }
bincode = "1.3.3"
num-derive = "0.4"
num-traits = "0.2"
solana-program = "2.1.0"
serde = "1.0.210" # must match the serde_derive version, see https://github.com/serde-rs/serde/issues/2584#issuecomment-1685252251
serde_bytes = "0.11.15"
serde_derive = "1.0.210" # must match the serde version, see https://github.com/serde-rs/serde/issues/2584#issuecomment-1685252251
serde_with = { version = "3.11.0", default-features = false }

thiserror = "1.0"
spl-pod = { version = "0.5.0", path = "../../libraries/pod" }

[dev-dependencies]
lazy_static = "1.5.0"
solana-program-test = "2.1.0"
solana-sdk = "2.1.0"
solana-ledger = "2.1.0"
solana-entry = "2.1.0"
solana-client = "2.1.0"
spl-record = { version = "0.3.0", path = "../../record/program" }
rand = "0.8.5"

[lib]
crate-type = ["cdylib", "lib"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[lints]
workspace = true
1 change: 1 addition & 0 deletions slashing/program/program-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
S1ashing11111111111111111111111111111111111
Loading