Agent
Wallet Config
val walletConfig: WalletConfig = WalletConfig(
uri = "sqlite://pathWhereYouWantDataStored/local.db",
// options are raw(raw random key), kdf:argon2i(Encrypted Key), none(testing only)
keyMethod = "raw",
// Should be randomly generated or derived from a pin or password, must be able to be repeatedly accessed
passkey = "TheActualKeyThatUnlocksTheWallet",
id = "Unique id for this wallet"
)let walletConfig = WalletConfig(
uri: "sqlite://pathWhereYouWantDataStored/local.db",
keyMethod: "raw",
passkey: "TheActualKeyThatUnlocksTheWallet",
id: "Unique id for this wallet"
)Mediation Config
val mediationConfig: MediationConfig = MediationConfig(
mediatorInvitationUrl = "Mediation connection url for the default mediator you want to use",
// Optional parameter to indicate how often, in milliseconds,the Agent should try to reconnect to the mediator
baseMediatorReconnectionIntervalMS = 500,
// Optional parameter to indicate the max amount of time between attempts to contact the mediator
maximumMediatorReconnectionIntervalMS: Int = 10000
)let mediationConfig = MediationConfig(
mediatorInvitationUrl: "Mediation connection URL for the default mediator you want to use",
// Optional parameter to indicate how often, in milliseconds, the Agent should try to reconnect to the mediator
baseMediatorReconnectionIntervalMS: 500,
// Optional parameter to indicate the max amount of time between attempts to contact the mediator
maximumMediatorReconnectionIntervalMS: 10000
)Pool Config
Configuring an Agent
React Native
Last updated
Was this helpful?