Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thor-devkit

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thor-devkit - npm Package Compare versions

Comparing version 1.3.4-beta to 2.0.0

dist/address.d.ts

4

dist/abi.js

@@ -5,3 +5,3 @@ "use strict";

const abi_coder_1 = require("@vechain/ethers/utils/abi-coder");
const keccak_1 = require("./cry/keccak");
const keccak_1 = require("./keccak");
class Coder extends abi_coder_1.AbiCoder {

@@ -213,2 +213,2 @@ constructor() {

})(abi = exports.abi || (exports.abi = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FiaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrREFBK0Y7QUFDL0YseUNBQXdDO0FBRXhDLE1BQU0sS0FBTSxTQUFRLG9CQUFRO0lBQ3hCO1FBQ0ksS0FBSyxDQUFDLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxFQUFFO1lBQ2xCLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsSUFBSSxPQUFPLEtBQUssS0FBSyxRQUFRLENBQUM7Z0JBQzVFLEtBQUssQ0FBQyxXQUFXLEtBQUssV0FBVyxFQUFFO2dCQUNuQyxPQUFPLEtBQUssQ0FBQyxRQUFRLEVBQUUsQ0FBQTthQUMxQjtZQUNELE9BQU8sS0FBSyxDQUFBO1FBQ2hCLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQztJQUVNLE1BQU0sQ0FBQyxLQUEyQyxFQUFFLE1BQWE7UUFDcEUsSUFBSTtZQUNBLE9B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DO0tBQ0o7SUFsRlksU0FBSyxRQWtGakIsQ0FBQTtJQW1CRCxTQUFTLGFBQWEsQ0FBQyxJQUFZO1FBQy9CLE9BQU8sSUFBSSxLQUFLLE9BQU8sSUFBSSxJQUFJLEtBQUssUUFBUSxJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDdkUsQ0FBQztBQUNMLENBQUMsRUFqTmdCLEdBQUcsR0FBSCxXQUFHLEtBQUgsV0FBRyxRQWlObkIifQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bloom = void 0;
const blake2b_1 = require("./cry/blake2b");
const blake2b_1 = require("./blake2b");
/**

@@ -68,2 +68,2 @@ * 2048 bits Bloom filter

Bloom.BITS_LENGTH = 2048;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYmxvb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQTBDO0FBRTFDOztHQUVHO0FBQ0gsTUFBYSxLQUFLO0lBZWQ7Ozs7T0FJRztJQUNILFlBQVksQ0FBUyxFQUFFLElBQWE7UUFDaEMsSUFBSSxJQUFJLEVBQUU7WUFDTixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQTtTQUNuQjthQUFNO1lBQ0gsSUFBSSxDQUFDLElBQUksR0FBRyxNQUFNLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxXQUFXLEdBQUcsQ0FBQyxDQUFDLENBQUE7U0FDbEQ7UUFDRCxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQTtJQUNkLENBQUM7SUFyQkQsbUVBQW1FO0lBQzVELE1BQU0sQ0FBQyxTQUFTLENBQUMsU0FBaUI7UUFDckMsTUFBTSxDQUFDLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyx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xVQUFVLENBQUMsSUFBWSxFQUFFLEVBQTJDO1FBQ3hFLE1BQU0sSUFBSSxHQUFHLG9CQUFVLENBQUMsSUFBSSxDQUFDLENBQUE7UUFDN0IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7WUFDN0Isc0NBQXNDO1lBQ3RDLE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQTtZQUNwRSxzQ0FBc0M7WUFDdEMsTUFBTSxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFBO1lBQ3hCLElBQUksQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLEVBQUU7Z0JBQzdCLE9BQU8sS0FBSyxDQUFBO2FBQ2Y7U0FDSjtRQUNELE9BQU8sSUFBSSxDQUFBO0lBQ2YsQ0FBQzs7QUFoRUwsc0JBaUVDO0FBaEVHLCtCQUErQjtBQUNSLFdBQUssR0FBRyxFQUFFLENBQUE7QUFDakMsaUJBQWlCO0FBQ00saUJBQVcsR0FBRyxJQUFJLENBQUEifQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Certificate = void 0;
const address_1 = require("./cry/address");
const blake2b_1 = require("./cry/blake2b");
const secp256k1_1 = require("./cry/secp256k1");
const address_1 = require("./address");
const blake2b_1 = require("./blake2b");
const secp256k1_1 = require("./secp256k1");
const fastJsonStableStringify = require('fast-json-stable-stringify');

@@ -36,3 +36,3 @@ var Certificate;

const pubKey = secp256k1_1.secp256k1.recover(signingHash, Buffer.from(signature.slice(2), 'hex'));
if ('0x' + address_1.publicKeyToAddress(pubKey).toString('hex') !== safeToLowerCase(cert.signer)) {
if (address_1.address.fromPublicKey(pubKey) !== safeToLowerCase(cert.signer)) {
throw new Error('signature does not match with signer');

@@ -43,2 +43,2 @@ }

})(Certificate = exports.Certificate || (exports.Certificate = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VydGlmaWNhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY2VydGlmaWNhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQWtEO0FBQ2xELDJDQUEwQztBQUMxQywrQ0FBMkM7QUFFM0MsTUFBTSx1QkFBdUIsR0FBRyxPQUFPLENBQUMsNEJBQTRCLENBQUMsQ0FBQTtBQW1CckUsSUFBaUIsV0FBVyxDQXNDM0I7QUF0Q0QsV0FBaUIsV0FBVztJQUN4QixTQUFTLGVBQWUsQ0FBQyxHQUFXO1FBQ2hDLE9BQU8sT0FBTyxHQUFHLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsV0FBVyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQTtJQUM1RCxDQUFDO0lBQ0Q7OztPQUdHO0lBQ0gsU0FBZ0IsTUFBTSxDQUFDLElBQWlCO1FBQ3BDLE9BQU8sdUJBQXVCLGlDQUN2QixJQUFJLEtBQ1AsTUFBTSxFQUFFLGVBQWUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLEVBQ3BDLFNBQVMsRUFBRSxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMs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U0FBUyxFQUFFO1lBQ2pCLE1BQU0sSUFBSSxLQUFLLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtTQUN2QztRQUNELE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUE7UUFDaEMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxTQUFTLENBQUMsTUFBTSxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDakUsTUFBTSxJQUFJLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxDQUFBO1NBQ3ZDO1FBRUQsTUFBTSxPQUFPLEdBQUcsTUFBTSxpQ0FBTSxJQUFJLEtBQUUsU0FBUyxFQUFFLFNBQVMsSUFBRyxDQUFBO1FBQ3pELE1BQU0sV0FBVyxHQUFHLG9CQUFVLENBQUMsT0FBTyxDQUFDLENBQUE7UUFFdkMsTUFBTSxNQUFNLEdBQUcscUJBQVMsQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFBO1FBRXJGLElBQUksaUJBQU8sQ0FBQyxhQUFhLENBQUMsTUFBTSxDQUFDLEtBQUssZUFBZSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUNoRSxNQUFNLElBQUksS0FBSyxDQUFDLHNDQUFzQyxDQUFDLENBQUE7U0FDMUQ7SUFDTCxDQUFDO0lBakJlLGtCQUFNLFNBaUJyQixDQUFBO0FBQ0wsQ0FBQyxFQXRDZ0IsV0FBVyxHQUFYLG1CQUFXLEtBQVgsbUJBQVcsUUFzQzNCIn0=

@@ -6,3 +6,8 @@ export * from './abi';

export * from './certificate';
import * as cry from './cry';
export { cry };
export * from './address';
export * from './blake2b';
export * from './secp256k1';
export * from './keccak';
export * from './keystore';
export * from './mnemonic';
export * from './hdnode';

@@ -13,3 +13,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.cry = void 0;
__exportStar(require("./abi"), exports);

@@ -20,4 +19,10 @@ __exportStar(require("./transaction"), exports);

__exportStar(require("./certificate"), exports);
const cry = require("./cry");
exports.cry = cry;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFxQjtBQUNyQixnREFBNkI7QUFDN0Isd0NBQXFCO0FBQ3JCLDBDQUF1QjtBQUN2QixnREFBNkI7QUFFN0IsNkJBQTRCO0FBQ25CLGtCQUFHIn0=
__exportStar(require("./address"), exports);
// crypto
__exportStar(require("./blake2b"), exports);
__exportStar(require("./secp256k1"), exports);
__exportStar(require("./keccak"), exports);
__exportStar(require("./keystore"), exports);
__exportStar(require("./mnemonic"), exports);
__exportStar(require("./hdnode"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXFCO0FBQ3JCLGdEQUE2QjtBQUM3Qix3Q0FBcUI7QUFDckIsMENBQXVCO0FBQ3ZCLGdEQUE2QjtBQUM3Qiw0Q0FBeUI7QUFFekIsU0FBUztBQUNULDRDQUF5QjtBQUN6Qiw4Q0FBMkI7QUFDM0IsMkNBQXdCO0FBQ3hCLDZDQUEwQjtBQUMxQiw2Q0FBMEI7QUFDMUIsMkNBQXdCIn0=
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Transaction = void 0;
const address_1 = require("./cry/address");
const blake2b_1 = require("./cry/blake2b");
const secp256k1_1 = require("./cry/secp256k1");
const address_1 = require("./address");
const blake2b_1 = require("./blake2b");
const rlp_1 = require("./rlp");
const secp256k1_1 = require("./secp256k1");
/** Transaction class defines VeChainThor's multi-clause transaction */

@@ -66,4 +66,4 @@ class Transaction {

const pubKey = secp256k1_1.secp256k1.recover(signingHash, this.signature.slice(0, 65));
const origin = address_1.publicKeyToAddress(pubKey);
return '0x' + blake2b_1.blake2b256(signingHash, origin).toString('hex');
const origin = address_1.address.fromPublicKey(pubKey);
return '0x' + blake2b_1.blake2b256(signingHash, Buffer.from(origin.slice(2), 'hex')).toString('hex');
}

@@ -99,3 +99,3 @@ catch (_a) {

const pubKey = secp256k1_1.secp256k1.recover(signingHash, this.signature.slice(0, 65));
return '0x' + address_1.publicKeyToAddress(pubKey).toString('hex');
return address_1.address.fromPublicKey(pubKey);
}

@@ -121,3 +121,3 @@ catch (_a) {

const pubKey = secp256k1_1.secp256k1.recover(signingHash, this.signature.slice(65));
return '0x' + address_1.publicKeyToAddress(pubKey).toString('hex');
return address_1.address.fromPublicKey(pubKey);
}

@@ -233,2 +233,2 @@ catch (_a) {

const featuresKind = new rlp_1.RLP.NumericKind(4);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHJhbnNhY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQWtEO0FBQ2xELDJDQUEwQztBQUMxQywrQ0FBMkM7QUFDM0MsK0JBQTJCO0FBRTNCLHVFQUF1RTtBQUN2RSxNQUFhLFdBQVc7SUFnRHBCOzs7T0FHRztJQUNILFlBQVksSUFBc0I7UUFDOUIsSUFBSSxDQUFDLElBQUkscUJBQVEsSUFBSSxDQUFFLENBQUE7SUFDM0IsQ0FBQztJQW5ERDs7O09BR0c7SU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BQyxDQUFDLENBQUMsRUFBRTtRQUM3QyxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsSUFBSSxFQUFFLElBQUksU0FBRyxDQUFDLHFCQUFxQixDQUFDLEVBQUUsQ0FBQyxFQUFFO1FBQzlELEVBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsSUFBSSxTQUFHLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxFQUFFO1FBQy9DLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsRUFBRSxJQUFJLEVBQUUsSUFBSSxTQUFHLENBQUMsVUFBVSxFQUFFLEVBQUUsRUFBRTtLQUM3RDtDQUNKLENBQUMsQ0FBQTtBQUVGLE1BQU0sS0FBSyxHQUFHLElBQUksU0FBRyxDQUFDO0lBQ2xCLElBQUksRUFBRSxJQUFJO0lBQ1YsSUFBSSxFQUFFLENBQUMsR0FBSSxhQUFhLENBQUMsT0FBTyxDQUFDLElBQXNCLEVBQUUsRUFBRSxJQUFJLEVBQUUsV0FBVyxFQUFFLElBQUksRUFBRSxJQUFJLFNBQUcsQ0FBQyxVQUFVLEVBQUUsRUFBRSxDQUFDO0NBQzlHLENBQUMsQ0FBQTtBQUVGLE1BQU0sWUFBWSxHQUFHLElBQUksU0FBRyxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQSJ9
{
"name": "thor-devkit",
"version": "1.3.4-beta",
"version": "2.0.0",
"description": "Typescript library to aid DApp development on VeChain Thor",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "esm/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
"dist",
"esm"
],
"scripts": {
"build": "rm -rf dist/ && tsc -m esnext -d -p . && renamer --find js --replace mjs 'dist/**' && tsc -p .",
"build": "rm -rf dist/ esm/ && tsc -d -p . && tsc --module esnext --outDir 'esm' -p .",
"lint": "tslint -p .",

@@ -71,3 +72,2 @@ "prepack": "npm run build",

"nyc": "^14.1.1",
"renamer": "^2.0.1",
"ts-node": "^8.3.0",

@@ -74,0 +74,0 @@ "tslint": "^5.11.0",

@@ -5,4 +5,2 @@ # Thor DevKit

[![Gitter](https://badges.gitter.im/vechain/thor.svg)](https://gitter.im/vechain/thor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![NPM Version](https://badge.fury.io/js/thor-devkit.svg)](https://www.npmjs.com/package/thor-devkit)

@@ -15,3 +13,3 @@ [![Build Status](https://travis-ci.org/vechain/thor-devkit.js.svg)](https://travis-ci.org/vechain/thor-devkit.js)

```bash
npm i --save thor-devkit
npm i thor-devkit
```

@@ -21,117 +19,9 @@

import all components or some of them
### Transaction
```javascript
import {
cry,
abi,
RLP,
Transaction,
Certificate,
Bloom
} from 'thor-devkit'
```
to build and sign a transaction
### Crypto methods
they are under `cry` namespace
#### Hashing
```javascript
let hash = cry.blake2b256('hello world')
console.log(hash.toString('hex'))
// 256c83b297114d201b30179f3f0ef0cace9783622da5974326b436178aeef610
import { Transaction, secp256k1 } from 'thor-devkit'
hash = cry.keccak256('hello world')
console.log(hash.toString('hex'))
// 47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad
```
#### Secp256k1
```javascript
let privKey = cry.secp256k1.generatePrivateKey()
let pubKey = cry.secp256k1.derivePublicKey(privKey)
let addr = cry.publicKeyToAddress(pubKey)
let signature = cry.secp256k1.sign(cry.keccak256('hello world'), privKey)
let recoveredPubKey = cry.secp256k1.recover(cry.keccak256('hello world'), signature)
```
#### Mnemonic & Keystore
```javascript
// generate BIP39 mnemonic words, default to 12 words(128bit strength)
let words = cry.mnemonic.generate()
// derive private key from mnemonic words according to BIP32, using the path `m/44'/818'/0'/0`.
// defined for VET at https://github.com/satoshilabs/slips/blob/master/slip-0044.md
let privateKey = cry.mnemonic.derivePrivateKey(words)
// in recovery process, validation is recommended
let ok = cry.mnemonic.validate(words)
// encrypt/decrypt private key using Ethereum's keystore scheme
let keystore = await cry.Keystore.encrypt(privateKey, 'your password')
// throw for wrong password
let recoveredPrivateKey = await cry.Keystore.decrypt(keystore, 'your password')
// roughly check keystore format
ok = cry.Keystore.wellFormed(keystore)
// create BIP32 HD node from mnemonic words
let hdnode = cry.HDNode.fromMnemonic(words)
// derive 5 child private keys
for (let i = 0; i < 5; i++) {
let child = hdnode.derive(i)
// get child private key
// child.privateKey
}
// or create HD node from xpub
const pub = Buffer.from('04dc40b4324626eb393dbf77b6930e915dcca6297b42508adb743674a8ad5c69a046010f801a62cb945a6cb137a050cefaba0572429fc4afc57df825bfca2f219a', 'hex')
const chainCode = Buffer.from('105da5578eb3228655a8abe70bf4c317e525c7f7bb333634f5b7d1f70e111a33', 'hex')
hdnode = cry.HDNode.fromPublicKey(pub, chainCode)
// derive 5 child public keys
for (let i = 0; i < 5; i++) {
let child = hdnode.derive(i)
// get child public key
// child.publicKey
}
```
### RLP
```javascript
// define the profile for tx clause structure
let profile: RLP.Profile = {
name: 'clause',
kind: [
{ name: 'to', kind: new RLP.NullableFixedBlobKind(20) },
{ name: 'value', kind: new RLP.NumericKind(32) },
{ name: 'data', kind: new RLP.BlobKind() }
]
}
let clause = {
to: '0x7567d83b7b8d80addcb281a71d54fc7b3364ffed',
value: 10,
data: '0x'
}
let rlp = new RLP(profile)
let data = rlp.encode(clause)
console.log(data.toString('hex'))
// d7947567d83b7b8d80addcb281a71d54fc7b3364ffed0a80
let obj = rlp.decode(data)
// `obj` should be identical to `clause`
```
### Transaction
```javascript
let clauses = [{

@@ -161,3 +51,3 @@ to: '0x7567d83b7b8d80addcb281a71d54fc7b3364ffed',

let signingHash = tx.signingHash()
tx.signature = cry.secp256k1.sign(signingHash, /* your private key */)
tx.signature = secp256k1.sign(signingHash, /* your private key */)

@@ -170,5 +60,7 @@ let raw = tx.encode()

supports client side self-signed certificate
client side self-signed certificate
```javascript
import { Certificate, secp256k1, blake2b256 } from 'thor-devkit'
let cert: Certificate = {

@@ -186,3 +78,3 @@ purpose: 'identification',

let jsonStr = Certificate.encode(cert)
let signature = secp256k1.sign(cry.blake2b256(jsonStr), <<<private-key>>>)
let signature = secp256k1.sign(blake2b256(jsonStr), <<<private-key>>>)

@@ -194,3 +86,3 @@ cert.signature = '0x' + signature.toString('hex')

// certificate id
let id = '0x' + cry.blake2b256(Certificate.encode(cert)).toString('hex')
let id = '0x' + blake2b256(Certificate.encode(cert)).toString('hex')
```

@@ -201,2 +93,4 @@

```javascript
import { abi } from 'thor-devkit'
let fn = new abi.Function({

@@ -233,2 +127,108 @@ "constant": false,

### RLP
```javascript
import { RLP } from 'thor-devkit'
// define the profile for tx clause structure
let profile: RLP.Profile = {
name: 'clause',
kind: [
{ name: 'to', kind: new RLP.NullableFixedBlobKind(20) },
{ name: 'value', kind: new RLP.NumericKind(32) },
{ name: 'data', kind: new RLP.BlobKind() }
]
}
let clause = {
to: '0x7567d83b7b8d80addcb281a71d54fc7b3364ffed',
value: 10,
data: '0x'
}
let rlp = new RLP(profile)
let data = rlp.encode(clause)
console.log(data.toString('hex'))
// d7947567d83b7b8d80addcb281a71d54fc7b3364ffed0a80
let obj = rlp.decode(data)
// `obj` should be identical to `clause`
```
### Crypto methods
#### Hash functions
```javascript
import { blake2b256, keccak256 } from 'thor-devkit'
let hash = blake2b256('hello world')
console.log(hash.toString('hex'))
// 256c83b297114d201b30179f3f0ef0cace9783622da5974326b436178aeef610
hash = keccak256('hello world')
console.log(hash.toString('hex'))
// 47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad
```
#### Secp256k1
```javascript
import { secp256k1, keccak256, address } from 'thor-devkit'
let privKey = secp256k1.generatePrivateKey()
let pubKey = secp256k1.derivePublicKey(privKey)
let addr = address.fromPublicKey(pubKey)
let signature = secp256k1.sign(keccak256('hello world'), privKey)
let recoveredPubKey = secp256k1.recover(keccak256('hello world'), signature)
```
#### Mnemonic & Keystore
```javascript
import { mnemonic, Keystore, HDNode } from 'thor-devkit'
// generate BIP39 mnemonic words, default to 12 words(128bit strength)
let words = mnemonic.generate()
// derive private key from mnemonic words according to BIP32, using the path `m/44'/818'/0'/0`.
// defined for VET at https://github.com/satoshilabs/slips/blob/master/slip-0044.md
let privateKey = mnemonic.derivePrivateKey(words)
// in recovery process, validation is recommended
let ok = mnemonic.validate(words)
// encrypt/decrypt private key using Ethereum's keystore scheme
let keystore = await Keystore.encrypt(privateKey, 'your password')
// throw for wrong password
let recoveredPrivateKey = await Keystore.decrypt(keystore, 'your password')
// roughly check keystore format
ok = Keystore.wellFormed(keystore)
// create BIP32 HD node from mnemonic words
let hdnode = HDNode.fromMnemonic(words)
// derive 5 child private keys
for (let i = 0; i < 5; i++) {
let child = hdnode.derive(i)
// get child private key
// child.privateKey
}
// or create HD node from xpub
const pub = Buffer.from('04dc40b4324626eb393dbf77b6930e915dcca6297b42508adb743674a8ad5c69a046010f801a62cb945a6cb137a050cefaba0572429fc4afc57df825bfca2f219a', 'hex')
const chainCode = Buffer.from('105da5578eb3228655a8abe70bf4c317e525c7f7bb333634f5b7d1f70e111a33', 'hex')
hdnode = HDNode.fromPublicKey(pub, chainCode)
// derive 5 child public keys
for (let i = 0; i < 5; i++) {
let child = hdnode.derive(i)
// get child public key
// child.publicKey
}
```
## License

@@ -235,0 +235,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc