signer

package
v1.0.1-0...-8ab7ef0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config holds the configuration for the signing process.

type Signer

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

Signer implements the Signer interface and handles the signing process.

func New

func New(ctx context.Context, config *Config) (*Signer, func() error, error)

New creates a new Signer instance with the given configuration.

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, body []byte, privateKeyBase64 string, createdAt, expiresAt int64) (string, error)

Sign generates a digital signature for the provided payload.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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