htocol

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HeaderPrefix    = "HOTU-"                    //Uniform prefix
	HeaderNonce     = HeaderPrefix + "Nonce"     //Nonce
	HeaderTimestamp = HeaderPrefix + "Timestamp" //Timestamp
	HeaderSignature = HeaderPrefix + "Signature" //Signature
	HeaderVN        = HeaderPrefix + "Vn"
	HeaderSP        = HeaderPrefix + "Sp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SignBuilder added in v1.0.2

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

func (*SignBuilder) Add added in v1.0.2

func (b *SignBuilder) Add(key string, val string) *SignBuilder

func (*SignBuilder) Build added in v1.0.2

func (b *SignBuilder) Build() string

func (*SignBuilder) Sign added in v1.0.2

func (b *SignBuilder) Sign(privateKey ki.PRI) (string, *errors.Error)

func (*SignBuilder) Verify added in v1.0.2

func (b *SignBuilder) Verify(publicKey ki.PUB, signStr string) (bool, *errors.Error)

Jump to

Keyboard shortcuts

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