Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func UnsealEventsResponse ¶
func UnsealEventsResponse(sealed []byte, keys []DecryptionKey) (*sdk.EventResponse, error)
UnsealEventsResponse decrypts the sealed response with the provided keys. The SDK will try to decrypt the result with each key until it succeeds. In case if all keys fail, AggregatedUnsealError is returned with error details for each key. To learn more about sealed results visit: https://dev.fingerprint.com/docs/sealed-client-results
Types ¶
type AggregatedUnsealError ¶
type AggregatedUnsealError struct {
UnsealErrors []UnsealError
}
func NewAggregatedUnsealError ¶
func NewAggregatedUnsealError() *AggregatedUnsealError
func (*AggregatedUnsealError) Add ¶
func (e *AggregatedUnsealError) Add(error UnsealError)
func (*AggregatedUnsealError) Error ¶
func (e *AggregatedUnsealError) Error() string
type DecryptionKey ¶
type UnsealError ¶
type UnsealError struct { Error error Key DecryptionKey }
func NewUnsealError ¶
func NewUnsealError(err error, key DecryptionKey) UnsealError
Click to show internal directories.
Click to hide internal directories.