{"repo":"bitshares/bitsharesjs","free":true,"listed":false,"github":"https://github.com/bitshares/bitsharesjs","clone":"git clone https://github.com/bitshares/bitsharesjs.git","description":"JavaScript tools for BitShares Encryption and Serialization","language":"JavaScript","stars":96,"topics":["bitshares","js-library","blockchain","javascript","reactjs"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"BitsharesJS (bitsharesjs) Pure JavaScript Bitshares library for node.js and browsers. Can be used to construct, sign and broadcast transactions in JavaScript, and to easily obtain data from the blockchain via public apis. Most of this code was written by jcalfee, my work was mostly just repackaging to a discrete npm package. Setup This library can be obtained through npm: Usage Three sub-libraries are included: ECC , Chain and Serializer . Generally only the ECC and Chain libraries need to be used directly. Chain This library provides utility functions to handle blockchain state as well as a login class that can be used for simple login functionality using a specific key seed. Login The login class uses the following format for keys: Using this seed, private keys are generated for either the default roles active, owner, memo , or as specified. A minimum password length of 12 characters is enforced, but an even longer password is recommended. Three methods are provided: The auths object should contain the auth arrays from the account object. An example is this: If checkKeys is successful, you can use signTransaction to sign a TransactionBuilder transaction using the private keys for that account. State container The Chain library contains a complete state container called the ChainStore. The ChainStore will automatically configure the set subscribe callback and handle any incoming state changes appropriately. It uses Immutable.js for storing the state, so all objects are retur","default_branch":null,"files":null,"tree":[],"storefront":"/r/bitshares","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bitshares/bitsharesjs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}