aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialization/utils.ts')
-rw-r--r--src/serialization/utils.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/serialization/utils.ts b/src/serialization/utils.ts
deleted file mode 100644
index c94f199..0000000
--- a/src/serialization/utils.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import * as Base from 'lib/base'
-
-export function encodeNumber(n: bigint, length: number): string {
- return Base.encode(n, Base.b2).padStart(length, '0')
-}
-
-export function mod(a: number, b: number): number {
- return ((a % b) + b) % b
-}