-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from netkicorp/upgrade_library
Upgrading to library 0.1.0-alpha16
- Loading branch information
Showing
10 changed files
with
280 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 24 additions & 1 deletion
25
src/main/java/com/netki/transactidlibraryjavademo/TransactidLibraryJavaDemoApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/netki/transactidlibraryjavademo/model/EncryptionKeys.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.netki.transactidlibraryjavademo.model | ||
|
||
data class EncryptionKeys( | ||
val senderPrivateKey: String, | ||
val senderPublicKey: String, | ||
val recipientPrivateKey: String, | ||
val recipientPublicKey: String | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/netki/transactidlibraryjavademo/model/ServiceError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.netki.sapphire.model | ||
|
||
data class ServiceError( | ||
var type: ServiceErrorType, | ||
val message: String | ||
) |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/netki/transactidlibraryjavademo/model/ServiceErrorType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.netki.sapphire.model | ||
|
||
enum class ServiceErrorType { | ||
ADDRESS_PROVIDER_ERROR, | ||
ADDRESS_PROVIDER_UNAUTHORIZED, | ||
CERTIFICATE_PROVIDER, | ||
CERTIFICATE_PROVIDER_UNAUTHORIZED, | ||
INVALID_CERTIFICATE_CHAIN, | ||
INVALID_CERTIFICATE, | ||
INVALID_OBJECT, | ||
INVALID_OWNERS, | ||
INVALID_PRIVATE_KEY, | ||
INVALID_SIGNATURE, | ||
KEY_MANAGEMENT_FETCH, | ||
KEY_MANAGEMENT_STORE, | ||
OBJECT_NOT_FOUND, | ||
INVALID_DATA, | ||
ENCRYPTION_ERROR, | ||
UNKNOWN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.