pkg

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	C_SelfID        = "SelfID"
	C_Web2Data      = "Web2Data"
	C_Web2Address   = "Web2Address"
	C_AuthorizeID   = "AuthorizeID"
	C_AuthorizeCode = "AuthorizeCode"
	C_Web2NetPublic = "Web2NetPublic"
)

Variables

This section is empty.

Functions

func Web2Decode

func Web2Decode(privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey, data string, ptrObject any) error

func Web2DecodeEx

func Web2DecodeEx(privateKey *ecdsa.PrivateKey, public, data string, ptrObject any) error

func Web2Encode

func Web2Encode(priavateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey, data any) (string, error)

func Web2EncodeEx

func Web2EncodeEx(priavateKey *ecdsa.PrivateKey, public string, data any) (string, error)

Types

type Web2Data

type Web2Data struct {
	TOTPKey     []byte
	Web2DHKey   []byte
	Web2Public  []byte
	Web3Public  []byte
	WebAuthnKey []byte
	SelfAddress string

	// TODO: web3 storage
	VerifyNonce int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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