jingtum-base-lib
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "jingtum-base-lib", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "jingtum base lib for wallet and so on.", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
], | ||
"author": "landoyjx", | ||
"author": "landoyjx,wudan_npm", | ||
"license": "Apache-2.0", | ||
@@ -43,3 +43,6 @@ "dependencies": { | ||
"webpack": "^1.13.3" | ||
}, | ||
"directories": { | ||
"test": "test" | ||
} | ||
} |
@@ -29,3 +29,9 @@ #The Jingtum Base JavaScript Library | ||
Add basic type for validation and incoming network operations | ||
var Wallet = require('jingtum-base-lib').Wallet; | ||
var wallet1 = Wallet.generate();//get a wallet | ||
var wallet2 = Wallet.fromSecret('saai2npGJD7GKh9xLxARfZXkkc8Bf');//get a wallet by secret | ||
var ret = Wallet.isValidAddress('j98a2BFmVQDSCvQEQEAF9tE8JWpvLqRuUM');// whether the address is valid | ||
var ret = Wallet.isValidSecret('saai2npGJD7GKh9xLxARfZXk kc8Bf');// whether the secret is valid | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37
35513
19