walletconnect

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(p *ecdsa.PrivateKey, msg []byte) ([]byte, error)

Sign signs message using WalletConnect API. The returned signature contains RFC6979 signature and 16-byte salt.

func Verify

func Verify(p *ecdsa.PublicKey, data, sign []byte) bool

Verify verifies message using WalletConnect API.

Types

type SignedMessage

type SignedMessage struct {
	Data      []byte
	Message   []byte
	PublicKey []byte
	Salt      []byte
}

SignedMessage contains mirrors `SignedMessage` struct from the WalletConnect API. https://neon.coz.io/wksdk/core/modules.html#SignedMessage

Jump to

Keyboard shortcuts

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