common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GWAccountDB

type GWAccountDB struct {
	AccountAddress []byte `json:"accountAddress"`
	Signature      []byte `json:"signature"`
	SignatureType  int    `json:"signatureType"`
}

type GWSessionKeyDB added in v1.0.0

type GWSessionKeyDB struct {
	PrivateKey []byte      `json:"privateKey"`
	Account    GWAccountDB `json:"account"`
}

GWSessionKeyDB - an account key-pair registered for a user

type GWUserDB

type GWUserDB struct {
	UserId     []byte          `json:"userId"`
	PrivateKey []byte          `json:"privateKey"`
	Accounts   []GWAccountDB   `json:"accounts"`
	SessionKey *GWSessionKeyDB `json:"sessionKey"`
	ActiveSK   bool            `json:"activeSK"`
}

func (*GWUserDB) ToGWUser

func (userDB *GWUserDB) ToGWUser() (*wecommon.GWUser, error)

Jump to

Keyboard shortcuts

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