package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-libs.bls12-381-polynomial/Octez_bls12_381_polynomial/Srs/Srs_g2/index.html
Module Srs.Srs_g2
Source
Returns the pippenger ctxt size, i.e. the number of elements the context is supposed to be called with
Source
val of_bigstring :
?len:int ->
Bigstringaf.t ->
(t, [> `End_of_file of string | `Invalid_point of int ]) result
of_bigstring ~len bs
reads len
points of G in affine compressed format from bs
and returns a Srs. If len
is omitted the whole bs is read. The bigstring can be loaded from a file with:
let bigstring_of_file filename =
let fd = Unix.openfile filename [ Unix.O_RDONLY ] 0o440 in
Bigarray.array1_of_genarray
@@ Unix.map_file fd Bigarray.char Bigarray.c_layout false
[| (* [-1] means read the whole file *) -1 |]
in
Srs_g1.of_bigstring
(bigstring_of_file ("srs_zcash_g1_21"))
(1 lsl 5)
or with Lwt:
let bigstring_of_file filename =
let fd = Unix.openfile filename [ Unix.O_RDONLY ] 0o440 in
Lwt_bytes.map_file ~fd ~shared:false ()
in
pippenger ctxt poly
computes the multiscalar exponentiation using the SRS saved in the context and the coefficients of the given polynomial
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>