We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41aed0 commit 2bb0a0dCopy full SHA for 2bb0a0d
1 file changed
substrate/primitives/core/src/bandersnatch.rs
@@ -227,6 +227,22 @@ pub mod vrf {
227
}
228
229
230
+ /// `VrfPreOutput` resolves to:
231
+ /// ```
232
+ /// pub struct Affine<P: SWCurveConfig> {
233
+ /// #[doc(hidden)]
234
+ /// pub x: P::BaseField,
235
236
+ /// pub y: P::BaseField,
237
238
+ /// pub infinity: bool,
239
+ /// }
240
241
+ /// where each `P::BaseField` contains a `pub struct BigInt<const N: usize>(pub [u64; N]);`
242
+ /// Since none of these structures is allocated on the heap, we don't need any special
243
+ /// memory tracking logic. We can simply implement `DecodeWithMemTracking`.
244
+ impl DecodeWithMemTracking for VrfPreOutput {}
245
+
246
impl EncodeLike for VrfPreOutput {}
247
248
impl MaxEncodedLen for VrfPreOutput {
0 commit comments