File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
subprotocols/checkpoint-v0/src Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ struct CheckpointV0VerifierStateSsz {
7878}
7979
8080impl From < & CheckpointV0VerifierState > for CheckpointV0VerifierStateSsz {
81+ #[ expect(
82+ deprecated,
83+ reason = "checkpoint-v0 persists the last verified legacy checkpoint payload"
84+ ) ]
8185 fn from ( value : & CheckpointV0VerifierState ) -> Self {
8286 let last_checkpoint_bytes = value
8387 . last_checkpoint
@@ -116,6 +120,10 @@ impl SszDecode for CheckpointV0VerifierState {
116120 false
117121 }
118122
123+ #[ expect(
124+ deprecated,
125+ reason = "checkpoint-v0 state may still contain a legacy checkpoint payload"
126+ ) ]
119127 fn from_ssz_bytes ( bytes : & [ u8 ] ) -> Result < Self , DecodeError > {
120128 let payload = CheckpointV0VerifierStateSsz :: from_ssz_bytes ( bytes) ?;
121129 let last_checkpoint = if payload. has_last_checkpoint {
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ fn verify_checkpoint_proof(
5656) -> Result < ( ) , CheckpointV0Error > {
5757 let proof_receipt = checkpoint. construct_receipt ( ) ;
5858 let expected_output = checkpoint. batch_info ( ) ;
59+ #[ expect(
60+ deprecated,
61+ reason = "checkpoint-v0 proofs still expose the legacy BatchInfo public values format"
62+ ) ]
5963 let actual_output =
6064 BatchInfo :: from_proof_output_bytes ( proof_receipt. public_values ( ) . as_bytes ( ) )
6165 . map_err ( |_| CheckpointV0Error :: SerializationError ) ?;
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ use crate::errors::{CheckpointTxError, CheckpointTxResult};
1313/// - Unwraps the taproot envelope script from the first input witness.
1414/// - Streams the embedded payload directly from the script instructions.
1515/// - Deserializes the payload into a [`SignedCheckpoint`].
16+ #[ expect(
17+ deprecated,
18+ reason = "checkpoint-v0 still consumes the legacy payload and sidecar formats"
19+ ) ]
1620pub fn extract_signed_checkpoint_from_envelope (
1721 tx : & TxInputRef < ' _ > ,
1822) -> CheckpointTxResult < SignedCheckpoint > {
@@ -37,6 +41,10 @@ pub fn extract_signed_checkpoint_from_envelope(
3741}
3842
3943/// Extract withdrawal intents committed inside a checkpoint sidecar.
44+ #[ expect(
45+ deprecated,
46+ reason = "checkpoint-v0 sidecars still carry legacy chainstate bytes"
47+ ) ]
4048pub fn extract_withdrawal_messages (
4149 checkpoint : & Checkpoint ,
4250) -> CheckpointTxResult < Vec < WithdrawalIntent > > {
You can’t perform that action at this time.
0 commit comments