File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to Rust's notion of
7
7
8
8
## [ Unreleased]
9
9
10
+ - Added ` SigningParts::{ak, alpha} ` getters under the ` unstable-frost ` feature
11
+
10
12
## [ 0.10.1] - 2024-12-16
11
13
12
14
### Added
Original file line number Diff line number Diff line change @@ -917,6 +917,18 @@ pub struct SigningParts {
917
917
alpha : pallas:: Scalar ,
918
918
}
919
919
920
+ #[ cfg( feature = "unstable-frost" ) ]
921
+ impl SigningParts {
922
+ /// Return the spend validating key for this action.
923
+ pub fn ak ( & self ) -> & SpendValidatingKey {
924
+ & self . ak
925
+ }
926
+ /// Return the randomization for this action.
927
+ pub fn alpha ( & self ) -> pallas:: Scalar {
928
+ self . alpha
929
+ }
930
+ }
931
+
920
932
/// Marker for an unauthorized bundle with no signatures.
921
933
#[ derive( Clone , Debug ) ]
922
934
pub struct Unauthorized {
Original file line number Diff line number Diff line change @@ -334,6 +334,15 @@ impl From<FullViewingKey> for SpendValidatingKey {
334
334
}
335
335
336
336
impl FullViewingKey {
337
+ /// Create FVK from the given sk and ak.
338
+ pub fn from_sk_ak ( sk : & SpendingKey , ak : SpendValidatingKey ) -> Self {
339
+ FullViewingKey {
340
+ ak,
341
+ nk : sk. into ( ) ,
342
+ rivk : sk. into ( ) ,
343
+ }
344
+ }
345
+
337
346
pub ( crate ) fn nk ( & self ) -> & NullifierDerivingKey {
338
347
& self . nk
339
348
}
You can’t perform that action at this time.
0 commit comments