File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ mod tests {
89
89
90
90
assert ! ( ArweaveSigner :: verify( pub_key, msg. clone( ) , sig) . is_ok( ) ) ;
91
91
92
- let jwt_str = r#"{
92
+ let jwk_str = r#"{
93
93
"kty" : "RSA",
94
94
"kid" : "cc34c0a0-bd5a-4a3c-a50d-a2a7db7643df",
95
95
"use" : "sig",
@@ -102,7 +102,7 @@ mod tests {
102
102
"dq" : "mxRTU3QDyR2EnCv0Nl0TCF90oliJGAHR9HJmBe__EjuCBbwHfcT8OG3hWOv8vpzokQPRl5cQt3NckzX3fs6xlJN4Ai2Hh2zduKFVQ2p-AF2p6Yfahscjtq-GY9cB85NxLy2IXCC0PF--Sq9LOrTE9QV988SJy_yUrAjcZ5MmECk",
103
103
"qi" : "ldHXIrEmMZVaNwGzDF9WG8sHj2mOZmQpw9yrjLK9hAsmsNr5LTyqWAqJIYZSwPTYWhY4nu2O0EY9G9uYiqewXfCKw_UngrJt8Xwfq1Zruz0YY869zPN4GiE9-9rzdZB33RBw8kIOquY3MK74FMwCihYx_LiU2YTHkaoJ3ncvtvg"
104
104
}"# ;
105
- let jwk: jwk:: JsonWebKey = jwt_str . parse ( ) . unwrap ( ) ;
105
+ let jwk: jwk:: JsonWebKey = jwk_str . parse ( ) . unwrap ( ) ;
106
106
let signer = ArweaveSigner :: from_jwk ( jwk) ;
107
107
108
108
let sig = signer. sign ( msg. clone ( ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments