UNPKG

ripplelib

Version:

A JavaScript API for interacting with Ripple in Node.js and the browser

25 lines (18 loc) 617 B
'use strict'; var utils = require('./utils'); var extend = require('extend'); var UInt = require('./uint').UInt; // // UInt128 support // var UInt128 = extend(function () { this._value = NaN; }, UInt); UInt128.width = 16; UInt128.prototype = Object.create(extend({}, UInt.prototype)); UInt128.prototype.constructor = UInt128; var HEX_ZERO = UInt128.HEX_ZERO = '00000000000000000000000000000000'; var HEX_ONE = UInt128.HEX_ONE = '00000000000000000000000000000000'; UInt128.STR_ZERO = utils.hexToString(HEX_ZERO); UInt128.STR_ONE = utils.hexToString(HEX_ONE); exports.UInt128 = UInt128;