val masterKey = "123456".toByteArray()
clientService.createMasterKey(masterKey)
Session setup
val masterKey = "123456".toByteArray()
clientService.unlockWithMasterKey(masterKey)
clientService.setupSessionService()
Create a session
val newSession = clientService.sessionService.createSession("sess01")
clientService.sessionService.selectSession(newSession.sessionId)
clientService.setup()
Create EDV
val providerUrl = "http://localhost:7000"
val result = clientService.edvService.createEdv(providerUrl)
println("Created EDV ${res.edvId} at $providerUrl")
Create document
clientService.documentService.create("documentId123", "the content".toByteArray())
Update document
clientService.documentService.update("documentId123", "new content".toByteArray())
Load document
val result = clientService.documentService.load(edvId, documentId).toString() // or .toBytes()