ar

package
v0.0.0-...-508c5de Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: LGPL-2.1-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y *big.Int) *big.Int

func And

func And(x, y *big.Int) *big.Int

func Mod

func Mod(x, y *big.Int) *big.Int

func Mul

func Mul(x, y *big.Int) *big.Int

func Or

func Or(x, y *big.Int) *big.Int

func Rnd

func Rnd(s *big.Int) rnd

func Rsh

func Rsh(x, y *big.Int) *big.Int

func Sha3

func Sha3(v interface{}) *big.Int

func Sub1

func Sub1(x, y *big.Int) *big.Int

func Xor

func Xor(x, y *big.Int) *big.Int

func XorSub

func XorSub(x, y *big.Int) *big.Int

Types

type Block

type Block interface {
	Trie() *trie.Trie
	Diff() *big.Int
}

type ByteNode

type ByteNode []byte

func (ByteNode) Big

func (self ByteNode) Big() *big.Int

type Entry

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

type Node

type Node interface {
	Big() *big.Int
}

type NumberGenerator

type NumberGenerator interface {
	// contains filtered or unexported methods
}

type OpsFunc

type OpsFunc func(a, b *big.Int) *big.Int

type Tape

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

func NewTape

func NewTape(block Block) *Tape

func (*Tape) Run

func (self *Tape) Run(header []byte) []byte

func (*Tape) Verify

func (self *Tape) Verify(header, nonce []byte) bool

Jump to

Keyboard shortcuts

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