Skip to content

Commit

Permalink
Merge pull request #135 from alamgu/dn/key-field-pub
Browse files Browse the repository at this point in the history
Allow cloning ECPublicKey and make its fields pub
  • Loading branch information
yogh333 authored Feb 28, 2024
2 parents 4d0e7fd + 13e8bc8 commit 78cbf80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ledger_device_sdk/src/ecc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ pub struct ECPrivateKey<const N: usize, const TY: char> {
/// let public_key = sk.public_key();
/// ```
#[repr(C)]
#[derive(Clone)]
pub struct ECPublicKey<const S: usize, const TY: char> {
curve: CurvesId,
keylength: usize,
pub curve: CurvesId,
pub keylength: usize,
pub pubkey: [u8; S],
}

Expand Down

0 comments on commit 78cbf80

Please sign in to comment.