-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtype.go
62 lines (55 loc) · 1.5 KB
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright (c) IOTIC LABS LIMITED. All rights reserved. Licensed under the Apache License, Version 2.0.
package api
import (
"github.com/Iotic-Labs/iotics-identity-go/v3/pkg/crypto"
"github.com/Iotic-Labs/iotics-identity-go/v3/pkg/register"
)
// CreateUserAndAgentWithAuthDelegationOpts Create user and agent options for high level API
type CreateUserAndAgentWithAuthDelegationOpts struct {
UserSeed []byte
UserKeyName string
UserName string
UserPassword string
AgentSeed []byte
AgentKeyName string
AgentName string
AgentPassword string
DelegationName string
OverrideDocs bool
}
// CreateTwinOpts Create twin options (with agent delegation) for highlevel API
type CreateTwinOpts struct {
Seed []byte
KeyName string
Name string
Password string
AgentID register.RegisteredIdentity
AgentDoc *register.RegisterDocument
DelegationName string
Override bool
}
// CreateIdentityOpts Create identity options for regular API
type CreateIdentityOpts struct {
Seed []byte
KeyName string
Password string
Name string
Method crypto.SeedMethod
Override bool
}
// GetIdentityOpts get identity options for regular API
type GetIdentityOpts struct {
Did string
Seed []byte
KeyName string
Password string
Name string
Method crypto.SeedMethod
}
// GetKeyPairOpts get key pair options for regular API
type GetKeyPairOpts struct {
Seed []byte
KeyName string
Password string
Method crypto.SeedMethod
}