Skip to content

Commit

Permalink
[fix]: remove PrivateKey::payload() access
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <[email protected]>
  • Loading branch information
0x009922 committed Feb 12, 2024
1 parent da44443 commit eb69c7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/src/parameters/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,9 @@ mod tests {
.get()
.expect("private key is provided, should not fail");

assert_eq!(private_key.algorithm(), "ed25519".parse().unwrap());
assert_eq!(hex::encode( private_key.payload()), "8f4c15e5d664da3f13778801d23d4e89b76e94c1b94b389544168b6cb894f84f8ba62848cf767d72e7f7f4b9d2d7ba07fee33760f79abe5597a51520e292a0cb");
let (algorithm, payload) = private_key.into_raw();
assert_eq!(algorithm, "ed25519".parse().unwrap());
assert_eq!(hex::encode(payload), "8f4c15e5d664da3f13778801d23d4e89b76e94c1b94b389544168b6cb894f84f8ba62848cf767d72e7f7f4b9d2d7ba07fee33760f79abe5597a51520e292a0cb");
}

#[test]
Expand Down

0 comments on commit eb69c7e

Please sign in to comment.