daviddias / webrtc-explorer

:earth_africa: P2P Network Routing Overlay designed for the Web platform (browsers)
MIT License
288 stars 32 forks source link

BigInt #22

Open jimmywarting opened 5 years ago

jimmywarting commented 5 years ago

Ids have 48 bits (so that is a multiple of 4 (for hex notation) and doesn't require importing a big-num lib to handle over 53 bits operations)

it can be accomplish with new BigInt(num) and also be subfixed with n like 10n maybe something to consider?