How to use the iotex-antenna/lib/action/envelop.SealedEnvelop function in iotex-antenna

To help you get started, we’ve selected a few iotex-antenna examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iotexproject / iotex-explorer / src / shared / wallet / get-antenna.ts View on Github external
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);
  }