gateway

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayAuth

type GatewayAuth struct {
	Nonce     string          `json:"nonce"`  // identifier for authn session
	Sender    []byte          `json:"sender"` // sender public key
	Signature *auth.Signature `json:"signature"`
}

GatewayAuth is a request for authentication from the kwil gateway.

type GatewayAuthParameter

type GatewayAuthParameter struct {
	Nonce          string `json:"nonce"`
	Statement      string `json:"statement"` // optional
	IssueAt        string `json:"issue_at"`
	ExpirationTime string `json:"expiration_time"`
	// client can use those to precheck before signing
	ChainID string `json:"chain_id"` // the chain id of the gateway
	Domain  string `json:"domain"`   // the domain of the gateway
	Version string `json:"version"`  // the authn version used by the gateway
	URI     string `json:"uri"`      // the endpoint used for authn
}

GatewayAuthParameter defines the result of GET request for gateway(KGW) authentication. It's the parameters that will be used to compose the message(SIWE like) to sign.

Jump to

Keyboard shortcuts

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