Utilize Alternative Cryptography Providers
Manage where cryptography operations are handled by the agent, for custom and high assurance use cases.
Implement a Custom Provider
Register the Provider
let myCustomCryptoProvider: any ExternalCryptoProvider // some implementation of the protocol
let networkConfiguration = NetworkConfiguration(
sovConfiguration: nil,
cheqdConfiguration: NetworkConfiguration.Cheqd()
)
let agentConfiguration = AgentConfiguration(networkConfiguration: networkConfiguration)
let agent = try SudoDIEdgeAgentBuilder()
.setAgentConfiguration(agentConfiguration: agentConfiguration)
.registerExternalCryptoProvider(provider: myCustomCryptoProvider)
.registerExternalCryptoProvider(provider: IOSHardwareCryptoProvider())
.build()val appContext: Context // Android application context
val myCustomCryptoProvider: ExternalCryptoProvider<*,*> // some implementation of the interface
val networkConfiguration = NetworkConfiguration(
sovConfiguration = null,
cheqdConfiguration = NetworkConfiguration.Cheqd()
)
val agentConfiguration = AgentConfiguration(
networkConfiguration = networkConfiguration
)
val agent: SudoDIEdgeAgent = SudoDIEdgeAgent.builder()
.setContext(appContext)
.setAgentConfiguration(agentConfiguration)
.registerExternalCryptoProvider(myCustomCryptoProvider)
.registerExternalCryptoProvider(AndroidHardwareCryptoProvider())
.build()Utilizing the Provider
Create a DID backed by a Custom Cryptography Provider
Last updated