Skip to content

add integration example dependencies#4

Merged
ParsaTasbihgou merged 1 commit intoNP-Eng:Add-shieldingfrom
Lederstrumpf:m1-evaluation
Sep 12, 2025
Merged

add integration example dependencies#4
ParsaTasbihgou merged 1 commit intoNP-Eng:Add-shieldingfrom
Lederstrumpf:m1-evaluation

Conversation

@Lederstrumpf
Copy link

@Lederstrumpf Lederstrumpf commented Sep 4, 2025

Required for the integration example (plus to lesser extent also the shielding test) you provided for w3f/Grant-Milestone-Delivery#1276 - I don't see any other dependency specification for these examples in the repo.
Uses latest dep versions except for ethers - seems you're still using API of 5.x here, at least for integration example.

I'll note though that the shieldtx signature produced is still incorrect - spits out 64 in lieu of 65 bytes. Without looking into it too deeply, I guess you forgot to add the signature type prefix byte: https://spec.polkadot.network/id-extrinsics#defn-extrinsic-signature, or are using some fork/version that omits these (less likely: you're missing parity byte for ecdsa sig).

🛡️   Simulating EVM shield operation...
❌ Error: Error: createType(ExtrinsicSignature):: Expected input with 65 bytes (520 bits), found 64 bytes
    at createTypeUnsafe ([...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/types-create/cjs/create/type.js:54:22)
    at TypeRegistry.createTypeUnsafe ([...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/types/cjs/create/registry.js:230:52)
    at Type.sign ([...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/types/cjs/extrinsic/v4/ExtrinsicSignature.js:148:98)
    at Type.sign ([...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/types/cjs/extrinsic/v4/Extrinsic.js:74:24)
    at Submittable.sign ([...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/types/cjs/extrinsic/Extrinsic.js:298:20)
    at [...]/nullifier-prime-2521/frontier/examples/node_modules/@polkadot/api/cjs/submittable/createClass.js:152:26
    at doInnerSub ([...]/nullifier-prime-2521/frontier/examples/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31)
    at outerNext ([...]/nullifier-prime-2521/frontier/examples/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70)
    at OperatorSubscriber._this._next ([...]/nullifier-prime-2521/frontier/examples/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
    at Subscriber.next ([...]/nullifier-prime-2521/frontier/examples/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)

@ParsaTasbihgou
Copy link

These examples were deprecated and now entirely deleted. Please disregard them.

@ParsaTasbihgou ParsaTasbihgou merged commit 88848e3 into NP-Eng:Add-shielding Sep 12, 2025
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