@@ -205,18 +205,23 @@ final class KeyPairTests: XCTestCase {
205205 func testImportingWalletFromPrivateKey( ) {
206206 let tz1UnencryptedSeed = KeyPair . regular ( fromSecretKey: " edsk3KvXD8SVD9GCyU4jbzaFba2HZRad5pQ7ajL79n7rUoc3nfHv5t " , andPassphrase: nil )
207207 XCTAssert ( tz1UnencryptedSeed? . publicKey. publicKeyHash == " tz1Qvpsq7UZWyQ4yabf9wGpG97testZCjoCH " , tz1UnencryptedSeed? . publicKey. publicKeyHash ?? " - " )
208+ XCTAssert ( tz1UnencryptedSeed? . publicKey. signingCurve == . ed25519, tz1UnencryptedSeed? . publicKey. signingCurve. rawValue ?? " - " )
208209
209210 let tz1UnencryptedPk = KeyPair . regular ( fromSecretKey: " edskRgQqEw17KMib89AzChu8DiJjmVeDfGmbCMpp7MpmhgTdNVvZ3TTaLfwNoux4hDDVeLxmEJxKiYE1cYp1Vgj6QATKaJa58L " , andPassphrase: nil )
210211 XCTAssert ( tz1UnencryptedPk? . publicKey. publicKeyHash == " tz1Ue76bLW7boAcJEZf2kSGcamdBKVi4Kpss " , tz1UnencryptedPk? . publicKey. publicKeyHash ?? " - " )
212+ XCTAssert ( tz1UnencryptedPk? . publicKey. signingCurve == . ed25519, tz1UnencryptedPk? . publicKey. signingCurve. rawValue ?? " - " )
211213
212214 let tz1Encrypted = KeyPair . regular ( fromSecretKey: " edesk1L8uVSYd3aug7jbeynzErQTnBxq6G6hJwmeue3yUBt11wp3ULXvcLwYRzDp4LWWvRFNJXRi3LaN7WGiEGhh " , andPassphrase: " pa55word " )
213215 XCTAssert ( tz1Encrypted? . publicKey. publicKeyHash == " tz1XztestvvcXSQZUbZav5YgVLRQbxC4GuMF " , tz1Encrypted? . publicKey. publicKeyHash ?? " - " )
216+ XCTAssert ( tz1Encrypted? . publicKey. signingCurve == . ed25519, tz1Encrypted? . publicKey. signingCurve. rawValue ?? " - " )
214217
215218 let tz2Unencrypted = KeyPair . regular ( fromSecretKey: " spsk29hF9oJ6koNnnJMs1rXz4ynBs8hL8FyubTNPCu2tCVP5beGDbw " , andPassphrase: nil )
216219 XCTAssert ( tz2Unencrypted? . publicKey. publicKeyHash == " tz2RbUirt95UQHa9YyxcLj9GusNctxwn3Xi1 " , tz2Unencrypted? . publicKey. publicKeyHash ?? " - " )
220+ XCTAssert ( tz2Unencrypted? . publicKey. signingCurve == . secp256k1, tz2Unencrypted? . publicKey. signingCurve. rawValue ?? " - " )
217221
218222 let tz2Encrypted = KeyPair . regular ( fromSecretKey: " spesk1S5bMTCyH9z4mHSpnbn6DBY831DD6Rxgq7ANfEKkngoHSwy6B5odh942TKL6DtLbfTkpTHfSTAQu2d72Qd6 " , andPassphrase: " pa55word " )
219223 XCTAssert ( tz2Encrypted? . publicKey. publicKeyHash == " tz2C8APAjnQfffdkHssxdFRctkD1iPLGaGEg " , tz2Encrypted? . publicKey. publicKeyHash ?? " - " )
224+ XCTAssert ( tz2Encrypted? . publicKey. signingCurve == . secp256k1, tz2Encrypted? . publicKey. signingCurve. rawValue ?? " - " )
220225 }
221226
222227 func testIsEncrypted( ) {
0 commit comments