Skip to content

Support P2MR sentry authorities, collateral rollover and delegated voting - #59

Open
sidhujag wants to merge 18 commits into
mainfrom
codex/p2mr-sentry-authorities
Open

sidhujag wants to merge 18 commits into
mainfrom
codex/p2mr-sentry-authorities

Conversation

@sidhujag

@sidhujag sidhujag commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Integrates the sentry API with Syscoin Core PR #609 and the 0.1.4 sentry SDK. Pali receives the registered owner and voting roots. Owner transactions start as unsigned drafts and the wallet inserts its opening at signing time.

  • Supports funded P2MR registration and same-sentry P2WPKH collateral rollover. The selected collateral input must belong to the funding account. Fees use unreserved funds and the replacement preserves the full principal.
  • Pins PQ funding votes to an active, six-block-deep signing block and checks the currently registered voting root and key version. Both legacy and delegated signatures relay through Core.
  • Revalidates the transaction before broadcast and records the final owner fields for on-chain readback.
  • Checks each owner opening or candidate operator key against the registered collateral before approval. Wallets can retrieve the exact witness-stripped collateral transaction for a registered sentry when its Blockbook response exceeds their size limit.
  • Rechecks P2MR payouts and fee inputs or change after a reorg crosses the preparation height.

Verified on Node 26.12.1 with 1,678 Jest tests, 20 integration tests, and a disconnected Core regtest that exercised registration, service changes, same-sentry collateral rollover and a subsequent enrolled-owner transfer. The package was rebuilt twice from the reviewed SDK commit with identical bytes.

The lockfile pins the reviewed 0.1.4 tarball. Registry installation requires publication of that exact SDK artifact before merge or deployment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T06:16:39.586881Z b262008 Manual request
🔒 Security Review ✅ Completed 2026-12-02T15:00:55.999357Z 725dfe5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sidhujag

sidhujag commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 884517b986

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review the PQ changes through b3af65a791f1.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: b3af65a791

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member

@codex review

Please review both P2MR collateral registration paths, verification of the selected source and bound descriptor, and the compact collateral reads at 0af137b.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 0af137b9a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

@codex review 8b992e1. Please check ordinary and selected P2MR funding, Core capability rechecks and the SDK pin.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b992e1c48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/sentryAdapter.js Resolved
@sidhujag

sidhujag commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

@codex review b262008. Registration capability checks now run for stored retries as well as preparation, signing, and submission.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: b2620086d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch has not been deployed

No deployments
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.

2 participants