utils

package
v0.0.0-...-979cceb Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAndSign

func MarshalAndSign(msg interface{}, prvkey crypto.PrivKey) ([]byte, []byte, error)

func VerifySig

func VerifySig(m map[string]crypto.PubKey, sig []byte, msgbytes []byte, source []byte) (bool, error)

Types

type PoissonGenerator

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

func NewPoissonGenerator

func NewPoissonGenerator(seed int64) *PoissonGenerator

func (*PoissonGenerator) Poisson

func (p *PoissonGenerator) Poisson(mean float64) int

Jump to

Keyboard shortcuts

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