diff --git a/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.spec.ts b/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.spec.ts index e5224ad4..5cc8e30c 100644 --- a/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.spec.ts +++ b/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.spec.ts @@ -35,7 +35,7 @@ describe('Curve25519', () => { }) expect(sharedSecretResult.value).toBe( - 'e9278143a272e9cce596335d0f29e0194305a2a00b57501bc4c21a432d5c2b49264231657e186b6e70a13da4bbf23be6', + 'e9278143a272e9cce596335d0f29e0194305a2a00b57501bc4c21a432d5c2b49', ) }) }) diff --git a/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.ts b/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.ts index 8a4071d8..407704a2 100644 --- a/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.ts +++ b/packages/dapp-toolkit/src/modules/wallet-request/crypto/curve25519.ts @@ -40,7 +40,7 @@ export const Curve25519: KeyPairProvider = ( sharedSecret, Buffer.from(dAppDefinitionAddress, 'utf-8'), 'RCfM', - 48, + 32, ) return ok(toHex(derived)) } catch (error) {