Skip to content

PROTO-575: Deprecate merkle root#178

Closed
SC4RECOIN wants to merge 10 commits into
mainfrom
kurtis/deprecate_merkle_root
Closed

PROTO-575: Deprecate merkle root#178
SC4RECOIN wants to merge 10 commits into
mainfrom
kurtis/deprecate_merkle_root

Conversation

@SC4RECOIN

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 11, 2025 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes merkle root-based earner verification and simplifies the earner management system by moving add/remove earner functionality from open instructions to portal-only instructions.

Key Changes:

  • Removed merkle proof verification logic and associated utilities
  • Simplified propagate_index to no longer update earner merkle root
  • Consolidated earner management under portal authority control

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
programs/portal/src/instructions/release_inbound.rs Removed earner root parameter from propagate_index CPI call
programs/earn/src/utils/mod.rs Removed merkle_proof module export
programs/earn/src/utils/merkle_proof.rs Deleted entire merkle proof verification implementation
programs/earn/src/state.rs Renamed earner_merkle_root field to padding
programs/earn/src/lib.rs Simplified function signatures by removing merkle proof parameters
programs/earn/src/instructions/portal/remove_earner.rs New portal-controlled earner removal without merkle verification
programs/earn/src/instructions/portal/propagate_index.rs Removed merkle root update logic from index propagation
programs/earn/src/instructions/portal/mod.rs Added new earner management module exports
programs/earn/src/instructions/portal/add_earner.rs New portal-controlled earner addition without merkle verification
programs/earn/src/instructions/open/remove_registrar_earner.rs Deleted open remove earner with merkle verification
programs/earn/src/instructions/open/mod.rs Deleted open instructions module
programs/earn/src/instructions/open/add_registrar_earner.rs Deleted open add earner with merkle verification
programs/earn/src/instructions/mod.rs Removed open module export

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread programs/portal/src/instructions/release_inbound.rs
Comment thread programs/earn/src/instructions/portal/add_earner.rs Outdated
Comment thread programs/earn/src/instructions/portal/remove_earner.rs Outdated

@Oighty Oighty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty clean update. Needs a few changes.

Comment thread programs/earn/src/instructions/open/remove_registrar_earner.rs
pub portal_authority: Pubkey, // portal authority that propogates indexes and roots
pub admin: Pubkey, // can update config values
pub m_mint: Pubkey, // $M mint
pub portal_authority: Pubkey, // portal authority that propogates indexes and roots

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need an instruction to be able to update the portal_authority.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#177
can merge them together if needed

Comment thread programs/earn/src/instructions/portal/propagate_index.rs Outdated
@Oighty Oighty changed the title Deprecate merkle root PROTO-575: Deprecate merkle root Dec 12, 2025
@Oighty

Oighty commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator

Closing PR for now. May include in a future update

@Oighty Oighty closed this Dec 18, 2025
@SC4RECOIN SC4RECOIN deleted the kurtis/deprecate_merkle_root branch January 22, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants