encode

package
v0.0.0-...-c46be8d Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package encode signs HMAC SHA25 for binance request

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hmac

type Hmac struct {
	Key []byte
}

Hmac uses HMAC SHA256 for signing payloads.

func (*Hmac) Sign

func (hs *Hmac) Sign(payload []byte) (s string, err error)

Sign signs provided payload and returns encoded string sum.

type Signer

type Signer interface {
	// Sign signs provided payload and returns encoded string sum.
	Sign(payload []byte) (string, error)
}

Signer signs provided payloads.

Jump to

Keyboard shortcuts

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