Skip to content

Commit 78f9cf2

Browse files
committed
comments to Provider
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 157af87 commit 78f9cf2

File tree

8 files changed

+1244
-53
lines changed

8 files changed

+1244
-53
lines changed

token/driver/identity.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ type IdentityProvider interface {
4646
// GetEIDAndRH returns both enrollment ID and revocation handle
4747
GetEIDAndRH(ctx context.Context, identity Identity, auditInfo []byte) (string, string, error)
4848

49-
// Bind binds longTerm to the passed ephemeral identity. The same signer, verifier, and audit of the long term
50-
// identity is associated to id, if copyAll is true.
49+
// Bind binds longTerm to the passed ephemeral identities.
5150
Bind(ctx context.Context, longTerm Identity, ephemeralIdentities ...Identity) error
5251

5352
// RegisterRecipientIdentity register the passed identity as a third-party recipient identity.

token/driver/wallet.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ type OwnerWallet interface {
8787
// EnrollmentID returns the enrollment ID of the owner wallet
8888
EnrollmentID() string
8989

90-
// RegisterRecipient register the given recipient data
90+
// RegisterRecipient register the passed recipient data.
91+
// The data is passed as pointer to allow the underlying token driver to modify them if needed.
9192
RegisterRecipient(ctx context.Context, data *RecipientData) error
9293

9394
// Remote returns true if this wallet is verify only, meaning that the corresponding secret key is external to this wallet

token/services/identity/mock/deserializer.go

Lines changed: 123 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)