-
Notifications
You must be signed in to change notification settings - Fork 0
/
PrivacyService.kt
21 lines (19 loc) · 994 Bytes
/
PrivacyService.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.wavesenterprise.sdk.node.client.blocking.privacy
import com.wavesenterprise.sdk.node.domain.Address
import com.wavesenterprise.sdk.node.domain.Hash
import com.wavesenterprise.sdk.node.domain.PolicyId
import com.wavesenterprise.sdk.node.domain.privacy.Data
import com.wavesenterprise.sdk.node.domain.privacy.PolicyItemInfoResponse
import com.wavesenterprise.sdk.node.domain.privacy.PolicyItemRequest
import com.wavesenterprise.sdk.node.domain.privacy.SendDataRequest
import com.wavesenterprise.sdk.node.domain.tx.PolicyDataHashTx
import java.util.Optional
interface PrivacyService {
fun sendData(request: SendDataRequest): PolicyDataHashTx
fun info(request: PolicyItemRequest): Optional<PolicyItemInfoResponse>
fun data(request: PolicyItemRequest): Optional<Data>
fun exists(request: PolicyItemRequest): Boolean
fun recipients(policyId: PolicyId): List<Address>
fun owners(policyId: PolicyId): List<Address>
fun hashes(policyId: PolicyId): List<Hash>
}