src/raze/client_base.js
, which is mostly self-explained with rich comments. We list 4 main APIs that are most important here:ClientBase.register(secret)
secret
and the algorithm will generate a Raze public/private key pair. The Raze public key will be sent in a transaction to register an account in the contract.ClientBase.mint(value)
ClientBase.redeem(value)
ClientBase.transfer(receiver, value, decoys)
valid
transfer operation.