Documentation ¶
Index ¶
- Constants
- type Engine
- func (r *Engine) Accept(format string) bool
- func (r *Engine) RequestPresentation(name, version string, attrInfo map[string]*schema.IndyProofRequestAttr, ...) (*decorator.AttachmentData, error)
- func (r *Engine) RequestPresentationFormat() string
- func (r *Engine) Verify(presentation, request []byte, theirDID string, myDID string) error
- type PresentationRequest
- type Provider
Constants ¶
View Source
const (
Format = "hlindy-zkp-v1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) RequestPresentation ¶
func (r *Engine) RequestPresentation(name, version string, attrInfo map[string]*schema.IndyProofRequestAttr, predicateInfo map[string]*schema.IndyProofRequestPredicate) (*decorator.AttachmentData, error)
RequestPresentationAttach
func (*Engine) RequestPresentationFormat ¶
RequestPresentationFormat
type PresentationRequest ¶
type PresentationRequest struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Nonce string `json:"nonce,omitempty"` RequestedAttributes map[string]*schema.IndyProofRequestAttr `json:"requested_attributes,omitempty"` RequestedPredicates map[string]*schema.IndyProofRequestPredicate `json:"requested_predicates,omitempty"` NonRevoked schema.NonRevokedInterval `json:"non_revoked,omitempty"` }
PresentationRequest to be encoded and sent as data in the RequestPresentation response Ref: https://github.com/hyperledger/indy-sdk/blob/57dcdae74164d1c7aa06f2cccecaae121cefac25/libindy/src/api/anoncreds.rs#L1214
Click to show internal directories.
Click to hide internal directories.