8
8
"github.com/zigbee-alliance/distributed-compliance-ledger/x/pki/types"
9
9
)
10
10
11
- // SetNocRootCertificatesByVidAndSkid set a specific nocRootCertificatesByVidAndSkid in the store from its index
11
+ // SetNocRootCertificatesByVidAndSkid set a specific nocRootCertificatesByVidAndSkid in the store from its index.
12
12
func (k Keeper ) SetNocRootCertificatesByVidAndSkid (ctx sdk.Context , nocRootCertificatesByVidAndSkid types.NocRootCertificatesByVidAndSkid ) {
13
13
store := prefix .NewStore (ctx .KVStore (k .storeKey ), pkitypes .KeyPrefix (types .NocRootCertificatesByVidAndSkidKeyPrefix ))
14
14
b := k .cdc .MustMarshal (& nocRootCertificatesByVidAndSkid )
@@ -18,7 +18,7 @@ func (k Keeper) SetNocRootCertificatesByVidAndSkid(ctx sdk.Context, nocRootCerti
18
18
), b )
19
19
}
20
20
21
- // GetNocRootCertificatesByVidAndSkid returns a nocRootCertificatesByVidAndSkid from its index
21
+ // GetNocRootCertificatesByVidAndSkid returns a nocRootCertificatesByVidAndSkid from its index.
22
22
func (k Keeper ) GetNocRootCertificatesByVidAndSkid (
23
23
ctx sdk.Context ,
24
24
vid int32 ,
@@ -36,6 +36,7 @@ func (k Keeper) GetNocRootCertificatesByVidAndSkid(
36
36
}
37
37
38
38
k .cdc .MustUnmarshal (b , & val )
39
+
39
40
return val , true
40
41
}
41
42
@@ -63,7 +64,7 @@ func (k Keeper) AddNocRootCertificatesByVidAndSkid(ctx sdk.Context, nocCertifica
63
64
store .Set (types .NocRootCertificatesByVidAndSkidKey (nocCertificate .Vid , nocCertificate .SubjectKeyId ), b )
64
65
}
65
66
66
- // RemoveNocRootCertificatesByVidAndSkid removes a nocRootCertificatesByVidAndSkid from the store
67
+ // RemoveNocRootCertificatesByVidAndSkid removes a nocRootCertificatesByVidAndSkid from the store.
67
68
func (k Keeper ) RemoveNocRootCertificatesByVidAndSkid (
68
69
ctx sdk.Context ,
69
70
vid int32 ,
@@ -129,7 +130,7 @@ func (k Keeper) _filterAndSetNocRootCertificateByVidAndSkid(
129
130
}
130
131
}
131
132
132
- // GetAllNocRootCertificatesByVidAndSkid returns all nocRootCertificatesByVidAndSkid
133
+ // GetAllNocRootCertificatesByVidAndSkid returns all nocRootCertificatesByVidAndSkid.
133
134
func (k Keeper ) GetAllNocRootCertificatesByVidAndSkid (ctx sdk.Context ) (list []types.NocRootCertificatesByVidAndSkid ) {
134
135
store := prefix .NewStore (ctx .KVStore (k .storeKey ), pkitypes .KeyPrefix (types .NocRootCertificatesByVidAndSkidKeyPrefix ))
135
136
iterator := sdk .KVStorePrefixIterator (store , []byte {})
0 commit comments