Skip to content

Commit

Permalink
add SigningParts::{ak, alpha}
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Jul 31, 2024
1 parent 96bda92 commit 4ffcf2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ visibility of methods and struct for the `unstable-frost` feature.
- Added `SpendValidatingKey` serialization and deserialization from bytes
visibility under the `unstable-frost` feature
- `orchard::keys::SpendValidatingKey`
- Added `SigningParts::{ak, alpha}` getters under the `unstable-frost` feature

## [0.8.0] - 2024-03-25

Expand Down
12 changes: 12 additions & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,18 @@ pub struct SigningParts {
alpha: pallas::Scalar,
}

#[cfg(feature = "unstable-frost")]
impl SigningParts {
/// Return the spend validating key for this action.
pub fn ak(&self) -> &SpendValidatingKey {
&self.ak
}
/// Return the randomization for this action.
pub fn alpha(&self) -> pallas::Scalar {
self.alpha
}
}

/// Marker for an unauthorized bundle with no signatures.
#[derive(Clone, Debug)]
pub struct Unauthorized {
Expand Down

0 comments on commit 4ffcf2c

Please sign in to comment.