MCPcopy Create free account
hub / github.com/docknetwork/crypto / new

Method new

syra/src/setup.rs:114–118  ·  view source on GitHub ↗
(label: &[u8])

Source from the content-addressed store, hash-verified

112
113impl<E: Pairing> SetupParams<E> {
114 pub fn new<D: Digest>(label: &[u8]) -> Self {
115 let g = affine_group_element_from_byte_slices!(label, b" : g");
116 let g_hat = affine_group_element_from_byte_slices!(label, b" : g_hat");
117 Self { g, g_hat }
118 }
119}
120
121impl<E: Pairing> From<SetupParams<E>> for PreparedSetupParams<E> {

Callers

nothing calls this directly

Calls 3

randFunction · 0.85
cloneMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected