Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async signOnly(envelop: Envelop): Promise {
const transport = await window.transport.create();
transport.setDebugMode(true);
const app = new IoTeXApp(transport);
const signed = await app.sign([44, 304, 0, 0, 0], envelop.bytestream());
await transport.close();
return new SealedEnvelop(envelop, this.publicKey, signed.signature);
}