Skip to content

Warning: "secp256k1 unavailable, reverting to browser version" #86

@honigkuchenbaer

Description

@honigkuchenbaer

How can we install this library that it will use a native compilation for secp256k1 instead of the slow browser version?

I found the root cause of this warning at the index.js of eccrypto:

try {
  var secp256k1 = require("secp256k1");
  var ecdh = require("./build/Release/ecdh");
} catch (e) {
  if (process.env.ECCRYPTO_NO_FALLBACK) {
    throw e;
  } else {
    console.info('secp256k1 unavailable, reverting to browser version');
    return (module.exports = require("./browser"));
  }
}

Obviously, one should do something that will build some stuff at a subfolder called "./build/Release". I could not find any further explanation.

How can we achieve that? What needs to be done?

Metadata

Metadata

Assignees

No one assigned

    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