diff --git a/contracts/test/signing.ts b/contracts/test/signing.ts index 5a9e24e3..844134c7 100644 --- a/contracts/test/signing.ts +++ b/contracts/test/signing.ts @@ -243,8 +243,11 @@ describe('Signing', function () { const result = await se.testVerify(6, sigSigner, CONTEXT, msg, sig); expect(result).eq(true); - // Test key generation + // Test key generation on-chian matches JS implementation const generatedKey = await se.testKeygen(6, secretSeed); + expect(hexlify(getBytes(generatedKey.secretKey).slice(0,64))).eq(hexlify(secretKey)); + expect(generatedKey.publicKey).eq(hexlify(publicKey)); + // 64 byte secret, appended with 32 byte public key expect(getBytes(generatedKey.publicKey).length).eq(32); expect(getBytes(generatedKey.secretKey).length).eq(96);