protocol

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryAccount added in v0.6.8

func QueryAccount(c *fiber.Ctx) error

func RegisterHighway added in v0.6.8

func RegisterHighway(ctx client.Context)

Types

type HttpTransport added in v0.6.8

type HttpTransport struct {
	*fiber.App
	SessionStore  *session.Store
	ClientContext client.Context
}

func (*HttpTransport) CreateAccount added in v0.6.8

func (htt *HttpTransport) CreateAccount(c *fiber.Ctx) error

! ||--------------------------------------------------------------------------------|| ! || Accounts API Rest Implementation || ! ||--------------------------------------------------------------------------------||

func (*HttpTransport) GetAccount added in v0.6.8

func (htt *HttpTransport) GetAccount(c *fiber.Ctx) error

func (*HttpTransport) Keygen added in v0.6.8

func (htt *HttpTransport) Keygen(c *fiber.Ctx) error

func (*HttpTransport) ListAccounts added in v0.6.8

func (htt *HttpTransport) ListAccounts(c *fiber.Ctx) error

func (*HttpTransport) Login added in v0.6.8

func (htt *HttpTransport) Login(c *fiber.Ctx) error

func (*HttpTransport) QueryDocument added in v0.6.8

func (htt *HttpTransport) QueryDocument(c *fiber.Ctx) error

func (*HttpTransport) QueryService added in v0.6.8

func (htt *HttpTransport) QueryService(c *fiber.Ctx) error

func (*HttpTransport) ReadMail added in v0.6.8

func (htt *HttpTransport) ReadMail(c *fiber.Ctx) error

func (*HttpTransport) SendMail added in v0.6.8

func (htt *HttpTransport) SendMail(c *fiber.Ctx) error

func (*HttpTransport) SignMessage added in v0.6.8

func (htt *HttpTransport) SignMessage(c *fiber.Ctx) error

func (*HttpTransport) VerifyMessage added in v0.6.8

func (htt *HttpTransport) VerifyMessage(c *fiber.Ctx) error

type User added in v0.6.8

type User struct {
	// DID of the user
	Did string `json:"_id"`

	// DID document of the primary identity
	Username string `json:"username"`

	// Map of the dids of the keyshares to the dids of the accounts
	Accounts []string `json:"accounts"`

	// DidDocument of the primary identity
	PrimaryIdentity *types.DidDocument `json:"primaryIdentity"`
}

func LoadUser added in v0.6.8

func LoadUser(data []byte) (*User, error)

func NewUser added in v0.6.8

func NewUser(c controller.Controller) *User

func (*User) Marshal added in v0.6.8

func (u *User) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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