utils

package
v0.0.0-...-94bd4ab Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const Base = 10

Variables

This section is empty.

Functions

func AddU128

func AddU128(a, b types.U128) types.U128

func BlakeTwo256

func BlakeTwo256(dest []byte) [32]byte

func BlockstoreAndKeyring

func BlockstoreAndKeyring(from, keystorePath, blockstorePath, startBlock string) (*signature.KeyringPair, *blockstore.Blockstore, uint64, error)

func DecomposeSignature

func DecomposeSignature(sigs [][]byte) ([]uint8, [][32]byte, [][32]byte)

func PublicKeyFromKeypair

func PublicKeyFromKeypair(pair *secp256k1.Keypair) []byte

func ReadCSV

func ReadCSV(filePath string) [][]string

ReadCSV - Read all items from a csv item file

func StringToBigint

func StringToBigint(src string) (*big.Int, bool)

func WriteCSV

func WriteCSV(filePath string, lines [][]string) error

WriteCSV - write the csv item file for delete/update operations

Types

This section is empty.

Jump to

Keyboard shortcuts

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