Module foundation_ur::bytewords

source ·
Expand description

§Bytewords

Encode and decode byte payloads according to the bytewords scheme.

Modules§

Structs§

Enums§

  • The different errors that can be returned when decoding.
  • The errors that can be returned when encoding.
  • The three different bytewords encoding styles.

Functions§

  • Decodes a bytewords-encoded String back into a byte payload. The encoding must contain a four-byte checksum.
  • Decodes a bytewords-encoded string back into a byte payload onto an existing slice. The encoding must contain a four-byte checksum.
  • Encodes a byte payload into a bytewords encoded String.
  • Encodes a byte payload into a bytewords encoded string on an existing slice.
  • Try to validate a bytewords encoded string and calculate its length in bytes.