safemath

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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