From 1da7ce548f7416541bb134b5da22f563e0bb5f52 Mon Sep 17 00:00:00 2001 From: blackshirt Date: Wed, 8 Jan 2025 10:40:15 +0000 Subject: [PATCH] Add missing attributes --- vlib/crypto/ecdsa/ecdsa.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/crypto/ecdsa/ecdsa.v b/vlib/crypto/ecdsa/ecdsa.v index dc11051af7602a..0683aa358f073f 100644 --- a/vlib/crypto/ecdsa/ecdsa.v +++ b/vlib/crypto/ecdsa/ecdsa.v @@ -69,7 +69,8 @@ pub enum Nid { } @[params] -struct CurveOptions { +pub struct CurveOptions { +pub mut: nid Nid = .prime256v1 // default to NIST P-256 curve } @@ -344,7 +345,7 @@ pub enum HashConfig { @[params] pub struct SignerOpts { -mut: +pub mut: hash_config HashConfig = .with_recomended_hash // make sense when HashConfig != with_recomended_hash allow_smaller_size bool