git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit ed7fedaaf934add17793bd10403532159cd34f21

U256: toBuffer should return LSB

Alex Beregszaszi committed on 8/16/2016, 10:29:12 PM
Parent: bbe2ea68bad053b972026a80be082800f11e9fb8

Files changed

u256.jschanged
u256.jsView
@@ -17,9 +17,9 @@
1717 return this._value.toString(radix)
1818 }
1919
2020 toBuffer () {
21- return this._value.toBuffer('be', 32)
21+ return this._value.toBuffer('le', 32)
2222 }
2323
2424 sub (u256) {
2525 return new U256(this._value.sub(u256._value))

Built with git-ssb-web