Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 42482

BitcoinJS (bitcoinjs-lib) is JavaScript Bitcoin library.

0 votes
1 answer
480 views

How to convert a keyPair to JSON and back?

Using bitcoinjs you can generate a keyPair with the following code: var keyPair = bitcoin.ECPair.makeRandom(); How can I stringify this object to JSON and then parse it back to an object? …
user1929274's user avatar
3 votes
1 answer
698 views

Understanding signing messages with bitcoinjs-lib

I'm trying to understand what a specific line of code does when signing a message using bitcoinjs-lib. … Here's the code: var bitcoin = require('bitcoinjs-lib') var bitcoinMessage = require('bitcoinjs-message') var keyPair = bitcoin.ECPair.makeRandom(); //private key var privateKey = keyPair.toWIF(); // …
user1929274's user avatar