javascript-sdk
javascript-sdk copied to clipboard
client should be split into two pieces
Right now client has methods that rely on this.privateKey and others that take parameters in arguments (such as checkAddress(address)). These separate concerns should be separated out into two classes.
class Signer { } class BncClient {} , remove setPrivateKey in BncClient
@Johnsavadkuhi putting it in a separate class is essentially the same thing in JS (security wise).