README
Wookong Solo
Install
$ npm install --save wookong-solo
How to use
import { getPublicKey, signTransaction } from "wookong-solo"
(async () => {
const publicKey = await getPublicKey();
//=> EOS5HEWUdoeR3VLyYjBJ7M1pj6TP3DjZm9zn3SzNFtU52onwBMZr6
const response = await signTransaction(rawTxHex);
//=> OK
})()
Build with Electron
# Electron's version.
export npm_config_target=3.0.0
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install
API
Table of Contents
getPublicKey
Get Public Key
Examples
const publicKey = await getPublicKey();
//=> EOS5HEWUdoeR3VLyYjBJ7M1pj6TP3DjZm9zn3SzNFtU52onwBMZr6
Returns Promise<string> EOS Public Key
signTransaction
Sign Transaction
Parameters
rawTxHex
Buffer Raw Transaction Hex
Examples
const response = await signTransaction(rawTxHex);
//=> response
Returns Promise<string> EOS Public Key
getAppConfiguration
Get App Configuration
Examples
await getAppConfiguration();
Returns Object Configuration