Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAddressSignature = fmt.Errorf("invalid viewing key signature for requested address")
Functions ¶
This section is empty.
Types ¶
type VKHandler ¶
type VKHandler struct {
// contains filtered or unexported fields
}
VKHandler handles encryption and validation of viewing keys
func New ¶
func New(requestedAddr *gethcommon.Address, vkPubKeyBytes, accountSignatureHexBytes []byte, chainID int64) (*VKHandler, error)
New creates a new viewing key handler if signature is valid and was produced by given address It receives address, viewing key and a signature over viewing key. In order to check signature validity, we need to reproduce a message that was originally signed
Click to show internal directories.
Click to hide internal directories.