watermark

package
v0.0.1-beta6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignore

type Ignore struct {
}

Ignore watermark that do not validation and return true

func NewIgnore

func NewIgnore() *Ignore

NewIgnore create a new ignore watermark

func (*Ignore) IsSafeToSign

func (w *Ignore) IsSafeToSign(msgID string, level *big.Int) bool

IsSafeToSign always return true

type Memory

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

Memory keep previous operation in memory

func NewMemory

func NewMemory() *Memory

NewMemory create a new Memory watermark

func (*Memory) IsSafeToSign

func (w *Memory) IsSafeToSign(msgID string, level *big.Int) bool

IsSafeToSign return true if this msgID is safe to sign

Jump to

Keyboard shortcuts

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