-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sample): Forth batch of sample app code
- Loading branch information
1 parent
b79e11f
commit d55b511
Showing
62 changed files
with
836 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Pollux | ||
import Domain | ||
|
||
public struct PolluxBuilder { | ||
let castor: Castor | ||
|
||
public init(castor: Castor) { | ||
self.castor = castor | ||
} | ||
|
||
public func build() -> Pollux { | ||
PolluxImpl(castor: castor) | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Foundation | ||
|
||
public protocol Pollux { | ||
func parseVerifiableCredential(jsonString: String) throws -> VerifiableCredential | ||
func parseVerifiableCredential(jwtString: String) throws -> VerifiableCredential | ||
} |
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 |
---|---|---|
|
@@ -37,5 +37,5 @@ public enum LogComponent: String { | |
case mercury | ||
case pluto | ||
case pollux | ||
case experiences | ||
case prismAgent | ||
} |
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
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
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
Pluto/Sources/PersistentStorage/Models/CDIssueCredentialProtocol+CoreDataClass.swift
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,5 @@ | ||
import CoreData | ||
import Foundation | ||
|
||
@objc(CDIssueCredentialProtocol) | ||
class CDIssueCredentialProtocol: NSManagedObject {} |
16 changes: 16 additions & 0 deletions
16
Pluto/Sources/PersistentStorage/Models/CDIssueCredentialProtocol+CoreDataProperties.swift
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,16 @@ | ||
import CoreData | ||
import Foundation | ||
|
||
extension CDIssueCredentialProtocol { | ||
@nonobjc class func createFetchRequest() -> NSFetchRequest<CDIssueCredentialProtocol> { | ||
return NSFetchRequest<CDIssueCredentialProtocol>(entityName: "CDIssueCredentialProtocol") | ||
} | ||
|
||
@NSManaged var protocolId: String | ||
@NSManaged var threadId: String? | ||
@NSManaged var credential: CDVerifiableCredential? | ||
@NSManaged var issue: CDMessage? | ||
@NSManaged var offer: CDMessage? | ||
@NSManaged var propose: CDMessage? | ||
@NSManaged var request: CDMessage? | ||
} |
5 changes: 5 additions & 0 deletions
5
Pluto/Sources/PersistentStorage/Models/CDProofProtocol+CoreDataClass.swift
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,5 @@ | ||
import CoreData | ||
import Foundation | ||
|
||
@objc(CDProofProtocol) | ||
class CDProofProtocol: NSManagedObject {} |
14 changes: 14 additions & 0 deletions
14
Pluto/Sources/PersistentStorage/Models/CDProofProtocol+CoreDataProperties.swift
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,14 @@ | ||
import CoreData | ||
import Foundation | ||
|
||
extension CDProofProtocol { | ||
@nonobjc class func createFetchRequest() -> NSFetchRequest<CDProofProtocol> { | ||
return NSFetchRequest<CDProofProtocol>(entityName: "CDProofProtocol") | ||
} | ||
|
||
@NSManaged var protocolId: String | ||
@NSManaged var threadId: String? | ||
@NSManaged var presentation: CDMessage? | ||
@NSManaged var propose: CDMessage? | ||
@NSManaged var request: CDMessage? | ||
} |
Oops, something went wrong.