idp

package
v0.0.0-...-e6fea77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 12 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResponse

func CreateResponse(c echo.Context) error

func CreateSignature

func CreateSignature(reqMsg string, accessorPrivk []byte) ([]byte, error)

func RequestUserAccept

func RequestUserAccept(c echo.Context) error

func ResponseUserAccept

func ResponseUserAccept(c echo.Context) error

func TestVerifySignature

func TestVerifySignature(signMsg []byte, reqMsg string) error

Types

type Reponse

type Reponse struct {
	RequestId  string `json:"request_id"`
	Namespace  string `json:"namespace"`
	Identifier string `json:"identifier"`
	Secret     string `json:"secret"`
	Loa        int    `json:"loa"`
	Approval   string `json:"approval"`
	Signature  []byte `json:"signature"`
	AccessorId string `json:"accessor_id"`
}

type Request

type Request struct {
	NameSpace      string `json:"namespace"`
	Identifier     string `json:"identifier"`
	RequestMessage string `json:"request_message"`
	RequestId      string `json:"request_id"`
}

type Response

type Response struct {
	RequestID     uuid.UUID `json:"request_id"`
	AAL           int       `json:"aal"`
	IAL           int       `json:"ial"`
	Approval      string    `json:"approval"`
	Signature     string    `json:"signature"`
	AccessorID    uuid.UUID `json:"accessor_id"`
	IdentityProof string    `json:"identity_proof"`
}

type ResponseDeliver

type ResponseDeliver struct {
	Result struct {
		Height  int `json:"height"`
		CheckTx struct {
			Fee struct{} `json:"fee"`
		} `json:"check_tx"`
		DeliverTx struct {
			Log string   `json:"log"`
			Fee struct{} `json:"fee"`
		} `json:"deliver_tx"`
		Hash string `json:"hash"`
	} `json:"result"`
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL