tezos-sign
English | 简体中文
Offline sign tool for tezos divided from eztz
Directory
.
├── demo use demo
├── dist build output dir
├── doc docs
├── src source code
├── test unit test
├── CHANGELOG.md change log
└── TODO.md todo
Usage Guide
Install by npm:
$ npm install --save tezos-sign
For node:
var TezosSign = ;
For webpack:
;
Demo
; // sign transaction// opbytes is operation bytes// privateKey is your account private keyconst siged = TezosSign; // generate transaction hash// sopbytes = signed.sbytesconst hash = TezosSign; // generate keysconst keys = TezosSign;/*keys { mnemonic: 'memory key words', passphrase: 'yugasun', sk: 'private key', pk: 'public key', pkh: 'address',}*/ // generate keys without seedconst keysNoSeed = TezosSign;/*keysNoSeed { sk: 'private key', pk: 'public key', pkh: 'address',}*/ // extract keysconst extractKeys = TezosSign;/*extractKeys { sk: 'private key', pk: 'public key', pkh: 'address',}*/
Develop
Install dependencies:
$ npm install
Build:
$ npm run build
Unit test:
$ npm test
Modify version in package.json
, README.md
, and release it
$ npm run release
Npm publish:
$ npm publish