diff --git a/src/sdk/publicKey.test.ts b/src/sdk/publicKey.test.ts index 42599cf..179a029 100644 --- a/src/sdk/publicKey.test.ts +++ b/src/sdk/publicKey.test.ts @@ -31,7 +31,7 @@ describe('token', () => { verifyingContract: '0xccc', }); expect(eip712.domain.chainId).toBe(9000); - expect(eip712.domain.name).toBe('Reencryption'); + expect(eip712.domain.name).toBe('Authorization token'); expect(eip712.domain.version).toBe('1'); expect(eip712.message.publicKey).toBe( `0x${toHexString(keypair.publicKey)}`, diff --git a/src/sdk/publicKey.ts b/src/sdk/publicKey.ts index d11b2af..8d19634 100644 --- a/src/sdk/publicKey.ts +++ b/src/sdk/publicKey.ts @@ -56,7 +56,7 @@ export const generatePublicKey = ( primaryType: 'Reencrypt', domain: { // Give a user-friendly name to the specific contract you're signing for. - name: params.name || 'Reencryption', + name: params.name || 'Authorization token', // This identifies the latest version. version: params.version || '1', // This defines the network, in this case, Mainnet.