checksum

package
v1.0.1-lp-billion-1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package checksum provides functions for adding/removing checksums from supplied Trytes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChecksum

func AddChecksum(input Trytes, isAddress bool, checksumLength uint64) (Trytes, error)

AddChecksum computes the checksum and returns the given trytes with the appended checksum. If isAddress is true, then the input trytes must be of length HashTrytesSize. Specified checksum length must be at least MinChecksumTrytesSize long or it must be AddressChecksumTrytesSize if isAddress is true.

func AddChecksums

func AddChecksums(inputs []Trytes, isAddress bool, checksumLength uint64) ([]Trytes, error)

AddChecksums is a wrapper function around AddChecksum for multiple trytes strings.

func RemoveChecksum

func RemoveChecksum(input Trytes) (Trytes, error)

RemoveChecksum removes the checksum from the given trytes. The input trytes must be of length HashTrytesSize or AddressWithChecksumTrytesSize.

func RemoveChecksums

func RemoveChecksums(inputs []Trytes) ([]Trytes, error)

RemoveChecksums is a wrapper function around RemoveChecksum for multiple trytes strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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