bitpay / node-bitpay-client

A Node.js module and command line client for interacting with BitPay's Cryptographically Secure API
102 stars 95 forks source link

prevent overwriting of existing keys after multiple executions. #3

Closed martindale closed 10 years ago

martindale commented 10 years ago

I destroyed my old key after running generate-sin.js without realizing it would force-write over the file (I was able to recover it), so I wrote this quick check to make sure SINs are preserved.

tacticalchihuahua commented 10 years ago

good thinking