safemath

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a *big.Int, b *big.Int) (*big.Int, error)

Add adds two uints, reverts on overflow.

func Sub

func Sub(a *big.Int, b *big.Int) (*big.Int, error)

Sub subtracts two uints, reverts on overflow (i.e. if subtrahend is greater than minuend).

Types

This section is empty.

Jump to

Keyboard shortcuts

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