class_group 0.6.0

Rust library for building IQC: cryptography based on class groups (Cl) of imaginary quadratic orders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Function: characteristic
Section: conversions
C-Name: characteristic
Prototype: mG
Help: characteristic(x): characteristic of the base ring over which x is
 defined.
Doc:
 returns the characteristic of the base ring over which $x$ is defined (as
 defined by \typ{INTMOD} and \typ{FFELT} components). The function raises an
 exception if incompatible primes arise from \typ{FFELT} and \typ{PADIC}
 components.
 \bprog
 ? characteristic(Mod(1,24)*x + Mod(1,18)*y)
 %1 = 6
 @eprog