int160

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

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

func Distance

func Distance(a, b T) (ret T)

func FromByteArray

func FromByteArray(b [20]byte) (ret T)

func FromByteString

func FromByteString(s string) (ret T)

func FromBytes

func FromBytes(b []byte) (ret T)

func (*T) AsByteArray

func (me *T) AsByteArray() [20]byte

func (*T) BitLen

func (me *T) BitLen() int

func (*T) ByteString

func (me *T) ByteString() string

func (T) Bytes

func (me T) Bytes() []byte

func (T) Cmp

func (l T) Cmp(r T) int

func (T) Distance

func (a T) Distance(b T) (ret T)

func (*T) GetBit

func (me *T) GetBit(index int) bool

func (*T) IsZero

func (me *T) IsZero() bool

func (*T) SetBit

func (me *T) SetBit(index int, val bool)

func (*T) SetBytes

func (me *T) SetBytes(b []byte)

func (*T) SetMax

func (me *T) SetMax()

func (T) String

func (me T) String() string

func (*T) Xor

func (me *T) Xor(a, b *T)

Jump to

Keyboard shortcuts

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