simple-js-ecdsa
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "simple-js-ecdsa", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "easy and light weight ecdsa implementation", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -5,4 +5,9 @@ # simple-js-ecdsa | ||
opening a wallet using a private key | ||
creating a new wallet | ||
``` | ||
let wallet = Wallet.new() | ||
``` | ||
opening an existing wallet using a private key | ||
``` | ||
Wallet.fromKey(<private number>) | ||
@@ -26,4 +31,14 @@ ``` | ||
signing a message | ||
``` | ||
const signature = wallet.sign(message) | ||
``` | ||
verify a signature | ||
``` | ||
wallet.verify(message, signature) | ||
``` | ||
# contribute | ||
bitcoin address: 1KKiniL7QnMPZZLjgGB2Kq1d7zsjUr6TnS |
36954
42