package
0.3.16
Repository: https://github.com/renproject/mercury.git
Documentation: pkg.go.dev

# Functions

AppendChecksum creates a checksum for the given payload and appends it, according to `https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md#checksum`.
No description provided by the author
No description provided by the author
EncodePrefix encodes prefix according to `https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md#checksum`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PayToAddrScript creates a new script to pay a transaction output to a the specified address.
PolyMod implements `PolyMod` function uint64_t PolyMod(const data &v) { uint64_t c = 1; for (uint8_t d : v) { uint8_t c0 = c >> 35; c = ((c & 0x07ffffffff) << 5) ^ d; if (c0 & 0x01) c ^= 0x98f2bc8e61; if (c0 & 0x02) c ^= 0x79b76d99e2; if (c0 & 0x04) c ^= 0xf33e5fb3c4; if (c0 & 0x08) c ^= 0xae2eabe2a8; if (c0 & 0x10) c ^= 0x1e4f43e470; } return c ^ 1; } defined in `https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md`, it is used to calculate the checksum for bitcoin cash addresses.
VerifyChecksum verifies whether the given payload is wellformed, according to `https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md#checksum`.

# Constants

No description provided by the author
No description provided by the author

# Variables

BCashCodec is the BitcoinCash address encoding format according to `https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md#payload`.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author