Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

elliptic .toBuffer() not browser compatible #689

@bradlhart

Description

@bradlhart

Version of EOSJS
v21-rc releases and edge release

Describe the bug
bn.js has a method .toBuffer that does not work in browsers. It is not possible to convert private keys from elliptic as a result.

To Reproduce
Steps to reproduce the behavior:

  1. Convert an Elliptic Private Key to eosjs standard

Expected behavior
The private key is converted correctly.

Desktop (please complete the following information):

  • OS: macOS
  • Browser chrome
  • Version edge

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions