(label: &[u8])
| 112 | |
| 113 | impl<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 | |
| 121 | impl<E: Pairing> From<SetupParams<E>> for PreparedSetupParams<E> { |