on master help sign in
wallet-gen: rename getTicketBitSize helper
commitb066979cda6e8a88ca3576a7567640e605d820d3 authorLiam Fitzgerald <liam@urizen.co> dateWed 1 Apr 2020, 04:53 (7 years ago) parent3bba937
1 file changed+3−3
src/lib/walletgen.js+3−3
src/lib/walletgen.js+3−3
@@ -16,7 +16,7 @@ import {
1616
1717const SEED_LENGTH_BYTES = SEED_ENTROPY_BITS / 8;
1818
19−const getEntropyBits = point =>
19+const getTicketBitSize = point =>
2020 point < MIN_STAR
2121 ? GALAXY_ENTROPY_BITS
2222 : point < MIN_PLANET
@@ -25,7 +25,7 @@ const getEntropyBits = point =>
2525
2626// returns a promise for a ticket string
2727export const makeTicket = point => {
28− const bits = getEntropyBits(point);
28+ const bits = getTicketBitSize(point);
2929
3030 const bytes = bits / 8;
3131 const some = new Uint8Array(bytes);
@@ -48,7 +48,7 @@ export const makeTicket = point => {
4848};
4949
5050export const makeDeterministicTicket = (point, seed) => {
51− const bits = getEntropyBits(point);
51+ const bits = getTicketBitSize(point);
5252
5353 const bytes = bits / 8;
5454