ChainSafe / ChainSafe/WebZjs

Zcash snap not working

Open
#167 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
39
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hiya, I am trying to transfer my tokens and it is not working, I am not able to shield my balance, it doesn't work, I'm also not able to open

the settings and not able to get private key (Metamask snap 0.3.0).

Some errors: usePCZT.ts:239 Shield: pczt_shield returned successfully
usePCZT.ts:135 Shield: PCZT created, size: 9969 bytes
usePCZT.ts:138 Shield: Sending to snap for signing
usePCZT.ts:144 Shield: Signed PCZT received, size: 10285 bytes
usePCZT.ts:146 Shield: Signed PCZT parsed successfully
usePCZT.ts:149 Shield: Starting proof generation
usePCZT.ts:151 Shield: Proof generated successfully
usePCZT.ts:154 Shield: Broadcasting transaction
usePCZT.ts:95 Shield: About to call pczt_send
usePCZT.ts:96 Shield: Signed PCZT bytes: 22095
webzjs_wallet.js:1985 INFO webzjs_wallet::wallet: pczt_send: Anchor validation passed. Wallet is 0 blocks behind chain tip.

webzjs_wallet.js:1914 ERROR webzjs_wallet::wallet: Transaction rejected by network: code=-25, reason=failed to validate tx: WtxId("private"), error: transaction did not pass consensus validation: transaction uses an incorrect consensus branch id

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in usePCZT.ts at the shielding flow around lines 95-154, then inspect the pczt_send entry point and the reported incorrect consensus branch ID error. Verify which Zcash network and consensus branch ID are used when broadcasting the signed transaction. Done means shielding broadcasts successfully without consensus validation failure; the settings and private-key problems may need separate investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.