Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The gatekeeper's unique DID. DID string `json:"did"` // The gatekeeper's DID public key. PubKeyID string `json:"pubKeyID"` // The gatekeeper's DID private key. PrivateKey ed25519.PrivateKey `json:"privateKey"` // The CSH public key's keyID in the format of a DID URL. CSHPubKeyURL string `json:"cshPubKeyURL"` // The CSH profile created by gatekeeper. CSHProfileID string `json:"cshProfileID"` }
Config contains configuration of Gatekeeper identity and csh profile.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service responsible for creating and storing gatekeeper config.
func NewService ¶
func NewService(params *ServiceParams) (*Service, error)
NewService returns a new instance of Service.
func (*Service) CreateConfig ¶
CreateConfig creates gatekeeper DID, CSH profile, and store them in Config.
type ServiceParams ¶
type ServiceParams struct { StoreProvider storage.Provider CSHClient cshClient VDR vdrRegistry KeyManager kms.KeyManager DidMethod string DidAnchorOrigin string }
ServiceParams contains parameters of config Service.
Click to show internal directories.
Click to hide internal directories.