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: 0

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