Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles incoming requests for merkletree service
func (*Handler) AddHandler ¶
func (h *Handler) AddHandler(w http.ResponseWriter, r *http.Request)
AddHandler handlers requests to add items to the tree
func (*Handler) GetProofHandler ¶
func (h *Handler) GetProofHandler(w http.ResponseWriter, r *http.Request)
GetProofHandler returns a proof for a given credential
func (*Handler) RevokeHandler ¶
func (h *Handler) RevokeHandler(w http.ResponseWriter, r *http.Request)
RevokeHandler handles requests to revoke a claim
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a service for registering JWT claims
func NewService ¶
NewService creates a new instance of the service
func (*Service) GenerateProof ¶
GenerateProof creates a proof from a jwt
func (*Service) RevokeEntry ¶
RevokeEntry takes a token and revokes it in the merkle tree
Click to show internal directories.
Click to hide internal directories.