Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 288 Bytes

keystore.md

File metadata and controls

18 lines (10 loc) · 288 Bytes

Joinchain-js keystore Usage

将私钥加密为keystore

var pwd = "123456";
var keystoreObj = Joinchain.Keystore.encrypt(privateKey,pwd);

将keystore 转为私钥key

var keystoreToPrivateKey = Joinchain.Keystore.decrypt(keystoreObj,pwd);