Cryptonomic/ConseilJS

Issue with functions

Closed this issue · 1 comments

I'm working on recreating the whole ConseilJS package in the dart called Tezster_dart.
I have already had the 1st version deployed. I got stuck at this point.
image

I could not understand the difference between those lines.

  1. r.greater(0) and r > 0
  2. r.and(127) and r & 127
  3. r.shiftRight(7) and r >> 7

I could not find the alternative, can you guide me through this problem.

export function twoByteHex(n: number) : string {

Hi @Rakshak1344, this function handles large numbers in javascript with bignumber.js and smaller numbers natively in javascript.