Ruby lib for Smartcoin