Skip to content

Commit 49d1f69

Browse files
committed
Update for encryption
1 parent 97f890f commit 49d1f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/railgun/wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ function deriveEncryptionKey(address: string): string {
161161
const hash = ethers.keccak256(
162162
ethers.toUtf8Bytes(`liquyn_railgun_encryption_${address.toLowerCase()}`)
163163
);
164-
// Use 32 bytes as hex string
165-
return hash;
164+
// Remove "0x" prefix - SDK expects 64 hex chars (32 bytes)
165+
return hash.slice(2);
166166
}
167167

168168
/**

0 commit comments

Comments
 (0)