@@ -153,12 +153,6 @@ type Identity interface {
153
153
// Verify a signature over some message using this identity as reference
154
154
Verify (msg []byte , sig []byte ) error
155
155
156
- // VerifyOpts a signature over some message using this identity as reference
157
- VerifyOpts (msg []byte , sig []byte , opts SignatureOpts ) error
158
-
159
- // VerifyAttributes verifies attributes given a proof
160
- VerifyAttributes (proof []byte , spec * AttributeProofSpec ) error
161
-
162
156
// Serialize converts an identity to bytes
163
157
Serialize () ([]byte , error )
164
158
@@ -181,67 +175,10 @@ type SigningIdentity interface {
181
175
// Sign the message
182
176
Sign (msg []byte ) ([]byte , error )
183
177
184
- // SignOpts the message with options
185
- SignOpts (msg []byte , opts SignatureOpts ) ([]byte , error )
186
-
187
- // GetAttributeProof creates a proof for a set of attributes
188
- GetAttributeProof (spec * AttributeProofSpec ) (proof []byte , err error )
189
-
190
178
// GetPublicVersion returns the public parts of this identity
191
179
GetPublicVersion () Identity
192
-
193
- // Renew this identity
194
- Renew () error
195
- }
196
-
197
- // ImportRequest is data required when importing a member or
198
- // enrollment identity that was created off-band
199
- type ImportRequest struct {
200
-
201
- // IdentityProvider to enroll with
202
- Idp string
203
-
204
- // The certificate to import
205
- IdentityDesc []byte
206
-
207
- // Key reference associated to the key of the imported member
208
- KeyReference []string
209
180
}
210
181
211
- // SignatureOpts are signature options
212
- type SignatureOpts struct {
213
- Policy []string
214
- Label string
215
- }
216
-
217
- // Attribute is an arbitrary name/value pair
218
- type Attribute interface {
219
- Key () AttributeName
220
- Value () []byte
221
- Serialise () []byte
222
- }
223
-
224
- // AttributeName defines the name of an attribute assuming a
225
- // namespace defined by the entity that certifies this attributes'
226
- // ownership.
227
- type AttributeName struct {
228
- // provider/guarantor of a certain attribute; this can be
229
- // expressed by the enrollment identifier of the entity that
230
- // issues/certifies possession of such attributes.
231
- provider string
232
- // the actual name of the attribute; should be unique for a given
233
- // provider
234
- name string
235
- }
236
-
237
- type AttributeProofSpec struct {
238
- Attributes []Attribute
239
- Message []byte
240
- }
241
-
242
- // Structures defining the identifiers for identity providers and members
243
- // and members that belong to them.
244
-
245
182
// IdentityIdentifier is a holder for the identifier of a specific
246
183
// identity, naturally namespaced, by its provider identifier.
247
184
type IdentityIdentifier struct {
0 commit comments