Skip to content

Bugfix/user check - #27

Merged
cedricfung merged 18 commits into
mainfrom
bugfix/user-check
Aug 27, 2026
Merged

Bugfix/user check#27
cedricfung merged 18 commits into
mainfrom
bugfix/user-check

Conversation

@hundredark

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI 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.

Pull request overview

Hardens user authorization, request validation, nonce allocation, and Solana transaction handling.

Changes:

  • Verifies request senders against registered Mix addresses.
  • Adds stricter payload, asset, mint, session, and nonce validation.
  • Improves transfer indexing, RPC handling, and failure/refund flows.

Reviewed changes

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

Show a summary per file
File Description
store/nonce.go Limits nonce accounts per Mix address.
solana/system_call.go Validates system-call fees and referenced assets.
solana/solana.go Improves lookup errors and subsystem restrictions.
solana/signer.go Hardens signer message and session validation.
solana/rpc.go Extracts NFT account validation.
solana/observer.go Validates calls before nonce confirmation.
solana/mvm.go Adds user authentication and request validation.
solana/http.go Returns a rate-limit response for nonce caps.
apps/solana/transaction.go Revises transfer indexing and priority fees.
apps/solana/rpc.go Exposes additional mint-state fields.
apps/solana/common.go Rejects transactions without instructions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread solana/rpc.go
Comment on lines +234 to +235
func isNFTAccount(acc *rpc.GetAccountInfoResult) (bool, error) {
data := acc.GetBinary()
Comment on lines +528 to +532
if index < solanaInnerIndexBase {
if index >= int64(len(msg.Instructions)) {
return solana.CompiledInstruction{}, false
}
return msg.Instructions[index], true
Comment thread solana/mvm.go Outdated
Comment on lines +1196 to +1202
func checkUser(ctx context.Context, req *store.Request, mix *bot.MixAddress) bool {
if common.CheckTestEnvironment(ctx) {
return true
}
senders := append([]string(nil), req.Output.Senders...)
return mix.Threshold == byte(req.Output.SendersThreshold) &&
bot.HashMembers(mix.Members()) == bot.HashMembers(senders)
@cedricfung
cedricfung merged commit 1dc2371 into main Aug 27, 2026
3 checks passed
@hundredark
hundredark deleted the bugfix/user-check branch August 28, 2026 05:23
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.

3 participants