git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit cd54c9d2a59c3fbfe2477fd39f5493ec90eebb6b

U256: implement isZero

Alex Beregszaszi committed on 8/28/2016, 11:54:31 AM
Parent: fad5165be334ea1479fd4d88bd0fa7779765140f

Files changed

u256.jschanged
u256.jsView
@@ -34,8 +34,12 @@
3434 }
3535 return this._value.toBuffer('be', width || 32)
3636 }
3737
38+ isZero () {
39+ return this._value.isZero()
40+ }
41+
3842 sub (u256) {
3943 return new U256(this._value.sub(u256._value))
4044 }
4145

Built with git-ssb-web