cryptography-bigint
BigInt: an arbitrary-precision integer.
The module is currently experimental and is subject to API/ABI changes
On current moment BigInt provides only simple operations:
conversion between primitive number types, String and ByteArray (two's complement)
comparing BigInt with itself and other number types
serialization via kotlinx.serialization
Depending on target/platform uses:
JVM - BigInteger
JS and WasmJs - JS BigInt
Native and WasmWasi - implemented from scratch
Example
val bigInt: BigInt = "1232186768767".toBigInt()
println(bigInt 0) // prints "true"
Using in your projects
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-bigint:0.4.0")
}
BigInt: an arbitrary-precision integer.
The module is currently experimental and is subject to API/ABI changes
On current moment BigInt provides only simple operations:
conversion between primitive number types, String and ByteArray (two's complement)
comparing BigInt with itself and other number types
serialization via kotlinx.serialization
Depending on target/platform uses:
JVM - BigInteger
JS and WasmJs - JS BigInt
Native and WasmWasi - implemented from scratch
Example
val bigInt: BigInt = "1232186768767".toBigInt()
println(bigInt 0) // prints "true"
Using in your projects
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-bigint:0.4.0")
}
BigInt: an arbitrary-precision integer.
The module is currently experimental and is subject to API/ABI changes
On current moment BigInt provides only simple operations:
conversion between primitive number types, String and ByteArray (two's complement)
comparing BigInt with itself and other number types
serialization via kotlinx.serialization
Depending on target/platform uses:
JVM - BigInteger
JS and WasmJs - JS BigInt
Native and WasmWasi - implemented from scratch
Example
val bigInt: BigInt = "1232186768767".toBigInt()
println(bigInt 0) // prints "true"
Using in your projects
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-bigint:0.4.0")
}
BigInt: an arbitrary-precision integer.
The module is currently experimental and is subject to API/ABI changes
On current moment BigInt provides only simple operations:
conversion between primitive number types, String and ByteArray (two's complement)
comparing BigInt with itself and other number types
serialization via kotlinx.serialization
Depending on target/platform uses:
JVM - BigInteger
JS and WasmJs - JS BigInt
Native and WasmWasi - implemented from scratch
Example
val bigInt: BigInt = "1232186768767".toBigInt()
println(bigInt 0) // prints "true"
Using in your projects
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-bigint:0.4.0")
}
Packages
BigInt: an arbitrary-precision integer.