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 ¶
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 ¶
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.