gateway

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: LGPL-2.1 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGateway

func NewGateway(baseUrl, private string) (features.Gateway, error)

func Sign

func Sign(private *ecdsa.PrivateKey, message string) (string, error)

Types

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(private string) (*Signer, error)

func (*Signer) PrivateKey

func (s *Signer) PrivateKey() string

func (*Signer) PublicKey

func (s *Signer) PublicKey() string

func (*Signer) Sign

func (s *Signer) Sign(path, timestamp, payload string) (string, error)

Jump to

Keyboard shortcuts

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