vkhandler

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatedViewingKey added in v0.22.0

type AuthenticatedViewingKey struct {
	AccountAddress *gethcommon.Address

	UserID []byte
	// contains filtered or unexported fields
}

AuthenticatedViewingKey - the enclave side of the viewing key. Used for authenticating requests and for encryption

func VerifyViewingKey added in v0.22.0

func VerifyViewingKey(rpcVK *viewingkey.RPCSignedViewingKey, chainID int64) (*AuthenticatedViewingKey, error)

func (*AuthenticatedViewingKey) Encrypt added in v0.22.0

func (vk *AuthenticatedViewingKey) Encrypt(bytes []byte) ([]byte, error)

Encrypt returns the payload encrypted with the viewingKey

Jump to

Keyboard shortcuts

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