Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Uncompressed keys should not be created by default #91

@kleetus

Description

@kleetus
var bitcore = require('bitcore-lib');
var assert = require('assert');                                                                                                                                                                                   
var crypto = require('crypto');
var privateKey = bitcore.PrivateKey.fromBuffer(crypto.randomBytes(32));
assert(privateKey.toObject().compressed, 'key should be compressed but isn\'t');

https://github.com/bitpay/bitcore-lib/blob/master/lib/privatekey.js#L184

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions