Global

Methods

(async) bramblRequest(routeInfo, params, self) → {object}

General builder function for formatting API request
Source:
Parameters:
Name Type Description
routeInfo object call specific information
Name Type Description
route string the route where the request will be sent
method string the json-rpc method that will be triggered on the node
id string an identifier for tracking requests sent to the node
params object method specific parameter object
self object internal reference for accessing constructor data
Returns:
Type:
object
JSON response from the node

digestAndEncode(hash, encodingopt) → {string|object}

Create hash digest and encode
Source:
Parameters:
Name Type Attributes Description
hash object Hash object
encoding string <optional>
Desired output encoding. May be one of `hex`, `base64`, or `base58`. If none provided a `Buffer` is returned
Returns:
Type:
string | object
Blake2b-256 hash digest

hashFunc() → {function}

standard FastCryptographicHash in Bifrost
Source:
Returns:
Type:
function
Initialized hash function