We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9059e81 commit 6417bd4Copy full SHA for 6417bd4
src/services/railgun/operations.ts
@@ -233,8 +233,11 @@ export async function executeShield(
233
message: 'Please sign the shield message...',
234
});
235
236
- // Sign the shield message
237
- const shieldPrivateKey = await signer.signMessage(shieldSignatureMessage);
+ // Sign the shield message and derive a 32-byte private key
+ const signature = await signer.signMessage(shieldSignatureMessage);
238
+ // Hash the signature to get exactly 32 bytes (64 hex chars without 0x)
239
+ // The SDK expects a hex string without "0x" prefix
240
+ const shieldPrivateKey = ethers.keccak256(signature).slice(2);
241
242
// Get gas estimate
243
const gasEstimate = await gasEstimateForShield(
0 commit comments